#[non_exhaustive]pub enum ToolCallStatus {
Pending,
InProgress,
Paused,
Completed,
Failed,
Cancelled,
Other(String),
}unstable_protocol_v2 only.Expand description
Execution status of a tool call.
Tool calls progress through different statuses during their lifecycle.
See protocol docs: Status
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Pending
The tool call hasn’t started running yet, for example because its input is streaming, it is awaiting approval, or it is scheduled to run later.
InProgress
The tool call is currently running.
Paused
The tool call has started, is not running now, and will not continue until
something resumes it. It may return to in_progress any number of times.
Completed
The tool call completed successfully.
Failed
The tool call failed with an error.
Cancelled
The tool call was cancelled before it completed.
Other(String)
Custom or future tool call status.
Values beginning with _ are reserved for implementation-specific
extensions. Unknown values that do not begin with _ are reserved for
future ACP variants.
Clients treat a tool call with an unrecognized status as still in progress.
Trait Implementations§
Source§impl Clone for ToolCallStatus
impl Clone for ToolCallStatus
Source§impl Debug for ToolCallStatus
impl Debug for ToolCallStatus
Source§impl Default for ToolCallStatus
impl Default for ToolCallStatus
Source§impl<'de> Deserialize<'de> for ToolCallStatus
impl<'de> Deserialize<'de> for ToolCallStatus
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>,
impl Eq for ToolCallStatus
Source§impl JsonSchema for ToolCallStatus
Available on crate feature schemars only.
impl JsonSchema for ToolCallStatus
schemars only.Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreSource§impl PartialEq for ToolCallStatus
impl PartialEq for ToolCallStatus
Source§impl Serialize for ToolCallStatus
impl Serialize for ToolCallStatus
impl StructuralPartialEq for ToolCallStatus
Auto Trait Implementations§
impl Freeze for ToolCallStatus
impl RefUnwindSafe for ToolCallStatus
impl Send for ToolCallStatus
impl Sync for ToolCallStatus
impl Unpin for ToolCallStatus
impl UnsafeUnpin for ToolCallStatus
impl UnwindSafe for ToolCallStatus
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.