pub struct AgentMessage {
pub sender: AgentId,
pub tokens: Vec<i64>,
pub embedding: Vec<f32>,
}Expand description
A message emitted by one agent for delivery to others within a rollout.
Host-side payload only (no tensor types), consistent with the rest of the
multi-agent message surface. Discrete tokens live in
AgentMessage::tokens; an optional continuous payload
(AgentMessage::embedding) reserves space for the differentiable/learned
path (Phase 3) and is empty for fixed-vocab discrete comms.
Fields§
§sender: AgentIdSending agent.
tokens: Vec<i64>Discrete message tokens (multi-discrete, one entry per message dim).
Cardinalities are published by
CommunicatingEnvironment::message_vocab.
embedding: Vec<f32>Optional continuous payload (relaxed / learned comms, Phase 3). Empty for fixed-vocab discrete comms.
Implementations§
Source§impl AgentMessage
impl AgentMessage
Trait Implementations§
Source§impl Clone for AgentMessage
impl Clone for AgentMessage
Source§fn clone(&self) -> AgentMessage
fn clone(&self) -> AgentMessage
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AgentMessage
impl Debug for AgentMessage
Source§impl Default for AgentMessage
impl Default for AgentMessage
Source§fn default() -> AgentMessage
fn default() -> AgentMessage
Returns the “default value” for a type. Read more
Source§impl PartialEq for AgentMessage
impl PartialEq for AgentMessage
impl StructuralPartialEq for AgentMessage
Auto Trait Implementations§
impl Freeze for AgentMessage
impl RefUnwindSafe for AgentMessage
impl Send for AgentMessage
impl Sync for AgentMessage
impl Unpin for AgentMessage
impl UnsafeUnpin for AgentMessage
impl UnwindSafe for AgentMessage
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more