Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/specification.md
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ This section defines common parameter objects used across multiple operations.

The `blocking` field in [`SendMessageConfiguration`](#322-sendmessageconfiguration) controls whether the operation waits for task completion:

- **Blocking (`blocking: true`)**: The operation MUST wait until the task reaches a terminal state (`completed`, `failed`, `canceled`, `rejected`) or an interrupted state (`input_required`, `auth_required`) before returning. The response MUST include the current task state with all artifacts and status information.
- **Blocking (`blocking: true`)**: The operation MUST wait until the task reaches a terminal state (`COMPLETED`, `FAILED`, `CANCELED`, `REJECTED`) or an interrupted state (`INPUT_REQUIRED`, `AUTH_REQUIRED`) before returning. The response MUST include the latest task state with all artifacts and status information.

- **Non-Blocking (`blocking: false`)**: The operation MUST return immediately after creating the task, even if processing is still in progress. The returned task will have an in-progress state (e.g., `working`, `input_required`). It is the caller's responsibility to poll for updates using [Get Task](#313-get-task), subscribe via [Subscribe to Task](#316-subscribe-to-task), or receive updates via push notifications.

Expand Down
5 changes: 3 additions & 2 deletions specification/a2a.proto
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,9 @@ message SendMessageConfiguration {
// value of zero is a request to not include any messages. The server MUST NOT
// return more messages than the provided value, but MAY apply a lower limit.
optional int32 history_length = 3;
// If true, the operation waits until the task reaches a terminal or interrupted state before returning.
// Defaults to `false`.
// If `true`, the operation MUST wait until the task reaches a terminal state
// (`COMPLETED`, `FAILED`, `CANCELED`, `REJECTED`) or an interrupted state
// (`INPUT_REQUIRED`, `AUTH_REQUIRED`) before returning. Default is `false`.
bool blocking = 4;
}

Expand Down
Loading