pub struct PeerInput {
pub header: InputHeader,
pub convention: Option<PeerConvention>,
pub body: String,
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: StringLLM-facing rendered text projection for this peer input.
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 and ResponseTerminal
(enforced by [validate_peer_handling_mode]).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PeerInput
impl<'de> Deserialize<'de> for PeerInput
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
Auto Trait Implementations§
impl Freeze for PeerInput
impl RefUnwindSafe for PeerInput
impl Send for PeerInput
impl Sync for PeerInput
impl Unpin for PeerInput
impl UnsafeUnpin for PeerInput
impl UnwindSafe for PeerInput
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