Versions in this module Expand all Collapse all v0 v0.0.1 Jan 8, 2025 Changes in this version + func Dir(ctx context.Context) string + func Function[A any](h FunctionHandler[A], f ToolFunction) error + func Init() + func Serve(ctx context.Context) error + type FunctionHandler func(ctx context.Context, arguments A) (any, error) + type Tool struct + Function *ToolFunction + Type string + type ToolFunction struct + Description string + Name string + Parameters map[string]any + type ToolRequest struct + CallID string + Context ToolRequestContext + Function ToolRequestFunction + type ToolRequestContext struct + Dir string + type ToolRequestFunction struct + Arguments string + Name string + type ToolResponse struct + CallID string + Content any