Skip to main content

Module agent_teams

Module agent_teams 

Source
Expand description

Agent Teams — Peer-to-peer multi-agent coordination

Enables multiple AgentSession instances to collaborate on complex tasks through a shared task board and message passing. Each agent has a role (Lead, Worker, Reviewer) and can post/claim tasks on the board.

§Architecture

AgentTeam
  +-- TeamTaskBoard (shared task queue)
  +-- TeamMember[] (role + session reference)
  +-- mpsc channels (peer-to-peer messaging)

§Usage

use a3s_code_core::agent_teams::{AgentTeam, TeamConfig, TeamRole};

let config = TeamConfig::default();
let mut team = AgentTeam::new("refactor-auth", config);

// Add members (each wraps an AgentSession)
team.add_member("lead", TeamRole::Lead);
team.add_member("worker-1", TeamRole::Worker);
team.add_member("reviewer", TeamRole::Reviewer);

// Post a task to the board
team.task_board().post("Refactor auth module", "lead", None);

// Worker claims and works on it
let task = team.task_board().claim("worker-1");

Structs§

AgentTeam
Multi-agent team coordinator.
TeamConfig
Team configuration.
TeamMember
A team member.
TeamMessage
A message passed between team members.
TeamTask
A task on the team board.
TeamTaskBoard
Shared task board for team coordination.

Enums§

TaskStatus
Task status on the board.
TeamRole
Role of a team member.