pub struct ToolCallTermination {
pub tool_call_id: ToolCallId,
pub owner: AssistantToolCallRef,
pub outcome: ToolTerminationOutcome,
pub result: Option<PersistedToolResult>,
pub error: Option<SafeToolError>,
}Fields§
§tool_call_id: ToolCallId§owner: AssistantToolCallRef§outcome: ToolTerminationOutcome§result: Option<PersistedToolResult>§error: Option<SafeToolError>Implementations§
Source§impl ToolCallTermination
impl ToolCallTermination
pub fn validate(&self) -> Result<(), EventSchemaError>
pub fn matches_start(&self, start: &ToolCallStart) -> bool
Trait Implementations§
Source§impl Clone for ToolCallTermination
impl Clone for ToolCallTermination
Source§fn clone(&self) -> ToolCallTermination
fn clone(&self) -> ToolCallTermination
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 Debug for ToolCallTermination
impl Debug for ToolCallTermination
Source§impl<'de> Deserialize<'de> for ToolCallTermination
impl<'de> Deserialize<'de> for ToolCallTermination
Source§fn deserialize<D>(d: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(d: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for ToolCallTermination
impl JsonSchema for ToolCallTermination
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 ToolCallTermination
impl PartialEq for ToolCallTermination
Source§fn eq(&self, other: &ToolCallTermination) -> bool
fn eq(&self, other: &ToolCallTermination) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ToolCallTermination
impl Serialize for ToolCallTermination
impl StructuralPartialEq for ToolCallTermination
Auto Trait Implementations§
impl Freeze for ToolCallTermination
impl RefUnwindSafe for ToolCallTermination
impl Send for ToolCallTermination
impl Sync for ToolCallTermination
impl Unpin for ToolCallTermination
impl UnsafeUnpin for ToolCallTermination
impl UnwindSafe for ToolCallTermination
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