Documentation
¶
Index ¶
- func DefaultAgents() map[string]*Info
- type AgentConfig
- type Config
- type Factory
- type FileAttachment
- type Info
- type Manager
- type Mode
- type ModelInfo
- type Request
- type Result
- type Subagent
- type SubagentConfig
- type SubagentEvent
- type SubagentEventEmitter
- type SubagentHandler
- type SubagentManager
- type SubagentManagerFactory
- type SubagentTool
- type SubagentTrigger
- type TriggerResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultAgents ¶
Types ¶
type AgentConfig ¶
type AgentConfig struct {
Name string `json:"name,omitempty"`
Description string `json:"description,omitempty"`
Mode Mode `json:"mode,omitempty"`
Native bool `json:"native,omitempty"`
Hidden bool `json:"hidden,omitempty"`
TopP *float64 `json:"top_p,omitempty"`
Temperature *float64 `json:"temperature,omitempty"`
Color string `json:"color,omitempty"`
Model string `json:"model,omitempty"`
Variant string `json:"variant,omitempty"`
Prompt string `json:"prompt,omitempty"`
Options map[string]interface{} `json:"options,omitempty"`
Steps *int `json:"steps,omitempty"`
Permission map[string]interface{} `json:"permission,omitempty"`
Disable bool `json:"disable,omitempty"`
}
type Config ¶
type Config struct {
Agents map[string]*AgentConfig `json:"agents,omitempty"`
}
type FileAttachment ¶
type Info ¶
type Info struct {
Name string `json:"name"`
Description string `json:"description,omitempty"`
Mode Mode `json:"mode"`
Native bool `json:"native,omitempty"`
Hidden bool `json:"hidden,omitempty"`
TopP *float64 `json:"top_p,omitempty"`
Temperature *float64 `json:"temperature,omitempty"`
Color string `json:"color,omitempty"`
Permission permission.Ruleset `json:"permission"`
Model *ModelInfo `json:"model,omitempty"`
Variant string `json:"variant,omitempty"`
Prompt string `json:"prompt,omitempty"`
Options map[string]interface{} `json:"options,omitempty"`
Steps *int `json:"steps,omitempty"`
}
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func (*Manager) CloseAgent ¶
type Request ¶
type Request struct {
AgentName string
Prompt string
Input string
Files []FileAttachment
}
type Subagent ¶
func NewSubagent ¶
type SubagentConfig ¶
type SubagentConfig struct {
Enabled bool `yaml:"enabled"`
TriggerOnKeyword bool `yaml:"trigger_on_keyword"`
Triggers []SubagentTrigger `yaml:"triggers"`
}
type SubagentEvent ¶
type SubagentEventEmitter ¶
type SubagentEventEmitter interface {
Emit(event *SubagentEvent)
}
type SubagentHandler ¶
type SubagentHandler struct {
// contains filtered or unexported fields
}
func NewSubagentHandler ¶
func NewSubagentHandler(manager *SubagentManager, emitter SubagentEventEmitter) *SubagentHandler
func (*SubagentHandler) ManualDelegate ¶
func (*SubagentHandler) ProcessInput ¶
type SubagentManager ¶
type SubagentManager struct {
// contains filtered or unexported fields
}
func NewSubagentManager ¶
func NewSubagentManager(config *SubagentConfig, factory SubagentManagerFactory) *SubagentManager
func (*SubagentManager) Close ¶
func (sm *SubagentManager) Close()
func (*SubagentManager) ShouldDelegate ¶
func (sm *SubagentManager) ShouldDelegate(input string) *TriggerResult
type SubagentManagerFactory ¶
type SubagentTool ¶
type SubagentTool struct {
// contains filtered or unexported fields
}
func NewSubagentTool ¶
func NewSubagentTool(manager *SubagentManager) *SubagentTool
func (*SubagentTool) Description ¶
func (t *SubagentTool) Description() string
func (*SubagentTool) Execute ¶
func (t *SubagentTool) Execute(ctx context.Context, input map[string]interface{}) (interface{}, error)
func (*SubagentTool) Metadata ¶
func (t *SubagentTool) Metadata() types.ToolMetadata
func (*SubagentTool) Name ¶
func (t *SubagentTool) Name() string
func (*SubagentTool) Schema ¶
func (t *SubagentTool) Schema() map[string]interface{}
type SubagentTrigger ¶
type TriggerResult ¶
Click to show internal directories.
Click to hide internal directories.