Documentation
¶
Index ¶
- func NewCommandTool() types.Tool
- func NewEmailTool(cfg *email.Config) types.Tool
- func NewFileTool() types.Tool
- func NewMCPClientTool() types.Tool
- func NewMathTool() types.Tool
- func NewPingTool() types.Tool
- func NewSSHTool() types.Tool
- func NewTimeTool() types.Tool
- type CommandTool
- type EmailTool
- type FileTool
- type MCPClientTool
- type MathTool
- type PingTool
- type SSHTool
- type TimeTool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCommandTool ¶
func NewFileTool ¶
func NewMCPClientTool ¶ added in v1.6.5
NewMCPClientTool creates a new MCP client tool
func NewMathTool ¶ added in v1.2.1
func NewPingTool ¶ added in v1.2.1
func NewSSHTool ¶
func NewTimeTool ¶ added in v1.4.0
Types ¶
type CommandTool ¶
type CommandTool struct{}
func (*CommandTool) Description ¶
func (t *CommandTool) Description() string
func (*CommandTool) Execute ¶
func (t *CommandTool) Execute(ctx context.Context, input map[string]interface{}) (interface{}, error)
func (*CommandTool) Metadata ¶
func (t *CommandTool) Metadata() types.ToolMetadata
func (*CommandTool) Name ¶
func (t *CommandTool) Name() string
func (*CommandTool) Schema ¶
func (t *CommandTool) Schema() map[string]interface{}
type EmailTool ¶
type EmailTool struct {
// contains filtered or unexported fields
}
func (*EmailTool) Description ¶
func (*EmailTool) Metadata ¶
func (t *EmailTool) Metadata() types.ToolMetadata
type FileTool ¶
type FileTool struct {
// contains filtered or unexported fields
}
func (*FileTool) Description ¶
func (*FileTool) Metadata ¶
func (t *FileTool) Metadata() types.ToolMetadata
type MCPClientTool ¶ added in v1.6.5
type MCPClientTool struct {
// contains filtered or unexported fields
}
MCPClientTool allows the agent to interact with an MCP server
func (*MCPClientTool) Description ¶ added in v1.6.5
func (t *MCPClientTool) Description() string
func (*MCPClientTool) Execute ¶ added in v1.6.5
func (t *MCPClientTool) Execute(ctx context.Context, input map[string]interface{}) (interface{}, error)
func (*MCPClientTool) Metadata ¶ added in v1.6.5
func (t *MCPClientTool) Metadata() types.ToolMetadata
func (*MCPClientTool) Name ¶ added in v1.6.5
func (t *MCPClientTool) Name() string
func (*MCPClientTool) Schema ¶ added in v1.6.5
func (t *MCPClientTool) Schema() map[string]interface{}
type MathTool ¶ added in v1.2.1
type MathTool struct {
// contains filtered or unexported fields
}
func (*MathTool) Description ¶ added in v1.2.1
func (*MathTool) Metadata ¶ added in v1.2.1
func (t *MathTool) Metadata() types.ToolMetadata
type PingTool ¶ added in v1.2.1
type PingTool struct{}
func (*PingTool) Description ¶ added in v1.2.1
func (*PingTool) Metadata ¶ added in v1.2.1
func (t *PingTool) Metadata() types.ToolMetadata
type SSHTool ¶
type SSHTool struct{}
func (*SSHTool) Description ¶
func (*SSHTool) Metadata ¶
func (t *SSHTool) Metadata() types.ToolMetadata
Click to show internal directories.
Click to hide internal directories.