agent

package
v0.3.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 9, 2026 License: MIT Imports: 2 Imported by: 0

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 NewContainer

func NewContainer() *Container

NewContainer 创建专家容器

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) GetID

func (e *ExpertAgent) GetID() string

GetID 获取Agent ID

func (*ExpertAgent) GetInstruction

func (e *ExpertAgent) GetInstruction() string

GetInstruction 获取Agent指令

func (*ExpertAgent) GetName

func (e *ExpertAgent) GetName() string

GetName 获取Agent名称

func (*ExpertAgent) GetRole

func (e *ExpertAgent) GetRole() string

GetRole 获取Agent角色

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL