rpk ai agent a2a task watch
Reattach to a running task’s event stream (A2A tasks/resubscribe) and print events until the task reaches a terminal state. Use after a disconnected --stream send or a --no-block send.
Watch waits as long as the task runs (no timeout by default; bound it with --timeout). Exit codes match send: 0 success or input-required, 4 task failed/canceled/rejected, 1 anything else.
Examples
rpk ai agent a2a task watch financial-advisor TASK_ID
rpk ai agent a2a task watch financial-advisor TASK_ID -o json # one JSON event per line
Flags
| Value | Type | Description |
|---|---|---|
|
- |
help for watch. |
|
duration |
abort after this long (default: wait forever). |
|
string |
output format: table|wide|json|yaml|markdown (env: RPAI_FORMAT) (default "table"). |
|
- |
disable colored output (env: NO_COLOR). |
|
string |
path to rpai config (env: RPAI_CONFIG) (default "/var/lib/redpanda/.rpai/config"). |
|
string |
override the selected environment’s AI Gateway URL for this invocation. |
|
string |
rpai profile name (env: RPAI_PROFILE). |
|
- |
verbose debug logging to stderr (env: RPAI_VERBOSE). |
|
string |
static bearer token override (ambient RPAI_TOKEN is ignored under rpk ai). |