pub struct ToolCallUpdateFields {
pub kind: Option<ToolKind>,
pub status: Option<ToolCallStatus>,
pub title: Option<String>,
pub content: Option<Vec<ToolCallContent>>,
pub locations: Option<Vec<ToolCallLocation>>,
pub raw_input: Option<Value>,
pub raw_output: Option<Value>,
}
Expand description
Optional fields that can be updated in a tool call.
All fields are optional - only include the ones being changed. Collections (content, locations) are overwritten, not extended.
See protocol docs: Updating
Fields§
§kind: Option<ToolKind>
Update the tool kind.
status: Option<ToolCallStatus>
Update the execution status.
title: Option<String>
Update the human-readable title.
content: Option<Vec<ToolCallContent>>
Replace the content collection.
locations: Option<Vec<ToolCallLocation>>
Replace the locations collection.
raw_input: Option<Value>
Update the raw input.
raw_output: Option<Value>
Update the raw output.
Trait Implementations§
Source§impl Clone for ToolCallUpdateFields
impl Clone for ToolCallUpdateFields
Source§fn clone(&self) -> ToolCallUpdateFields
fn clone(&self) -> ToolCallUpdateFields
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 ToolCallUpdateFields
impl Debug for ToolCallUpdateFields
Source§impl Default for ToolCallUpdateFields
impl Default for ToolCallUpdateFields
Source§fn default() -> ToolCallUpdateFields
fn default() -> ToolCallUpdateFields
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ToolCallUpdateFields
impl<'de> Deserialize<'de> for ToolCallUpdateFields
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 ToolCallUpdateFields
impl JsonSchema for ToolCallUpdateFields
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 ToolCallUpdateFields
impl PartialEq for ToolCallUpdateFields
Source§impl Serialize for ToolCallUpdateFields
impl Serialize for ToolCallUpdateFields
impl StructuralPartialEq for ToolCallUpdateFields
Auto Trait Implementations§
impl Freeze for ToolCallUpdateFields
impl RefUnwindSafe for ToolCallUpdateFields
impl Send for ToolCallUpdateFields
impl Sync for ToolCallUpdateFields
impl Unpin for ToolCallUpdateFields
impl UnwindSafe for ToolCallUpdateFields
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