Run an agent with configuration
Run an agent with inline configuration or existing agent reference. Supports A2A messages, memory context, tool execution, and model fallback.
Request body
Example request
{
"model": {
"parameters": {
"fallbacks": [
{
"model": "openai/gpt-4o-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
]
}
},
"fallback_models": [
{
"parameters": {
"fallbacks": [
{
"model": "openai/gpt-4o-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
]
}
}
],
"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.
Changes
Changed in 185 of the 261 revisions of this API.4567318
- ○
the
request property default value changed from01M1GDMJX1FSP0DZFG1P3T197Ato01M1GG3ZM6N814CYYJMXEXSZAJrequest-property-default-value-changed
- ○
- ○
the
request property default value changed from01M1ECMMTM3ZJ12MBDZMP0EFZMto01M1GDMJX1FSP0DZFG1P3T197Arequest-property-default-value-changed
- ○
- ○
the
request property default value changed from01M1DZ6W5MR62NHR6FPCS17VKDto01M1ECMMTM3ZJ12MBDZMP0EFZMrequest-property-default-value-changed
- ○
added to the
//request propertyoneOflistrequest-property-one-of-added
This revision also has 9 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ▲
removed from the
//request propertyoneOflistrequest-property-one-of-removed
- ○
the
request property default value changed from01M1DS3XKZ334F6K69Q18F7MBRto01M1DZ6W5MR62NHR6FPCS17VKDrequest-property-default-value-changed
This revision also has 65 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
- ○
the
request property default value changed from01M1D09EGJCFG5T2VVRTESSXB3to01M1DS3XKZ334F6K69Q18F7MBRrequest-property-default-value-changed
- ○
added to the
//request propertyoneOflistrequest-property-one-of-added
This revision also has 9 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ▲
removed from the
//request propertyoneOflistrequest-property-one-of-removed
- ○
the
request property default value changed from01M1BS0MBP78QVTN74A32X1W7Xto01M1D09EGJCFG5T2VVRTESSXB3request-property-default-value-changed
This revision also has 61 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
- ○
the
request property default value changed from01M1BBCBE71SSSP29HBX33QJ1Eto01M1BS0MBP78QVTN74A32X1W7Xrequest-property-default-value-changed
- ○
- ○
the
request property default value changed from01M151RV9B0GPP12VSFXS0J6D0to01M1BBCBE71SSSP29HBX33QJ1Erequest-property-default-value-changed
- ○
added to the
//request propertyoneOflistrequest-property-one-of-added
This revision also has 9 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ▲
removed from the
//request propertyoneOflistrequest-property-one-of-removed
- ○
the
request property default value changed from01M11P4TR7TWJBMSC2TD9QCXVSto01M151RV9B0GPP12VSFXS0J6D0request-property-default-value-changed
This revision also has 39 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
- ○
the
request property default value changed from01M114XDSYDQRM345CW2C35FXEto01M11P4TR7TWJBMSC2TD9QCXVSrequest-property-default-value-changed
- ○
Of the 261 revisions, 73 have no diff computed.