Documentation
¶
Index ¶
- Variables
- type Bash
- func (b *Bash) ApprovalScope(args map[string]any) string
- func (b *Bash) Description() string
- func (b *Bash) Execute(ctx context.Context, toolCtx agent.ToolContext, args map[string]any) (agent.ToolResult, error)
- func (b *Bash) Name() string
- func (b *Bash) RequiresApproval(map[string]any) bool
- func (b *Bash) Schema() api.ToolFunction
- type Edit
- type Read
- type Skill
- type WebFetch
- type WebSearch
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrWebAuthRequired = errors.New("Not authenticated. Run `ollama signin` and try again.")
Functions ¶
This section is empty.
Types ¶
type Bash ¶
type Bash struct{}
func (*Bash) ApprovalScope ¶ added in v0.32.2
ApprovalScope scopes shell approval to the exact, trimmed command string using a NUL separator: "<tool>\x00<command>". "Always allow this command" matches ONLY that precise string — any whitespace, quoting, or casing variant re-prompts. The NUL separator is safe because a shell command string cannot contain a literal NUL.
func (*Bash) Description ¶
func (*Bash) Execute ¶
func (b *Bash) Execute(ctx context.Context, toolCtx agent.ToolContext, args map[string]any) (agent.ToolResult, error)
func (*Bash) Schema ¶
func (b *Bash) Schema() api.ToolFunction
type Edit ¶
type Edit struct{}
func (*Edit) Description ¶
func (*Edit) Execute ¶
func (e *Edit) Execute(ctx context.Context, toolCtx agent.ToolContext, args map[string]any) (agent.ToolResult, error)
func (*Edit) Schema ¶
func (e *Edit) Schema() api.ToolFunction
type Read ¶
type Read struct{}
func (*Read) Description ¶
func (*Read) Execute ¶
func (r *Read) Execute(ctx context.Context, toolCtx agent.ToolContext, args map[string]any) (agent.ToolResult, error)
func (*Read) Schema ¶
func (r *Read) Schema() api.ToolFunction
type Skill ¶ added in v0.32.2
type Skill struct{ Catalog *agent.SkillCatalog }
Skill is the model-facing adapter for the core agent skill catalog. It only supplies instructions; regular tools retain their own approval requirements for filesystem or network access.
func (*Skill) Description ¶ added in v0.32.2
func (*Skill) Execute ¶ added in v0.32.2
func (t *Skill) Execute(_ context.Context, _ agent.ToolContext, args map[string]any) (agent.ToolResult, error)
func (*Skill) Schema ¶ added in v0.32.2
func (t *Skill) Schema() api.ToolFunction
type WebFetch ¶
type WebFetch struct{}
func (*WebFetch) Description ¶
func (*WebFetch) Execute ¶
func (w *WebFetch) Execute(ctx context.Context, _ agent.ToolContext, args map[string]any) (agent.ToolResult, error)
func (*WebFetch) Schema ¶
func (w *WebFetch) Schema() api.ToolFunction
Click to show internal directories.
Click to hide internal directories.