Interrupt Run
Changed onStop the current model turn of a live agent stage (the stage stage names, or the run's one live agent stage) and keep its session. With text, the text is the stage's next input; without, the stage waits for the next steer message before starting another model turn. The control is forwarded to the run's worker, and the worker's answer is this response: 202 with outcome: delivered (and the stage's label) once the worker stopped the turn, 409 with the refusal's code when the worker or Petri refused it (a stage with no model turn in flight, such as an agent between turns or a human gate; a stage that is not running; no live agent stage, or several unnamed), and 202 with outcome: pending when the worker gave no answer within the wait (5 s). A refused interrupt is also a run.notice record on the run's event stream under the same code (no_live_turn, no_such_stage, interrupt_refused). A delivered interrupt is the stage's control.requested record with $interrupt, followed by an attractor.turn.interrupted progress record.
Request
- The document declares no server URL.
- Auth
- HTTP bearer
- or API key in cookie __fabro_session
Path parameters
Unique run identifier (ULID).
Request body
Example request
{
"stage": "code@2",
"text": "Stop and summarize what you have so far."
}Response
Interrupt forwarded to the worker: delivered, or pending when the worker gave no answer within the wait.
Changes
- info
added the media type
application/jsonfor the response with the status
- info
- info
added optional request body
- info
added the non-success response with the status
- info