Cancel input request

cancelInputRequest(command: RunsCancelInputRequestCommand!, idempotencyKey: String): RunsInputRequest!

Arguments

ArgumentTypeRequiredDescription
commandRunsCancelInputRequestCommand!Yes
idempotencyKeyStringNoRetry key for this mutation (1-128 characters); overrides Idempotency-Key.

Input fields

command

RunsCancelInputRequestCommand

FieldTypeRequiredDescription
inputRequestIdID!YesInput request to cancel. A fresh cancellation of an already-resolved request returns 409; only an open request can be cancelled. Requires project.runs.write on the run’s project and, for a request in a conversation, editor access on that conversation. An authorized retry of the identical request with the same idempotency key returns its stored result.

Response

Returns RunsInputRequest!. Open the type for its fields and nested types.

FieldTypeDescription
inputRequestIdID!Unique input request ID.
projectIdID!Project inherited from the run.
runIdID!Run waiting for this input.
kindString!How the request is presented. form collects fields.
responderRulesRunsInputRequestResponderRulesWho may answer. Absent: the run’s own access rules.
toolCallRunsInputRequestToolCallThe tool call the request is about.
deliveryString!tool_result hands the answer to the waiting tool call. none leaves the runtime to read the request.
titleString!Question or decision shown to the responder.

All fields of RunsInputRequest.

Types marked with ! cannot be null. Lists use [Type] notation. The type index lists all published input and response types.

Example

query.graphql
mutation CancelInputRequest($command: RunsCancelInputRequestCommand!, $idempotencyKey: String) {  cancelInputRequest(command: $command, idempotencyKey: $idempotencyKey) {    projectId    runId    status    createdAt    canRespond  }}
variables.json
{  "command": {    "inputRequestId": "00000000-0000-4000-8000-000000000001"  }}