pub struct AgentContext {
pub session_id: String,
pub records: Vec<SessionRecord>,
pub prior_tool_results: Vec<ToolResultRecord>,
pub granted_scopes: BTreeSet<String>,
pub metadata: ExecutionMetadata,
}Fields§
§session_id: String§records: Vec<SessionRecord>§prior_tool_results: Vec<ToolResultRecord>§granted_scopes: BTreeSet<String>§metadata: ExecutionMetadataImplementations§
Source§impl AgentContext
impl AgentContext
pub fn to_snapshot(&self, current_step: usize) -> AgentContextSnapshot
pub fn active_execution_plan(&self) -> Option<ExecutionPlanRecord>
Trait Implementations§
Source§impl Clone for AgentContext
impl Clone for AgentContext
Source§fn clone(&self) -> AgentContext
fn clone(&self) -> AgentContext
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 Freeze for AgentContext
impl RefUnwindSafe for AgentContext
impl Send for AgentContext
impl Sync for AgentContext
impl Unpin for AgentContext
impl UnsafeUnpin for AgentContext
impl UnwindSafe for AgentContext
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