pub struct AgentRuntime {
pub provider: Arc<dyn Provider>,
pub tools: Vec<Arc<dyn ErasedTool>>,
pub memory: Arc<dyn Memory>,
pub guards: Vec<Arc<dyn Guard>>,
pub hints: Vec<Arc<dyn Hint>>,
pub tracker: Arc<dyn Tracker>,
pub context_manager: Arc<dyn ContextManager>,
pub execution_strategy: Arc<dyn ExecutionStrategy>,
pub output_transformer: Arc<dyn OutputTransformer>,
pub tool_registry: Arc<dyn ToolRegistry>,
pub config: AgentConfig,
pub hooks: Vec<Arc<dyn AgentHook>>,
}Expand description
Runtime context provided to strategies.
Exposes all agent components needed to execute a reasoning loop, without exposing the strategy itself (avoiding recursion).
Fields§
§provider: Arc<dyn Provider>The LLM provider.
tools: Vec<Arc<dyn ErasedTool>>Registered tools (v0.2.0 compat — prefer tool_registry).
memory: Arc<dyn Memory>Memory backend.
guards: Vec<Arc<dyn Guard>>Active guards.
hints: Vec<Arc<dyn Hint>>Active hints.
tracker: Arc<dyn Tracker>Runtime tracker.
context_manager: Arc<dyn ContextManager>Context window manager.
execution_strategy: Arc<dyn ExecutionStrategy>Tool execution strategy (sequential/parallel).
output_transformer: Arc<dyn OutputTransformer>Tool output transformer.
tool_registry: Arc<dyn ToolRegistry>Tool registry.
config: AgentConfigAgent configuration.
hooks: Vec<Arc<dyn AgentHook>>Lifecycle hooks.
Trait Implementations§
Source§impl Clone for AgentRuntime
impl Clone for AgentRuntime
Source§fn clone(&self) -> AgentRuntime
fn clone(&self) -> AgentRuntime
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 moreAuto Trait Implementations§
impl !RefUnwindSafe for AgentRuntime
impl !UnwindSafe for AgentRuntime
impl Freeze for AgentRuntime
impl Send for AgentRuntime
impl Sync for AgentRuntime
impl Unpin for AgentRuntime
impl UnsafeUnpin for AgentRuntime
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