Agents
Create an agent run and wait for the response
Executes an agent run and returns the final response. Note: If the agent uses an input form trigger, all form fields (including optional fields) must be included in the input object.
post/rest/api/v1/agents/runs/wait
Request body
Example request
{
"messages": [
{
"role": "USER"
}
]
}Response
Success
Example response
{
"run": {
"messages": [
{
"role": "USER"
}
]
},
"messages": [
{
"role": "USER"
}
]
}