Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClearAgents ¶
func ClearAgents()
func RegisterFactory ¶
Types ¶
type Agent ¶
type Agent interface {
GetID() string
GetName() string
GetType() string
GetModel() string
Initialize(config AgentConfig) error
SendMessage(ctx context.Context, messages []Message) (string, error)
StreamMessage(ctx context.Context, messages []Message, writer io.Writer) error
Announce() string
IsAvailable() bool
HealthCheck(ctx context.Context) error
}
func CreateAgent ¶
func CreateAgent(config AgentConfig) (Agent, error)
func ListAgents ¶
func ListAgents() []Agent
type AgentConfig ¶
type AgentConfig struct {
ID string `yaml:"id"`
Type string `yaml:"type"`
Name string `yaml:"name"`
Prompt string `yaml:"prompt"`
Announcement string `yaml:"announcement"`
Model string `yaml:"model"`
Temperature float64 `yaml:"temperature"`
MaxTokens int `yaml:"max_tokens"`
CustomSettings map[string]interface{} `yaml:"custom_settings"`
}
type BaseAgent ¶
type BaseAgent struct {
ID string
Name string
Type string
Config AgentConfig
Announcement string
}
func (*BaseAgent) Initialize ¶
func (b *BaseAgent) Initialize(config AgentConfig) error
Click to show internal directories.
Click to hide internal directories.