Create agent
Create a new agent with the specified model, instructions, tools, and knowledge bases. Supports fallback models and configurable execution settings.
Request body
Example request
{
"path": "Default Project",
"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
]
}
}
],
"settings": {
"tools": [
{
"type": "mcp",
"id": "01KA84ND5J0SWQMA2Q8HY5WZZZ",
"tool_id": "01KXYZ123456789",
"requires_approval": false
}
]
},
"knowledge_bases": [
{
"knowledge_id": "customer-knowledge-base"
}
]
}Response
Agent successfully created and ready for use. Returns the complete agent manifest including the generated ID, configuration, and all settings.
Example response
{
"path": "Default Project",
"knowledge_bases": [
{
"knowledge_id": "customer-knowledge-base"
}
],
"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
]
}
}
]
}
}Changes
Changed in 50 of the 254 revisions of this API.47101225
- ▲
removed
FileSystemToolInputfrom thesettings/tools/items/request propertyanyOflistrequest-property-any-of-removed
- ○
removed
file_systemdiscriminator mapping keys from thesettings/tools/items/request propertyrequest-property-discriminator-mapping-deleted
This revision also has 61 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
- ○
added
FileSystemToolInputto thesettings/tools/items/request propertyanyOflistrequest-property-any-of-added
- ○
added
file_systemdiscriminator mapping keys to thesettings/tools/items/request propertyrequest-property-discriminator-mapping-added
This revision also has 9 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ▲
removed
FileSystemToolInputfrom thesettings/tools/items/request propertyanyOflistrequest-property-any-of-removed
- ○
removed
file_systemdiscriminator mapping keys from thesettings/tools/items/request propertyrequest-property-discriminator-mapping-deleted
This revision also has 39 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
- ○
added
FileSystemToolInputto thesettings/tools/items/request propertyanyOflistrequest-property-any-of-added
- ○
added
file_systemdiscriminator mapping keys to thesettings/tools/items/request propertyrequest-property-discriminator-mapping-added
This revision also has 9 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ▲
removed
FileSystemToolInputfrom thesettings/tools/items/request propertyanyOflistrequest-property-any-of-removed
- ○
removed
file_systemdiscriminator mapping keys from thesettings/tools/items/request propertyrequest-property-discriminator-mapping-deleted
This revision also has 16 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
- ○
added
FileSystemToolInputto thesettings/tools/items/request propertyanyOflistrequest-property-any-of-added
- ○
added
file_systemdiscriminator mapping keys to thesettings/tools/items/request propertyrequest-property-discriminator-mapping-added
This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ▲
removed
FileSystemToolInputfrom thesettings/tools/items/request propertyanyOflistrequest-property-any-of-removed
- ○
removed
file_systemdiscriminator mapping keys from thesettings/tools/items/request propertyrequest-property-discriminator-mapping-deleted
This revision also has 16 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
- ○
added
FileSystemToolInputto thesettings/tools/items/request propertyanyOflistrequest-property-any-of-added
- ○
added
file_systemdiscriminator mapping keys to thesettings/tools/items/request propertyrequest-property-discriminator-mapping-added
- ○
- ○
added
TraceScrubbingPluginto thefallback_models/items/anyOf[subschema #2]/parameters/plugins/items/request propertyanyOflistrequest-property-any-of-added
- ○
added
TraceScrubbingPluginto themodel/anyOf[subschema #2]/parameters/plugins/items/request propertyanyOflistrequest-property-any-of-added
- ○
added
TraceScrubbingPluginto themodel/fallback_models/items/anyOf[subschema #2]/parameters/plugins/items/response propertyanyOflist for the response status201response-property-any-of-added
- ○
added
TraceScrubbingPluginto themodel/parameters/plugins/items/response propertyanyOflist for the response status201response-property-any-of-added
This revision also has 31 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ▲
removed
TraceScrubbingPluginfrom thefallback_models/items/anyOf[subschema #2]/parameters/plugins/items/request propertyanyOflistrequest-property-any-of-removed
- ▲
removed
TraceScrubbingPluginfrom themodel/anyOf[subschema #2]/parameters/plugins/items/request propertyanyOflistrequest-property-any-of-removed
- ○
removed
TraceScrubbingPluginfrom themodel/fallback_models/items/anyOf[subschema #2]/parameters/plugins/items/response propertyanyOflist for the response status201response-property-any-of-removed
- ○
removed
TraceScrubbingPluginfrom themodel/parameters/plugins/items/response propertyanyOflist for the response status201response-property-any-of-removed
This revision also has 173 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
Of the 254 revisions, 71 have no diff computed.