Skip to content

Latest commit

 

History

History
62 lines (55 loc) · 3.06 KB

AgentOptimization.md

File metadata and controls

62 lines (55 loc) · 3.06 KB

AgentOptimization

Properties

Name Type Description Notes
_access AiConfigsAccess [optional] [default to undefined]
_links ParentAndSelfLinks [optional] [default to undefined]
id string The agent optimization ID [default to undefined]
key string The agent optimization key [default to undefined]
aiConfigKey string The key of the AI Config to optimize [default to undefined]
maxAttempts number The maximum number of attempts [default to undefined]
modelChoices Array<string> The models to try [default to undefined]
judgeModel string The model used to judge responses [default to undefined]
variableChoices Array<{ [key: string]: any; }> Sets of prompt variable values to try [default to undefined]
acceptanceStatements Array<AgentOptimizationAcceptanceStatement> Statements a response must satisfy to pass [default to undefined]
judges Array<AgentOptimizationJudge> Judges that score each response [default to undefined]
userInputOptions Array<string> User inputs to test with [default to undefined]
groundTruthResponses Array<string> Expected responses to compare against [default to undefined]
metricKey string The key of the metric to optimize [optional] [default to undefined]
tokenLimit number The maximum number of tokens to use [optional] [default to undefined]
variationKey string The key of the variation to start from [optional] [default to undefined]
label string A label for the optimization [optional] [default to undefined]
latencyOptimization boolean Whether to optimize for lower latency [optional] [default to undefined]
tokenOptimization boolean Whether to optimize for lower token use [optional] [default to undefined]
autoCommit boolean Whether to save the best result as a new variation automatically [optional] [default to undefined]
version number The version number of this resource [default to undefined]
createdAt number When this resource was created, in Unix milliseconds [default to undefined]

Example

import { AgentOptimization } from 'launchdarkly-api-typescript';

const instance: AgentOptimization = {
    _access,
    _links,
    id,
    key,
    aiConfigKey,
    maxAttempts,
    modelChoices,
    judgeModel,
    variableChoices,
    acceptanceStatements,
    judges,
    userInputOptions,
    groundTruthResponses,
    metricKey,
    tokenLimit,
    variationKey,
    label,
    latencyOptimization,
    tokenOptimization,
    autoCommit,
    version,
    createdAt,
};

[Back to Model list] [Back to API list] [Back to README]