Skip to content

Latest commit

 

History

History
27 lines (19 loc) · 1.61 KB

AgentOptimizationPatch.md

File metadata and controls

27 lines (19 loc) · 1.61 KB

AgentOptimizationPatch

Properties

Name Type Description Notes
maxAttempts Integer The maximum number of attempts [optional]
modelChoices List<String> The models to try [optional]
judgeModel String The model used to judge responses [optional]
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]