Documentation
¶
Index ¶
- Constants
- func NewTool(cfg Config) (core.Tool, error)
- type Config
- type Tool
- func (t *Tool) CanHandle(_ context.Context, intent string) bool
- func (t *Tool) CloneTool() core.Tool
- func (t *Tool) Description() string
- func (t *Tool) Execute(ctx context.Context, params map[string]any) (core.ToolResult, error)
- func (t *Tool) InputSchema() models.InputSchema
- func (t *Tool) Metadata() *core.ToolMetadata
- func (t *Tool) Name() string
- func (t *Tool) Root() string
- func (t *Tool) Validate(params map[string]any) error
Constants ¶
View Source
const ( DefaultShellPath = "/bin/bash" DefaultTimeout = 30 * time.Second DefaultModelOutputLimit = 1600 DefaultDisplayOutputLimit = 6000 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Tool ¶
type Tool struct {
// contains filtered or unexported fields
}
func (*Tool) Description ¶
func (*Tool) InputSchema ¶
func (t *Tool) InputSchema() models.InputSchema
func (*Tool) Metadata ¶
func (t *Tool) Metadata() *core.ToolMetadata
Click to show internal directories.
Click to hide internal directories.