Documentation
¶
Index ¶
- Constants
- type AddToolArgs
- type SearchToolArgs
- type SearchToolResult
- type ToolSet
- func (d *ToolSet) AddSource(toolset tools.ToolSet, deferAll bool, toolNames []string)
- func (d *ToolSet) HasSources() bool
- func (d *ToolSet) Instructions() string
- func (d *ToolSet) Name() string
- func (d *ToolSet) Start(ctx context.Context) error
- func (d *ToolSet) StartsAfterPeers()
- func (d *ToolSet) Stop(context.Context) error
- func (d *ToolSet) Tools(context.Context) ([]tools.Tool, error)
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
}
func (*ToolSet) HasSources ¶ added in v1.60.0
func (*ToolSet) Instructions ¶ added in v1.60.0
func (*ToolSet) Name ¶ added in v1.98.0
Name implements tools.Named; loader-created, so no registry WithName wrapper.
func (*ToolSet) StartsAfterPeers ¶ added in v1.111.0
func (d *ToolSet) StartsAfterPeers()
StartsAfterPeers implements tools.PeerDependent: Start lists the source toolsets' tools, so they must be started first.
Click to show internal directories.
Click to hide internal directories.