pub struct ToolCallChunkEvent {
pub base: BaseEvent,
pub tool_call_id: Option<ToolCallId>,
pub tool_call_name: Option<String>,
pub parent_message_id: Option<MessageId>,
pub delta: Option<String>,
pub subagent_run_id: Option<SubagentRunId>,
}Expand description
A self-contained tool-call update: start, args and end folded into one.
Fields§
§base: BaseEventTimestamp and raw provider event.
tool_call_id: Option<ToolCallId>The call this chunk belongs to.
tool_call_name: Option<String>Name of the tool being called.
parent_message_id: Option<MessageId>The assistant message that requested the call. A JSON null reads as
absent, as in ToolCallStartEvent.
delta: Option<String>The 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 ToolCallChunkEvent
impl Clone for ToolCallChunkEvent
Source§fn clone(&self) -> ToolCallChunkEvent
fn clone(&self) -> ToolCallChunkEvent
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 ToolCallChunkEvent
impl ComposeSchema for ToolCallChunkEvent
Source§impl Debug for ToolCallChunkEvent
impl Debug for ToolCallChunkEvent
Source§impl Default for ToolCallChunkEvent
impl Default for ToolCallChunkEvent
Source§fn default() -> ToolCallChunkEvent
fn default() -> ToolCallChunkEvent
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ToolCallChunkEvent
impl<'de> Deserialize<'de> for ToolCallChunkEvent
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<ToolCallChunkEvent> for Event
impl From<ToolCallChunkEvent> for Event
Source§fn from(payload: ToolCallChunkEvent) -> Self
fn from(payload: ToolCallChunkEvent) -> Self
Converts to this type from the input type.
Source§impl JsonSchema for ToolCallChunkEvent
impl JsonSchema for ToolCallChunkEvent
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 ToolCallChunkEvent
impl PartialEq for ToolCallChunkEvent
Source§fn eq(&self, other: &ToolCallChunkEvent) -> bool
fn eq(&self, other: &ToolCallChunkEvent) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ToolCallChunkEvent
impl Serialize for ToolCallChunkEvent
impl StructuralPartialEq for ToolCallChunkEvent
Auto Trait Implementations§
impl Freeze for ToolCallChunkEvent
impl RefUnwindSafe for ToolCallChunkEvent
impl Send for ToolCallChunkEvent
impl Sync for ToolCallChunkEvent
impl Unpin for ToolCallChunkEvent
impl UnsafeUnpin for ToolCallChunkEvent
impl UnwindSafe for ToolCallChunkEvent
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