pub struct RunErrorEvent {
pub base: BaseEvent,
pub message: String,
pub code: Option<String>,
pub usage: Option<Vec<TokenUsage>>,
}Expand description
The run failed. No further events follow.
Fields§
§base: BaseEventTimestamp and raw provider event.
message: StringWhat went wrong, for a human.
code: Option<String>Machine-readable error code.
usage: Option<Vec<TokenUsage>>Partial usage for a run that failed after some model calls completed.
Implementations§
Trait Implementations§
Source§impl Clone for RunErrorEvent
impl Clone for RunErrorEvent
Source§fn clone(&self) -> RunErrorEvent
fn clone(&self) -> RunErrorEvent
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 RunErrorEvent
impl ComposeSchema for RunErrorEvent
Source§impl Debug for RunErrorEvent
impl Debug for RunErrorEvent
Source§impl Default for RunErrorEvent
impl Default for RunErrorEvent
Source§fn default() -> RunErrorEvent
fn default() -> RunErrorEvent
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RunErrorEvent
impl<'de> Deserialize<'de> for RunErrorEvent
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<RunErrorEvent> for Event
impl From<RunErrorEvent> for Event
Source§fn from(payload: RunErrorEvent) -> Self
fn from(payload: RunErrorEvent) -> Self
Converts to this type from the input type.
Source§impl JsonSchema for RunErrorEvent
impl JsonSchema for RunErrorEvent
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 RunErrorEvent
impl PartialEq for RunErrorEvent
Source§fn eq(&self, other: &RunErrorEvent) -> bool
fn eq(&self, other: &RunErrorEvent) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RunErrorEvent
impl Serialize for RunErrorEvent
impl StructuralPartialEq for RunErrorEvent
Auto Trait Implementations§
impl Freeze for RunErrorEvent
impl RefUnwindSafe for RunErrorEvent
impl Send for RunErrorEvent
impl Sync for RunErrorEvent
impl Unpin for RunErrorEvent
impl UnsafeUnpin for RunErrorEvent
impl UnwindSafe for RunErrorEvent
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