builtin

package
v1.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 10, 2025 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FetchResult added in v1.6.1

type FetchResult struct {
	URL           string `json:"url"`
	StatusCode    int    `json:"statusCode"`
	Status        string `json:"status"`
	ContentType   string `json:"contentType,omitempty"`
	ContentLength int    `json:"contentLength"`
	Body          string `json:"body,omitempty"`
	Error         string `json:"error,omitempty"`
}

type FetchTool added in v1.6.1

type FetchTool struct {
	// contains filtered or unexported fields
}

func NewFetchTool added in v1.6.1

func NewFetchTool(options ...FetchToolOption) *FetchTool

func (*FetchTool) Instructions added in v1.6.1

func (t *FetchTool) Instructions() string

func (*FetchTool) SetElicitationHandler added in v1.7.0

func (t *FetchTool) SetElicitationHandler(handler tools.ElicitationHandler)

func (*FetchTool) SetOAuthSuccessHandler added in v1.7.0

func (t *FetchTool) SetOAuthSuccessHandler(handler func())

func (*FetchTool) Start added in v1.6.1

func (t *FetchTool) Start(context.Context) error

func (*FetchTool) Stop added in v1.6.1

func (t *FetchTool) Stop() error

func (*FetchTool) Tools added in v1.6.1

func (t *FetchTool) Tools(context.Context) ([]tools.Tool, error)

type FetchToolOption added in v1.6.1

type FetchToolOption func(*FetchTool)

func WithTimeout added in v1.6.1

func WithTimeout(timeout time.Duration) FetchToolOption

type FileInfo added in v1.5.14

type FileInfo struct {
	Name    string `json:"name"`
	Size    int64  `json:"size"`
	Mode    string `json:"mode"`
	ModTime string `json:"modTime"`
	IsDir   bool   `json:"isDir"`
}

type FileSystemOpt

type FileSystemOpt func(*FilesystemTool)

func WithAllowedTools

func WithAllowedTools(allowedTools []string) FileSystemOpt

func WithPostEditCommands added in v1.3.1

func WithPostEditCommands(postEditCommands []PostEditConfig) FileSystemOpt

type FilesystemTool

type FilesystemTool struct {
	// contains filtered or unexported fields
}

func NewFilesystemTool

func NewFilesystemTool(allowedDirectories []string, opts ...FileSystemOpt) *FilesystemTool

func (*FilesystemTool) Instructions

func (t *FilesystemTool) Instructions() string

func (*FilesystemTool) SetElicitationHandler added in v1.7.0

func (t *FilesystemTool) SetElicitationHandler(handler tools.ElicitationHandler)

func (*FilesystemTool) SetOAuthSuccessHandler added in v1.7.0

func (t *FilesystemTool) SetOAuthSuccessHandler(handler func())

func (*FilesystemTool) Start

func (t *FilesystemTool) Start(context.Context) error

func (*FilesystemTool) Stop

func (t *FilesystemTool) Stop() error

func (*FilesystemTool) Tools

func (t *FilesystemTool) Tools(context.Context) ([]tools.Tool, error)

type MemoryTool

type MemoryTool struct {
	// contains filtered or unexported fields
}

func NewMemoryTool

func NewMemoryTool(manager memorymanager.Manager) *MemoryTool

func (*MemoryTool) Instructions

func (t *MemoryTool) Instructions() string

func (*MemoryTool) SetElicitationHandler added in v1.7.0

func (t *MemoryTool) SetElicitationHandler(handler tools.ElicitationHandler)

func (*MemoryTool) SetOAuthSuccessHandler added in v1.7.0

func (t *MemoryTool) SetOAuthSuccessHandler(handler func())

func (*MemoryTool) Start

func (t *MemoryTool) Start(context.Context) error

func (*MemoryTool) Stop

func (t *MemoryTool) Stop() error

func (*MemoryTool) Tools

func (t *MemoryTool) Tools(context.Context) ([]tools.Tool, error)

type PostEditConfig added in v1.3.1

type PostEditConfig struct {
	Path string // File path pattern (glob-style)
	Cmd  string // Command to execute (with $path placeholder)
}

PostEditConfig represents a post-edit command configuration

type ScriptShellTool

type ScriptShellTool struct {
	// contains filtered or unexported fields
}

func NewScriptShellTool

func NewScriptShellTool(shellTools map[string]latest.ScriptShellToolConfig, env []string) *ScriptShellTool

func (*ScriptShellTool) Instructions

func (t *ScriptShellTool) Instructions() string

func (*ScriptShellTool) SetElicitationHandler added in v1.7.0

func (t *ScriptShellTool) SetElicitationHandler(handler tools.ElicitationHandler)

func (*ScriptShellTool) SetOAuthSuccessHandler added in v1.7.0

func (t *ScriptShellTool) SetOAuthSuccessHandler(handler func())

func (*ScriptShellTool) Start

func (*ScriptShellTool) Stop

func (t *ScriptShellTool) Stop() error

func (*ScriptShellTool) Tools

func (t *ScriptShellTool) Tools(context.Context) ([]tools.Tool, error)

type SearchFilesArgs added in v1.0.1

type SearchFilesArgs struct {
	Path            string   `json:"path"`
	Pattern         string   `json:"pattern"`
	ExcludePatterns []string `json:"excludePatterns"`
}

type ShellTool

type ShellTool struct {
	// contains filtered or unexported fields
}

func NewShellTool

func NewShellTool(env []string) *ShellTool

func (*ShellTool) Instructions

func (t *ShellTool) Instructions() string

func (*ShellTool) SetElicitationHandler added in v1.7.0

func (t *ShellTool) SetElicitationHandler(handler tools.ElicitationHandler)

func (*ShellTool) SetOAuthSuccessHandler added in v1.7.0

func (t *ShellTool) SetOAuthSuccessHandler(handler func())

func (*ShellTool) Start

func (t *ShellTool) Start(context.Context) error

func (*ShellTool) Stop

func (t *ShellTool) Stop() error

func (*ShellTool) Tools

func (t *ShellTool) Tools(context.Context) ([]tools.Tool, error)

type ThinkTool

type ThinkTool struct {
	// contains filtered or unexported fields
}

func NewThinkTool

func NewThinkTool() *ThinkTool

func (*ThinkTool) Instructions

func (t *ThinkTool) Instructions() string

func (*ThinkTool) SetElicitationHandler added in v1.7.0

func (t *ThinkTool) SetElicitationHandler(handler tools.ElicitationHandler)

func (*ThinkTool) SetOAuthSuccessHandler added in v1.7.0

func (t *ThinkTool) SetOAuthSuccessHandler(handler func())

func (*ThinkTool) Start

func (t *ThinkTool) Start(context.Context) error

func (*ThinkTool) Stop

func (t *ThinkTool) Stop() error

func (*ThinkTool) Tools

func (t *ThinkTool) Tools(context.Context) ([]tools.Tool, error)

type Todo

type Todo struct {
	ID          string `json:"id"`
	Description string `json:"description"`
	Status      string `json:"status"` // "pending", "completed"
}

type TodoTool

type TodoTool struct {
	// contains filtered or unexported fields
}

func NewTodoTool

func NewTodoTool() *TodoTool

func (*TodoTool) Instructions

func (t *TodoTool) Instructions() string

func (*TodoTool) SetElicitationHandler added in v1.7.0

func (t *TodoTool) SetElicitationHandler(handler tools.ElicitationHandler)

func (*TodoTool) SetOAuthSuccessHandler added in v1.7.0

func (t *TodoTool) SetOAuthSuccessHandler(handler func())

func (*TodoTool) Start

func (t *TodoTool) Start(context.Context) error

func (*TodoTool) Stop

func (t *TodoTool) Stop() error

func (*TodoTool) Tools

func (t *TodoTool) Tools(context.Context) ([]tools.Tool, error)

type TransferTaskTool

type TransferTaskTool struct {
	// contains filtered or unexported fields
}

func NewTransferTaskTool

func NewTransferTaskTool() *TransferTaskTool

func (*TransferTaskTool) Instructions

func (t *TransferTaskTool) Instructions() string

func (*TransferTaskTool) SetElicitationHandler added in v1.7.0

func (t *TransferTaskTool) SetElicitationHandler(handler tools.ElicitationHandler)

func (*TransferTaskTool) SetOAuthSuccessHandler added in v1.7.0

func (t *TransferTaskTool) SetOAuthSuccessHandler(handler func())

func (*TransferTaskTool) Start

func (*TransferTaskTool) Stop

func (t *TransferTaskTool) Stop() error

func (*TransferTaskTool) Tools

type TreeNode

type TreeNode struct {
	Name     string      `json:"name"`
	Type     string      `json:"type"`
	Children []*TreeNode `json:"children,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL