pub struct ToolCallStartEvent {
pub base: BaseEvent,
pub tool_call_id: ToolCallId,
pub tool_call_name: String,
pub parent_message_id: Option<MessageId>,
pub subagent_run_id: Option<SubagentRunId>,
}Expand description
Opens a tool call. Arguments follow as TOOL_CALL_ARGS deltas.
Fields§
§base: BaseEventTimestamp and raw provider event.
tool_call_id: ToolCallIdId correlating this call with its args, end and result.
tool_call_name: StringName of the tool being called.
parent_message_id: Option<MessageId>The assistant message that requested the call.
A JSON null here deserializes to None: producers whose serializers
emit nulls for absent optionals (notably the .NET Microsoft Agent
Framework adapter) must not abort a run on their first tool call.
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. A tool
call belongs to the message parent_message_id names, so a tag that
disagrees with that message’s owner is a protocol error; an untagged
call inherits the message’s owner.
Implementations§
Trait Implementations§
Source§impl Clone for ToolCallStartEvent
impl Clone for ToolCallStartEvent
Source§fn clone(&self) -> ToolCallStartEvent
fn clone(&self) -> ToolCallStartEvent
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 ToolCallStartEvent
impl ComposeSchema for ToolCallStartEvent
Source§impl Debug for ToolCallStartEvent
impl Debug for ToolCallStartEvent
Source§impl Default for ToolCallStartEvent
impl Default for ToolCallStartEvent
Source§fn default() -> ToolCallStartEvent
fn default() -> ToolCallStartEvent
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ToolCallStartEvent
impl<'de> Deserialize<'de> for ToolCallStartEvent
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<ToolCallStartEvent> for Event
impl From<ToolCallStartEvent> for Event
Source§fn from(payload: ToolCallStartEvent) -> Self
fn from(payload: ToolCallStartEvent) -> Self
Converts to this type from the input type.
Source§impl JsonSchema for ToolCallStartEvent
impl JsonSchema for ToolCallStartEvent
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 ToolCallStartEvent
impl PartialEq for ToolCallStartEvent
Source§fn eq(&self, other: &ToolCallStartEvent) -> bool
fn eq(&self, other: &ToolCallStartEvent) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ToolCallStartEvent
impl Serialize for ToolCallStartEvent
impl StructuralPartialEq for ToolCallStartEvent
Auto Trait Implementations§
impl Freeze for ToolCallStartEvent
impl RefUnwindSafe for ToolCallStartEvent
impl Send for ToolCallStartEvent
impl Sync for ToolCallStartEvent
impl Unpin for ToolCallStartEvent
impl UnsafeUnpin for ToolCallStartEvent
impl UnwindSafe for ToolCallStartEvent
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