Documentation
¶
Index ¶
- func GetAllTools() []responses.ToolUnionParam
- func GetToolsForChat() []openai.ChatCompletionToolUnionParam
- func GetToolsForPlan() []openai.ChatCompletionToolUnionParam
- func ParseArgs(raw string) (map[string]any, error)
- func Register(name string, def ToolDef, fn ToolFunc)
- func ValidatePath(ctx ToolContext, path string) (string, error)
- type QuestionItem
- type ToolContext
- type ToolDef
- type ToolFunc
- type ToolResponse
- func Bash(ctx ToolContext, args map[string]any) (ToolResponse, error)
- func CreateTodo(ctx ToolContext, args map[string]any) (ToolResponse, error)
- func Edit(ctx ToolContext, args map[string]any) (ToolResponse, error)
- func Execute(name string, ctx ToolContext, args map[string]any) (ToolResponse, error)
- func Glob(ctx ToolContext, args map[string]any) (ToolResponse, error)
- func Grep(ctx ToolContext, args map[string]any) (ToolResponse, error)
- func ListDir(ctx ToolContext, args map[string]any) (ToolResponse, error)
- func Question(ctx ToolContext, args map[string]any) (ToolResponse, error)
- func ReadFile(ctx ToolContext, args map[string]any) (ToolResponse, error)
- func Skill(ctx ToolContext, args map[string]any) (ToolResponse, error)
- func UpdateTodo(ctx ToolContext, args map[string]any) (ToolResponse, error)
- func WebFetch(ctx ToolContext, args map[string]any) (ToolResponse, error)
- func WriteFile(ctx ToolContext, args map[string]any) (ToolResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAllTools ¶
func GetAllTools() []responses.ToolUnionParam
func GetToolsForChat ¶
func GetToolsForChat() []openai.ChatCompletionToolUnionParam
func GetToolsForPlan ¶
func GetToolsForPlan() []openai.ChatCompletionToolUnionParam
func ValidatePath ¶
func ValidatePath(ctx ToolContext, path string) (string, error)
Types ¶
type QuestionItem ¶
type ToolContext ¶
type ToolFunc ¶
type ToolFunc func(ctx ToolContext, args map[string]any) (ToolResponse, error)
type ToolResponse ¶
func Bash ¶
func Bash(ctx ToolContext, args map[string]any) (ToolResponse, error)
func CreateTodo ¶
func CreateTodo(ctx ToolContext, args map[string]any) (ToolResponse, error)
func Edit ¶
func Edit(ctx ToolContext, args map[string]any) (ToolResponse, error)
func Execute ¶
func Execute(name string, ctx ToolContext, args map[string]any) (ToolResponse, error)
func Glob ¶
func Glob(ctx ToolContext, args map[string]any) (ToolResponse, error)
func Grep ¶
func Grep(ctx ToolContext, args map[string]any) (ToolResponse, error)
func ListDir ¶
func ListDir(ctx ToolContext, args map[string]any) (ToolResponse, error)
func Question ¶
func Question(ctx ToolContext, args map[string]any) (ToolResponse, error)
func ReadFile ¶
func ReadFile(ctx ToolContext, args map[string]any) (ToolResponse, error)
func Skill ¶
func Skill(ctx ToolContext, args map[string]any) (ToolResponse, error)
func UpdateTodo ¶
func UpdateTodo(ctx ToolContext, args map[string]any) (ToolResponse, error)
func WebFetch ¶
func WebFetch(ctx ToolContext, args map[string]any) (ToolResponse, error)
func WriteFile ¶
func WriteFile(ctx ToolContext, args map[string]any) (ToolResponse, error)
Click to show internal directories.
Click to hide internal directories.