turns

Run one Turn and stream its activity as Server-Sent Events.

The stream ends with one outcome event followed by the terminal done envelope when run_turn reached it; a worker that stops earlier still closes the stream with one terminal event. A client disconnect cancels a Turn without an observed outcome; after an outcome it preserves the completed Turn's warm root. The Session stays locked until sandbox work has drained.

post/sessions/{session_id}/turn

Request

  • The document declares no server URL.
  • Auth
    none declared

Path parameters

session_idstring required

Request body

taskstring required
idempotency_keystring nullable
record_replayboolean

Persist a bounded immutable snapshot of this Turn's inputs for explicitly reviewed GEPA data.

timeout_secondsinteger nullable

Fleet deadline for this Turn in seconds. Omitted or null inherits the configured value; 0 disables the Fleet deadline; otherwise the value must be 10..3600.

Response

Server-Sent Events for Turn status, activity, completion, or failure.

Changes