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