pub struct TurnAgentContext {
pub agent: AgentId,
pub model: ModelKey,
pub adapter: AdaptorId,
pub adapter_family: OvenAdapterFamily,
pub capabilities: ModelCapabilities,
}Expand description
Immutable harness context captured for one tool preparation/execution batch.
This is tool-facing but harness-private metadata. Tool providers must not forward it to external systems, including MCP wrappers. Compaction rehydration uses the context of the owner policy and model binding that triggered the checkpoint.
Fields§
§agent: AgentIdAgent that owns the tool call.
model: ModelKeyExact model selected for this turn.
adapter: AdaptorIdFrozen wire adapter family used to deliver tool results.
adapter_family: OvenAdapterFamilyExact Oven adapter family, preserving compatible-family distinctions.
capabilities: ModelCapabilitiesPublic capabilities of the exact model binding that produced the tool call.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TurnAgentContext
impl RefUnwindSafe for TurnAgentContext
impl Send for TurnAgentContext
impl Sync for TurnAgentContext
impl Unpin for TurnAgentContext
impl UnsafeUnpin for TurnAgentContext
impl UnwindSafe for TurnAgentContext
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