#[non_exhaustive]pub struct ToolCallUpdateFields {
pub kind: Option<ToolKind>,
pub status: Option<ToolCallStatus>,
pub title: Option<String>,
pub name: 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
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.
name: Option<String>Update the programmatic name of the tool being invoked.
This field is optional. Omitting it or sending null both mean that
the existing name is left unchanged.
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
Sourcepub fn new() -> Self
pub fn new() -> Self
Builds ToolCallUpdateFields with the required fields set; optional fields start unset or empty.
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 name(self, name: impl IntoOption<String>) -> Self
pub fn name(self, name: impl IntoOption<String>) -> Self
Update the programmatic name of the tool being invoked.
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
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
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
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>,
Source§impl JsonSchema for ToolCallUpdateFields
impl JsonSchema for ToolCallUpdateFields
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 more