provider AI Configs POST /api/v2/projects/{projectKey}/ai-configs/{configKey}/variations
@utdk/launchdarkly /api/v2/projects/{projectKey}/ai-configs/{configKey}/variations
Create AI Config variation
Create a new variation for a given AI Config. The <code>model</code> in the request body requires a <code>modelName</code> and <code>parameters</code>, for example: ``` "model": { "modelName": "claude-3-opus-20240229", "parameters": { "max_tokens": 1024 } } ```
projectKey path required
string
configKey path required
string

Try it

Authentication
Configure credentials for LaunchDarkly REST API
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.

Saved automatically to browser storage.

postaiconfigvariation
POST/api/v2/projects/{projectKey}/ai-configs/{configKey}/variations
Create a new variation for a given AI Config. The <code>model</code> in the request body requires a <code>modelName</code> and <code>parameters</code>, for example: ``` "model": { "modelName": "claude-3-opus-20240229", "parameters": { "max_tokens": 1024 } } ```

Parameters

required
required

Input

Human-readable description of this variation

Returns the description for the agent. This is only returned for agent variations.

Returns the instructions for the agent. This is only returned for agent variations.

required
required

List of tools to use for this variation. The latest version of the tool will be used.

List of tool keys to use for this variation. The latest version of the tool will be used.

Enter a gateway URL above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import launchdarkly from '@utdk/launchdarkly';

await launchdarkly.postaiconfigvariation()