pub struct RunContext {
pub session_id: Option<String>,
pub model: String,
pub retry_count: u32,
pub cumulative_cost_usd: f64,
pub metadata: HashMap<String, Value>,
}Expand description
Runtime context made available to agent execution.
Fields§
§session_id: Option<String>Session identifier.
model: StringModel name resolved for this run.
retry_count: u32Retry count for the current turn (0 = first attempt).
cumulative_cost_usd: f64Cumulative cost so far in this session (USD).
metadata: HashMap<String, Value>Arbitrary metadata attached at call site.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RunContext
impl RefUnwindSafe for RunContext
impl Send for RunContext
impl Sync for RunContext
impl Unpin for RunContext
impl UnsafeUnpin for RunContext
impl UnwindSafe for RunContext
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