Documentation
¶
Index ¶
- type LangChainToolAdapter
- type Manager
- func (m *Manager) Clear()
- func (m *Manager) Get(name string) (types.Tool, error)
- func (m *Manager) GetAll() []types.Tool
- func (m *Manager) GetAllToolInfo() []ToolInfo
- func (m *Manager) GetByType(toolType string) []types.Tool
- func (m *Manager) GetToolInfo(name string) (*ToolInfo, error)
- func (m *Manager) Register(tool types.Tool) error
- func (m *Manager) RegisterMultiple(tools []types.Tool) error
- func (m *Manager) Remove(name string) error
- func (m *Manager) Size() int
- type Registry
- func (r *Registry) Clear()
- func (r *Registry) Get(name string) (types.Tool, error)
- func (r *Registry) GetAll() []types.Tool
- func (r *Registry) GetAllVisible() []types.Tool
- func (r *Registry) GetByType(toolType string) []types.Tool
- func (r *Registry) GetDeferred() []types.Tool
- func (r *Registry) GetDeferredTool(name string) (types.Tool, error)
- func (r *Registry) Has(name string) bool
- func (r *Registry) Register(tool types.Tool) error
- func (r *Registry) RegisterMultiple(tools []types.Tool) error
- func (r *Registry) Remove(name string) error
- func (r *Registry) Size() int
- type ToolInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LangChainToolAdapter ¶
type LangChainToolAdapter struct {
// contains filtered or unexported fields
}
LangChainToolAdapter LangChain tool adapter
func NewLangChainToolAdapter ¶
func NewLangChainToolAdapter(baseTool types.Tool) *LangChainToolAdapter
NewLangChainToolAdapter creates a new LangChain tool adapter
func (*LangChainToolAdapter) Description ¶
func (a *LangChainToolAdapter) Description() string
Description returns the tool description
func (*LangChainToolAdapter) Name ¶
func (a *LangChainToolAdapter) Name() string
Name returns the tool name
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager tool manager
func (*Manager) GetAllToolInfo ¶
GetAllToolInfo gets all tool information
func (*Manager) GetToolInfo ¶
GetToolInfo gets tool information
func (*Manager) RegisterMultiple ¶
RegisterMultiple registers multiple tools
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
Registry tool registry
func (*Registry) GetAllVisible ¶ added in v1.10.0
GetAllVisible returns only tools whose exposure is Direct (the default). It is the E1 filter used when assembling the model's initial tool list. GetAll() keeps its original semantics (all tools) for subagent dispatch/debug.
func (*Registry) GetDeferred ¶ added in v1.10.0
GetDeferred returns all tools whose exposure is Deferred. It feeds the tool_search index (E2).
func (*Registry) GetDeferredTool ¶ added in v1.10.0
GetDeferredTool returns a single deferred tool by name. It is used by the tool_search index build and by tests; the runtime discover path uses the per-session pre-wrapped cache instead (see dino/factory.go sessionDeferredTools).
func (*Registry) RegisterMultiple ¶
RegisterMultiple registers multiple tools