Define what done looks like for a session
Defines what done looks like for an existing session and returns the stored outcome. Outcomes chain rather than run concurrently: the request is rejected while the session still has a non-terminal outcome, so define the next one only after the previous is graded.
Authorizations
A Recursion API key, created in the console under API keys.
Headers
Optional tenant consistency check. When present, it must name the tenant bound to the API key, including when x-organization-id is default.
1Organization in which to act. Required for a tenant-scoped API key. Optional for an organization-scoped key, where it must name that same organization. The value may be an organization id or default.
1Path Parameters
Session id (UUID) as returned by managedAgentsStartSession or managedAgentsListSessions.
Body
- Option 1
- Option 2
A definition of done for a session -- the task plus the rubric it is graded against. Accepted both when starting a session and when adding an outcome to a running one. Exactly one of rubric and rubric_ref is required.
The objective the agent works toward, and the statement of it the evaluator is given. It opens the session when the start request carries no message.
1Markdown the evaluator scores the work against. Criteria must be independently checkable: 'the CSV has a numeric price column' can be verified, 'the data looks good' cannot. Send this or rubric_ref.
1Ceiling on evaluation passes. Omit or send null for five; send 0 explicitly for unbounded.
0 <= x <= 9007199254740991The rubric as a file instead of inline markdown: the file's text is read once, when the outcome is defined, and recorded as the rubric. Exactly one of rubric and rubric_ref is required.
Response
A writer session's definition of done and its persisted evaluation-root verdicts.
A writer session's definition of done and its persisted evaluation-root verdicts.
RFC 3339 timestamp when the outcome was created.
Objective the writer works toward, in prose.
Maximum evaluator passes; zero explicitly means unbounded.
-9007199254740991 <= x <= 9007199254740991Organization that owns the outcome.
Server-assigned outcome identifier (UUID).
Markdown criteria used to evaluate the writer's work.
Writer session this outcome belongs to (UUID).
Current outcome lifecycle state, including evaluating while a root pass is in flight.
pending, running, evaluating, terminal RFC 3339 timestamp of the latest outcome change.
Writer agent that owns the outcome (UUID).
RFC 3339 timestamp when the outcome became terminal.
Persisted evaluator passes in order, newest last.
Original cloned grader roots with no pass link or verdict; iteration and exact preparation start are unknown.
Cloned grading attempts, including preparation, failure, and interruption before a verdict exists.
Source file reference when the rubric was captured from an uploaded file.
SHA-256 digest of the source rubric file, when present.
Final outcome verdict; absent until terminal. not_applicable means no criterion applied and is not success.
satisfied, max_iterations_reached, not_applicable, failed