Agent Team • Rust AI Agent SDK
AgentTeam: Agent team for multi-agent workflows Coordinates multiple agents to work together on tasks.
AgentTeam
Defined in the workflows module.
Rust AI Agent SDK
Agent team for multi-agent workflows Coordinates multiple agents to work together on tasks.
Fields
| Name | Type | Description |
|---|---|---|
agents | Vec<Arc<Agent>> | – |
process | Process | – |
verbose | bool | – |
Methods
is_verbose
fn is_verbose(&self) -> boolCheck if verbose mode is enabled
new
fn new() -> AgentTeamBuilderCreate a new agent team builder
start
async fn start(&self, task: &str) -> Result<String>Run the team with a task
Parameters:
| Name | Type |
|---|---|
task | &str |
run
async fn run(&self, task: &str) -> Result<String>Alias for start
Parameters:
| Name | Type |
|---|---|
task | &str |
len
fn len(&self) -> usizeGet the number of agents
is_empty
fn is_empty(&self) -> boolCheck if empty
Usage
let team = AgentTeam::new()
.agent(researcher)
.agent(writer)
.process(Process::Sequential)
.build();
let result = team.start("Research and write about AI").await?;Source
View on GitHubpraisonai/src/workflows/mod.rs at line 116