builtin

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2025 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileSystemOpt

type FileSystemOpt func(*FilesystemTool)

func WithAllowedTools

func WithAllowedTools(allowedTools []string) 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) Start

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

func (*FilesystemTool) Stop

func (t *FilesystemTool) Stop() error

func (*FilesystemTool) Tools

func (t *FilesystemTool) Tools(ctx 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) Start

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

func (*MemoryTool) Stop

func (t *MemoryTool) Stop() error

func (*MemoryTool) Tools

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

type ScriptShellTool

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

func NewScriptShellTool

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

func (*ScriptShellTool) Instructions

func (t *ScriptShellTool) Instructions() string

func (*ScriptShellTool) Start

func (t *ScriptShellTool) Start(ctx context.Context) error

func (*ScriptShellTool) Stop

func (t *ScriptShellTool) Stop() error

func (*ScriptShellTool) Tools

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

type ShellTool

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

func NewShellTool

func NewShellTool() *ShellTool

func (*ShellTool) Instructions

func (t *ShellTool) Instructions() string

func (*ShellTool) Start

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

func (*ShellTool) Stop

func (t *ShellTool) Stop() error

func (*ShellTool) Tools

func (t *ShellTool) Tools(ctx 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) Start

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

func (*ThinkTool) Stop

func (t *ThinkTool) Stop() error

func (*ThinkTool) Tools

func (t *ThinkTool) Tools(ctx 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) Start

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

func (*TodoTool) Stop

func (t *TodoTool) Stop() error

func (*TodoTool) Tools

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

type TransferTaskTool

type TransferTaskTool struct{}

func NewTransferTaskTool

func NewTransferTaskTool() *TransferTaskTool

func (*TransferTaskTool) Instructions

func (t *TransferTaskTool) Instructions() string

func (*TransferTaskTool) Start

func (t *TransferTaskTool) Start(ctx context.Context) error

func (*TransferTaskTool) Stop

func (t *TransferTaskTool) Stop() error

func (*TransferTaskTool) Tools

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

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