pub struct ToolCallResponsePart {
pub tool_call: ToolCallState,
}Expand description
A tool call represented as a response part.
Tool calls are part of the response stream, interleaved with text and
reasoning. The toolCall.toolCallId serves as the part identifier for
actions that target this part.
Fields§
§tool_call: ToolCallStateFull tool call lifecycle state
Trait Implementations§
Source§impl Clone for ToolCallResponsePart
impl Clone for ToolCallResponsePart
Source§fn clone(&self) -> ToolCallResponsePart
fn clone(&self) -> ToolCallResponsePart
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ToolCallResponsePart
impl Debug for ToolCallResponsePart
Source§impl<'de> Deserialize<'de> for ToolCallResponsePart
impl<'de> Deserialize<'de> for ToolCallResponsePart
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 PartialEq for ToolCallResponsePart
impl PartialEq for ToolCallResponsePart
Source§fn eq(&self, other: &ToolCallResponsePart) -> bool
fn eq(&self, other: &ToolCallResponsePart) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ToolCallResponsePart
impl Serialize for ToolCallResponsePart
impl StructuralPartialEq for ToolCallResponsePart
Auto Trait Implementations§
impl Freeze for ToolCallResponsePart
impl RefUnwindSafe for ToolCallResponsePart
impl Send for ToolCallResponsePart
impl Sync for ToolCallResponsePart
impl Unpin for ToolCallResponsePart
impl UnsafeUnpin for ToolCallResponsePart
impl UnwindSafe for ToolCallResponsePart
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