agent-training

Approve a proposed prompt

Save the proposal onto the live agent (which bumps its version, so the existing history and revert still apply), then re-run the same training rows for the next cycle. Columns deployed from this agent pick the new prompt up on their next run.

post/agent-training/sessions/{session_id}/approve/

Request

  • Base URL: https://api.getoneprofile.ai (the document declares no server; this is the origin it was published from)
  • URL: https://api.getoneprofile.ai/agent-training/sessions/{session_id}/approve/
  • Auth: one of:
    • API key in header X-API-Key
    • HTTP bearer

Path parameters

session_idstring uuid required

Request body

proposed_promptstring required

The proposed prompt as displayed. A proposal replaced meanwhile is rejected rather than approved unseen.

Response

Successful Response

created_atstring date-time required
cycleinteger required
errorstring nullable required
idstring uuid required
saved_agent_idstring uuid required
source_input_mappingsobject required
source_kind'table' | 'manual' required

Where a session's training inputs came from.

source_table_idstring uuid nullable required
status'running' | 'reviewing' | 'proposed' | 'completed' | 'abandoned' required

Where a training session stands: the state the reviewer's screen shows.

One enum rather than a separate lifecycle flag and phase, because the phase IS the state: a session is either waiting on the machine (RUNNING), waiting on the reviewer (REVIEWING, PROPOSED), or finished. Callers never derive the screen from row counts.

updated_atstring date-time required

Changes

No recorded changes to this operation across all 1 revision of this API.