pub struct ChatErrorAction {
pub turn_id: String,
pub duration: i64,
pub error: ErrorInfo,
pub meta: Option<JsonObject>,
}Expand description
Error during turn processing.
Fields§
§turn_id: StringTurn identifier
duration: i64Elapsed turn duration in milliseconds, measured by the producer’s own clock. Clients MUST NOT derive this by subtracting timestamps — cross- client clocks may differ — and MUST treat it as opaque, producer-supplied data.
error: ErrorInfoError details
meta: Option<JsonObject>Additional provider-specific metadata for this action.
Clients MAY look for well-known keys here to provide enhanced UI, and
agent hosts MAY use it to carry per-event context that does not fit any
other field — for example, attributing the event to a specific agent
(such as a sub-agent acting within the turn). Mirrors the MCP _meta
convention.
Trait Implementations§
Source§impl Clone for ChatErrorAction
impl Clone for ChatErrorAction
Source§fn clone(&self) -> ChatErrorAction
fn clone(&self) -> ChatErrorAction
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 ChatErrorAction
impl Debug for ChatErrorAction
Source§impl<'de> Deserialize<'de> for ChatErrorAction
impl<'de> Deserialize<'de> for ChatErrorAction
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 PartialEq for ChatErrorAction
impl PartialEq for ChatErrorAction
Source§impl Serialize for ChatErrorAction
impl Serialize for ChatErrorAction
impl StructuralPartialEq for ChatErrorAction
Auto Trait Implementations§
impl Freeze for ChatErrorAction
impl RefUnwindSafe for ChatErrorAction
impl Send for ChatErrorAction
impl Sync for ChatErrorAction
impl Unpin for ChatErrorAction
impl UnsafeUnpin for ChatErrorAction
impl UnwindSafe for ChatErrorAction
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