pub struct ResolvedContext {
pub system_instruction: String,
pub active_tools: Vec<Arc<dyn Tool>>,
}Expand description
A validated context containing engineered instructions and resolved tool instances.
This structure serves as the “Atomic Unit of Capability” for an agent. It guarantees that the agent’s cognitive frame (the instructions telling it what it can do) is perfectly aligned with its physical capabilities (the binary tool instances bound to the session).
By using ResolvedContext, the framework eliminates “Phantom Tool” hallucinations,
where an agent tries to call a tool that was mentioned in its prompt but never
actually registered in the runtime.
Fields§
§system_instruction: StringThe engineered system instruction.
active_tools: Vec<Arc<dyn Tool>>The resolved, executable tools.
Trait Implementations§
Source§impl Clone for ResolvedContext
impl Clone for ResolvedContext
Source§fn clone(&self) -> ResolvedContext
fn clone(&self) -> ResolvedContext
Returns a duplicate of the value. Read more
1.0.0 · 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 Freeze for ResolvedContext
impl !RefUnwindSafe for ResolvedContext
impl Send for ResolvedContext
impl Sync for ResolvedContext
impl Unpin for ResolvedContext
impl UnsafeUnpin for ResolvedContext
impl !UnwindSafe for ResolvedContext
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