Skip to main content
POST
Create agent optimization

Authorizations

Authorization
string
header
required

Path Parameters

projectKey
string
required

Body

application/json

Agent optimization object to create

key
string
required
aiConfigKey
string
required
maxAttempts
integer
required
judgeModel
string
required
modelChoices
string[]
variableChoices
object[]
acceptanceStatements
object[]
judges
object[]
userInputOptions
string[]
groundTruthResponses
string[]
metricKey
string
tokenLimit
integer
variationKey
string
label
string
latencyOptimization
boolean
tokenOptimization
boolean
autoCommit
boolean

Response

Agent optimization created

id
string
required
key
string
required
aiConfigKey
string
required
maxAttempts
integer
required
modelChoices
string[]
required
judgeModel
string
required
variableChoices
object[]
required
acceptanceStatements
object[]
required
judges
object[]
required
userInputOptions
string[]
required
groundTruthResponses
string[]
required
version
integer
required
createdAt
integer<int64>
required
_access
object
Example:

The location and content type of related resources

Example:
metricKey
string
tokenLimit
integer
variationKey
string
label
string
latencyOptimization
boolean
tokenOptimization
boolean
autoCommit
boolean