agents

package
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

All is the list of all available agent factories. To add a new agent, simply append its Factory to this list.

Functions

func AllFlags

func AllFlags() []cli.Flag

AllFlags returns CLI flags for all registered agents.

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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