pub enum A2AMessage {
TaskDelegation {
task_id: Uuid,
description: String,
payload: Value,
priority: TaskPriority,
},
StatusUpdate {
task_id: Uuid,
progress: u8,
message: String,
},
ResultSharing {
task_id: Uuid,
result: Value,
summary: String,
},
CapabilityQuery {
query: String,
required_capabilities: Vec<String>,
},
Handshake {
agent_id: AgentId,
name: String,
capabilities: Vec<String>,
},
}Expand description
A2A Message types for inter-agent communication.
Variants§
TaskDelegation
Task delegation: “Here, do X”
Fields
§
priority: TaskPriorityPriority level.
StatusUpdate
Status update: “I’m working on X, status: Y%”
Fields
ResultSharing
Result sharing: “Here’s the result of X”
Fields
CapabilityQuery
Capability query: “Who can do X?”
Handshake
Handshake: “Hello, I can do Y”
Implementations§
Trait Implementations§
Source§impl Clone for A2AMessage
impl Clone for A2AMessage
Source§fn clone(&self) -> A2AMessage
fn clone(&self) -> A2AMessage
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 A2AMessage
impl Debug for A2AMessage
Source§impl<'de> Deserialize<'de> for A2AMessage
impl<'de> Deserialize<'de> for A2AMessage
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 A2AMessage
impl RefUnwindSafe for A2AMessage
impl Send for A2AMessage
impl Sync for A2AMessage
impl Unpin for A2AMessage
impl UnsafeUnpin for A2AMessage
impl UnwindSafe for A2AMessage
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