Skip to Content
Levain LabsLevain Labs

create_run

Start a run for an agent. Pass exactly one of prompt or initial_state. Omit version to use the latest active version. One-turn-at-a-time agents queue the…

Start a run for an agent.

Pass exactly one of prompt or initial_state. Omit version to use the latest active version. One-turn-at-a-time agents queue the run while another is in progress; pass queue=false to get a 409 instead.

Parameters

NameTypeRequiredDescription
agent_idstringyes
promptstringno
versionintegerno
initial_stateobjectno
queuebooleanno

On this page