pub struct SubagentErrorEvent {
pub base: BaseEvent,
pub subagent_run_id: SubagentRunId,
pub message: String,
pub code: Option<String>,
}Expand description
Marks a subagent invocation as failed.
Fields§
§base: BaseEventTimestamp, raw provider event and metadata.
subagent_run_id: SubagentRunIdThe invocation that failed — the id from SUBAGENT_STARTED.
message: StringWhat went wrong, for a human.
code: Option<String>Machine-readable error code.
Implementations§
Trait Implementations§
Source§impl Clone for SubagentErrorEvent
impl Clone for SubagentErrorEvent
Source§fn clone(&self) -> SubagentErrorEvent
fn clone(&self) -> SubagentErrorEvent
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 SubagentErrorEvent
impl ComposeSchema for SubagentErrorEvent
Source§impl Debug for SubagentErrorEvent
impl Debug for SubagentErrorEvent
Source§impl Default for SubagentErrorEvent
impl Default for SubagentErrorEvent
Source§fn default() -> SubagentErrorEvent
fn default() -> SubagentErrorEvent
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SubagentErrorEvent
impl<'de> Deserialize<'de> for SubagentErrorEvent
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<SubagentErrorEvent> for Event
impl From<SubagentErrorEvent> for Event
Source§fn from(payload: SubagentErrorEvent) -> Self
fn from(payload: SubagentErrorEvent) -> Self
Converts to this type from the input type.
Source§impl JsonSchema for SubagentErrorEvent
impl JsonSchema for SubagentErrorEvent
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 SubagentErrorEvent
impl PartialEq for SubagentErrorEvent
Source§fn eq(&self, other: &SubagentErrorEvent) -> bool
fn eq(&self, other: &SubagentErrorEvent) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SubagentErrorEvent
impl Serialize for SubagentErrorEvent
impl StructuralPartialEq for SubagentErrorEvent
Auto Trait Implementations§
impl Freeze for SubagentErrorEvent
impl RefUnwindSafe for SubagentErrorEvent
impl Send for SubagentErrorEvent
impl Sync for SubagentErrorEvent
impl Unpin for SubagentErrorEvent
impl UnsafeUnpin for SubagentErrorEvent
impl UnwindSafe for SubagentErrorEvent
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