Skip to content

Latest commit

 

History

History
71 lines (53 loc) · 2.62 KB

File metadata and controls

71 lines (53 loc) · 2.62 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 either completion or agent. 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