pub struct ExecutionRouter { /* private fields */ }Expand description
Routes execution to compiled actions when available, LLM otherwise
Implementations§
Source§impl ExecutionRouter
impl ExecutionRouter
pub fn new() -> Self
Sourcepub fn register(&self, compiled: CompiledAction)
pub fn register(&self, compiled: CompiledAction)
Register a compiled action
Sourcepub fn route(&self, signature: &str) -> RoutingDecision
pub fn route(&self, signature: &str) -> RoutingDecision
Decide how to route a request
Sourcepub fn execute_compiled(
&self,
signature: &str,
variables: HashMap<String, Value>,
) -> Option<ExecutionResult>
pub fn execute_compiled( &self, signature: &str, variables: HashMap<String, Value>, ) -> Option<ExecutionResult>
Execute a compiled action directly (if available)
Sourcepub fn compiled_count(&self) -> usize
pub fn compiled_count(&self) -> usize
Number of registered compiled actions
Sourcepub fn stats(&self) -> RouterStats
pub fn stats(&self) -> RouterStats
Get routing stats
Sourcepub fn deregister(&self, signature: &str) -> bool
pub fn deregister(&self, signature: &str) -> bool
Remove a compiled action
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for ExecutionRouter
impl !RefUnwindSafe for ExecutionRouter
impl Send for ExecutionRouter
impl Sync for ExecutionRouter
impl Unpin for ExecutionRouter
impl UnsafeUnpin for ExecutionRouter
impl UnwindSafe for ExecutionRouter
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