supervisor

package
v0.7.21 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2026 License: Apache-2.0 Imports: 2 Imported by: 3

Documentation

Overview

Package supervisor implements the supervisor pattern for multi-agent systems, where a central agent coordinates a set of sub-agents.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(ctx context.Context, conf *Config) (adk.ResumableAgent, error)

New creates a supervisor-based multi-agent system with the given configuration.

In the supervisor pattern, a designated supervisor agent coordinates multiple sub-agents. The supervisor can delegate tasks to sub-agents and receive their responses, while sub-agents can only communicate with the supervisor (not with each other directly). This hierarchical structure enables complex problem-solving through coordinated agent interactions.

Types

type Config

type Config struct {
	// Supervisor specifies the agent that will act as the supervisor, coordinating and managing the sub-agents.
	Supervisor adk.Agent

	// SubAgents specifies the list of agents that will be supervised and coordinated by the supervisor agent.
	SubAgents []adk.Agent
}

Jump to

Keyboard shortcuts

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