Skip to content

Latest commit

 

History

History
56 lines (43 loc) · 2.07 KB

File metadata and controls

56 lines (43 loc) · 2.07 KB
page_title launchdarkly_ai_config_variation Data Source - launchdarkly
subcategory
description Provides a LaunchDarkly AI Config variation data source. This data source allows you to retrieve AI Config variation information from your LaunchDarkly project.

launchdarkly_ai_config_variation (Data Source)

Provides a LaunchDarkly AI Config variation data source.

This data source allows you to retrieve AI Config variation information from your LaunchDarkly project.

Example Usage

data "launchdarkly_ai_config_variation" "example" {
  project_key = "example-project"
  config_key  = "customer-assistant"
  key         = "default"
}

Schema

Required

  • config_key (String) The AI Config key that this variation belongs to.
  • key (String) The variation's unique key.
  • project_key (String) The project key.

Read-Only

  • creation_date (Number) The creation timestamp of the variation.
  • description (String) The variation's description (used in agent mode).
  • id (String) The ID of this resource.
  • instructions (String) The variation's instructions (used in agent mode).
  • messages (List of Object) A list of messages for completion mode. Each message has a role and content. (see below for nested schema)
  • model (String) A JSON string representing the inline model configuration for the variation. Conflicts with model_config_key.
  • model_config_key (String) The key of a model config resource to use for this variation. Conflicts with model.
  • name (String) The variation's human-readable name.
  • state (String) The state of the variation. Must be archived or published.
  • tool_keys (Set of String) A set of AI tool keys to associate with this variation.
  • variation_id (String) The internal ID of the variation.
  • version (Number) The version number of the variation.

Nested Schema for messages

Read-Only:

  • content (String)
  • role (String)