Help us shape the future of Go! Take the 2026 Go Developer Survey

agents

package
v0.17.2 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 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) ([]interfaces.ToolSet, error)

ConfigureAll initializes all configured agents and returns a slice of ToolSets. Agents that are not configured will return nil and be skipped.

Types

type ToolSetFactory added in v0.14.0

type ToolSetFactory interface {
	// Flags returns CLI flags for this agent
	Flags() []cli.Flag

	// Configure creates and initializes the agent, returning a ToolSet.
	// Returns (nil, nil) if the agent is not configured.
	Configure(ctx context.Context) (interfaces.ToolSet, error)
}

ToolSetFactory 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