Documentation
¶
Overview ¶
internal/tools/tools.go
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Definitions ¶
func Definitions(ts []Tool) []anthropic.ToolUnionParam
Definitions extracts the Anthropic tool definitions from a slice of Tools.
Types ¶
type Handler ¶
Handler is the port for executing a tool call. The input is raw JSON from the Anthropic tool_use block.
type HandlerFunc ¶
HandlerFunc is a function adapter for Handler.
func (HandlerFunc) Handle ¶
func (f HandlerFunc) Handle(ctx context.Context, input json.RawMessage) (string, error)
type Tool ¶
type Tool struct {
Definition anthropic.ToolUnionParam
Handler Handler
}
Tool pairs an Anthropic tool definition with its handler.
Click to show internal directories.
Click to hide internal directories.