Documentation Index Fetch the complete documentation index at: https://docs.praison.ai/llms.txt
Use this file to discover all available pages before exploring further.
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 agentsVec<Arc<Agent>>- processProcess- verbosebool-
Methods
is_verbose
fn is_verbose ( & self ) -> bool
Check if verbose mode is enabled
new
fn new () -> AgentTeamBuilder
Create a new agent team builder
start
async fn start ( & self , task : & str ) -> Result < String >
Run the team with a task
Parameters:
run
async fn run ( & self , task : & str ) -> Result < String >
Alias for start
Parameters:
len
Get the number of agents
is_empty
fn is_empty ( & self ) -> bool
Check 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 GitHub praisonai/src/workflows/mod.rs at line 116