pub struct PeerInput {
pub header: InputHeader,
pub convention: Option<PeerConvention>,
pub body: String,
pub payload: Option<Value>,
pub blocks: Option<Vec<ContentBlock>>,
pub handling_mode: Option<HandlingMode>,
}Expand description
Peer-originated input from comms.
Fields§
§header: InputHeader§convention: Option<PeerConvention>The peer convention (message, request, response).
body: StringLegacy textual body for this peer input.
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.
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.
blocks: Option<Vec<ContentBlock>>Optional multimodal content blocks. When present, body serves as the
text projection (backwards compat), and blocks carries the full content.
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]).