Agent Control
Get an agent optimization
Retrieve a specific agent optimization by its key.
Authorization
ApiKey read, writeAuthorization<token>
In: header
Scope: read, write
Path Parameters
projectKey*string
optimizationKey*string
Response Body
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/api/v2/projects/string/agent-optimizations/string"{ "latencyOptimization": true, "judgeModel": "judgeModel", "metricKey": "metricKey", "_links": { "parent": { "href": "href", "type": "type" }, "self": { "href": "href", "type": "type" } }, "groundTruthResponses": [ "groundTruthResponses", "groundTruthResponses" ], "modelChoices": [ "modelChoices", "modelChoices" ], "label": "label", "version": 5, "userInputOptions": [ "userInputOptions", "userInputOptions" ], "maxAttempts": 0, "createdAt": 2, "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": "" } ], "tokenOptimization": true, "tokenLimit": 5, "id": "id", "variationKey": "variationKey", "autoCommit": true, "judges": [ { "threshold": 1.4658129805029452, "key": "key" }, { "threshold": 1.4658129805029452, "key": "key" } ], "key": "key", "acceptanceStatements": [ { "statement": "statement", "threshold": 6.027456183070403 }, { "statement": "statement", "threshold": 6.027456183070403 } ]}