Documentation
¶
Index ¶
- Constants
- func CleanOldOutputs(sessionsRoot string)
- func ForkSkill(ctx context.Context, inv *skill.Invocation, fork ForkExecutor) (agentcore.Result, error)
- func NewAskUser(ui interact.UI) agentcore.Tool
- func NewEnterWorktree(enter func(name string) (dir string, err error)) agentcore.Tool
- func NewExitWorktree(exit func(discard bool) (message string, err error)) agentcore.Tool
- func NewSkillTool(catalog func() *skill.Catalog, sessionID string, fork ForkExecutor, ...) agentcore.Tool
- func NewTodoWrite() agentcore.Tool
- func NewWebFetch(provider, apiKey string) agentcore.Tool
- func NewWebSearch(provider, apiKey string) agentcore.Tool
- type ForkExecutor
- type OutputLimiter
- type SearchResult
Constants ¶
const (
ToolOutputsSubdir = "tool-outputs"
)
Variables ¶
This section is empty.
Functions ¶
func CleanOldOutputs ¶
func CleanOldOutputs(sessionsRoot string)
CleanOldOutputs sweeps every session, not just the live one, whose directory is too new to hold anything old enough to delete.
func ForkSkill ¶
func ForkSkill(ctx context.Context, inv *skill.Invocation, fork ForkExecutor) (agentcore.Result, error)
func NewEnterWorktree ¶
func NewExitWorktree ¶
func NewSkillTool ¶
func NewSkillTool(catalog func() *skill.Catalog, sessionID string, fork ForkExecutor, invoked func(*skill.Invocation)) agentcore.Tool
NewSkillTool calls invoked with every invocation before it runs. catalog returns the skills active in the conversation's workspace.
func NewTodoWrite ¶
NewTodoWrite stores nothing: the list lives in the history (see todo.FromHistory).
func NewWebFetch ¶
NewWebFetch takes provider "tavily" or "jina"; only jina works without an API key.
func NewWebSearch ¶
Types ¶
type ForkExecutor ¶
ForkExecutor has the subagent tool's Run signature, so it can be wired directly.
type OutputLimiter ¶
type OutputLimiter struct {
// contains filtered or unexported fields
}
OutputLimiter saves oversized tool output to disk and leaves a head/tail preview with the path. As middleware it covers every tool, MCP included.
func NewOutputLimiter ¶
func NewOutputLimiter(dir string) *OutputLimiter
func (*OutputLimiter) Middleware ¶
func (l *OutputLimiter) Middleware() agentcore.ToolMiddleware
Middleware must be installed innermost (last in the slice) so hooks and telemetry see the same shortened result as the model.