Runs
Send runs
Send your agent’s conversations to Ollive to be checked.
How it works
Use this for agents that don’t run on a connected platform. Send 1 to 10 runs per request, each up to 1,000 messages. Ollive accepts them with a 202 and checks them in the background. When checking is done, read the results with List results and the other monitoring endpoints.
Give each run a run_id: your own ID for it. A run can’t be changed after it is sent. Sending the same run_id again is safe: it comes back as already_sent and isn’t checked twice.
If anything in the request is invalid, none of it is accepted, and the error’s param points to the field to fix. Times can’t be in the future, and an end time can’t come before its start time.
Request body
application/json
- agent_idstringrequired
The agent these runs belong to, from List agents.
- runsobject[]required1 to 10
The runs to send.
- run_idstringrequiredup to 128 characters
Your ID for this run. Letters, numbers, and
._:-. - channelstring
Whether it was a
chator avoiceconversation.chatvoice - started_atstring (date-time)
When the run started. Defaults to the first message’s time.
- ended_atstring (date-time)
When it ended. Defaults to the last message’s time.
- messagesobject[]required1 to 1,000
The conversation, in order. A new turn starts at each user message that follows an assistant message.
- rolestringrequired
Who said it.
userassistantsystem - contentstringrequiredup to 100,000 characters
What they said.
- atstring (date-time)
When it was said.
- tool_callsobject[]
The tools the agent used for this message. Assistant messages only.
- namestringrequired
The tool’s name.
- inputany JSONup to 100,000 characters
What the agent sent to the tool.
- outputany JSONup to 100,000 characters
What the tool returned.
- started_atstring (date-time)
When the call started.
- ended_atstring (date-time)
When it finished.
Response
Accepted. The runs are listed in the order you sent them.
- dataobject[]required
One entry per run.
- run_idstringrequired
Your ID for the run.
- statusstringrequired
queued, oralready_sentif thisrun_idwas sent before. It isn’t checked again.queuedalready_sent
Something in the request is wrong. code and param tell you what.
Returns an error, for example with the code invalid_run.
The API key is missing, wrong, revoked or expired.
Returns an error, for example with the code authentication_failed.
We couldn’t find that item in your account.
Returns an error, for example with the code not_found.
We couldn’t accept all the runs. Send the same request again.
Returns an error, for example with the code queue_unavailable.