Agents
Create agent run
Execute an agent run. Set stream to true to receive server-sent events; otherwise the response contains the final agent messages.
post/api/agents/{agent_id}/runs
Path parameters
agent_idstring required
ID of the agent to run.
Request body
Example request
{
"messages": [
{
"role": "USER"
}
]
}Response
Successful response.
Example response
{
"run": {
"messages": [
{
"role": "USER"
}
]
},
"messages": [
{
"role": "USER"
}
]
}