#[non_exhaustive]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 (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.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.
Implementations§
Source§impl ToolCallUpdateFields
impl ToolCallUpdateFields
pub fn new() -> Self
Sourcepub fn kind(self, kind: impl IntoOption<ToolKind>) -> Self
pub fn kind(self, kind: impl IntoOption<ToolKind>) -> Self
Update the tool kind.
Sourcepub fn status(self, status: impl IntoOption<ToolCallStatus>) -> Self
pub fn status(self, status: impl IntoOption<ToolCallStatus>) -> Self
Update the execution status.
Sourcepub fn title(self, title: impl IntoOption<String>) -> Self
pub fn title(self, title: impl IntoOption<String>) -> Self
Update the human-readable title.
Sourcepub fn content(self, content: impl IntoOption<Vec<ToolCallContent>>) -> Self
pub fn content(self, content: impl IntoOption<Vec<ToolCallContent>>) -> Self
Replace the content collection.
Sourcepub fn locations(
self,
locations: impl IntoOption<Vec<ToolCallLocation>>,
) -> Self
pub fn locations( self, locations: impl IntoOption<Vec<ToolCallLocation>>, ) -> Self
Replace the locations collection.
Sourcepub fn raw_input(self, raw_input: impl IntoOption<Value>) -> Self
pub fn raw_input(self, raw_input: impl IntoOption<Value>) -> Self
Update the raw input.
Sourcepub fn raw_output(self, raw_output: impl IntoOption<Value>) -> Self
pub fn raw_output(self, raw_output: impl IntoOption<Value>) -> Self
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