Agentic Data Plane

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.

Usage

rpk ai agent a2a task cancel [flags]

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

--context-id

string

optional routing hint: the task’s existing context-id, as send printed it. (New in 0.2.92)

--timeout

duration

abort the call after this long (0 to wait forever).

Global flags

Value Type Description

--config

string

Redpanda or rpk config file; default search paths are ~/.config/rpk/rpk.yaml, $PWD/redpanda.yaml, and /etc/redpanda/redpanda.yaml.

-X, --config-opt

stringArray

Override rpk configuration settings; -X help for detail or -X list for terser detail.

--ignore-profile

bool

Ignore rpk.yaml and redpanda.yaml; use default settings.

--profile

string

rpk profile to use.

-v, --verbose

bool

Enable verbose logging.