| 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 decision cannot be translated.
This includes custom interrupt rejections and
HumanInTheLoopMiddleware decisions not allowed for every action.
When found, :meth:handle_create short-circuits the turn into
response.failed(code="interrupt_rejected", ā¦).
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.