pub struct ToolCallEndEvent {
pub base: BaseEvent,
pub tool_call_id: ToolCallId,
pub subagent_run_id: Option<SubagentRunId>,
}Expand description
Closes a tool call. The arguments are complete.
Fields§
§base: BaseEventTimestamp and raw provider event.
tool_call_id: ToolCallIdThe call being closed.
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§
Source§impl ToolCallEndEvent
impl ToolCallEndEvent
Sourcepub fn new(tool_call_id: impl Into<ToolCallId>) -> Self
pub fn new(tool_call_id: impl Into<ToolCallId>) -> Self
Closes the call.
Trait Implementations§
Source§impl Clone for ToolCallEndEvent
impl Clone for ToolCallEndEvent
Source§fn clone(&self) -> ToolCallEndEvent
fn clone(&self) -> ToolCallEndEvent
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 ToolCallEndEvent
impl ComposeSchema for ToolCallEndEvent
Source§impl Debug for ToolCallEndEvent
impl Debug for ToolCallEndEvent
Source§impl Default for ToolCallEndEvent
impl Default for ToolCallEndEvent
Source§fn default() -> ToolCallEndEvent
fn default() -> ToolCallEndEvent
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ToolCallEndEvent
impl<'de> Deserialize<'de> for ToolCallEndEvent
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<ToolCallEndEvent> for Event
impl From<ToolCallEndEvent> for Event
Source§fn from(payload: ToolCallEndEvent) -> Self
fn from(payload: ToolCallEndEvent) -> Self
Converts to this type from the input type.
Source§impl JsonSchema for ToolCallEndEvent
impl JsonSchema for ToolCallEndEvent
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 ToolCallEndEvent
impl PartialEq for ToolCallEndEvent
Source§fn eq(&self, other: &ToolCallEndEvent) -> bool
fn eq(&self, other: &ToolCallEndEvent) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ToolCallEndEvent
impl Serialize for ToolCallEndEvent
impl StructuralPartialEq for ToolCallEndEvent
Auto Trait Implementations§
impl Freeze for ToolCallEndEvent
impl RefUnwindSafe for ToolCallEndEvent
impl Send for ToolCallEndEvent
impl Sync for ToolCallEndEvent
impl Unpin for ToolCallEndEvent
impl UnsafeUnpin for ToolCallEndEvent
impl UnwindSafe for ToolCallEndEvent
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