Skip to content

Latest commit

 

History

History
29 lines (21 loc) · 1.73 KB

AgentOptimizationPost.md

File metadata and controls

29 lines (21 loc) · 1.73 KB

AgentOptimizationPost

Properties

Name Type Description Notes
key String A unique key for the agent optimization
aiConfigKey String The key of the AI Config to optimize
maxAttempts Integer The maximum number of attempts
modelChoices List<String> The models to try [optional]
judgeModel String The model used to judge responses
variableChoices List<Map<String, Object>> Sets of prompt variable values to try [optional]
acceptanceStatements List<AgentOptimizationAcceptanceStatement> Statements a response must satisfy to pass [optional]
judges List<AgentOptimizationJudge> Judges that score each response [optional]
userInputOptions List<String> User inputs to test with [optional]
groundTruthResponses List<String> Expected responses to compare against [optional]
metricKey String The key of the metric to optimize [optional]
tokenLimit Integer The maximum number of tokens to use [optional]
variationKey String The key of the variation to start from [optional]
label String A label for the optimization [optional]
latencyOptimization Boolean Whether to optimize for lower latency [optional]
tokenOptimization Boolean Whether to optimize for lower token use [optional]
autoCommit Boolean Whether to save the best result as a new variation automatically [optional]