rpk ai agent a2a task cancel
Ask the agent to cancel a running task and print the task’s resulting state. Cancellation is cooperative: if the agent already finished, the terminal state is returned unchanged.
--context-id is optional. Pass the context ID that rpk ai agent a2a send printed for the conversation. A gateway that keeps each conversation on one agent replica uses it to route the cancel request. Without it, the request goes to the agent’s Service.
Examples
This section provides examples of how to use rpk ai agent a2a task cancel.
rpk ai agent a2a task cancel financial-advisor TASK_ID
rpk ai agent a2a task cancel financial-advisor TASK_ID --context-id CTX
Flags
| Value | Type | Description |
|---|---|---|
|
string |
optional routing hint: the task’s existing context-id, as send printed it. (New in 0.2.92) |
|
duration |
abort the call after this long (0 to wait forever). |
Global flags
| Value | Type | Description |
|---|---|---|
|
string |
Redpanda or |
|
stringArray |
Override |
|
bool |
Ignore |
|
string |
|
|
bool |
Enable verbose logging. |