pub struct PeerInput {
pub header: InputHeader,
pub convention: Option<PeerConvention>,
pub content: ContentInput,
pub payload: Option<Value>,
pub handling_mode: Option<HandlingMode>,
}Expand description
Peer-originated input from comms.
Fields§
§header: InputHeader§convention: Option<PeerConvention>The peer convention (message, request, response).
content: ContentInputThe peer content — the single typed owner of this input’s content fact
(plain text or multimodal blocks). Message-style peer traffic uses this
directly. Request/response prompt projection is runtime-owned and must
be reconstructed from convention + payload + source rather than
helper-rendered prose. The text projection is derived at read time via
ContentInput::text_content; it is never stored separately.
payload: Option<Value>Structured peer payload, when one exists.
For Request, this is the request params. For Response*, this is the
response result payload. Message traffic leaves this unset.
handling_mode: Option<HandlingMode>Optional handling-mode override for actionable peer inputs.
When present on Message/Request/no-convention, overrides kind-based
policy defaults. Forbidden on ResponseProgress; ResponseTerminal may
carry a typed override for requester reaction urgency (enforced by
[validate_peer_handling_mode]).