pub struct AgentContext {
pub run_id: String,
pub session_id: String,
pub step_id: String,
pub agent_role: String,
pub lease_token: String,
pub attempt: u64,
pub state_version: u64,
pub pending_patch: State,
}Fields§
§run_id: String§session_id: String§step_id: String§agent_role: String§lease_token: String§attempt: u64§state_version: u64§pending_patch: StateImplementations§
Source§impl AgentContext
impl AgentContext
pub fn write_state(&mut self, key: &str, value: Value)
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