| Name | Type | Description |
|---|---|---|
request* | CreateResponse | |
context* | ResponseContext | |
pending* | Sequence['Interrupt'] |
Build a resume :class:Command from the request's input items.
Default implementation scans the current request for either a
function_call_output whose call_id matches one of the
pending interrupts, or an mcp_approval_response whose
approval_request_id matches. The former decodes its
output JSON into a :class:Command; the latter resumes with
the interrupt's own value when approve=True. Rejections
(approve=False) are surfaced via :meth:detect_rejection
instead. Override to plug in custom resume protocols.
The parsed create-response request.
The response context for the request.
Interrupts currently pending on the checkpointed thread.