Create AI Config variation
Create a new variation for a given AI Config.
The <code>model</code> in the request body requires a <code>modelName</code> and <code>parameters</code>, for example:
```
"model": {
"modelName": "claude-3-opus-20240229",
"parameters": {
"max_tokens": 1024
}
}
```
Authentication
Authorizationstring
API Key authentication via header
Path parameters
projectKey
configKey
Request
AI Config variation object to create
key
name
comment
Human-readable description of this variation
description
Returns the description for the agent. This is only returned for agent variations.
instructions
Returns the instructions for the agent. This is only returned for agent variations.
messages
model
modelConfigKey
modelConfigVersion
The exact model config version to set this variation to. Requires modelConfigKey to be set, and the version must exist for that model config. When omitted, the variation records the model config’s current (latest) version.
outputFormat
JSON Schema defining the structured output format for the variation.
tools
List of tools to use for this variation. The latest version of the tool will be used.
toolKeys
List of tool keys to use for this variation. The latest version of the tool will be used.
skills
List of agent skills to attach to this variation.
judgeConfiguration
Response
AI Config variation created
key
_id
model
name
createdAt
version
_links
color
comment
description
Returns the description for the agent. This is only returned for agent variations.
instructions
Returns the instructions for the agent. This is only returned for agent variations.
messages
modelConfigKey
modelConfigVersion
The version of the model config that this variation is pinned to, when it references a
custom model config. Absent when the variation does not reference a model config, when
the variation is not pinned to a specific version, or when custom model config versioning
is not enabled for the project.
outputFormat
JSON Schema defining the structured output format for the variation.
state
_archivedAt
_publishedAt
tools
skills
judgeConfiguration
judgingConfigKeys
Errors
400
Bad Request Error
403
Forbidden Error
429
Too Many Requests Error
500
Internal Server Error