Skip to content

Latest commit

 

History

History
71 lines (53 loc) · 2.63 KB

File metadata and controls

71 lines (53 loc) · 2.63 KB
page_title launchdarkly_ai_config Resource - launchdarkly
subcategory
description Provides a LaunchDarkly AI Config resource. This resource allows you to create and manage AI Configurations within your LaunchDarkly project.

launchdarkly_ai_config (Resource)

Provides a LaunchDarkly AI Config resource.

This resource allows you to create and manage AI Configurations within your LaunchDarkly project.

Example Usage

resource "launchdarkly_ai_config" "example" {
  project_key = launchdarkly_project.example.key
  key         = "customer-assistant"
  name        = "Customer Assistant"
  description = "AI assistant for customer support"
  mode        = "completion"
  tags        = ["support"]
}

Schema

Required

  • key (String) The AI Config's unique key. A change in this field will force the destruction of the existing resource and the creation of a new one.
  • name (String) The AI Config's human-readable name.
  • project_key (String) The project key. A change in this field will force the destruction of the existing resource and the creation of a new one.

Optional

  • description (String) The AI Config's description.
  • evaluation_metric_key (String) The key of the evaluation metric associated with this AI Config.
  • is_inverted (Boolean) Whether the evaluation metric is inverted.
  • maintainer_id (String) The member ID of the maintainer for this AI Config. Conflicts with maintainer_team_key.
  • maintainer_team_key (String) The team key of the maintainer team for this AI Config. Conflicts with maintainer_id.
  • mode (String) The AI Config's mode. Must be completion, agent, or judge. Defaults to completion. A change in this field will force the destruction of the existing resource and the creation of a new one.
  • tags (Set of String) Tags associated with your resource.

Read-Only

  • creation_date (Number) A timestamp of when the AI Config was created.
  • id (String) The ID of this resource.
  • variations (List of Object) A list of variation summaries for this AI Config. (see below for nested schema)
  • version (Number) The version of the AI Config.

Nested Schema for variations

Read-Only:

  • key (String)
  • name (String)
  • variation_id (String)

Import

Import is supported using the following syntax:

# LaunchDarkly AI Configs can be imported using the format `project_key/config_key`
terraform import launchdarkly_ai_config.example example-project/customer-assistant