Save an agent.
A harness with its model, effort, instructions, skills and connections, to start sessions from by sending its id as agent. Skills are fetched and pinned when the agent is saved (a GitHub source to its commit, any other to its content), and every session from the agent loads exactly that pin. A field this route does not take is 400 UNKNOWN_FIELD; defaults and connection_refs are 400 FIELD_REMOVED. A refused body is 422 with a code, and per-field fields where the catalog does not support a choice (UNSUPPORTED_PROFILE, with field codes such as UNKNOWN_MODEL and INVALID_EFFORT).
Request
- Base URL: https://api.prix.dev
- URL: https://api.prix.dev/o/{org}/agents
- Auth: HTTP bearer
Headers
Optional for an API key. A retry with the same key and body returns the agent the key first saved; the same key with another body is 409 IDEMPOTENCY_CONFLICT. 1–128 characters.
Request body
Response
The saved agent.
Changes
No recorded changes to this operation across all 2 revisions of this API.