Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var All = []AgentFactory{ &bigquery.Factory{}, &slack.Factory{}, }
All is the list of all available agent factories. To add a new agent, simply append its Factory to this list.
Functions ¶
func ConfigureAll ¶
func ConfigureAll(ctx context.Context, llmClient gollem.LLMClient, repo interfaces.Repository) ([]*gollem.SubAgent, error)
ConfigureAll initializes all configured agents and returns a slice of SubAgents. Agents that are not configured will return nil and be skipped.
Types ¶
type AgentFactory ¶
type AgentFactory interface {
// Flags returns CLI flags for this agent
Flags() []cli.Flag
// Configure creates and initializes the agent, returning a SubAgent.
// Returns nil if the agent is not configured.
Configure(ctx context.Context, llmClient gollem.LLMClient, repo interfaces.Repository) (*gollem.SubAgent, error)
}
AgentFactory is the interface that all agent packages must implement. This interface provides a unified way for the CLI layer to interact with agents.
Click to show internal directories.
Click to hide internal directories.