pub struct ToolCallArgsEvent {
pub base: BaseEvent,
pub tool_call_id: ToolCallId,
pub delta: String,
}Expand description
Event containing tool call arguments.
This event contains chunks of the arguments being passed to a tool. Arguments are streamed as JSON string deltas.
Fields§
§base: BaseEventCommon event fields (timestamp, rawEvent).
tool_call_id: ToolCallIdThe tool call ID this argument chunk belongs to.
delta: StringThe argument delta (JSON string chunk).
Implementations§
Source§impl ToolCallArgsEvent
impl ToolCallArgsEvent
Sourcepub fn new(
tool_call_id: impl Into<ToolCallId>,
delta: impl Into<String>,
) -> Self
pub fn new( tool_call_id: impl Into<ToolCallId>, delta: impl Into<String>, ) -> Self
Creates a new ToolCallArgsEvent.
Sourcepub fn with_timestamp(self, timestamp: f64) -> Self
pub fn with_timestamp(self, timestamp: f64) -> Self
Sets the timestamp for this event.
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 · 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 ToolCallArgsEvent
impl Debug for ToolCallArgsEvent
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 PartialEq for ToolCallArgsEvent
impl PartialEq for ToolCallArgsEvent
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§
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