Documentation
¶
Overview ¶
Package agent provides a simple agent orchestration framework.
It allows defining agents with dependencies and executing them in parallel while respecting the dependency graph.
Example Usage:
pool := agent.NewAgentPool() pool.WithAgent(myAgent) results, err := pool.ExecuteAgents(initialInput)
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AgentInstance ¶
type AgentInstance interface {
Name() string
WaitForResults() []string
Execute(input map[string]string) (string, error)
}
AgentInstance interface for extensibility
type AgentPool ¶
type AgentPool struct {
// contains filtered or unexported fields
}
AgentPool to handle agent execution
func (*AgentPool) ExecuteAgents ¶
ExecuteAgents runs all agents, respecting dependencies
func (*AgentPool) WithAgent ¶
func (am *AgentPool) WithAgent(agent AgentInstance)
WithAgent adds an agent to the manager
Click to show internal directories.
Click to hide internal directories.