pub enum AgentMessageType {
TaskAssignment {
task: String,
},
TaskResult {
result: String,
success: bool,
},
StatusUpdate {
progress: f64,
detail: String,
},
DataShare {
key: String,
value: Value,
},
VoteRequest {
proposal: String,
options: Vec<String>,
},
VoteResponse {
proposal: String,
vote: String,
},
Escalation {
reason: String,
original_task: String,
},
}Expand description
Types of messages exchanged between agents.
Variants§
TaskAssignment
Assign work to a fighter.
TaskResult
Report task completion.
StatusUpdate
Heartbeat / progress update.
Share context/knowledge between agents.
VoteRequest
Request a vote from peers.
VoteResponse
Respond to a vote request.
Escalation
Task escalation to leader.
Trait Implementations§
Source§impl Clone for AgentMessageType
impl Clone for AgentMessageType
Source§fn clone(&self) -> AgentMessageType
fn clone(&self) -> AgentMessageType
Returns a duplicate of the value. Read more
1.0.0 · 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 AgentMessageType
impl Debug for AgentMessageType
Source§impl<'de> Deserialize<'de> for AgentMessageType
impl<'de> Deserialize<'de> for AgentMessageType
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 AgentMessageType
impl RefUnwindSafe for AgentMessageType
impl Send for AgentMessageType
impl Sync for AgentMessageType
impl Unpin for AgentMessageType
impl UnsafeUnpin for AgentMessageType
impl UnwindSafe for AgentMessageType
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