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§impl ComposeSchema for RunErrorEvent
Available on crate feature utoipa only.
impl ComposeSchema for RunErrorEvent
Available on crate feature
utoipa only.Source§impl Debug for RunErrorEvent
impl Debug for RunErrorEvent
Source§impl Default for RunErrorEvent
impl Default for RunErrorEvent
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
Available on crate feature schemars only.
impl JsonSchema for RunErrorEvent
Available on crate feature
schemars only.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§impl Serialize for RunErrorEvent
impl Serialize for RunErrorEvent
impl StructuralPartialEq for RunErrorEvent
Auto Trait Implementations§
impl Forget for RunErrorEvent
impl Freeze for RunErrorEvent
impl Move 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