pub struct CompiledExecutor { /* private fields */ }Expand description
Executes compiled action ASTs without any LLM calls
Implementations§
Source§impl CompiledExecutor
impl CompiledExecutor
pub fn new() -> Self
pub fn with_variables(variables: HashMap<String, Value>) -> Self
Sourcepub fn with_dispatcher(self, dispatcher: CompiledToolDispatcher) -> Self
pub fn with_dispatcher(self, dispatcher: CompiledToolDispatcher) -> Self
Set a real tool dispatcher for bridging compiled action execution through sister bridges instead of simulating results.
Sourcepub fn execute(&mut self, compiled: &CompiledAction) -> ExecutionResult
pub fn execute(&mut self, compiled: &CompiledAction) -> ExecutionResult
Execute a compiled action. Returns zero tokens used.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CompiledExecutor
impl !RefUnwindSafe for CompiledExecutor
impl Send for CompiledExecutor
impl Sync for CompiledExecutor
impl Unpin for CompiledExecutor
impl UnsafeUnpin for CompiledExecutor
impl !UnwindSafe for CompiledExecutor
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