Stop an agent’s task
Interrupts the current turn of one task the agent started (a delegated task or an approved proposal), exactly as a stop from the conversation composer would: nothing is muted, it reports back that it ended, and nothing it already did is undone; a process its runtime started in the background may keep running. The answer is stopped, or not_running when it had no turn to interrupt. Stopping a follow-up ends it, not just its check: no further checks run, and it answers not_running once it had already ended. Only callers who may continue that task’s session may stop it, and they are named in its transcript. Answers 409 DAEMON_FEATURE_MISSING when the agent’s daemon cannot stop tasks, and 409 ASSISTANT_MODE_OFF for an agent outside assistant mode whose daemon serves only assistant mode’s.
授权
bearerAuth 位置: header
路径参数
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$uuid1 <= length <= 512响应主体
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/v1/orgs/string/agents/497f6eca-6276-4993-bfeb-53cbbbba6f08/assistant/subsessions/string/stop"{ "result": "stopped"}