pub struct ToolCallArgsEvent {
pub base: BaseEvent,
pub tool_call_id: ToolCallId,
pub delta: String,
pub subagent_run_id: Option<SubagentRunId>,
}Expand description
Appends a chunk of the argument JSON for an open tool call.
The deltas concatenate to a JSON string; individual deltas are usually not valid JSON on their own.
Fields§
§base: BaseEventTimestamp and raw provider event.
tool_call_id: ToolCallIdThe call being appended to.
delta: StringThe argument-JSON fragment.
subagent_run_id: Option<SubagentRunId>The subagent that produced this event; absent means the parent agent.
A JSON null is rejected — see crate::event::subagent.
Implementations§
Trait Implementations§
Source§impl Clone for ToolCallArgsEvent
impl Clone for ToolCallArgsEvent
Source§fn clone(&self) -> ToolCallArgsEvent
fn clone(&self) -> ToolCallArgsEvent
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 ComposeSchema for ToolCallArgsEvent
impl ComposeSchema for ToolCallArgsEvent
Source§impl Debug for ToolCallArgsEvent
impl Debug for ToolCallArgsEvent
Source§impl Default for ToolCallArgsEvent
impl Default for ToolCallArgsEvent
Source§fn default() -> ToolCallArgsEvent
fn default() -> ToolCallArgsEvent
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ToolCallArgsEvent
impl<'de> Deserialize<'de> for ToolCallArgsEvent
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 From<ToolCallArgsEvent> for Event
impl From<ToolCallArgsEvent> for Event
Source§fn from(payload: ToolCallArgsEvent) -> Self
fn from(payload: ToolCallArgsEvent) -> Self
Converts to this type from the input type.
Source§impl JsonSchema for ToolCallArgsEvent
impl JsonSchema for ToolCallArgsEvent
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 ToolCallArgsEvent
impl PartialEq for ToolCallArgsEvent
Source§fn eq(&self, other: &ToolCallArgsEvent) -> bool
fn eq(&self, other: &ToolCallArgsEvent) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ToolCallArgsEvent
impl Serialize for ToolCallArgsEvent
impl StructuralPartialEq for ToolCallArgsEvent
Auto Trait Implementations§
impl Freeze for ToolCallArgsEvent
impl RefUnwindSafe for ToolCallArgsEvent
impl Send for ToolCallArgsEvent
impl Sync for ToolCallArgsEvent
impl Unpin for ToolCallArgsEvent
impl UnsafeUnpin for ToolCallArgsEvent
impl UnwindSafe for ToolCallArgsEvent
Blanket Implementations§
impl<T> AgentState for T
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