pub enum ToolCallState {
Streaming(ToolCallStreamingState),
PendingConfirmation(ToolCallPendingConfirmationState),
Running(ToolCallRunningState),
PendingResultConfirmation(ToolCallPendingResultConfirmationState),
Completed(ToolCallCompletedState),
Cancelled(ToolCallCancelledState),
Unknown(Value),
}Expand description
Full tool call lifecycle state.
Variants§
Streaming(ToolCallStreamingState)
PendingConfirmation(ToolCallPendingConfirmationState)
Running(ToolCallRunningState)
PendingResultConfirmation(ToolCallPendingResultConfirmationState)
Completed(ToolCallCompletedState)
Cancelled(ToolCallCancelledState)
Unknown(Value)
Unknown or future variant — preserved as raw JSON for round-trip fidelity. Reducers treat this as a no-op.
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<'de> Deserialize<'de> for ToolCallState
impl<'de> Deserialize<'de> for ToolCallState
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ToolCallState
impl PartialEq for ToolCallState
Source§fn eq(&self, other: &ToolCallState) -> bool
fn eq(&self, other: &ToolCallState) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ToolCallState
impl Serialize 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