Agent Team Builder • Rust AI Agent SDK
AgentTeamBuilder: Builder for AgentTeam
AgentTeamBuilder
Defined in the workflows module.
Rust AI Agent SDK
Builder for AgentTeam
%%{init: {'theme': 'base', 'themeVariables': { 'primaryColor': '#8B0000', 'primaryTextColor': '#fff', 'primaryBorderColor': '#710101', 'lineColor': '#189AB4', 'secondaryColor': '#189AB4', 'tertiaryColor': '#fff' }}}%%
graph LR
input["Input Data"] --> agent["Agent: AgentTeamBuilder"]
agent --> output["Output Result"]
style agent fill:#8B0000,color:#fff
style input fill:#8B0000,color:#fff
style output fill:#8B0000,color:#fffFields
| Name | Type | Description |
|---|---|---|
agents | Vec<Arc<Agent>> | – |
process | Process | – |
verbose | bool | – |
Methods
new
fn new() -> SelfCreate a new builder
agent
fn agent(mut self, agent: Agent) -> SelfAdd an agent
Parameters:
| Name | Type |
|---|---|
agent | Agent |
agent_arc
fn agent_arc(mut self, agent: Arc<Agent>) -> SelfAdd an agent (Arc version)
Parameters:
| Name | Type |
|---|---|
agent | Arc<Agent> |
process
fn process(mut self, process: Process) -> SelfSet the process type
Parameters:
| Name | Type |
|---|---|
process | Process |
verbose
fn verbose(mut self, enabled: bool) -> SelfEnable verbose output
Parameters:
| Name | Type |
|---|---|
enabled | bool |
build
fn build(self) -> AgentTeamBuild the team
Source
View on GitHubpraisonai/src/workflows/mod.rs at line 254