pub enum ToolCallStatus {
Pending,
InProgress,
Completed,
Failed,
}
Expand description
Execution status of a tool call.
Tool calls progress through different statuses during their lifecycle.
See protocol docs: Status
Variants§
Pending
The tool call hasn’t started running yet because the input is either streaming or we’re awaiting approval.
InProgress
The tool call is currently running.
Completed
The tool call completed successfully.
Failed
The tool call failed with an error.
Trait Implementations§
Source§impl Clone for ToolCallStatus
impl Clone for ToolCallStatus
Source§fn clone(&self) -> ToolCallStatus
fn clone(&self) -> ToolCallStatus
Returns a duplicate of the value. Read more
1.0.0 · 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 ToolCallStatus
impl Debug for ToolCallStatus
Source§impl Default for ToolCallStatus
impl Default for ToolCallStatus
Source§fn default() -> ToolCallStatus
fn default() -> ToolCallStatus
Returns the “default value” for a type. Read more
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for ToolCallStatus
impl JsonSchema for ToolCallStatus
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref
keyword. Read moreSource§impl PartialEq for ToolCallStatus
impl PartialEq for ToolCallStatus
Source§impl Serialize for ToolCallStatus
impl Serialize for ToolCallStatus
impl Copy for ToolCallStatus
impl Eq 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 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
Mutably borrows from an owned value. Read more