Create AI Config variation

Create a new variation for a given AI Config.

The model in the request body requires a modelName and parameters, for example:

"model": {
"modelName": "claude-3-opus-20240229",
"parameters": {
"max_tokens": 1024
}
}

Path parameters

projectKeystringRequired
configKeystringRequired

Headers

AuthorizationstringRequired
LD-API-Version"beta"Required
Version of the endpoint.

Request

This endpoint expects an object.
keystringRequired
messageslist of objectsRequired
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.
modelmap from strings to anyOptional
modelConfigKeystringOptional

Response

AI Config variation created
keystring
_idstring
modelmap from strings to any
namestring
createdAtlong
versioninteger
colorstring or null
commentstring or null
descriptionstring or null
Returns the description for the agent. This is only returned for agent variations.
instructionsstring or null
Returns the instructions for the agent. This is only returned for agent variations.
messageslist of objects or null
modelConfigKeystring or null
statestring or null
_archivedAtlong or null
_publishedAtlong or null

Errors