pub struct BackendRunners {
pub tool_runner: Option<Arc<ToolRunner>>,
pub hook_runner: Option<Arc<HookRunner>>,
pub session_ctx: Option<SessionContext>,
}Expand description
Runners the Agent injects into a backend’s ConnectionStrategy (via its
with_runners) so tool calls dispatch inline through the same hooks +
policies + ToolRunner on every backend.
ONE shared struct — the per-backend names (GeminiRunners,
AnthropicRunners, MockRunners, LocalRunners) are type aliases of
this, kept so existing imports and struct literals don’t churn.
Fields§
§tool_runner: Option<Arc<ToolRunner>>Tool runner for custom + built-in tool execution.
hook_runner: Option<Arc<HookRunner>>Hook runner for pre/post tool-call hooks.
session_ctx: Option<SessionContext>Session context for hook dispatch.
Trait Implementations§
Source§impl Clone for BackendRunners
impl Clone for BackendRunners
Source§fn clone(&self) -> BackendRunners
fn clone(&self) -> BackendRunners
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for BackendRunners
impl Default for BackendRunners
Source§fn default() -> BackendRunners
fn default() -> BackendRunners
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for BackendRunners
impl !UnwindSafe for BackendRunners
impl Freeze for BackendRunners
impl Send for BackendRunners
impl Sync for BackendRunners
impl Unpin for BackendRunners
impl UnsafeUnpin for BackendRunners
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