Module tools

Source

Structs§

CalledFunction
Called function with name and arguments
Function
Function definition for a tool
Tool
Tool definition
ToolCallbackWithTool
A tool callback with its associated Tool definition.

Enums§

ToolType
Type of tool

Type Aliases§

ToolCallback
Callback used for custom tool functions. Receives the called function (name and JSON arguments) and returns the tool output as a string.
ToolCallbacks
Collection of callbacks keyed by tool name.
ToolCallbacksWithTools
Collection of callbacks with their tool definitions keyed by tool name.