pub struct ResolvedRun {
pub agent: BaseAgent,
pub tools: HashMap<String, Arc<dyn Tool>>,
pub run_policy: RunPolicy,
pub parent_tool_call_id: Option<String>,
}Expand description
Fully resolved agent wiring ready for execution.
Contains everything needed to run an agent loop: the agent, the resolved tool map, and the run policy. This is a pure data struct that can be inspected, mutated, and tested independently.
Fields§
§agent: BaseAgentThe agent (model, behavior, execution strategies, …).
Exposed as a concrete BaseAgent so callers can mutate fields
(model, plugins, tool_executor, …) between resolution and execution.
Converted to Arc<dyn Agent> at the execution boundary.
tools: HashMap<String, Arc<dyn Tool>>Resolved tool map after filtering and wiring.
run_policy: RunPolicyTyped per-run policy.
parent_tool_call_id: Option<String>Optional lineage seed for nested tool-driven runs.
Implementations§
Auto Trait Implementations§
impl Freeze for ResolvedRun
impl !RefUnwindSafe for ResolvedRun
impl Send for ResolvedRun
impl Sync for ResolvedRun
impl Unpin for ResolvedRun
impl UnsafeUnpin for ResolvedRun
impl !UnwindSafe for ResolvedRun
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