| Name | Type | Description |
|---|---|---|
request* | CreateResponse | |
context* | ResponseContext | |
pending* | Sequence['Interrupt'] |
Detect a client-issued rejection of a pending interrupt.
Default implementation scans the request for an
mcp_approval_response item whose approval_request_id
matches a pending interrupt and whose approve is False.
When found, :meth:handle_create short-circuits the turn into
response.failed(code="interrupt_rejected", ā¦) instead of
driving the graph.
Override to plug in custom rejection protocols (e.g. recognising
a sentinel function_call_output payload as a rejection).
The parsed create-response request.
The response context for the request.
Interrupts currently pending on the checkpointed thread.