Skip to main content

parallel_agents

Function parallel_agents 

Source
pub fn parallel_agents(agents: Vec<(&str, Arc<ReActAgent>)>) -> ParallelAgent
Expand description

创建简单的并行 Agent

§示例

let parallel = parallel_agents(vec![
    ("analyst1", analyst1_agent),
    ("analyst2", analyst2_agent),
]);