Documentation
¶
Index ¶
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) 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 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.