Raxol.Agent.Team (Raxol v2.3.0)

View Source

Supervisor for agent teams.

A team is a group of agents under a single supervisor. The coordinator agent is started first; if it crashes, workers restart per the chosen strategy (default :rest_for_one).

Teams are started as dynamic children of Raxol.DynamicSupervisor.

Summary

Functions

Returns a specification to start this module under a supervisor.

Start a team supervisor.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

start_link(opts)

Start a team supervisor.

Options

  • :team_id - Required identifier for the team.
  • :coordinator - {module, opts} for the coordinator agent.
  • :workers - List of {module, opts} for worker agents.
  • :strategy - Supervisor strategy (default :rest_for_one).