Run an agent with configuration
Changed onRun an agent with inline configuration or existing agent reference. Supports A2A messages, memory context, tool execution, and model fallback.
Request
- Base URLhttps://my.orq.ai
- URLhttps://my.orq.ai/v2/agents/run
- AuthHTTP bearer
Request body
Example request
{
"model": "openai/gpt-5.6-sol",
"fallback_models": [
{
"parameters": {
"fallbacks": [
{
"model": "openai/gpt-5.4-mini"
}
],
"cache": {
"ttl": 3600
},
"load_balancer": {
"type": "weight_based",
"models": [
{
"model": "openai/gpt-4o",
"weight": 0.7
},
{
"model": "anthropic/claude-3-5-sonnet",
"weight": 0.3
}
]
},
"timeout": {
"call_timeout": 30000
}
},
"retry": {
"count": 3,
"on_codes": [
429,
500,
502,
503,
504
]
}
}
],
"message": {
"parts": [
{
"file": {
"uri": "https://example.com/report.pdf"
}
}
]
},
"identity": {
"id": "contact_01ARZ3NDEKTSV4RRFFQ69G5FAV",
"display_name": "Jane Doe",
"email": "jane.doe@example.com",
"metadata": [
{
"department": "Engineering",
"role": "Senior Developer"
}
],
"logo_url": "https://example.com/avatars/jane-doe.jpg",
"tags": [
"hr",
"engineering"
]
},
"contact": {
"id": "contact_01ARZ3NDEKTSV4RRFFQ69G5FAV",
"display_name": "Jane Doe",
"email": "jane.doe@example.com",
"metadata": [
{
"department": "Engineering",
"role": "Senior Developer"
}
],
"logo_url": "https://example.com/avatars/jane-doe.jpg",
"tags": [
"hr",
"engineering"
]
},
"thread": {
"id": "thread_01ARZ3NDEKTSV4RRFFQ69G5FAV",
"tags": [
"customer-support",
"priority-high"
]
},
"path": "Default Project",
"knowledge_bases": [
{
"knowledge_id": "customer-knowledge-base"
}
]
}Response
Agent execution initiated successfully. Returns task details including the task ID, execution status, and agent response. The task ID can be used to track execution progress and retrieve results.
Example response
{
"status": {
"message": {
"parts": [
{
"file": {
"uri": "https://example.com/report.pdf"
}
}
]
}
},
"messages": [
{
"parts": [
{
"file": {
"uri": "https://example.com/report.pdf"
}
}
]
}
]
}Changes
- info
added the new optional request property
////// - info
added the new optional request property
////// - info
added the new optional request property
///// - info
added the new optional request property
///// - info
the
request property default value changed from01M640RMG04PH9QHGD8Z40KB96to01M644XDRP4R49HVMCVFMAVM7R - info
added
between_toolsdiscriminator mapping keys to the////request property - info
added
between_toolsdiscriminator mapping keys to the///request property - info
added to the
////request propertyoneOflist - info
added to the
///request propertyoneOflist
- info
- breaking
removed from the
////request propertyoneOflist - breaking
removed from the
///request propertyoneOflist - warning
removed the request property
////// - warning
removed the request property
////// - warning
removed the request property
///// - warning
removed the request property
///// - info
the
request property default value changed from01M63PG4XM9CND24TMVB3NW52Xto01M640RMG04PH9QHGD8Z40KB96 - info
removed
between_toolsdiscriminator mapping keys from the////request property - info
removed
between_toolsdiscriminator mapping keys from the///request property
- breaking