Documentation
¶
Index ¶
- type Agent
- func (a *Agent) AddDate() bool
- func (a *Agent) AddEnvironmentInfo() bool
- func (a *Agent) Description() string
- func (a *Agent) HasParents() bool
- func (a *Agent) HasSubAgents() bool
- func (a *Agent) Instruction() string
- func (a *Agent) Model() provider.Provider
- func (a *Agent) Name() string
- func (a *Agent) Parents() []*Agent
- func (a *Agent) StopToolSets() error
- func (a *Agent) SubAgents() []*Agent
- func (a *Agent) ToolDisplayName(ctx context.Context, toolName string) string
- func (a *Agent) ToolSets() []tools.ToolSet
- func (a *Agent) Tools(ctx context.Context) ([]tools.Tool, error)
- type Opt
- func WithAddDate(addDate bool) Opt
- func WithAddEnvironmentInfo(addEnvironmentInfo bool) Opt
- func WithDescription(description string) Opt
- func WithInstruction(prompt string) Opt
- func WithMemoryManager(mm memorymanager.Manager) Opt
- func WithModel(model provider.Provider) Opt
- func WithName(name string) Opt
- func WithSubAgents(subAgents ...*Agent) Opt
- func WithToolSets(toolSet ...tools.ToolSet) Opt
- func WithTools(tls ...tools.Tool) Opt
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Agent ¶
type Agent struct {
// contains filtered or unexported fields
}
Agent represents an AI agent
func (*Agent) AddEnvironmentInfo ¶ added in v1.0.1
func (*Agent) Description ¶
Description returns the agent's description
func (*Agent) HasParents ¶
func (*Agent) HasSubAgents ¶
HasSubAgents checks if the agent has sub-agents
func (*Agent) Instruction ¶
Instruction returns the agent's instructions
func (*Agent) StopToolSets ¶
func (*Agent) ToolDisplayName ¶ added in v0.7.0
type Opt ¶
type Opt func(a *Agent)
func WithAddDate ¶
func WithAddEnvironmentInfo ¶ added in v1.0.1
func WithDescription ¶
func WithInstruction ¶
func WithMemoryManager ¶
func WithMemoryManager(mm memorymanager.Manager) Opt
func WithSubAgents ¶
func WithToolSets ¶
Click to show internal directories.
Click to hide internal directories.