pub enum A2AOperation {
SendMessage {
message: Message,
stream: bool,
context_id: Option<String>,
task_id: Option<String>,
},
GetTask {
task_id: String,
},
ListTasks {
status: Option<TaskStatus>,
limit: Option<u32>,
offset: Option<u32>,
next_token: Option<String>,
},
CancelTask {
task_id: String,
},
DiscoverAgent,
SubscribeTask {
task_id: String,
},
RegisterWebhook {
url: String,
events: Vec<String>,
auth: Option<String>,
},
}Expand description
A2A protocol operations
This enum represents all the abstract operations defined in the A2A protocol spec. Each operation is binding-independent and can be implemented over HTTP, gRPC, etc.
Variants§
SendMessage
Send a message to an agent
Fields
GetTask
Get a task by ID
ListTasks
List tasks with optional filtering
Fields
§
status: Option<TaskStatus>Filter by task status
CancelTask
Cancel a task
DiscoverAgent
Discover agent capabilities (fetch Agent Card)
SubscribeTask
Subscribe to task updates (streaming)
RegisterWebhook
Register a webhook for push notifications
Implementations§
Trait Implementations§
Source§impl Clone for A2AOperation
impl Clone for A2AOperation
Source§fn clone(&self) -> A2AOperation
fn clone(&self) -> A2AOperation
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 moreAuto Trait Implementations§
impl Freeze for A2AOperation
impl RefUnwindSafe for A2AOperation
impl Send for A2AOperation
impl Sync for A2AOperation
impl Unpin for A2AOperation
impl UnwindSafe for A2AOperation
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