pub struct KeywordRoutingStrategy;Expand description
Default routing strategy using keyword-based heuristics and capability matching.
This wraps the existing TaskComplexityAnalyzer three-tier cascade:
- Tier 1: fast heuristic scoring
- Tier 2: agent capability matching
- Tier 3: runtime escalation (handled separately)
Trait Implementations§
Source§impl RoutingStrategy for KeywordRoutingStrategy
impl RoutingStrategy for KeywordRoutingStrategy
Source§fn route(
&self,
task: &str,
agents: &[AgentCapability],
) -> (RoutingDecision, ComplexitySignals)
fn route( &self, task: &str, agents: &[AgentCapability], ) -> (RoutingDecision, ComplexitySignals)
Analyze a task and decide routing.
Auto Trait Implementations§
impl Freeze for KeywordRoutingStrategy
impl RefUnwindSafe for KeywordRoutingStrategy
impl Send for KeywordRoutingStrategy
impl Sync for KeywordRoutingStrategy
impl Unpin for KeywordRoutingStrategy
impl UnsafeUnpin for KeywordRoutingStrategy
impl UnwindSafe for KeywordRoutingStrategy
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