pub struct ToolCallState { /* private fields */ }Expand description
Materialized lifecycle of one requested tool call.
Implementations§
Source§impl ToolCallState
impl ToolCallState
Sourcepub const fn tool_call_id(&self) -> ToolCallId
pub const fn tool_call_id(&self) -> ToolCallId
Returns the stable tool-call identity.
Sourcepub const fn policy_decision(&self) -> Option<PolicyDecision>
pub const fn policy_decision(&self) -> Option<PolicyDecision>
Returns the durable policy decision, when evaluated.
Sourcepub const fn approval_id(&self) -> Option<ApprovalId>
pub const fn approval_id(&self) -> Option<ApprovalId>
Returns the associated approval identity, when requested.
Sourcepub const fn approval_decision(&self) -> Option<ApprovalDecision>
pub const fn approval_decision(&self) -> Option<ApprovalDecision>
Returns the terminal approval decision, when resolved.
Sourcepub const fn execution(&self) -> &ToolExecutionState
pub const fn execution(&self) -> &ToolExecutionState
Returns durable execution/recovery state.
Sourcepub const fn result_message_id(&self) -> Option<MessageId>
pub const fn result_message_id(&self) -> Option<MessageId>
Returns the sole committed result message, when present.
Trait Implementations§
Source§impl Clone for ToolCallState
impl Clone for ToolCallState
Source§fn clone(&self) -> ToolCallState
fn clone(&self) -> ToolCallState
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 moreSource§impl Debug for ToolCallState
impl Debug for ToolCallState
Source§impl PartialEq for ToolCallState
impl PartialEq for ToolCallState
impl StructuralPartialEq for ToolCallState
Auto Trait Implementations§
impl Freeze for ToolCallState
impl RefUnwindSafe for ToolCallState
impl Send for ToolCallState
impl Sync for ToolCallState
impl Unpin for ToolCallState
impl UnsafeUnpin for ToolCallState
impl UnwindSafe for ToolCallState
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