pub struct ResolvedRun {
pub config: AgentConfig,
pub tools: HashMap<String, Arc<dyn Tool>>,
pub run_config: RunConfig,
}Expand description
Fully resolved agent wiring ready for execution.
Contains everything needed to run an agent loop: the loop configuration, the resolved tool map, and the runtime config. This is a pure data struct that can be inspected, mutated, and tested independently.
Fields§
§config: AgentConfigLoop configuration (model, plugins, …).
tools: HashMap<String, Arc<dyn Tool>>Resolved tool map after filtering and wiring.
run_config: RunConfigRuntime configuration (user_id, run_id, …).
Implementations§
Source§impl ResolvedRun
impl ResolvedRun
Sourcepub fn with_tool(self, id: String, tool: Arc<dyn Tool>) -> Self
pub fn with_tool(self, id: String, tool: Arc<dyn Tool>) -> Self
Add or replace a tool in the resolved tool map.
Sourcepub fn with_plugin(self, plugin: Arc<dyn AgentPlugin>) -> Self
pub fn with_plugin(self, plugin: Arc<dyn AgentPlugin>) -> Self
Add a plugin to the resolved config.
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