graduation

Record Task Event

Changed on

Record a task completion or failure for graduation metric tracking.

The orchestrator or CLI calls this after each task completes/fails so the graduation framework can accumulate per-stage metrics and determine when the session qualifies for the next stage.

Args: session_id: The session that executed the task. body: Task event details.

Returns: JSON with updated stage, metrics, and graduation readiness.

Raises: HTTPException: 422 when initial_stage is not a valid stage name.

post/api/v1/graduation/{session_id}/record-event

Request

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

Path parameters

session_idstring required

Request body

task_idstring required
successboolean required
duration_snumber
cost_usdnumber
initial_stagestring

Response

Successful Response

unknown required

Changes