methods
A2A v1.0 Standard Methods
Type Aliases
Section titled “Type Aliases”MessageSendParams
Section titled “MessageSendParams”type MessageSendParams = SendMessageRequest;MessageSendResponse
Section titled “MessageSendResponse”type MessageSendResponse = SendMessageResponse;TaskCancelParams
Section titled “TaskCancelParams”type TaskCancelParams = CancelTaskRequest;TaskGetParams
Section titled “TaskGetParams”type TaskGetParams = GetTaskRequest;TaskListParams
Section titled “TaskListParams”type TaskListParams = ListTasksRequest;TaskListResult
Section titled “TaskListResult”type TaskListResult = ListTasksResponse;Traits
Section titled “Traits”AgentDiscovery
Section titled “AgentDiscovery”Trait for agent discovery.
Required / Provided Methods
fn agent_authenticated_extended_card(&self, params: AuthenticatedExtendedCardParams) -> A2AResult<AuthenticatedExtendedCardResult>Structs
Section titled “Structs”CancelTaskRequest
Section titled “CancelTaskRequest”Request params for CancelTask (was tasks/cancel).
Fields
| Field | Type | Description |
|---|---|---|
id | String | |
tenant | Option<String> | |
metadata | Option<HashMap<String, serde_json::Value>> |
Methods
from_json
Section titled “from_json”fn from_json(params: Value) -> A2AResult<Self>validate
Section titled “validate”fn validate(&self) -> A2AResult<()>CreateTaskPushNotificationConfigRequest
Section titled “CreateTaskPushNotificationConfigRequest”Fields
| Field | Type | Description |
|---|---|---|
config | TaskPushNotificationConfig |
DeleteTaskPushNotificationConfigRequest
Section titled “DeleteTaskPushNotificationConfigRequest”Fields
| Field | Type | Description |
|---|---|---|
id | String | |
task_id | String |
GetTaskPushNotificationConfigRequest
Section titled “GetTaskPushNotificationConfigRequest”Fields
| Field | Type | Description |
|---|---|---|
id | String | |
task_id | String |
GetTaskRequest
Section titled “GetTaskRequest”Request params for GetTask (was tasks/get).
Fields
| Field | Type | Description |
|---|---|---|
id | String | |
tenant | Option<String> | |
history_length | Option<u32> |
Methods
from_json
Section titled “from_json”fn from_json(params: Value) -> A2AResult<Self>validate
Section titled “validate”fn validate(&self) -> A2AResult<()>ListTaskPushNotificationConfigsRequest
Section titled “ListTaskPushNotificationConfigsRequest”Fields
| Field | Type | Description |
|---|---|---|
task_id | String |
ListTasksRequest
Section titled “ListTasksRequest”Request params for ListTasks (was tasks/list).
Fields
| Field | Type | Description |
|---|---|---|
tenant | Option<String> | |
context_id | Option<String> | |
status | Option<String> | |
page_size | Option<u32> | |
page_token | Option<String> | |
history_length | Option<u32> | |
status_timestamp_after | Option<String> | |
include_artifacts | bool |
Methods
from_json
Section titled “from_json”fn from_json(params: Value) -> A2AResult<Self>validate
Section titled “validate”fn validate(&self) -> A2AResult<()>ListTasksResponse
Section titled “ListTasksResponse”Response for ListTasks.
Fields
| Field | Type | Description |
|---|---|---|
tasks | Vec<Task> | |
next_page_token | Option<String> | |
page_size | Option<u32> | |
total_size | Option<u32> |
SendMessageConfiguration
Section titled “SendMessageConfiguration”Optional configuration for SendMessage.
Fields
| Field | Type | Description |
|---|---|---|
accepted_output_modes | Option<Vec<String>> | |
task_push_notification_config | Option<TaskPushNotificationConfig> | |
history_length | Option<u32> | |
return_immediately | bool |
SendMessageRequest
Section titled “SendMessageRequest”Request params for SendMessage (was message/send).
Fields
| Field | Type | Description |
|---|---|---|
message | Message | |
tenant | Option<String> | |
configuration | Option<SendMessageConfiguration> | |
metadata | Option<HashMap<String, serde_json::Value>> |
Methods
from_json
Section titled “from_json”fn from_json(params: Value) -> A2AResult<Self>validate
Section titled “validate”fn validate(&self) -> A2AResult<()>SubscribeToTaskRequest
Section titled “SubscribeToTaskRequest”Request params for SubscribeToTask (reconnect to existing task SSE).
Fields
| Field | Type | Description |
|---|---|---|
id | String | |
tenant | Option<String> |
AuthenticatedExtendedCardParams
Section titled “AuthenticatedExtendedCardParams”Params for GetExtendedAgentCard (was agent/card/getAuthenticatedExtended).
Fields
| Field | Type | Description |
|---|---|---|
auth_token | Option<String> | |
scope | Option<Vec<String>> | |
metadata | Option<HashMap<String, serde_json::Value>> |
AuthenticatedExtendedCardResult
Section titled “AuthenticatedExtendedCardResult”Result for GetExtendedAgentCard.
Fields
| Field | Type | Description |
|---|---|---|
agent_card | crate::AgentCard | |
discovery_metadata | Option<HashMap<String, serde_json::Value>> | |
timestamp | Option<String> |
DefaultAgentDiscovery
Section titled “DefaultAgentDiscovery”Default discovery implementation.
Methods
fn new(agent_card: AgentCard) -> Selfwith_authentication_required
Section titled “with_authentication_required”fn with_authentication_required(self, required: bool) -> SelfSendMessageResponse
Section titled “SendMessageResponse”Response for SendMessage — either a Task or a direct Message.
Serialized as externally-tagged {"task": {...}} or {"message": {...}}
matching the protobuf oneof JSON mapping required by A2A v1.0.
Variants
| Variant | Description |
|---|---|
Task(Task) | |
Message(Message) |