#[non_exhaustive]pub struct SubagentResult {
pub summary: String,
pub text: Option<String>,
pub error_kind: Option<String>,
pub evidence_refs: Vec<String>,
pub artifact_refs: Vec<String>,
pub structured_data: Option<Map<String, Value>>,
pub drained: Option<bool>,
}Expand description
A subagent’s result envelope.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.summary: StringResult summary, bounded on the wire at the 64 KiB retained-text budget;
a cut sets the item’s truncated. The durable record stays verbatim.
text: Option<String>Result text, when present, bounded on the wire at the same 64 KiB
budget; a cut sets the item’s truncated.
error_kind: Option<String>Error kind, verbatim durable vocabulary, when the child failed.
evidence_refs: Vec<String>Evidence references, verbatim.
artifact_refs: Vec<String>Artifact references, verbatim.
structured_data: Option<Map<String, Value>>Structured result data, verbatim, when present.
drained: Option<bool>true once the parent consumed the result. Absent otherwise; never
cleared once set. Clients mint the Finished marker off this flag
instead of re-deriving the join.
Trait Implementations§
Source§impl Clone for SubagentResult
impl Clone for SubagentResult
Source§impl Debug for SubagentResult
impl Debug for SubagentResult
Source§impl<'de> Deserialize<'de> for SubagentResult
impl<'de> Deserialize<'de> for SubagentResult
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 SubagentResult
impl PartialEq for SubagentResult
Source§impl Serialize for SubagentResult
impl Serialize for SubagentResult
impl StructuralPartialEq for SubagentResult
Auto Trait Implementations§
impl Freeze for SubagentResult
impl RefUnwindSafe for SubagentResult
impl Send for SubagentResult
impl Sync for SubagentResult
impl Unpin for SubagentResult
impl UnsafeUnpin for SubagentResult
impl UnwindSafe for SubagentResult
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