Skip to content
dimmiDocs

AI agent

List a simulation's past runs

GET/api/v1/ai/agents/{agent}/simulations/{simulation}/runs

Authorization

Authorizationstringrequired

An API token, sent as Bearer <token>.

Needs the ai:read ability

Path parameters

agentstringrequired

Id of the AI agent, starting with aia_, such as aia_01jx2m8k4t. Find it with GET /ai/agents.

simulationstringrequired

Id of the AI agent simulation, starting with aias_, such as aias_01jx2m8k4t. Find it with GET /ai/agents/{agent}/simulations.

Query parameters

versionstring

draft lists runs on the working copy, live on the published one. Left out, it is draft.

Available options:draftlive

Response 200

OK
dataobject[] | nullrequired

The items of this page, as a list; empty when nothing matches.

Show child attributes
countedbooleanrequired

true when the run counts toward the simulation's history: it ran on the agent, the procedures and the simulation as they stand now.

erroredbooleanrequired

true when the run broke before its checks could be judged, which is not a pass.

idstringrequired

The id of this record. Send it wherever an endpoint asks for this record; never use its name or title in its place.

objectstringrequired

The kind of record this is, the same for every record of its kind, such as article.

passedbooleanrequired

true when every check of the run held.

ran_atstringrequired

When the run happened.

Format: date-time

resultanyrequired

How the run went, as a JSON object with the turns, the result of each check and, on a broken run, the error.

simulation_idstringrequired

Id of the simulation that ran (starts with aias_).

versionstringrequired

The copy of the agent the run was on: draft or live.

Available options:draftlive

linksobject

Addresses of related pages by name, such as next; left out when there are none.

metaobjectrequired
Show child attributes
next_cursorstring | nullrequired

Send it as cursor to read the next page; null on the last page.

per_pageintegerrequired

How many items a page holds at most, such as 25.

Format: int64

prev_cursorstring | nullrequired

Send it as cursor to read the page before; null on the first page.

totalinteger

How many items match in all; left out when the list does not count them.

Format: int64

Response error

Error
codestringrequired

Stable code for programs to tell errors apart, such as validation_failed or internal_error.

errorsobject

Each rejected field mapped to its messages. Only present when the input was invalid.

messagestringrequired

What went wrong, in words safe to show a person.