Documentation
¶
Index ¶
Constants ¶
View Source
const ( ToolNameSearchTool = "search_tool" ToolNameAddTool = "add_tool" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddToolArgs ¶
type AddToolArgs struct {
Name string `json:"name" jsonschema:"The name of the tool to activate"`
}
type SearchToolArgs ¶
type SearchToolArgs struct {
Query string `json:"query" jsonschema:"Search query to find tools by name or description (case-insensitive)"`
}
type SearchToolResult ¶
type ToolSet ¶ added in v1.60.0
type ToolSet struct {
// contains filtered or unexported fields
}
ToolSet exposes search_tool/add_tool over the deferred tools of its sources. Each source is snapshotted lazily, on the first search/add after it can be listed, rather than at start: the sources are the agent's other toolsets and may still be starting when the first turn runs, so a start-time snapshot would race them and fail the whole toolset.
func (*ToolSet) HasSources ¶ added in v1.60.0
func (*ToolSet) Instructions ¶ added in v1.60.0
Click to show internal directories.
Click to hide internal directories.