Documentation
¶
Index ¶
- Constants
- func SkillActivationContextFromContext(ctx context.Context) (skills.ActivationContext, bool)
- func WithSkillActivationContext(ctx context.Context, ac skills.ActivationContext) context.Context
- type ActivationContextProvider
- type AskUserQuestionTool
- type AsyncTask
- type AsyncTaskInfo
- type AsyncTaskManager
- func (m *AsyncTaskManager) GetOutput(id string) (string, bool, error)
- func (m *AsyncTaskManager) Kill(id string) error
- func (m *AsyncTaskManager) List() []AsyncTaskInfo
- func (m *AsyncTaskManager) OutputFile(id string) string
- func (m *AsyncTaskManager) SetMaxOutputLen(maxLen int)
- func (m *AsyncTaskManager) Shutdown(ctx context.Context) error
- func (m *AsyncTaskManager) Start(id, command string) error
- type BashOutputTool
- type BashStatusTool
- type BashTool
- func (b *BashTool) AllowShellMetachars(allow bool)
- func (b *BashTool) Description() string
- func (b *BashTool) Execute(ctx context.Context, params map[string]interface{}) (*tool.ToolResult, error)
- func (b *BashTool) Name() string
- func (b *BashTool) Schema() *tool.JSONSchema
- func (b *BashTool) SetCommandLimits(maxBytes, maxArgs int)
- func (b *BashTool) SetOutputThresholdBytes(threshold int)
- func (b *BashTool) StreamExecute(ctx context.Context, params map[string]interface{}, ...) (*tool.ToolResult, error)
- type EditTool
- type GlobTool
- type GrepMatch
- type GrepTool
- type ImageReadTool
- type KillTaskTool
- type Question
- type QuestionOption
- type ReadTool
- type SearchResult
- type ShellHandle
- type ShellLine
- type ShellRead
- type ShellStatus
- type ShellStore
- func (s *ShellStore) Append(id string, stream ShellStream, data string) error
- func (s *ShellStore) Close(id string, exitCode int) error
- func (s *ShellStore) Consume(id string, filter *regexp.Regexp) (ShellRead, error)
- func (s *ShellStore) Fail(id string, err error) error
- func (s *ShellStore) Register(id string) (*ShellHandle, error)
- type ShellStream
- type SkillTool
- type SlashCommandTool
- type TaskCreateTool
- type TaskGetTool
- type TaskListTool
- type TaskRef
- type TaskRequest
- type TaskRunner
- type TaskTool
- type TaskUpdateTool
- func (t *TaskUpdateTool) Description() string
- func (t *TaskUpdateTool) Execute(ctx context.Context, params map[string]interface{}) (*tool.ToolResult, error)
- func (t *TaskUpdateTool) Name() string
- func (t *TaskUpdateTool) Schema() *tool.JSONSchema
- func (t *TaskUpdateTool) Snapshot(taskID string) (tasks.Task, bool)
- type TodoWriteItem
- type TodoWriteTool
- type WebFetchOptions
- type WebFetchTool
- type WebSearchOptions
- type WebSearchTool
- type WriteTool
Constants ¶
const ( TaskStatusPending = string(tasks.TaskPending) TaskStatusInProgress = string(tasks.TaskInProgress) TaskStatusCompleted = string(tasks.TaskCompleted) TaskStatusBlocked = string(tasks.TaskBlocked) )
Variables ¶
This section is empty.
Functions ¶
func SkillActivationContextFromContext ¶
func SkillActivationContextFromContext(ctx context.Context) (skills.ActivationContext, bool)
SkillActivationContextFromContext extracts an activation context if present.
func WithSkillActivationContext ¶
WithSkillActivationContext attaches a skills.ActivationContext to the context.
Types ¶
type ActivationContextProvider ¶
type ActivationContextProvider func(context.Context) skills.ActivationContext
ActivationContextProvider resolves the activation context for manual skill calls.
type AskUserQuestionTool ¶
type AskUserQuestionTool struct{}
AskUserQuestionTool requests user input via an external permission component.
func NewAskUserQuestionTool ¶
func NewAskUserQuestionTool() *AskUserQuestionTool
func (*AskUserQuestionTool) Description ¶
func (t *AskUserQuestionTool) Description() string
func (*AskUserQuestionTool) Execute ¶
func (t *AskUserQuestionTool) Execute(ctx context.Context, params map[string]interface{}) (*tool.ToolResult, error)
func (*AskUserQuestionTool) Name ¶
func (t *AskUserQuestionTool) Name() string
func (*AskUserQuestionTool) Schema ¶
func (t *AskUserQuestionTool) Schema() *tool.JSONSchema
type AsyncTask ¶
type AsyncTask struct {
ID string
Command string
StartTime time.Time
Done chan struct{}
Error error
// contains filtered or unexported fields
}
AsyncTask represents a single async bash invocation.
type AsyncTaskInfo ¶
type AsyncTaskInfo struct {
ID string `json:"id"`
Command string `json:"command"`
Status string `json:"status"`
StartTime time.Time `json:"start_time"`
Error string `json:"error,omitempty"`
}
AsyncTaskInfo is a lightweight snapshot used by List().
type AsyncTaskManager ¶
type AsyncTaskManager struct {
// contains filtered or unexported fields
}
AsyncTaskManager tracks and manages async bash tasks.
func DefaultAsyncTaskManager ¶
func DefaultAsyncTaskManager() *AsyncTaskManager
DefaultAsyncTaskManager returns the global async task manager.
func (*AsyncTaskManager) GetOutput ¶
func (m *AsyncTaskManager) GetOutput(id string) (string, bool, error)
GetOutput returns incremental output since last read, whether the task is done, and any task error.
func (*AsyncTaskManager) Kill ¶
func (m *AsyncTaskManager) Kill(id string) error
Kill terminates a running task.
func (*AsyncTaskManager) List ¶
func (m *AsyncTaskManager) List() []AsyncTaskInfo
List reports all known tasks with their status.
func (*AsyncTaskManager) OutputFile ¶
func (m *AsyncTaskManager) OutputFile(id string) string
func (*AsyncTaskManager) SetMaxOutputLen ¶
func (m *AsyncTaskManager) SetMaxOutputLen(maxLen int)
func (*AsyncTaskManager) Shutdown ¶
func (m *AsyncTaskManager) Shutdown(ctx context.Context) error
Shutdown attempts to terminate all tasks and waits for completion. It is best-effort: any kill errors are logged, and the method blocks until every task signals Done or the context is cancelled.
func (*AsyncTaskManager) Start ¶
func (m *AsyncTaskManager) Start(id, command string) error
Start launches a task in the background using a detached context.
type BashOutputTool ¶
type BashOutputTool struct {
// contains filtered or unexported fields
}
BashOutputTool exposes incremental output retrieval for background shells.
func NewBashOutputTool ¶
func NewBashOutputTool(store *ShellStore) *BashOutputTool
NewBashOutputTool creates a tool backed by the provided shell store.
func (*BashOutputTool) Description ¶
func (b *BashOutputTool) Description() string
func (*BashOutputTool) Execute ¶
func (b *BashOutputTool) Execute(ctx context.Context, params map[string]interface{}) (*tool.ToolResult, error)
func (*BashOutputTool) Name ¶
func (b *BashOutputTool) Name() string
func (*BashOutputTool) Schema ¶
func (b *BashOutputTool) Schema() *tool.JSONSchema
type BashStatusTool ¶
type BashStatusTool struct{}
BashStatusTool checks async task status without consuming buffered output. Returns: {"status":"running|completed|failed", "exit_code":0}
func NewBashStatusTool ¶
func NewBashStatusTool() *BashStatusTool
func (*BashStatusTool) Description ¶
func (b *BashStatusTool) Description() string
func (*BashStatusTool) Execute ¶
func (b *BashStatusTool) Execute(ctx context.Context, params map[string]interface{}) (*tool.ToolResult, error)
func (*BashStatusTool) Name ¶
func (b *BashStatusTool) Name() string
func (*BashStatusTool) Schema ¶
func (b *BashStatusTool) Schema() *tool.JSONSchema
type BashTool ¶
type BashTool struct {
// contains filtered or unexported fields
}
BashTool executes validated commands using bash within a sandbox.
func NewBashTool ¶
func NewBashTool() *BashTool
NewBashTool builds a BashTool rooted at the current directory.
func NewBashToolWithRoot ¶
NewBashToolWithRoot builds a BashTool rooted at the provided directory.
func NewBashToolWithSandbox ¶
NewBashToolWithSandbox builds a BashTool with a custom sandbox. Used when sandbox needs to be pre-configured (e.g., disabled mode).
func (*BashTool) AllowShellMetachars ¶
AllowShellMetachars enables shell pipes and metacharacters (CLI mode).
func (*BashTool) Description ¶
func (*BashTool) Schema ¶
func (b *BashTool) Schema() *tool.JSONSchema
func (*BashTool) SetCommandLimits ¶
SetCommandLimits overrides the maximum command length (bytes) and argument count enforced by the security validator. Use this for code-generation scenarios where agents write files via bash heredocs or long cat commands.
func (*BashTool) SetOutputThresholdBytes ¶
SetOutputThresholdBytes controls when output is spooled to disk.
func (*BashTool) StreamExecute ¶
func (b *BashTool) StreamExecute(ctx context.Context, params map[string]interface{}, emit func(chunk string, isStderr bool)) (*tool.ToolResult, error)
StreamExecute runs the bash command while emitting incremental output. It preserves backwards compatibility by sharing validation and metadata with Execute, and spools output to disk after crossing the configured threshold.
type EditTool ¶
type EditTool struct {
// contains filtered or unexported fields
}
EditTool applies safe in-place replacements.
func NewEditTool ¶
func NewEditTool() *EditTool
NewEditTool builds an EditTool rooted at the current directory.
func NewEditToolWithRoot ¶
NewEditToolWithRoot builds an EditTool rooted at the provided directory.
func NewEditToolWithSandbox ¶
NewEditToolWithSandbox builds an EditTool using a custom sandbox.
func (*EditTool) Description ¶
func (*EditTool) Schema ¶
func (e *EditTool) Schema() *tool.JSONSchema
type GlobTool ¶
type GlobTool struct {
// contains filtered or unexported fields
}
GlobTool looks up files via glob patterns.
func NewGlobTool ¶
func NewGlobTool() *GlobTool
NewGlobTool builds a GlobTool rooted at the current directory.
func NewGlobToolWithRoot ¶
NewGlobToolWithRoot builds a GlobTool rooted at the provided directory.
func NewGlobToolWithSandbox ¶
NewGlobToolWithSandbox builds a GlobTool using a custom sandbox.
func (*GlobTool) Description ¶
func (*GlobTool) Schema ¶
func (g *GlobTool) Schema() *tool.JSONSchema
func (*GlobTool) SetRespectGitignore ¶
SetRespectGitignore configures whether the tool should respect .gitignore patterns.
type GrepMatch ¶
type GrepMatch struct {
File string `json:"file"`
Line int `json:"line"`
Match string `json:"match"`
Before []string `json:"before,omitempty"`
After []string `json:"after,omitempty"`
}
GrepMatch captures a single match along with optional context.
type GrepTool ¶
type GrepTool struct {
// contains filtered or unexported fields
}
GrepTool enables scoped code searches.
func NewGrepTool ¶
func NewGrepTool() *GrepTool
NewGrepTool builds a GrepTool rooted at the current directory.
func NewGrepToolWithRoot ¶
NewGrepToolWithRoot builds a GrepTool rooted at the provided directory.
func NewGrepToolWithSandbox ¶
NewGrepToolWithSandbox builds a GrepTool using a custom sandbox.
func (*GrepTool) Description ¶
func (*GrepTool) Schema ¶
func (g *GrepTool) Schema() *tool.JSONSchema
func (*GrepTool) SetRespectGitignore ¶
SetRespectGitignore configures whether the tool should respect .gitignore patterns.
type ImageReadTool ¶ added in v0.1.4
type ImageReadTool struct {
// contains filtered or unexported fields
}
func NewImageReadTool ¶ added in v0.1.4
func NewImageReadTool() *ImageReadTool
func NewImageReadToolWithRoot ¶ added in v0.1.4
func NewImageReadToolWithRoot(root string) *ImageReadTool
func NewImageReadToolWithSandbox ¶ added in v0.1.4
func NewImageReadToolWithSandbox(root string, sandbox *security.Sandbox) *ImageReadTool
func (*ImageReadTool) Description ¶ added in v0.1.4
func (i *ImageReadTool) Description() string
func (*ImageReadTool) Execute ¶ added in v0.1.4
func (i *ImageReadTool) Execute(ctx context.Context, params map[string]interface{}) (*tool.ToolResult, error)
func (*ImageReadTool) Name ¶ added in v0.1.4
func (i *ImageReadTool) Name() string
func (*ImageReadTool) Schema ¶ added in v0.1.4
func (i *ImageReadTool) Schema() *tool.JSONSchema
type KillTaskTool ¶
type KillTaskTool struct{}
KillTaskTool terminates async bash tasks.
func NewKillTaskTool ¶
func NewKillTaskTool() *KillTaskTool
func (*KillTaskTool) Description ¶
func (k *KillTaskTool) Description() string
func (*KillTaskTool) Execute ¶
func (k *KillTaskTool) Execute(ctx context.Context, params map[string]interface{}) (*tool.ToolResult, error)
func (*KillTaskTool) Name ¶
func (k *KillTaskTool) Name() string
func (*KillTaskTool) Schema ¶
func (k *KillTaskTool) Schema() *tool.JSONSchema
type Question ¶
type Question struct {
Question string `json:"question"`
Header string `json:"header"`
Options []QuestionOption `json:"options"`
MultiSelect bool `json:"multiSelect"`
}
Question represents a question to ask the user.
type QuestionOption ¶
QuestionOption represents a selectable option for a question.
type ReadTool ¶
type ReadTool struct {
// contains filtered or unexported fields
}
ReadTool streams files with strict sandbox boundaries.
func NewReadTool ¶
func NewReadTool() *ReadTool
NewReadTool builds a ReadTool rooted at the current directory.
func NewReadToolWithRoot ¶
NewReadToolWithRoot builds a ReadTool rooted at the provided directory.
func NewReadToolWithSandbox ¶
NewReadToolWithSandbox builds a ReadTool using a custom sandbox.
func (*ReadTool) Description ¶
func (*ReadTool) Schema ¶
func (r *ReadTool) Schema() *tool.JSONSchema
type SearchResult ¶
type SearchResult struct {
Title string `json:"title"`
URL string `json:"url"`
Snippet string `json:"snippet"`
}
SearchResult describes a single search hit.
type ShellHandle ¶
type ShellHandle struct {
// contains filtered or unexported fields
}
ShellHandle allows append/close operations scoped to a shell.
func (*ShellHandle) Append ¶
func (h *ShellHandle) Append(stream ShellStream, data string) error
Append sends stdout/stderr chunks to the shell buffer.
func (*ShellHandle) Close ¶
func (h *ShellHandle) Close(exitCode int) error
Close marks the shell as completed.
func (*ShellHandle) Fail ¶
func (h *ShellHandle) Fail(err error) error
Fail marks the shell as failed.
type ShellLine ¶
type ShellLine struct {
Stream ShellStream `json:"stream"`
Content string `json:"content"`
Sequence int `json:"sequence"`
Timestamp time.Time `json:"timestamp"`
}
ShellLine represents a single line of shell output.
type ShellRead ¶
type ShellRead struct {
ShellID string `json:"shell_id"`
Status ShellStatus `json:"status"`
Lines []ShellLine `json:"lines"`
Dropped int `json:"dropped"`
ExitCode int `json:"exit_code"`
Error string `json:"error,omitempty"`
UpdatedAt time.Time `json:"updated_at"`
}
ShellRead reports the outcome of consuming buffered shell output.
type ShellStatus ¶
type ShellStatus string
ShellStatus represents the lifecycle status of a shell.
const ( // ShellStatusRunning indicates the shell is still producing output. ShellStatusRunning ShellStatus = "running" // ShellStatusCompleted indicates the shell exited without error. ShellStatusCompleted ShellStatus = "completed" // ShellStatusFailed indicates the shell exited with an error. ShellStatusFailed ShellStatus = "failed" )
type ShellStore ¶
type ShellStore struct {
// contains filtered or unexported fields
}
ShellStore tracks background shell buffers safely.
func DefaultShellStore ¶
func DefaultShellStore() *ShellStore
DefaultShellStore exposes the shared global store.
func (*ShellStore) Append ¶
func (s *ShellStore) Append(id string, stream ShellStream, data string) error
Append appends output to the shell buffer.
func (*ShellStore) Close ¶
func (s *ShellStore) Close(id string, exitCode int) error
Close marks the shell as completed with the provided exit code.
func (*ShellStore) Fail ¶
func (s *ShellStore) Fail(id string, err error) error
Fail marks the shell as failed with an error.
func (*ShellStore) Register ¶
func (s *ShellStore) Register(id string) (*ShellHandle, error)
Register initialises a shell buffer with the given id.
type ShellStream ¶
type ShellStream string
ShellStream distinguishes stdout/stderr streams.
const ( // ShellStreamStdout captures stdout data. ShellStreamStdout ShellStream = "stdout" // ShellStreamStderr captures stderr data. ShellStreamStderr ShellStream = "stderr" )
type SkillTool ¶
type SkillTool struct {
// contains filtered or unexported fields
}
SkillTool adapts the runtime skills registry into a tool.
func NewSkillTool ¶
func NewSkillTool(reg *skills.Registry, provider ActivationContextProvider) *SkillTool
NewSkillTool wires the registry with an optional activation provider.
func (*SkillTool) Description ¶
func (*SkillTool) Schema ¶
func (s *SkillTool) Schema() *tool.JSONSchema
type SlashCommandTool ¶
type SlashCommandTool struct {
// contains filtered or unexported fields
}
SlashCommandTool routes slash command invocations to the command executor.
func NewSlashCommandTool ¶
func NewSlashCommandTool(exec *commands.Executor) *SlashCommandTool
NewSlashCommandTool builds a tool backed by the provided executor.
func (*SlashCommandTool) Description ¶
func (s *SlashCommandTool) Description() string
func (*SlashCommandTool) Execute ¶
func (s *SlashCommandTool) Execute(ctx context.Context, params map[string]interface{}) (*tool.ToolResult, error)
func (*SlashCommandTool) Name ¶
func (s *SlashCommandTool) Name() string
func (*SlashCommandTool) Schema ¶
func (s *SlashCommandTool) Schema() *tool.JSONSchema
type TaskCreateTool ¶
type TaskCreateTool struct {
// contains filtered or unexported fields
}
func NewTaskCreateTool ¶
func NewTaskCreateTool(store tasks.Store) *TaskCreateTool
func (*TaskCreateTool) Description ¶
func (t *TaskCreateTool) Description() string
func (*TaskCreateTool) Execute ¶
func (t *TaskCreateTool) Execute(ctx context.Context, params map[string]interface{}) (*tool.ToolResult, error)
func (*TaskCreateTool) Name ¶
func (t *TaskCreateTool) Name() string
func (*TaskCreateTool) Schema ¶
func (t *TaskCreateTool) Schema() *tool.JSONSchema
type TaskGetTool ¶
type TaskGetTool struct {
// contains filtered or unexported fields
}
func NewTaskGetTool ¶
func NewTaskGetTool(store tasks.Store) *TaskGetTool
func (*TaskGetTool) Description ¶
func (t *TaskGetTool) Description() string
func (*TaskGetTool) Execute ¶
func (t *TaskGetTool) Execute(ctx context.Context, params map[string]interface{}) (*tool.ToolResult, error)
func (*TaskGetTool) Name ¶
func (t *TaskGetTool) Name() string
func (*TaskGetTool) Schema ¶
func (t *TaskGetTool) Schema() *tool.JSONSchema
type TaskListTool ¶
type TaskListTool struct {
// contains filtered or unexported fields
}
func NewTaskListTool ¶
func NewTaskListTool(store tasks.Store) *TaskListTool
func (*TaskListTool) Description ¶
func (t *TaskListTool) Description() string
func (*TaskListTool) Execute ¶
func (t *TaskListTool) Execute(ctx context.Context, params map[string]interface{}) (*tool.ToolResult, error)
func (*TaskListTool) Name ¶
func (t *TaskListTool) Name() string
func (*TaskListTool) Schema ¶
func (t *TaskListTool) Schema() *tool.JSONSchema
type TaskRequest ¶
type TaskRequest struct {
Description string
Prompt string
SubagentType string
Model string
Resume string
}
TaskRequest carries normalized parameters gathered from the tool input.
type TaskRunner ¶
type TaskRunner func(context.Context, TaskRequest) (*tool.ToolResult, error)
TaskRunner executes a validated task invocation.
type TaskTool ¶
type TaskTool struct {
// contains filtered or unexported fields
}
TaskTool launches specialized subagents through the runtime.
func NewTaskTool ¶
func NewTaskTool() *TaskTool
NewTaskTool constructs an instance with no runner attached.
func (*TaskTool) Description ¶
func (*TaskTool) Schema ¶
func (t *TaskTool) Schema() *tool.JSONSchema
func (*TaskTool) SetRunner ¶
func (t *TaskTool) SetRunner(runner TaskRunner)
SetRunner wires the runtime callback that executes task invocations.
type TaskUpdateTool ¶
type TaskUpdateTool struct {
// contains filtered or unexported fields
}
func NewTaskUpdateTool ¶
func NewTaskUpdateTool(store tasks.Store) *TaskUpdateTool
func (*TaskUpdateTool) Description ¶
func (t *TaskUpdateTool) Description() string
func (*TaskUpdateTool) Execute ¶
func (t *TaskUpdateTool) Execute(ctx context.Context, params map[string]interface{}) (*tool.ToolResult, error)
func (*TaskUpdateTool) Name ¶
func (t *TaskUpdateTool) Name() string
func (*TaskUpdateTool) Schema ¶
func (t *TaskUpdateTool) Schema() *tool.JSONSchema
type TodoWriteItem ¶
type TodoWriteTool ¶
type TodoWriteTool struct {
// contains filtered or unexported fields
}
TodoWriteTool stores a session-local todo list in memory. It mirrors the Claude Code style TodoWrite tool surface.
func NewTodoWriteTool ¶
func NewTodoWriteTool() *TodoWriteTool
func (*TodoWriteTool) Description ¶
func (t *TodoWriteTool) Description() string
func (*TodoWriteTool) Execute ¶
func (t *TodoWriteTool) Execute(ctx context.Context, params map[string]interface{}) (*tool.ToolResult, error)
func (*TodoWriteTool) Name ¶
func (t *TodoWriteTool) Name() string
func (*TodoWriteTool) Schema ¶
func (t *TodoWriteTool) Schema() *tool.JSONSchema
func (*TodoWriteTool) Snapshot ¶
func (t *TodoWriteTool) Snapshot() []TodoWriteItem
type WebFetchOptions ¶
type WebFetchOptions struct {
HTTPClient *http.Client
Timeout time.Duration
CacheTTL time.Duration
MaxContentSize int64
AllowedHosts []string
BlockedHosts []string
AllowPrivateHosts bool
}
WebFetchOptions configures WebFetchTool behaviour.
type WebFetchTool ¶
type WebFetchTool struct {
// contains filtered or unexported fields
}
WebFetchTool fetches remote web pages and returns Markdown content.
func NewWebFetchTool ¶
func NewWebFetchTool(opts *WebFetchOptions) *WebFetchTool
NewWebFetchTool builds a WebFetchTool with sane defaults.
func (*WebFetchTool) Description ¶
func (w *WebFetchTool) Description() string
func (*WebFetchTool) Execute ¶
func (w *WebFetchTool) Execute(ctx context.Context, params map[string]interface{}) (*tool.ToolResult, error)
Execute fetches the requested URL, converts it to Markdown and returns metadata.
func (*WebFetchTool) Name ¶
func (w *WebFetchTool) Name() string
func (*WebFetchTool) Schema ¶
func (w *WebFetchTool) Schema() *tool.JSONSchema
type WebSearchOptions ¶
WebSearchOptions configures HTTP behaviour for WebSearchTool.
type WebSearchTool ¶
type WebSearchTool struct {
// contains filtered or unexported fields
}
WebSearchTool proxies search queries to an HTTP endpoint and filters domains.
func NewWebSearchTool ¶
func NewWebSearchTool(opts *WebSearchOptions) *WebSearchTool
NewWebSearchTool constructs a search tool with defaults.
func (*WebSearchTool) Description ¶
func (w *WebSearchTool) Description() string
func (*WebSearchTool) Execute ¶
func (w *WebSearchTool) Execute(ctx context.Context, params map[string]interface{}) (*tool.ToolResult, error)
Execute performs a remote search and filters results using domain lists.
func (*WebSearchTool) Name ¶
func (w *WebSearchTool) Name() string
func (*WebSearchTool) Schema ¶
func (w *WebSearchTool) Schema() *tool.JSONSchema
type WriteTool ¶
type WriteTool struct {
// contains filtered or unexported fields
}
WriteTool writes files within the sandbox root.
func NewWriteTool ¶
func NewWriteTool() *WriteTool
NewWriteTool builds a WriteTool rooted at the current directory.
func NewWriteToolWithRoot ¶
NewWriteToolWithRoot builds a WriteTool rooted at the provided directory.
func NewWriteToolWithSandbox ¶
NewWriteToolWithSandbox builds a WriteTool using a custom sandbox.
func (*WriteTool) Description ¶
func (*WriteTool) Schema ¶
func (w *WriteTool) Schema() *tool.JSONSchema
Source Files
¶
- askuserquestion.go
- askuserquestion_schema.go
- async_manager.go
- bash.go
- bash_stream.go
- bash_unix.go
- bashoutput.go
- bashstatus.go
- edit.go
- file_sandbox.go
- glob.go
- grep.go
- grep_helpers.go
- grep_params.go
- grep_search.go
- image_read.go
- killtask.go
- read.go
- skill.go
- slashcommand.go
- task.go
- task_types.go
- taskcreate.go
- taskget.go
- tasklist.go
- taskupdate.go
- todo_write.go
- webfetch.go
- websearch.go
- write.go