Documentation
¶
Index ¶
- type AddImageTool
- type BaseTool
- type CacheInput
- type CacheTool
- type Calculator
- type CalculatorInput
- type CodeInput
- type CodeInterpreterTool
- type DelegationInput
- type DelegationTool
- type FileOperation
- type FileTool
- type HTTPRequest
- type HTTPTool
- type HumanInputTool
- type ImageInput
- type InputRequest
- type RateLimiter
- type ScrapingRequest
- type ScrapingResult
- type ScrapingTool
- type SearchRequest
- type SearchResult
- type SearchTool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddImageTool ¶
type AddImageTool struct {
// contains filtered or unexported fields
}
AddImageTool allows agents to add images to their context
func NewAddImageTool ¶
func NewAddImageTool(workDir string) *AddImageTool
NewAddImageTool creates a new add image tool instance
func (*AddImageTool) Description ¶
func (t *AddImageTool) Description() string
func (*AddImageTool) Name ¶
func (t *AddImageTool) Name() string
func (*AddImageTool) Parameters ¶
func (t *AddImageTool) Parameters() map[string]core.ParameterDefinition
type BaseTool ¶
type BaseTool struct {
// contains filtered or unexported fields
}
BaseTool provides a base implementation of the Tool interface
func NewBaseTool ¶
NewBaseTool creates a new BaseTool instance
func (*BaseTool) Description ¶
Description returns a description of what the tool does
func (*BaseTool) Parameters ¶
func (t *BaseTool) Parameters() map[string]core.ParameterDefinition
Parameters returns the parameters that the tool accepts
type CacheInput ¶
type CacheTool ¶
type CacheTool struct {
// contains filtered or unexported fields
}
CacheTool provides direct access to the cache
func NewCacheTool ¶
func NewCacheTool(cacheHandler *cache.CacheHandler) *CacheTool
NewCacheTool creates a new cache tool instance
func (*CacheTool) Description ¶
func (*CacheTool) Parameters ¶
func (t *CacheTool) Parameters() map[string]core.ParameterDefinition
type Calculator ¶
type Calculator struct{}
Calculator is a tool that performs basic arithmetic operations
func (*Calculator) Description ¶
func (t *Calculator) Description() string
func (*Calculator) Name ¶
func (t *Calculator) Name() string
func (*Calculator) Parameters ¶
func (t *Calculator) Parameters() map[string]core.ParameterDefinition
type CalculatorInput ¶
type CodeInterpreterTool ¶
type CodeInterpreterTool struct {
// contains filtered or unexported fields
}
CodeInterpreterTool allows agents to execute code
func NewCodeInterpreterTool ¶
func NewCodeInterpreterTool(unsafeMode bool, workDir string) *CodeInterpreterTool
NewCodeInterpreterTool creates a new code interpreter tool instance
func (*CodeInterpreterTool) Description ¶
func (t *CodeInterpreterTool) Description() string
func (*CodeInterpreterTool) Execute ¶
func (t *CodeInterpreterTool) Execute(input string) (string, error)
func (*CodeInterpreterTool) Name ¶
func (t *CodeInterpreterTool) Name() string
func (*CodeInterpreterTool) Parameters ¶
func (t *CodeInterpreterTool) Parameters() map[string]core.ParameterDefinition
type DelegationInput ¶
type DelegationTool ¶
type DelegationTool struct {
// contains filtered or unexported fields
}
DelegationTool allows agents to delegate tasks to other agents
func NewDelegationTool ¶
func NewDelegationTool(team *team.Team, delegator *agents.Agent) *DelegationTool
NewDelegationTool creates a new delegation tool instance
func (*DelegationTool) Description ¶
func (t *DelegationTool) Description() string
func (*DelegationTool) Name ¶
func (t *DelegationTool) Name() string
func (*DelegationTool) Parameters ¶
func (t *DelegationTool) Parameters() map[string]core.ParameterDefinition
type FileOperation ¶
type FileTool ¶
type FileTool struct {
// contains filtered or unexported fields
}
FileTool provides file system operation capabilities
func NewFileTool ¶
NewFileTool creates a new file operations tool instance
func (*FileTool) Description ¶
func (*FileTool) Parameters ¶
func (t *FileTool) Parameters() map[string]core.ParameterDefinition
type HTTPRequest ¶
type HTTPTool ¶
type HTTPTool struct {
// contains filtered or unexported fields
}
HTTPTool provides HTTP request capabilities
func (*HTTPTool) Description ¶
func (*HTTPTool) Parameters ¶
func (t *HTTPTool) Parameters() map[string]core.ParameterDefinition
type HumanInputTool ¶
type HumanInputTool struct {
// contains filtered or unexported fields
}
HumanInputTool provides interactive input capabilities
func NewHumanInputTool ¶
func NewHumanInputTool(defaultTimeout time.Duration) *HumanInputTool
NewHumanInputTool creates a new human input tool instance
func (*HumanInputTool) Description ¶
func (t *HumanInputTool) Description() string
func (*HumanInputTool) Name ¶
func (t *HumanInputTool) Name() string
func (*HumanInputTool) Parameters ¶
func (t *HumanInputTool) Parameters() map[string]core.ParameterDefinition
type ImageInput ¶
type InputRequest ¶
type InputRequest struct {
Prompt string `json:"prompt"`
Validation string `json:"validation,omitempty"`
Options []string `json:"options,omitempty"`
Default string `json:"default,omitempty"`
Timeout time.Duration `json:"timeout,omitempty"`
Required bool `json:"required,omitempty"`
Description string `json:"description,omitempty"`
}
type RateLimiter ¶
type RateLimiter struct {
// contains filtered or unexported fields
}
RateLimiter implements a simple rate limiting mechanism
func NewRateLimiter ¶
func NewRateLimiter(interval time.Duration) *RateLimiter
NewRateLimiter creates a new rate limiter with specified interval
func (*RateLimiter) Wait ¶
func (r *RateLimiter) Wait()
Wait blocks until rate limit allows next call
type ScrapingRequest ¶
type ScrapingResult ¶
type ScrapingTool ¶
type ScrapingTool struct {
// contains filtered or unexported fields
}
ScrapingTool provides web scraping capabilities
func NewScrapingTool ¶
func NewScrapingTool(userAgent string) *ScrapingTool
NewScrapingTool creates a new web scraping tool instance
func (*ScrapingTool) Description ¶
func (t *ScrapingTool) Description() string
func (*ScrapingTool) Name ¶
func (t *ScrapingTool) Name() string
func (*ScrapingTool) Parameters ¶
func (t *ScrapingTool) Parameters() map[string]core.ParameterDefinition
type SearchRequest ¶
type SearchResult ¶
type SearchTool ¶
type SearchTool struct {
// contains filtered or unexported fields
}
SearchTool provides web search capabilities
func NewSearchTool ¶
func NewSearchTool(apiKey, cx string) *SearchTool
NewSearchTool creates a new search tool instance
func (*SearchTool) Description ¶
func (t *SearchTool) Description() string
func (*SearchTool) Name ¶
func (t *SearchTool) Name() string
func (*SearchTool) Parameters ¶
func (t *SearchTool) Parameters() map[string]core.ParameterDefinition