For the complete documentation index, see llms.txt. For the full documentation snapshot, see llms-full.txt.
Update an existing agent optimization. Creates a new version of the optimization.
curl --request PATCH \
--url https://app.launchdarkly.com/api/v2/projects/{projectKey}/agent-optimizations/{optimizationKey} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"maxAttempts": 0,
"judgeModel": "judgeModel",
"metricKey": "metricKey",
"variableChoices": [
{
"key": ""
},
{
"key": ""
}
],
"groundTruthResponses": [
"groundTruthResponses",
"groundTruthResponses"
],
"modelChoices": [
"modelChoices",
"modelChoices"
],
"judges": [
{
"threshold": 1.4658129805029452,
"key": "key"
},
{
"threshold": 1.4658129805029452,
"key": "key"
}
],
"acceptanceStatements": [
{
"statement": "statement",
"threshold": 6.027456183070403
},
{
"statement": "statement",
"threshold": 6.027456183070403
}
],
"userInputOptions": [
"userInputOptions",
"userInputOptions"
]
}
'{
"judgeModel": "judgeModel",
"metricKey": "metricKey",
"_links": {
"parent": {
"href": "href",
"type": "type"
},
"self": {
"href": "href",
"type": "type"
}
},
"groundTruthResponses": [
"groundTruthResponses",
"groundTruthResponses"
],
"modelChoices": [
"modelChoices",
"modelChoices"
],
"version": 5,
"userInputOptions": [
"userInputOptions",
"userInputOptions"
],
"maxAttempts": 0,
"createdAt": 5,
"aiConfigKey": "aiConfigKey",
"_access": {
"allowed": [
{
"reason": {
"role_name": "role_name",
"notActions": [
null,
null
],
"notResources": [
"notResources",
"notResources"
],
"effect": "allow",
"resources": [
"proj/*:env/*;qa_*:/flag/*"
],
"actions": [
"*"
]
},
"action": "action"
},
{
"reason": {
"role_name": "role_name",
"notActions": [
null,
null
],
"notResources": [
"notResources",
"notResources"
],
"effect": "allow",
"resources": [
"proj/*:env/*;qa_*:/flag/*"
],
"actions": [
"*"
]
},
"action": "action"
}
],
"denied": [
{
"reason": {
"role_name": "role_name",
"notActions": [
null,
null
],
"notResources": [
"notResources",
"notResources"
],
"effect": "allow",
"resources": [
"proj/*:env/*;qa_*:/flag/*"
],
"actions": [
"*"
]
},
"action": "action"
},
{
"reason": {
"role_name": "role_name",
"notActions": [
null,
null
],
"notResources": [
"notResources",
"notResources"
],
"effect": "allow",
"resources": [
"proj/*:env/*;qa_*:/flag/*"
],
"actions": [
"*"
]
},
"action": "action"
}
]
},
"variableChoices": [
{
"key": ""
},
{
"key": ""
}
],
"id": "id",
"judges": [
{
"threshold": 1.4658129805029452,
"key": "key"
},
{
"threshold": 1.4658129805029452,
"key": "key"
}
],
"key": "key",
"acceptanceStatements": [
{
"statement": "statement",
"threshold": 6.027456183070403
},
{
"statement": "statement",
"threshold": 6.027456183070403
}
]
}Documentation Index
Fetch the complete documentation index at: https://launchdarkly-preview.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Agent optimization fields to update
Agent optimization updated
Show child attributes
Show child attributes
Show child attributes
{
"allowed": [
{
"reason": {
"role_name": "role_name",
"notActions": [null, null],
"notResources": ["notResources", "notResources"],
"effect": "allow",
"resources": ["proj/*:env/*;qa_*:/flag/*"],
"actions": ["*"]
},
"action": "action"
},
{
"reason": {
"role_name": "role_name",
"notActions": [null, null],
"notResources": ["notResources", "notResources"],
"effect": "allow",
"resources": ["proj/*:env/*;qa_*:/flag/*"],
"actions": ["*"]
},
"action": "action"
}
],
"denied": [
{
"reason": {
"role_name": "role_name",
"notActions": [null, null],
"notResources": ["notResources", "notResources"],
"effect": "allow",
"resources": ["proj/*:env/*;qa_*:/flag/*"],
"actions": ["*"]
},
"action": "action"
},
{
"reason": {
"role_name": "role_name",
"notActions": [null, null],
"notResources": ["notResources", "notResources"],
"effect": "allow",
"resources": ["proj/*:env/*;qa_*:/flag/*"],
"actions": ["*"]
},
"action": "action"
}
]
}The location and content type of related resources
Show child attributes
{
"parent": { "href": "href", "type": "type" },
"self": { "href": "href", "type": "type" }
}curl --request PATCH \
--url https://app.launchdarkly.com/api/v2/projects/{projectKey}/agent-optimizations/{optimizationKey} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"maxAttempts": 0,
"judgeModel": "judgeModel",
"metricKey": "metricKey",
"variableChoices": [
{
"key": ""
},
{
"key": ""
}
],
"groundTruthResponses": [
"groundTruthResponses",
"groundTruthResponses"
],
"modelChoices": [
"modelChoices",
"modelChoices"
],
"judges": [
{
"threshold": 1.4658129805029452,
"key": "key"
},
{
"threshold": 1.4658129805029452,
"key": "key"
}
],
"acceptanceStatements": [
{
"statement": "statement",
"threshold": 6.027456183070403
},
{
"statement": "statement",
"threshold": 6.027456183070403
}
],
"userInputOptions": [
"userInputOptions",
"userInputOptions"
]
}
'{
"judgeModel": "judgeModel",
"metricKey": "metricKey",
"_links": {
"parent": {
"href": "href",
"type": "type"
},
"self": {
"href": "href",
"type": "type"
}
},
"groundTruthResponses": [
"groundTruthResponses",
"groundTruthResponses"
],
"modelChoices": [
"modelChoices",
"modelChoices"
],
"version": 5,
"userInputOptions": [
"userInputOptions",
"userInputOptions"
],
"maxAttempts": 0,
"createdAt": 5,
"aiConfigKey": "aiConfigKey",
"_access": {
"allowed": [
{
"reason": {
"role_name": "role_name",
"notActions": [
null,
null
],
"notResources": [
"notResources",
"notResources"
],
"effect": "allow",
"resources": [
"proj/*:env/*;qa_*:/flag/*"
],
"actions": [
"*"
]
},
"action": "action"
},
{
"reason": {
"role_name": "role_name",
"notActions": [
null,
null
],
"notResources": [
"notResources",
"notResources"
],
"effect": "allow",
"resources": [
"proj/*:env/*;qa_*:/flag/*"
],
"actions": [
"*"
]
},
"action": "action"
}
],
"denied": [
{
"reason": {
"role_name": "role_name",
"notActions": [
null,
null
],
"notResources": [
"notResources",
"notResources"
],
"effect": "allow",
"resources": [
"proj/*:env/*;qa_*:/flag/*"
],
"actions": [
"*"
]
},
"action": "action"
},
{
"reason": {
"role_name": "role_name",
"notActions": [
null,
null
],
"notResources": [
"notResources",
"notResources"
],
"effect": "allow",
"resources": [
"proj/*:env/*;qa_*:/flag/*"
],
"actions": [
"*"
]
},
"action": "action"
}
]
},
"variableChoices": [
{
"key": ""
},
{
"key": ""
}
],
"id": "id",
"judges": [
{
"threshold": 1.4658129805029452,
"key": "key"
},
{
"threshold": 1.4658129805029452,
"key": "key"
}
],
"key": "key",
"acceptanceStatements": [
{
"statement": "statement",
"threshold": 6.027456183070403
},
{
"statement": "statement",
"threshold": 6.027456183070403
}
]
}