pub enum RoutingStrategy {
Sequential(Vec<String>),
Parallel(Vec<String>),
Supervisor {
llm: Arc<dyn LlmProvider>,
agents: Vec<String>,
max_turns: usize,
},
Graph(AgentGraph),
}Expand description
Routing strategy for multi-agent runs.
Variants§
Sequential(Vec<String>)
Run agents in the given order.
Parallel(Vec<String>)
Run agents concurrently and merge their outputs.
Supervisor
Use a routing LLM to decide which agent handles the task.
Fields
§
llm: Arc<dyn LlmProvider>Provider used for routing decisions.
Graph(AgentGraph)
Traverse a graph of agents.
Trait Implementations§
Source§impl Clone for RoutingStrategy
impl Clone for RoutingStrategy
Source§fn clone(&self) -> RoutingStrategy
fn clone(&self) -> RoutingStrategy
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for RoutingStrategy
impl !RefUnwindSafe for RoutingStrategy
impl Send for RoutingStrategy
impl Sync for RoutingStrategy
impl Unpin for RoutingStrategy
impl UnsafeUnpin for RoutingStrategy
impl !UnwindSafe for RoutingStrategy
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more