pub struct ToolExecutionContext {
pub request: RequestContext,
pub session_id: SessionId,
pub run_id: RunId,
pub step: u32,
pub call_id: ToolCallId,
pub source_event_seq: u64,
pub interaction_resolution: Option<InteractionResolution>,
pub cancellation: CancellationToken,
pub deadline: Instant,
}Expand description
Identity, position and controls for one tool execution.
Fields§
§request: RequestContextThe originating request.
session_id: SessionIdSession this record belongs to.
run_id: RunIdRun this record belongs to.
step: u321-based step number inside the Turn.
call_id: ToolCallIdTool call this record refers to.
source_event_seq: u64Sequence of the Session event this was derived from.
interaction_resolution: Option<InteractionResolution>Resolution of the interaction that unblocked this call, if any.
cancellation: CancellationTokenCancelled when the Run or step is abandoned.
deadline: InstantLatest time by which the work must finish.
Trait Implementations§
Source§impl Clone for ToolExecutionContext
impl Clone for ToolExecutionContext
Source§fn clone(&self) -> ToolExecutionContext
fn clone(&self) -> ToolExecutionContext
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 ToolExecutionContext
impl RefUnwindSafe for ToolExecutionContext
impl Send for ToolExecutionContext
impl Sync for ToolExecutionContext
impl Unpin for ToolExecutionContext
impl UnsafeUnpin for ToolExecutionContext
impl UnwindSafe for ToolExecutionContext
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