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) GetByType(toolType string) []types.Tool
- 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
Click to show internal directories.
Click to hide internal directories.