#[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>,
pub superseded: Option<bool>,
}Expand description
A subagent’s result envelope.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
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; a client that knows subagentResult
draws one Finished member per consumed result instead, and keeps
drawing from this flag for a child with no such item, as on a host
before the kind.
superseded: Option<bool>true once a newer attempt of the child started after this result: the
result stays, and a client takes the child’s status from
controlStatus. Absent, it asserts nothing (a host before this member,
or a fold state saved before it, never sets it); a newer result replaces
the whole result, so it carries no mark.