pub struct AssistantToolCallDeltaData {
pub input_delta: String,
pub tool_call_id: String,
pub tool_name: Option<String>,
pub tool_type: Option<AssistantMessageToolRequestType>,
}Expand description
Session event “assistant.tool_call_delta”. Streaming tool-call input delta for incremental tool-call updates
Fields§
§input_delta: StringRaw provider tool input fragment to append for this tool call. Function/tool-use providers stream serialized JSON argument text (so newlines inside JSON string values may appear as escaped \n until the accumulated JSON is parsed); custom tool calls stream raw custom input.
tool_call_id: StringTool call ID this delta belongs to, matching the corresponding assistant.message tool request
tool_name: Option<String>Name of the tool being invoked, when known from the stream
tool_type: Option<AssistantMessageToolRequestType>Tool call type, when known from the stream
Trait Implementations§
Source§impl Clone for AssistantToolCallDeltaData
impl Clone for AssistantToolCallDeltaData
Source§fn clone(&self) -> AssistantToolCallDeltaData
fn clone(&self) -> AssistantToolCallDeltaData
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 AssistantToolCallDeltaData
impl Debug for AssistantToolCallDeltaData
Source§impl Default for AssistantToolCallDeltaData
impl Default for AssistantToolCallDeltaData
Source§fn default() -> AssistantToolCallDeltaData
fn default() -> AssistantToolCallDeltaData
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AssistantToolCallDeltaData
impl<'de> Deserialize<'de> for AssistantToolCallDeltaData
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
Auto Trait Implementations§
impl Freeze for AssistantToolCallDeltaData
impl RefUnwindSafe for AssistantToolCallDeltaData
impl Send for AssistantToolCallDeltaData
impl Sync for AssistantToolCallDeltaData
impl Unpin for AssistantToolCallDeltaData
impl UnsafeUnpin for AssistantToolCallDeltaData
impl UnwindSafe for AssistantToolCallDeltaData
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