Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Container ¶
type Container struct {
// contains filtered or unexported fields
}
Container 专家容器
func (*Container) GetAgent ¶
func (c *Container) GetAgent(id string) *ExpertAgent
GetAgent 获取指定Agent
func (*Container) GetAgentsByIDs ¶
func (c *Container) GetAgentsByIDs(ids []string) []*ExpertAgent
GetAgentsByIDs 根据ID列表获取Agent
func (*Container) GetAllAgents ¶
func (c *Container) GetAllAgents() []*ExpertAgent
GetAllAgents 获取所有Agent
func (*Container) LoadAgents ¶
func (c *Container) LoadAgents(configs []models.AgentConfig)
LoadAgents 加载Agent配置到容器
type ExpertAgent ¶
type ExpertAgent struct {
Config *models.AgentConfig
Enabled bool
}
ExpertAgent 专家Agent封装
func NewExpertAgent ¶
func NewExpertAgent(config *models.AgentConfig) *ExpertAgent
NewExpertAgent 创建专家Agent
func (*ExpertAgent) GetInstruction ¶
func (e *ExpertAgent) GetInstruction() string
GetInstruction 获取Agent指令
Click to show internal directories.
Click to hide internal directories.