pub struct Router;
Implementations§
Source§impl Router
impl Router
pub fn classify_heuristic(input: &str) -> TaskClass
pub fn route( vt_cfg: &VTCodeConfig, core: &CoreAgentConfig, input: &str, ) -> RouteDecision
Sourcepub async fn route_async(
vt_cfg: &VTCodeConfig,
core: &CoreAgentConfig,
api_key: &str,
input: &str,
) -> RouteDecision
pub async fn route_async( vt_cfg: &VTCodeConfig, core: &CoreAgentConfig, api_key: &str, input: &str, ) -> RouteDecision
Optional LLM-based classification when router.llm_router_model
is set.
Falls back to heuristics on any error.
Auto Trait Implementations§
impl Freeze for Router
impl RefUnwindSafe for Router
impl Send for Router
impl Sync for Router
impl Unpin for Router
impl UnwindSafe for Router
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