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

projectKeystringRequired
configKeystringRequired

Request

AI Config variation object to create
keystringRequired
namestringRequired
commentstringOptional

Human-readable description of this variation

descriptionstringOptional
Returns the description for the agent. This is only returned for agent variations.
instructionsstringOptional
Returns the instructions for the agent. This is only returned for agent variations.
messageslist of objectsOptional
modelobjectOptional
modelConfigKeystringOptional
toolslist of objectsOptional
List of tools to use for this variation. The latest version of the tool will be used.
toolKeyslist of stringsOptional
List of tool keys to use for this variation. The latest version of the tool will be used.
judgeConfigurationobjectOptional

Response

AI Config variation created
keystring
_idstring
modelobject
namestring
createdAtlong
versioninteger
colorstring
commentstring
descriptionstring
Returns the description for the agent. This is only returned for agent variations.
instructionsstring
Returns the instructions for the agent. This is only returned for agent variations.
messageslist of objects
modelConfigKeystring
statestring
_archivedAtlong
_publishedAtlong
toolslist of objects
judgeConfigurationobject
judgingConfigKeyslist of strings

Errors

400
Bad Request Error
403
Forbidden Error
429
Too Many Requests Error
500
Internal Server Error