pub struct ToolView {
pub tool_call_id: ToolCallId,
pub tool_name: String,
pub arguments: Value,
pub status: String,
pub approval_decision: Option<ApprovalDecision>,
pub progress: Option<ToolProgressView>,
pub presentation: Option<ToolPresentation>,
pub preview: Option<ToolPresentation>,
}Expand description
Durable tool state plus optional transient progress.
Fields§
§tool_call_id: ToolCallIdStable tool-call identity.
tool_name: StringRegistered tool name.
arguments: ValueValidated provider-neutral arguments.
status: StringHuman-readable durable execution state.
approval_decision: Option<ApprovalDecision>Durable approval decision when the canonical session retained one.
progress: Option<ToolProgressView>Latest non-durable progress.
presentation: Option<ToolPresentation>Optional durable UI presentation kept out of model context.
preview: Option<ToolPresentation>Optional non-durable preview shown while this call awaits approval.
Trait Implementations§
impl StructuralPartialEq for ToolView
Auto Trait Implementations§
impl Freeze for ToolView
impl RefUnwindSafe for ToolView
impl Send for ToolView
impl Sync for ToolView
impl Unpin for ToolView
impl UnsafeUnpin for ToolView
impl UnwindSafe for ToolView
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more