Skip to content

Latest commit

 

History

History
46 lines (40 loc) · 2.79 KB

AIConfigVariationPost.md

File metadata and controls

46 lines (40 loc) · 2.79 KB

LaunchDarklyApi::AIConfigVariationPost

Properties

Name Type Description Notes
classifiers Array<Classifier> Classifier rules for a judge variation. When this array is non-empty, messages must be empty. [optional]
comment String Human-readable description of this variation [optional]
description String Returns the description for the agent. This is only returned for agent variations. [optional]
instructions String Returns the instructions for the agent. This is only returned for agent variations. [optional]
key String A unique key for the variation
messages Array<Message> The prompt messages for this variation [optional]
model Object Freeform JSON object. LaunchDarkly does not validate the keys. In a model config, `params` and `customParams` hold parameters that the provider's API accepts, for example `{&quot;temperature&quot;: 0.7, &quot;maxTokens&quot;: 4096}`. [optional]
name String A human-readable name for the variation
model_config_key String The key that GET /api/v2/projects/{projectKey}/ai-configs/model-configs returns for the model config. Do not use a custom model config's ID, which is the provider model ID. [optional]
model_config_version Integer The exact model config version to set this variation to. Requires modelConfigKey to be set, and the version must exist for that model config. When omitted, the variation records the model config's current (latest) version. [optional]
output_format Hash<String, Object> JSON Schema defining the structured output format for the variation. [optional]
tools Array<VariationToolPost> List of tools to use for this variation. The latest version of the tool will be used. [optional]
tool_keys Array<String> List of tool keys to use for this variation. The latest version of the tool will be used. [optional]
skills Array<VariationSkillPost> List of agent skills to attach to this variation. [optional]
judge_configuration JudgeConfiguration [optional]

Example

require 'launchdarkly_api'

instance = LaunchDarklyApi::AIConfigVariationPost.new(
  classifiers: null,
  comment: null,
  description: null,
  instructions: null,
  key: null,
  messages: null,
  model: null,
  name: null,
  model_config_key: OpenAI.gpt-4.1,
  model_config_version: null,
  output_format: null,
  tools: null,
  tool_keys: null,
  skills: null,
  judge_configuration: null
)