> ## Documentation Index
> Fetch the complete documentation index at: https://docs.pinkfish.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# launchdarkly-ai-configs

> LaunchDarkly AI Configs — manage AI configurations, variations, and tools

**Server path:** `/launchdarkly-ai-configs` | **Type:** Application | **PCID required:** Yes

## Tools

| Tool                                                                                                                                      | Description                               |
| ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------- |
| [`launchdarkly_ai_configs_delete_agent_graph`](#launchdarkly_ai_configs_delete_agent_graph)                                               | Delete agent graph                        |
| [`launchdarkly_ai_configs_delete_agent_optimization`](#launchdarkly_ai_configs_delete_agent_optimization)                                 | Delete an agent optimization              |
| [`launchdarkly_ai_configs_delete_aiconfig`](#launchdarkly_ai_configs_delete_aiconfig)                                                     | Delete AI Config                          |
| [`launchdarkly_ai_configs_delete_aiconfig_variation`](#launchdarkly_ai_configs_delete_aiconfig_variation)                                 | Delete AI Config variation                |
| [`launchdarkly_ai_configs_delete_aitool`](#launchdarkly_ai_configs_delete_aitool)                                                         | Delete AI tool                            |
| [`launchdarkly_ai_configs_delete_model_config`](#launchdarkly_ai_configs_delete_model_config)                                             | Delete an AI model config                 |
| [`launchdarkly_ai_configs_delete_prompt_snippet`](#launchdarkly_ai_configs_delete_prompt_snippet)                                         | Delete a prompt snippet                   |
| [`launchdarkly_ai_configs_delete_restricted_models`](#launchdarkly_ai_configs_delete_restricted_models)                                   | Remove AI models from the restricted list |
| [`launchdarkly_ai_configs_get_agent_graph`](#launchdarkly_ai_configs_get_agent_graph)                                                     | Get agent graph                           |
| [`launchdarkly_ai_configs_get_agent_optimization`](#launchdarkly_ai_configs_get_agent_optimization)                                       | Get an agent optimization                 |
| [`launchdarkly_ai_configs_get_aiconfig`](#launchdarkly_ai_configs_get_aiconfig)                                                           | Get AI Config                             |
| [`launchdarkly_ai_configs_get_aiconfig_metrics`](#launchdarkly_ai_configs_get_aiconfig_metrics)                                           | Get AI Config metrics                     |
| [`launchdarkly_ai_configs_get_aiconfig_metrics_by_variation`](#launchdarkly_ai_configs_get_aiconfig_metrics_by_variation)                 | Get AI Config metrics by variation        |
| [`launchdarkly_ai_configs_get_aiconfig_quick_stats`](#launchdarkly_ai_configs_get_aiconfig_quick_stats)                                   | Get AI Config quick stats                 |
| [`launchdarkly_ai_configs_get_aiconfig_targeting`](#launchdarkly_ai_configs_get_aiconfig_targeting)                                       | Show an AI Config's targeting             |
| [`launchdarkly_ai_configs_get_aiconfig_variation`](#launchdarkly_ai_configs_get_aiconfig_variation)                                       | Get AI Config variation                   |
| [`launchdarkly_ai_configs_get_aiconfigs`](#launchdarkly_ai_configs_get_aiconfigs)                                                         | List AI Configs                           |
| [`launchdarkly_ai_configs_get_aitool`](#launchdarkly_ai_configs_get_aitool)                                                               | Get AI tool                               |
| [`launchdarkly_ai_configs_get_model_config`](#launchdarkly_ai_configs_get_model_config)                                                   | Get AI model config                       |
| [`launchdarkly_ai_configs_get_prompt_snippet`](#launchdarkly_ai_configs_get_prompt_snippet)                                               | Get a prompt snippet                      |
| [`launchdarkly_ai_configs_list_agent_graphs`](#launchdarkly_ai_configs_list_agent_graphs)                                                 | List agent graphs                         |
| [`launchdarkly_ai_configs_list_agent_optimization_results`](#launchdarkly_ai_configs_list_agent_optimization_results)                     | List agent optimization runs              |
| [`launchdarkly_ai_configs_list_agent_optimization_results_by_run_id`](#launchdarkly_ai_configs_list_agent_optimization_results_by_run_id) | List agent optimization results for a run |
| [`launchdarkly_ai_configs_list_agent_optimizations`](#launchdarkly_ai_configs_list_agent_optimizations)                                   | List agent optimizations                  |
| [`launchdarkly_ai_configs_list_aitool_versions`](#launchdarkly_ai_configs_list_aitool_versions)                                           | List AI tool versions                     |
| [`launchdarkly_ai_configs_list_aitools`](#launchdarkly_ai_configs_list_aitools)                                                           | List AI tools                             |
| [`launchdarkly_ai_configs_list_model_configs`](#launchdarkly_ai_configs_list_model_configs)                                               | List AI model configs                     |
| [`launchdarkly_ai_configs_list_prompt_snippet_references`](#launchdarkly_ai_configs_list_prompt_snippet_references)                       | List prompt snippet references            |
| [`launchdarkly_ai_configs_list_prompt_snippets`](#launchdarkly_ai_configs_list_prompt_snippets)                                           | List prompt snippets                      |
| [`launchdarkly_ai_configs_patch_agent_graph`](#launchdarkly_ai_configs_patch_agent_graph)                                                 | Update agent graph                        |
| [`launchdarkly_ai_configs_patch_agent_optimization`](#launchdarkly_ai_configs_patch_agent_optimization)                                   | Update an agent optimization              |
| [`launchdarkly_ai_configs_patch_agent_optimization_result`](#launchdarkly_ai_configs_patch_agent_optimization_result)                     | Update an agent optimization result       |
| [`launchdarkly_ai_configs_patch_aiconfig`](#launchdarkly_ai_configs_patch_aiconfig)                                                       | Update AI Config                          |
| [`launchdarkly_ai_configs_patch_aiconfig_targeting`](#launchdarkly_ai_configs_patch_aiconfig_targeting)                                   | Update AI Config targeting                |
| [`launchdarkly_ai_configs_patch_aiconfig_variation`](#launchdarkly_ai_configs_patch_aiconfig_variation)                                   | Update AI Config variation                |
| [`launchdarkly_ai_configs_patch_aitool`](#launchdarkly_ai_configs_patch_aitool)                                                           | Update AI tool                            |
| [`launchdarkly_ai_configs_patch_prompt_snippet`](#launchdarkly_ai_configs_patch_prompt_snippet)                                           | Update a prompt snippet                   |
| [`launchdarkly_ai_configs_post_agent_graph`](#launchdarkly_ai_configs_post_agent_graph)                                                   | Create new agent graph                    |
| [`launchdarkly_ai_configs_post_agent_optimization`](#launchdarkly_ai_configs_post_agent_optimization)                                     | Create agent optimization                 |
| [`launchdarkly_ai_configs_post_agent_optimization_result`](#launchdarkly_ai_configs_post_agent_optimization_result)                       | Create agent optimization result          |
| [`launchdarkly_ai_configs_post_aiconfig`](#launchdarkly_ai_configs_post_aiconfig)                                                         | Create new AI Config                      |
| [`launchdarkly_ai_configs_post_aiconfig_variation`](#launchdarkly_ai_configs_post_aiconfig_variation)                                     | Create AI Config variation                |
| [`launchdarkly_ai_configs_post_aitool`](#launchdarkly_ai_configs_post_aitool)                                                             | Create an AI tool                         |
| [`launchdarkly_ai_configs_post_model_config`](#launchdarkly_ai_configs_post_model_config)                                                 | Create an AI model config                 |
| [`launchdarkly_ai_configs_post_prompt_snippet`](#launchdarkly_ai_configs_post_prompt_snippet)                                             | Create a prompt snippet                   |
| [`launchdarkly_ai_configs_post_restricted_models`](#launchdarkly_ai_configs_post_restricted_models)                                       | Add AI models to the restricted list      |

***

## launchdarkly\_ai\_configs\_delete\_agent\_graph

Delete agent graph

**Parameters:**

| Parameter        | Type   | Required | Default | Description              |
| ---------------- | ------ | -------- | ------- | ------------------------ |
| `LD-API-Version` | string | Yes      | —       | Version of the endpoint. |
| `projectKey`     | string | Yes      | —       | Project Key              |
| `graphKey`       | string | Yes      | —       | Graph Key                |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "LD-API-Version": {
        "type": "string",
        "description": "Version of the endpoint.",
        "enum": [
          "beta"
        ]
      },
      "projectKey": {
        "type": "string",
        "description": "Project Key"
      },
      "graphKey": {
        "type": "string",
        "description": "Graph Key"
      }
    },
    "required": [
      "PCID",
      "LD-API-Version",
      "projectKey",
      "graphKey"
    ]
  }
  ```
</Expandable>

***

## launchdarkly\_ai\_configs\_delete\_agent\_optimization

Delete an agent optimization

**Parameters:**

| Parameter         | Type   | Required | Default | Description      |
| ----------------- | ------ | -------- | ------- | ---------------- |
| `projectKey`      | string | Yes      | —       | Project Key      |
| `optimizationKey` | string | Yes      | —       | Optimization Key |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "projectKey": {
        "type": "string",
        "description": "Project Key"
      },
      "optimizationKey": {
        "type": "string",
        "description": "Optimization Key"
      }
    },
    "required": [
      "PCID",
      "projectKey",
      "optimizationKey"
    ]
  }
  ```
</Expandable>

***

## launchdarkly\_ai\_configs\_delete\_aiconfig

Delete AI Config

**Parameters:**

| Parameter    | Type   | Required | Default | Description |
| ------------ | ------ | -------- | ------- | ----------- |
| `projectKey` | string | Yes      | —       | Project Key |
| `configKey`  | string | Yes      | —       | Config Key  |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "projectKey": {
        "type": "string",
        "description": "Project Key"
      },
      "configKey": {
        "type": "string",
        "description": "Config Key"
      }
    },
    "required": [
      "PCID",
      "projectKey",
      "configKey"
    ]
  }
  ```
</Expandable>

***

## launchdarkly\_ai\_configs\_delete\_aiconfig\_variation

Delete AI Config variation

**Parameters:**

| Parameter      | Type   | Required | Default | Description   |
| -------------- | ------ | -------- | ------- | ------------- |
| `projectKey`   | string | Yes      | —       | Project Key   |
| `configKey`    | string | Yes      | —       | Config Key    |
| `variationKey` | string | Yes      | —       | Variation Key |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "projectKey": {
        "type": "string",
        "description": "Project Key"
      },
      "configKey": {
        "type": "string",
        "description": "Config Key"
      },
      "variationKey": {
        "type": "string",
        "description": "Variation Key"
      }
    },
    "required": [
      "PCID",
      "projectKey",
      "configKey",
      "variationKey"
    ]
  }
  ```
</Expandable>

***

## launchdarkly\_ai\_configs\_delete\_aitool

Delete AI tool

**Parameters:**

| Parameter    | Type   | Required | Default | Description |
| ------------ | ------ | -------- | ------- | ----------- |
| `projectKey` | string | Yes      | —       | Project Key |
| `toolKey`    | string | Yes      | —       | Tool Key    |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "projectKey": {
        "type": "string",
        "description": "Project Key"
      },
      "toolKey": {
        "type": "string",
        "description": "Tool Key"
      }
    },
    "required": [
      "PCID",
      "projectKey",
      "toolKey"
    ]
  }
  ```
</Expandable>

***

## launchdarkly\_ai\_configs\_delete\_model\_config

Delete an AI model config

**Parameters:**

| Parameter        | Type   | Required | Default | Description      |
| ---------------- | ------ | -------- | ------- | ---------------- |
| `projectKey`     | string | Yes      | —       | Project Key      |
| `modelConfigKey` | string | Yes      | —       | Model Config Key |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "projectKey": {
        "type": "string",
        "description": "Project Key"
      },
      "modelConfigKey": {
        "type": "string",
        "description": "Model Config Key"
      }
    },
    "required": [
      "PCID",
      "projectKey",
      "modelConfigKey"
    ]
  }
  ```
</Expandable>

***

## launchdarkly\_ai\_configs\_delete\_prompt\_snippet

Delete a prompt snippet

**Parameters:**

| Parameter    | Type   | Required | Default | Description |
| ------------ | ------ | -------- | ------- | ----------- |
| `projectKey` | string | Yes      | —       | Project Key |
| `snippetKey` | string | Yes      | —       | Snippet Key |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "projectKey": {
        "type": "string",
        "description": "Project Key"
      },
      "snippetKey": {
        "type": "string",
        "description": "Snippet Key"
      }
    },
    "required": [
      "PCID",
      "projectKey",
      "snippetKey"
    ]
  }
  ```
</Expandable>

***

## launchdarkly\_ai\_configs\_delete\_restricted\_models

Remove AI models from the restricted list

**Parameters:**

| Parameter    | Type      | Required | Default | Description    |
| ------------ | --------- | -------- | ------- | -------------- |
| `projectKey` | string    | Yes      | —       | Project Key    |
| `keys`       | string\[] | Yes      | —       | The keys value |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "projectKey": {
        "type": "string",
        "description": "Project Key"
      },
      "keys": {
        "type": "array",
        "items": {
          "type": "string"
        },
        "description": "The keys value"
      }
    },
    "required": [
      "PCID",
      "projectKey",
      "keys"
    ]
  }
  ```
</Expandable>

***

## launchdarkly\_ai\_configs\_get\_agent\_graph

Get agent graph

**Parameters:**

| Parameter        | Type   | Required | Default | Description              |
| ---------------- | ------ | -------- | ------- | ------------------------ |
| `LD-API-Version` | string | Yes      | —       | Version of the endpoint. |
| `projectKey`     | string | Yes      | —       | Project Key              |
| `graphKey`       | string | Yes      | —       | Graph Key                |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "LD-API-Version": {
        "type": "string",
        "description": "Version of the endpoint.",
        "enum": [
          "beta"
        ]
      },
      "projectKey": {
        "type": "string",
        "description": "Project Key"
      },
      "graphKey": {
        "type": "string",
        "description": "Graph Key"
      }
    },
    "required": [
      "PCID",
      "LD-API-Version",
      "projectKey",
      "graphKey"
    ]
  }
  ```
</Expandable>

***

## launchdarkly\_ai\_configs\_get\_agent\_optimization

Get an agent optimization

**Parameters:**

| Parameter         | Type   | Required | Default | Description      |
| ----------------- | ------ | -------- | ------- | ---------------- |
| `projectKey`      | string | Yes      | —       | Project Key      |
| `optimizationKey` | string | Yes      | —       | Optimization Key |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "projectKey": {
        "type": "string",
        "description": "Project Key"
      },
      "optimizationKey": {
        "type": "string",
        "description": "Optimization Key"
      }
    },
    "required": [
      "PCID",
      "projectKey",
      "optimizationKey"
    ]
  }
  ```
</Expandable>

***

## launchdarkly\_ai\_configs\_get\_aiconfig

Get AI Config

**Parameters:**

| Parameter    | Type   | Required | Default | Description |
| ------------ | ------ | -------- | ------- | ----------- |
| `projectKey` | string | Yes      | —       | Project Key |
| `configKey`  | string | Yes      | —       | Config Key  |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "projectKey": {
        "type": "string",
        "description": "Project Key"
      },
      "configKey": {
        "type": "string",
        "description": "Config Key"
      }
    },
    "required": [
      "PCID",
      "projectKey",
      "configKey"
    ]
  }
  ```
</Expandable>

***

## launchdarkly\_ai\_configs\_get\_aiconfig\_metrics

Get AI Config metrics

**Parameters:**

| Parameter    | Type    | Required | Default | Description                                                                                           |
| ------------ | ------- | -------- | ------- | ----------------------------------------------------------------------------------------------------- |
| `projectKey` | string  | Yes      | —       | Project Key                                                                                           |
| `configKey`  | string  | Yes      | —       | Config Key                                                                                            |
| `from`       | integer | Yes      | —       | The starting time, as milliseconds since epoch (inclusive).                                           |
| `to`         | integer | Yes      | —       | The ending time, as milliseconds since epoch (exclusive). May not be more than 100 days after `from`. |
| `env`        | string  | Yes      | —       | An environment key. Only metrics from this environment will be included.                              |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "projectKey": {
        "type": "string",
        "description": "Project Key"
      },
      "configKey": {
        "type": "string",
        "description": "Config Key"
      },
      "from": {
        "type": "integer",
        "description": "The starting time, as milliseconds since epoch (inclusive)."
      },
      "to": {
        "type": "integer",
        "description": "The ending time, as milliseconds since epoch (exclusive). May not be more than 100 days after `from`."
      },
      "env": {
        "type": "string",
        "description": "An environment key. Only metrics from this environment will be included."
      }
    },
    "required": [
      "PCID",
      "projectKey",
      "configKey",
      "from",
      "to",
      "env"
    ]
  }
  ```
</Expandable>

***

## launchdarkly\_ai\_configs\_get\_aiconfig\_metrics\_by\_variation

Get AI Config metrics by variation

**Parameters:**

| Parameter    | Type    | Required | Default | Description                                                                                           |
| ------------ | ------- | -------- | ------- | ----------------------------------------------------------------------------------------------------- |
| `projectKey` | string  | Yes      | —       | Project Key                                                                                           |
| `configKey`  | string  | Yes      | —       | Config Key                                                                                            |
| `from`       | integer | Yes      | —       | The starting time, as milliseconds since epoch (inclusive).                                           |
| `to`         | integer | Yes      | —       | The ending time, as milliseconds since epoch (exclusive). May not be more than 100 days after `from`. |
| `env`        | string  | Yes      | —       | An environment key. Only metrics from this environment will be included.                              |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "projectKey": {
        "type": "string",
        "description": "Project Key"
      },
      "configKey": {
        "type": "string",
        "description": "Config Key"
      },
      "from": {
        "type": "integer",
        "description": "The starting time, as milliseconds since epoch (inclusive)."
      },
      "to": {
        "type": "integer",
        "description": "The ending time, as milliseconds since epoch (exclusive). May not be more than 100 days after `from`."
      },
      "env": {
        "type": "string",
        "description": "An environment key. Only metrics from this environment will be included."
      }
    },
    "required": [
      "PCID",
      "projectKey",
      "configKey",
      "from",
      "to",
      "env"
    ]
  }
  ```
</Expandable>

***

## launchdarkly\_ai\_configs\_get\_aiconfig\_quick\_stats

Get AI Config quick stats

**Parameters:**

| Parameter    | Type   | Required | Default | Description                                                              |
| ------------ | ------ | -------- | ------- | ------------------------------------------------------------------------ |
| `projectKey` | string | Yes      | —       | Project Key                                                              |
| `env`        | string | Yes      | —       | An environment key. Only metrics from this environment will be included. |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "projectKey": {
        "type": "string",
        "description": "Project Key"
      },
      "env": {
        "type": "string",
        "description": "An environment key. Only metrics from this environment will be included."
      }
    },
    "required": [
      "PCID",
      "projectKey",
      "env"
    ]
  }
  ```
</Expandable>

***

## launchdarkly\_ai\_configs\_get\_aiconfig\_targeting

Show an AI Config's targeting

**Parameters:**

| Parameter    | Type   | Required | Default | Description |
| ------------ | ------ | -------- | ------- | ----------- |
| `projectKey` | string | Yes      | —       | Project Key |
| `configKey`  | string | Yes      | —       | Config Key  |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "projectKey": {
        "type": "string",
        "description": "Project Key"
      },
      "configKey": {
        "type": "string",
        "description": "Config Key"
      }
    },
    "required": [
      "PCID",
      "projectKey",
      "configKey"
    ]
  }
  ```
</Expandable>

***

## launchdarkly\_ai\_configs\_get\_aiconfig\_variation

Get AI Config variation

**Parameters:**

| Parameter      | Type   | Required | Default | Description   |
| -------------- | ------ | -------- | ------- | ------------- |
| `projectKey`   | string | Yes      | —       | Project Key   |
| `configKey`    | string | Yes      | —       | Config Key    |
| `variationKey` | string | Yes      | —       | Variation Key |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "projectKey": {
        "type": "string",
        "description": "Project Key"
      },
      "configKey": {
        "type": "string",
        "description": "Config Key"
      },
      "variationKey": {
        "type": "string",
        "description": "Variation Key"
      }
    },
    "required": [
      "PCID",
      "projectKey",
      "configKey",
      "variationKey"
    ]
  }
  ```
</Expandable>

***

## launchdarkly\_ai\_configs\_get\_aiconfigs

List AI Configs

**Parameters:**

| Parameter    | Type    | Required | Default | Description                                                                                                                                                                        |
| ------------ | ------- | -------- | ------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `projectKey` | string  | Yes      | —       | Project Key                                                                                                                                                                        |
| `sort`       | string  | No       | —       | A sort to apply to the list of AI Configs.                                                                                                                                         |
| `limit`      | integer | No       | —       | The number of resources to return.                                                                                                                                                 |
| `offset`     | integer | No       | —       | Where to start in the list. Use this with pagination. For example, an offset of 10 skips the first ten items and then returns the next items in the list, up to the query `limit`. |
| `filter`     | string  | No       | —       | A filter to apply to the list.                                                                                                                                                     |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "projectKey": {
        "type": "string",
        "description": "Project Key"
      },
      "sort": {
        "type": "string",
        "description": "A sort to apply to the list of AI Configs."
      },
      "limit": {
        "type": "integer",
        "description": "The number of resources to return."
      },
      "offset": {
        "type": "integer",
        "description": "Where to start in the list. Use this with pagination. For example, an offset of 10 skips the first ten items and then returns the next items in the list, up to the query `limit`."
      },
      "filter": {
        "type": "string",
        "description": "A filter to apply to the list."
      }
    },
    "required": [
      "PCID",
      "projectKey"
    ]
  }
  ```
</Expandable>

***

## launchdarkly\_ai\_configs\_get\_aitool

Get AI tool

**Parameters:**

| Parameter    | Type   | Required | Default | Description |
| ------------ | ------ | -------- | ------- | ----------- |
| `projectKey` | string | Yes      | —       | Project Key |
| `toolKey`    | string | Yes      | —       | Tool Key    |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "projectKey": {
        "type": "string",
        "description": "Project Key"
      },
      "toolKey": {
        "type": "string",
        "description": "Tool Key"
      }
    },
    "required": [
      "PCID",
      "projectKey",
      "toolKey"
    ]
  }
  ```
</Expandable>

***

## launchdarkly\_ai\_configs\_get\_model\_config

Get AI model config

**Parameters:**

| Parameter        | Type   | Required | Default | Description      |
| ---------------- | ------ | -------- | ------- | ---------------- |
| `projectKey`     | string | Yes      | —       | Project Key      |
| `modelConfigKey` | string | Yes      | —       | Model Config Key |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "projectKey": {
        "type": "string",
        "description": "Project Key"
      },
      "modelConfigKey": {
        "type": "string",
        "description": "Model Config Key"
      }
    },
    "required": [
      "PCID",
      "projectKey",
      "modelConfigKey"
    ]
  }
  ```
</Expandable>

***

## launchdarkly\_ai\_configs\_get\_prompt\_snippet

Get a prompt snippet

**Parameters:**

| Parameter    | Type   | Required | Default | Description |
| ------------ | ------ | -------- | ------- | ----------- |
| `projectKey` | string | Yes      | —       | Project Key |
| `snippetKey` | string | Yes      | —       | Snippet Key |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "projectKey": {
        "type": "string",
        "description": "Project Key"
      },
      "snippetKey": {
        "type": "string",
        "description": "Snippet Key"
      }
    },
    "required": [
      "PCID",
      "projectKey",
      "snippetKey"
    ]
  }
  ```
</Expandable>

***

## launchdarkly\_ai\_configs\_list\_agent\_graphs

List agent graphs

**Parameters:**

| Parameter        | Type    | Required | Default | Description                                                                                                                                                                        |
| ---------------- | ------- | -------- | ------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `LD-API-Version` | string  | Yes      | —       | Version of the endpoint.                                                                                                                                                           |
| `projectKey`     | string  | Yes      | —       | Project Key                                                                                                                                                                        |
| `limit`          | integer | No       | —       | The number of resources to return.                                                                                                                                                 |
| `offset`         | integer | No       | —       | Where to start in the list. Use this with pagination. For example, an offset of 10 skips the first ten items and then returns the next items in the list, up to the query `limit`. |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "LD-API-Version": {
        "type": "string",
        "description": "Version of the endpoint.",
        "enum": [
          "beta"
        ]
      },
      "projectKey": {
        "type": "string",
        "description": "Project Key"
      },
      "limit": {
        "type": "integer",
        "description": "The number of resources to return."
      },
      "offset": {
        "type": "integer",
        "description": "Where to start in the list. Use this with pagination. For example, an offset of 10 skips the first ten items and then returns the next items in the list, up to the query `limit`."
      }
    },
    "required": [
      "PCID",
      "LD-API-Version",
      "projectKey"
    ]
  }
  ```
</Expandable>

***

## launchdarkly\_ai\_configs\_list\_agent\_optimization\_results

List agent optimization runs

**Parameters:**

| Parameter         | Type    | Required | Default | Description                                                                                                                                                                        |
| ----------------- | ------- | -------- | ------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `projectKey`      | string  | Yes      | —       | Project Key                                                                                                                                                                        |
| `optimizationKey` | string  | Yes      | —       | Optimization Key                                                                                                                                                                   |
| `limit`           | integer | No       | —       | The number of resources to return.                                                                                                                                                 |
| `offset`          | integer | No       | —       | Where to start in the list. Use this with pagination. For example, an offset of 10 skips the first ten items and then returns the next items in the list, up to the query `limit`. |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "projectKey": {
        "type": "string",
        "description": "Project Key"
      },
      "optimizationKey": {
        "type": "string",
        "description": "Optimization Key"
      },
      "limit": {
        "type": "integer",
        "description": "The number of resources to return."
      },
      "offset": {
        "type": "integer",
        "description": "Where to start in the list. Use this with pagination. For example, an offset of 10 skips the first ten items and then returns the next items in the list, up to the query `limit`."
      }
    },
    "required": [
      "PCID",
      "projectKey",
      "optimizationKey"
    ]
  }
  ```
</Expandable>

***

## launchdarkly\_ai\_configs\_list\_agent\_optimization\_results\_by\_run\_id

List agent optimization results for a run

**Parameters:**

| Parameter         | Type   | Required | Default | Description      |
| ----------------- | ------ | -------- | ------- | ---------------- |
| `projectKey`      | string | Yes      | —       | Project Key      |
| `optimizationKey` | string | Yes      | —       | Optimization Key |
| `runId`           | string | Yes      | —       | Run Id           |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "projectKey": {
        "type": "string",
        "description": "Project Key"
      },
      "optimizationKey": {
        "type": "string",
        "description": "Optimization Key"
      },
      "runId": {
        "type": "string",
        "description": "Run Id"
      }
    },
    "required": [
      "PCID",
      "projectKey",
      "optimizationKey",
      "runId"
    ]
  }
  ```
</Expandable>

***

## launchdarkly\_ai\_configs\_list\_agent\_optimizations

List agent optimizations

**Parameters:**

| Parameter    | Type    | Required | Default | Description                                                                                                                                                                        |
| ------------ | ------- | -------- | ------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `projectKey` | string  | Yes      | —       | Project Key                                                                                                                                                                        |
| `limit`      | integer | No       | —       | The number of resources to return.                                                                                                                                                 |
| `offset`     | integer | No       | —       | Where to start in the list. Use this with pagination. For example, an offset of 10 skips the first ten items and then returns the next items in the list, up to the query `limit`. |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "projectKey": {
        "type": "string",
        "description": "Project Key"
      },
      "limit": {
        "type": "integer",
        "description": "The number of resources to return."
      },
      "offset": {
        "type": "integer",
        "description": "Where to start in the list. Use this with pagination. For example, an offset of 10 skips the first ten items and then returns the next items in the list, up to the query `limit`."
      }
    },
    "required": [
      "PCID",
      "projectKey"
    ]
  }
  ```
</Expandable>

***

## launchdarkly\_ai\_configs\_list\_aitool\_versions

List AI tool versions

**Parameters:**

| Parameter    | Type    | Required | Default | Description                                                                                                                                                                        |
| ------------ | ------- | -------- | ------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `projectKey` | string  | Yes      | —       | Project Key                                                                                                                                                                        |
| `toolKey`    | string  | Yes      | —       | Tool Key                                                                                                                                                                           |
| `sort`       | string  | No       | —       | A sort to apply to the list of AI Configs.                                                                                                                                         |
| `limit`      | integer | No       | —       | The number of resources to return.                                                                                                                                                 |
| `offset`     | integer | No       | —       | Where to start in the list. Use this with pagination. For example, an offset of 10 skips the first ten items and then returns the next items in the list, up to the query `limit`. |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "projectKey": {
        "type": "string",
        "description": "Project Key"
      },
      "toolKey": {
        "type": "string",
        "description": "Tool Key"
      },
      "sort": {
        "type": "string",
        "description": "A sort to apply to the list of AI Configs."
      },
      "limit": {
        "type": "integer",
        "description": "The number of resources to return."
      },
      "offset": {
        "type": "integer",
        "description": "Where to start in the list. Use this with pagination. For example, an offset of 10 skips the first ten items and then returns the next items in the list, up to the query `limit`."
      }
    },
    "required": [
      "PCID",
      "projectKey",
      "toolKey"
    ]
  }
  ```
</Expandable>

***

## launchdarkly\_ai\_configs\_list\_aitools

List AI tools

**Parameters:**

| Parameter    | Type    | Required | Default | Description                                                                                                                                                                        |
| ------------ | ------- | -------- | ------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `projectKey` | string  | Yes      | —       | Project Key                                                                                                                                                                        |
| `sort`       | string  | No       | —       | A sort to apply to the list of AI Configs.                                                                                                                                         |
| `limit`      | integer | No       | —       | The number of resources to return.                                                                                                                                                 |
| `offset`     | integer | No       | —       | Where to start in the list. Use this with pagination. For example, an offset of 10 skips the first ten items and then returns the next items in the list, up to the query `limit`. |
| `filter`     | string  | No       | —       | A filter to apply to the list.                                                                                                                                                     |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "projectKey": {
        "type": "string",
        "description": "Project Key"
      },
      "sort": {
        "type": "string",
        "description": "A sort to apply to the list of AI Configs."
      },
      "limit": {
        "type": "integer",
        "description": "The number of resources to return."
      },
      "offset": {
        "type": "integer",
        "description": "Where to start in the list. Use this with pagination. For example, an offset of 10 skips the first ten items and then returns the next items in the list, up to the query `limit`."
      },
      "filter": {
        "type": "string",
        "description": "A filter to apply to the list."
      }
    },
    "required": [
      "PCID",
      "projectKey"
    ]
  }
  ```
</Expandable>

***

## launchdarkly\_ai\_configs\_list\_model\_configs

List AI model configs

**Parameters:**

| Parameter    | Type    | Required | Default | Description                              |
| ------------ | ------- | -------- | ------- | ---------------------------------------- |
| `projectKey` | string  | Yes      | —       | Project Key                              |
| `restricted` | boolean | No       | —       | Whether to return only restricted models |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "projectKey": {
        "type": "string",
        "description": "Project Key"
      },
      "restricted": {
        "type": "boolean",
        "description": "Whether to return only restricted models"
      }
    },
    "required": [
      "PCID",
      "projectKey"
    ]
  }
  ```
</Expandable>

***

## launchdarkly\_ai\_configs\_list\_prompt\_snippet\_references

List prompt snippet references

**Parameters:**

| Parameter    | Type    | Required | Default | Description                                                                                                                                                                        |
| ------------ | ------- | -------- | ------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `projectKey` | string  | Yes      | —       | Project Key                                                                                                                                                                        |
| `snippetKey` | string  | Yes      | —       | Snippet Key                                                                                                                                                                        |
| `limit`      | integer | No       | —       | The number of resources to return.                                                                                                                                                 |
| `offset`     | integer | No       | —       | Where to start in the list. Use this with pagination. For example, an offset of 10 skips the first ten items and then returns the next items in the list, up to the query `limit`. |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "projectKey": {
        "type": "string",
        "description": "Project Key"
      },
      "snippetKey": {
        "type": "string",
        "description": "Snippet Key"
      },
      "limit": {
        "type": "integer",
        "description": "The number of resources to return."
      },
      "offset": {
        "type": "integer",
        "description": "Where to start in the list. Use this with pagination. For example, an offset of 10 skips the first ten items and then returns the next items in the list, up to the query `limit`."
      }
    },
    "required": [
      "PCID",
      "projectKey",
      "snippetKey"
    ]
  }
  ```
</Expandable>

***

## launchdarkly\_ai\_configs\_list\_prompt\_snippets

List prompt snippets

**Parameters:**

| Parameter    | Type    | Required | Default | Description                                                                                                                                                                        |
| ------------ | ------- | -------- | ------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `projectKey` | string  | Yes      | —       | Project Key                                                                                                                                                                        |
| `limit`      | integer | No       | —       | The number of resources to return.                                                                                                                                                 |
| `offset`     | integer | No       | —       | Where to start in the list. Use this with pagination. For example, an offset of 10 skips the first ten items and then returns the next items in the list, up to the query `limit`. |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "projectKey": {
        "type": "string",
        "description": "Project Key"
      },
      "limit": {
        "type": "integer",
        "description": "The number of resources to return."
      },
      "offset": {
        "type": "integer",
        "description": "Where to start in the list. Use this with pagination. For example, an offset of 10 skips the first ten items and then returns the next items in the list, up to the query `limit`."
      }
    },
    "required": [
      "PCID",
      "projectKey"
    ]
  }
  ```
</Expandable>

***

## launchdarkly\_ai\_configs\_patch\_agent\_graph

Update agent graph

**Parameters:**

| Parameter           | Type      | Required | Default | Description                                                                                          |
| ------------------- | --------- | -------- | ------- | ---------------------------------------------------------------------------------------------------- |
| `LD-API-Version`    | string    | Yes      | —       | Version of the endpoint.                                                                             |
| `projectKey`        | string    | Yes      | —       | Project Key                                                                                          |
| `graphKey`          | string    | Yes      | —       | Graph Key                                                                                            |
| `description`       | string    | No       | —       | A description of the agent graph                                                                     |
| `edges`             | object\[] | No       | —       | The edges in the graph. If present, rootConfigKey must also be present. Replaces all existing edges. |
| `maintainerId`      | string    | No       | —       | The ID of the member who maintains this agent graph. Pass an empty string to remove maintainer.      |
| `maintainerTeamKey` | string    | No       | —       | The key of the team that maintains this agent graph. Pass an empty string to remove maintainer.      |
| `name`              | string    | No       | —       | A human-readable name for the agent graph                                                            |
| `rootConfigKey`     | string    | No       | —       | The AI Config key of the root node. If present, edges must also be present.                          |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "LD-API-Version": {
        "type": "string",
        "description": "Version of the endpoint.",
        "enum": [
          "beta"
        ]
      },
      "projectKey": {
        "type": "string",
        "description": "Project Key"
      },
      "graphKey": {
        "type": "string",
        "description": "Graph Key"
      },
      "description": {
        "type": "string",
        "description": "A description of the agent graph"
      },
      "edges": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "key": {
              "type": "string",
              "description": "A unique key for this edge within the graph"
            },
            "sourceConfig": {
              "type": "string",
              "description": "The AI Config key that is the source of this edge"
            },
            "targetConfig": {
              "type": "string",
              "description": "The AI Config key that is the target of this edge"
            },
            "handoff": {
              "type": "object",
              "description": "The handoff options from the source AI Config to the target AI Config"
            }
          },
          "required": [
            "key",
            "sourceConfig",
            "targetConfig"
          ]
        },
        "description": "The edges in the graph. If present, rootConfigKey must also be present. Replaces all existing edges."
      },
      "maintainerId": {
        "type": "string",
        "description": "The ID of the member who maintains this agent graph. Pass an empty string to remove maintainer."
      },
      "maintainerTeamKey": {
        "type": "string",
        "description": "The key of the team that maintains this agent graph. Pass an empty string to remove maintainer."
      },
      "name": {
        "type": "string",
        "description": "A human-readable name for the agent graph"
      },
      "rootConfigKey": {
        "type": "string",
        "description": "The AI Config key of the root node. If present, edges must also be present."
      }
    },
    "required": [
      "PCID",
      "LD-API-Version",
      "projectKey",
      "graphKey"
    ]
  }
  ```
</Expandable>

***

## launchdarkly\_ai\_configs\_patch\_agent\_optimization

Update an agent optimization

**Parameters:**

| Parameter              | Type      | Required | Default | Description            |
| ---------------------- | --------- | -------- | ------- | ---------------------- |
| `projectKey`           | string    | Yes      | —       | Project Key            |
| `optimizationKey`      | string    | Yes      | —       | Optimization Key       |
| `acceptanceStatements` | object\[] | No       | —       | Acceptance Statements  |
| `groundTruthResponses` | string\[] | No       | —       | Ground Truth Responses |
| `judgeModel`           | string    | No       | —       | Judge Model            |
| `judges`               | object\[] | No       | —       | The judges value       |
| `maxAttempts`          | integer   | No       | —       | Max Attempts           |
| `metricKey`            | string    | No       | —       | Metric Key             |
| `modelChoices`         | string\[] | No       | —       | Model Choices          |
| `userInputOptions`     | string\[] | No       | —       | User Input Options     |
| `variableChoices`      | object\[] | No       | —       | Variable Choices       |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "projectKey": {
        "type": "string",
        "description": "Project Key"
      },
      "optimizationKey": {
        "type": "string",
        "description": "Optimization Key"
      },
      "acceptanceStatements": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "statement": {
              "type": "string",
              "description": "The statement value"
            },
            "threshold": {
              "type": "number",
              "format": "double",
              "description": "The threshold value"
            }
          },
          "required": [
            "statement",
            "threshold"
          ]
        },
        "description": "Acceptance Statements"
      },
      "groundTruthResponses": {
        "type": "array",
        "items": {
          "type": "string"
        },
        "description": "Ground Truth Responses"
      },
      "judgeModel": {
        "type": "string",
        "description": "Judge Model"
      },
      "judges": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "key": {
              "type": "string",
              "description": "The key value"
            },
            "threshold": {
              "type": "number",
              "format": "double",
              "description": "The threshold value"
            }
          },
          "required": [
            "key",
            "threshold"
          ]
        },
        "description": "The judges value"
      },
      "maxAttempts": {
        "type": "integer",
        "description": "Max Attempts"
      },
      "metricKey": {
        "type": "string",
        "description": "Metric Key"
      },
      "modelChoices": {
        "type": "array",
        "items": {
          "type": "string"
        },
        "description": "Model Choices"
      },
      "userInputOptions": {
        "type": "array",
        "items": {
          "type": "string"
        },
        "description": "User Input Options"
      },
      "variableChoices": {
        "type": "array",
        "items": {
          "type": "object"
        },
        "description": "Variable Choices"
      }
    },
    "required": [
      "PCID",
      "projectKey",
      "optimizationKey"
    ]
  }
  ```
</Expandable>

***

## launchdarkly\_ai\_configs\_patch\_agent\_optimization\_result

Update an agent optimization result

**Parameters:**

| Parameter             | Type    | Required | Default | Description           |
| --------------------- | ------- | -------- | ------- | --------------------- |
| `projectKey`          | string  | Yes      | —       | Project Key           |
| `optimizationKey`     | string  | Yes      | —       | Optimization Key      |
| `resultId`            | string  | Yes      | —       | Result Id             |
| `activity`            | string  | No       | —       | The activity value    |
| `completionResponse`  | string  | No       | —       | Completion Response   |
| `createdVariationKey` | string  | No       | —       | Created Variation Key |
| `evaluationLatencies` | object  | No       | —       | Evaluation Latencies  |
| `evaluationTokens`    | object  | No       | —       | Evaluation Tokens     |
| `generationLatency`   | integer | No       | —       | Generation Latency    |
| `generationTokens`    | object  | No       | —       | Generation Tokens     |
| `scores`              | object  | No       | —       | The scores value      |
| `status`              | string  | No       | —       | The status value      |
| `variation`           | object  | No       | —       | The variation value   |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "projectKey": {
        "type": "string",
        "description": "Project Key"
      },
      "optimizationKey": {
        "type": "string",
        "description": "Optimization Key"
      },
      "resultId": {
        "type": "string",
        "description": "Result Id"
      },
      "activity": {
        "type": "string",
        "description": "The activity value",
        "enum": [
          "PENDING",
          "GENERATING",
          "EVALUATING",
          "GENERATING_VARIATION",
          "VALIDATING",
          "COMPLETED"
        ]
      },
      "completionResponse": {
        "type": "string",
        "description": "Completion Response"
      },
      "createdVariationKey": {
        "type": "string",
        "description": "Created Variation Key"
      },
      "evaluationLatencies": {
        "type": "object",
        "description": "Evaluation Latencies"
      },
      "evaluationTokens": {
        "type": "object",
        "description": "Evaluation Tokens"
      },
      "generationLatency": {
        "type": "integer",
        "description": "Generation Latency"
      },
      "generationTokens": {
        "type": "object",
        "description": "Generation Tokens"
      },
      "scores": {
        "type": "object",
        "description": "The scores value"
      },
      "status": {
        "type": "string",
        "description": "The status value",
        "enum": [
          "RUNNING",
          "PASSED",
          "FAILED",
          "ERRORED"
        ]
      },
      "variation": {
        "type": "object",
        "description": "The variation value"
      }
    },
    "required": [
      "PCID",
      "projectKey",
      "optimizationKey",
      "resultId"
    ]
  }
  ```
</Expandable>

***

## launchdarkly\_ai\_configs\_patch\_aiconfig

Update AI Config

**Parameters:**

| Parameter             | Type      | Required | Default | Description                                                                               |
| --------------------- | --------- | -------- | ------- | ----------------------------------------------------------------------------------------- |
| `projectKey`          | string    | Yes      | —       | Project Key                                                                               |
| `configKey`           | string    | Yes      | —       | Config Key                                                                                |
| `description`         | string    | No       | —       | The description value                                                                     |
| `evaluationMetricKey` | string    | No       | —       | Evaluation metric key for this AI Config                                                  |
| `isInverted`          | boolean   | No       | —       | Whether the evaluation metric is inverted, meaning a lower value is better if set as true |
| `maintainerId`        | string    | No       | —       | Maintainer Id                                                                             |
| `maintainerTeamKey`   | string    | No       | —       | Maintainer Team Key                                                                       |
| `name`                | string    | No       | —       | The name value                                                                            |
| `tags`                | string\[] | No       | —       | The tags value                                                                            |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "projectKey": {
        "type": "string",
        "description": "Project Key"
      },
      "configKey": {
        "type": "string",
        "description": "Config Key"
      },
      "description": {
        "type": "string",
        "description": "The description value"
      },
      "evaluationMetricKey": {
        "type": "string",
        "description": "Evaluation metric key for this AI Config"
      },
      "isInverted": {
        "type": "boolean",
        "description": "Whether the evaluation metric is inverted, meaning a lower value is better if set as true"
      },
      "maintainerId": {
        "type": "string",
        "description": "Maintainer Id"
      },
      "maintainerTeamKey": {
        "type": "string",
        "description": "Maintainer Team Key"
      },
      "name": {
        "type": "string",
        "description": "The name value"
      },
      "tags": {
        "type": "array",
        "items": {
          "type": "string"
        },
        "description": "The tags value"
      }
    },
    "required": [
      "PCID",
      "projectKey",
      "configKey"
    ]
  }
  ```
</Expandable>

***

## launchdarkly\_ai\_configs\_patch\_aiconfig\_targeting

Update AI Config targeting

**Parameters:**

| Parameter        | Type      | Required | Default | Description            |
| ---------------- | --------- | -------- | ------- | ---------------------- |
| `projectKey`     | string    | Yes      | —       | Project Key            |
| `configKey`      | string    | Yes      | —       | Config Key             |
| `comment`        | string    | No       | —       | The comment value      |
| `environmentKey` | string    | Yes      | —       | Environment Key        |
| `instructions`   | object\[] | Yes      | —       | The instructions value |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "projectKey": {
        "type": "string",
        "description": "Project Key"
      },
      "configKey": {
        "type": "string",
        "description": "Config Key"
      },
      "comment": {
        "type": "string",
        "description": "The comment value"
      },
      "environmentKey": {
        "type": "string",
        "description": "Environment Key"
      },
      "instructions": {
        "type": "array",
        "items": {
          "type": "object"
        },
        "description": "The instructions value"
      }
    },
    "required": [
      "PCID",
      "projectKey",
      "configKey",
      "environmentKey",
      "instructions"
    ]
  }
  ```
</Expandable>

***

## launchdarkly\_ai\_configs\_patch\_aiconfig\_variation

Update AI Config variation

**Parameters:**

| Parameter            | Type      | Required | Default | Description                                                                               |
| -------------------- | --------- | -------- | ------- | ----------------------------------------------------------------------------------------- |
| `projectKey`         | string    | Yes      | —       | Project Key                                                                               |
| `configKey`          | string    | Yes      | —       | Config Key                                                                                |
| `variationKey`       | string    | Yes      | —       | Variation Key                                                                             |
| `comment`            | string    | No       | —       | Human-readable description of what this patch changes                                     |
| `description`        | string    | No       | —       | Description for agent when AI Config is in agent mode.                                    |
| `instructions`       | string    | No       | —       | Instructions for agent when AI Config is in agent mode.                                   |
| `judgeConfiguration` | object    | No       | —       | Judge Configuration                                                                       |
| `messages`           | object\[] | No       | —       | The messages value                                                                        |
| `model`              | object    | No       | —       | The model value                                                                           |
| `modelConfigKey`     | string    | No       | —       | Model Config Key                                                                          |
| `name`               | string    | No       | —       | The name value                                                                            |
| `published`          | boolean   | No       | —       | The published value                                                                       |
| `state`              | string    | No       | —       | One of 'archived', 'published'                                                            |
| `toolKeys`           | string\[] | No       | —       | List of tool keys to use for this variation. The latest version of the tool will be used. |
| `tools`              | object\[] | No       | —       | List of tools to use for this variation. The latest version of the tool will be used.     |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "projectKey": {
        "type": "string",
        "description": "Project Key"
      },
      "configKey": {
        "type": "string",
        "description": "Config Key"
      },
      "variationKey": {
        "type": "string",
        "description": "Variation Key"
      },
      "comment": {
        "type": "string",
        "description": "Human-readable description of what this patch changes"
      },
      "description": {
        "type": "string",
        "description": "Description for agent when AI Config is in agent mode."
      },
      "instructions": {
        "type": "string",
        "description": "Instructions for agent when AI Config is in agent mode."
      },
      "judgeConfiguration": {
        "type": "object",
        "description": "Judge Configuration",
        "properties": {
          "judges": {
            "type": "array",
            "items": {
              "type": "object"
            },
            "description": "List of judges for this variation. When updating, this replaces all existing judge attachments, and if empty, removes all judge attachments."
          }
        }
      },
      "messages": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "content": {
              "type": "string",
              "description": "The content value"
            },
            "role": {
              "type": "string",
              "description": "The role value"
            }
          },
          "required": [
            "content",
            "role"
          ]
        },
        "description": "The messages value"
      },
      "model": {
        "type": "object",
        "description": "The model value"
      },
      "modelConfigKey": {
        "type": "string",
        "description": "Model Config Key"
      },
      "name": {
        "type": "string",
        "description": "The name value"
      },
      "published": {
        "type": "boolean",
        "description": "The published value"
      },
      "state": {
        "type": "string",
        "description": "One of 'archived', 'published'"
      },
      "toolKeys": {
        "type": "array",
        "items": {
          "type": "string"
        },
        "description": "List of tool keys to use for this variation. The latest version of the tool will be used."
      },
      "tools": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "key": {
              "type": "string",
              "description": "The key of the tool to use."
            },
            "version": {
              "type": "integer",
              "description": "The version of the tool."
            }
          },
          "required": [
            "key",
            "version"
          ]
        },
        "description": "List of tools to use for this variation. The latest version of the tool will be used."
      }
    },
    "required": [
      "PCID",
      "projectKey",
      "configKey",
      "variationKey"
    ]
  }
  ```
</Expandable>

***

## launchdarkly\_ai\_configs\_patch\_aitool

Update AI tool

**Parameters:**

| Parameter           | Type   | Required | Default | Description                                                                   |
| ------------------- | ------ | -------- | ------- | ----------------------------------------------------------------------------- |
| `projectKey`        | string | Yes      | —       | Project Key                                                                   |
| `toolKey`           | string | Yes      | —       | Tool Key                                                                      |
| `customParameters`  | object | No       | —       | Custom metadata and configuration for application-level use (not sent to LLM) |
| `description`       | string | No       | —       | The description value                                                         |
| `maintainerId`      | string | No       | —       | Maintainer Id                                                                 |
| `maintainerTeamKey` | string | No       | —       | Maintainer Team Key                                                           |
| `schema`            | object | No       | —       | JSON Schema defining the tool's parameters for LLM consumption                |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "projectKey": {
        "type": "string",
        "description": "Project Key"
      },
      "toolKey": {
        "type": "string",
        "description": "Tool Key"
      },
      "customParameters": {
        "type": "object",
        "description": "Custom metadata and configuration for application-level use (not sent to LLM)"
      },
      "description": {
        "type": "string",
        "description": "The description value"
      },
      "maintainerId": {
        "type": "string",
        "description": "Maintainer Id"
      },
      "maintainerTeamKey": {
        "type": "string",
        "description": "Maintainer Team Key"
      },
      "schema": {
        "type": "object",
        "description": "JSON Schema defining the tool's parameters for LLM consumption"
      }
    },
    "required": [
      "PCID",
      "projectKey",
      "toolKey"
    ]
  }
  ```
</Expandable>

***

## launchdarkly\_ai\_configs\_patch\_prompt\_snippet

Update a prompt snippet

**Parameters:**

| Parameter           | Type      | Required | Default | Description                            |
| ------------------- | --------- | -------- | ------- | -------------------------------------- |
| `projectKey`        | string    | Yes      | —       | Project Key                            |
| `snippetKey`        | string    | Yes      | —       | Snippet Key                            |
| `description`       | string    | No       | —       | The description value                  |
| `maintainerId`      | string    | No       | —       | Maintainer Id                          |
| `maintainerTeamKey` | string    | No       | —       | Maintainer Team Key                    |
| `name`              | string    | No       | —       | The name value                         |
| `tags`              | string\[] | No       | —       | The tags value                         |
| `text`              | string    | No       | —       | The text content of the prompt snippet |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "projectKey": {
        "type": "string",
        "description": "Project Key"
      },
      "snippetKey": {
        "type": "string",
        "description": "Snippet Key"
      },
      "description": {
        "type": "string",
        "description": "The description value"
      },
      "maintainerId": {
        "type": "string",
        "description": "Maintainer Id"
      },
      "maintainerTeamKey": {
        "type": "string",
        "description": "Maintainer Team Key"
      },
      "name": {
        "type": "string",
        "description": "The name value"
      },
      "tags": {
        "type": "array",
        "items": {
          "type": "string"
        },
        "description": "The tags value"
      },
      "text": {
        "type": "string",
        "description": "The text content of the prompt snippet"
      }
    },
    "required": [
      "PCID",
      "projectKey",
      "snippetKey"
    ]
  }
  ```
</Expandable>

***

## launchdarkly\_ai\_configs\_post\_agent\_graph

Create new agent graph

**Parameters:**

| Parameter           | Type      | Required | Default | Description                                                                                          |
| ------------------- | --------- | -------- | ------- | ---------------------------------------------------------------------------------------------------- |
| `LD-API-Version`    | string    | Yes      | —       | Version of the endpoint.                                                                             |
| `projectKey`        | string    | Yes      | —       | Project Key                                                                                          |
| `description`       | string    | No       | —       | A description of the agent graph                                                                     |
| `edges`             | object\[] | No       | —       | The edges in the graph. If edges or rootConfigKey is present, both must be present.                  |
| `key`               | string    | Yes      | —       | A unique key for the agent graph                                                                     |
| `maintainerId`      | string    | No       | —       | The ID of the member who maintains this agent graph                                                  |
| `maintainerTeamKey` | string    | No       | —       | The key of the team that maintains this agent graph                                                  |
| `name`              | string    | Yes      | —       | A human-readable name for the agent graph                                                            |
| `rootConfigKey`     | string    | No       | —       | The AI Config key of the root node. A missing root implies a newly created graph with metadata only. |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "LD-API-Version": {
        "type": "string",
        "description": "Version of the endpoint.",
        "enum": [
          "beta"
        ]
      },
      "projectKey": {
        "type": "string",
        "description": "Project Key"
      },
      "description": {
        "type": "string",
        "description": "A description of the agent graph"
      },
      "edges": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "key": {
              "type": "string",
              "description": "A unique key for this edge within the graph"
            },
            "sourceConfig": {
              "type": "string",
              "description": "The AI Config key that is the source of this edge"
            },
            "targetConfig": {
              "type": "string",
              "description": "The AI Config key that is the target of this edge"
            },
            "handoff": {
              "type": "object",
              "description": "The handoff options from the source AI Config to the target AI Config"
            }
          },
          "required": [
            "key",
            "sourceConfig",
            "targetConfig"
          ]
        },
        "description": "The edges in the graph. If edges or rootConfigKey is present, both must be present."
      },
      "key": {
        "type": "string",
        "description": "A unique key for the agent graph"
      },
      "maintainerId": {
        "type": "string",
        "description": "The ID of the member who maintains this agent graph"
      },
      "maintainerTeamKey": {
        "type": "string",
        "description": "The key of the team that maintains this agent graph"
      },
      "name": {
        "type": "string",
        "description": "A human-readable name for the agent graph"
      },
      "rootConfigKey": {
        "type": "string",
        "description": "The AI Config key of the root node. A missing root implies a newly created graph with metadata only."
      }
    },
    "required": [
      "PCID",
      "LD-API-Version",
      "projectKey",
      "key",
      "name"
    ]
  }
  ```
</Expandable>

***

## launchdarkly\_ai\_configs\_post\_agent\_optimization

Create agent optimization

**Parameters:**

| Parameter              | Type      | Required | Default | Description            |
| ---------------------- | --------- | -------- | ------- | ---------------------- |
| `projectKey`           | string    | Yes      | —       | Project Key            |
| `acceptanceStatements` | object\[] | No       | —       | Acceptance Statements  |
| `aiConfigKey`          | string    | Yes      | —       | Ai Config Key          |
| `groundTruthResponses` | string\[] | No       | —       | Ground Truth Responses |
| `judgeModel`           | string    | Yes      | —       | Judge Model            |
| `judges`               | object\[] | No       | —       | The judges value       |
| `key`                  | string    | Yes      | —       | The key value          |
| `maxAttempts`          | integer   | Yes      | —       | Max Attempts           |
| `metricKey`            | string    | No       | —       | Metric Key             |
| `modelChoices`         | string\[] | No       | —       | Model Choices          |
| `userInputOptions`     | string\[] | No       | —       | User Input Options     |
| `variableChoices`      | object\[] | No       | —       | Variable Choices       |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "projectKey": {
        "type": "string",
        "description": "Project Key"
      },
      "acceptanceStatements": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "statement": {
              "type": "string",
              "description": "The statement value"
            },
            "threshold": {
              "type": "number",
              "format": "double",
              "description": "The threshold value"
            }
          },
          "required": [
            "statement",
            "threshold"
          ]
        },
        "description": "Acceptance Statements"
      },
      "aiConfigKey": {
        "type": "string",
        "description": "Ai Config Key"
      },
      "groundTruthResponses": {
        "type": "array",
        "items": {
          "type": "string"
        },
        "description": "Ground Truth Responses"
      },
      "judgeModel": {
        "type": "string",
        "description": "Judge Model"
      },
      "judges": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "key": {
              "type": "string",
              "description": "The key value"
            },
            "threshold": {
              "type": "number",
              "format": "double",
              "description": "The threshold value"
            }
          },
          "required": [
            "key",
            "threshold"
          ]
        },
        "description": "The judges value"
      },
      "key": {
        "type": "string",
        "description": "The key value"
      },
      "maxAttempts": {
        "type": "integer",
        "description": "Max Attempts"
      },
      "metricKey": {
        "type": "string",
        "description": "Metric Key"
      },
      "modelChoices": {
        "type": "array",
        "items": {
          "type": "string"
        },
        "description": "Model Choices"
      },
      "userInputOptions": {
        "type": "array",
        "items": {
          "type": "string"
        },
        "description": "User Input Options"
      },
      "variableChoices": {
        "type": "array",
        "items": {
          "type": "object"
        },
        "description": "Variable Choices"
      }
    },
    "required": [
      "PCID",
      "projectKey",
      "aiConfigKey",
      "judgeModel",
      "key",
      "maxAttempts"
    ]
  }
  ```
</Expandable>

***

## launchdarkly\_ai\_configs\_post\_agent\_optimization\_result

Create agent optimization result

**Parameters:**

| Parameter                  | Type    | Required | Default | Description                |
| -------------------------- | ------- | -------- | ------- | -------------------------- |
| `projectKey`               | string  | Yes      | —       | Project Key                |
| `optimizationKey`          | string  | Yes      | —       | Optimization Key           |
| `agentOptimizationVersion` | integer | Yes      | —       | Agent Optimization Version |
| `instructions`             | string  | Yes      | —       | The instructions value     |
| `iteration`                | integer | Yes      | —       | The iteration value        |
| `parameters`               | object  | No       | —       | The parameters value       |
| `runId`                    | string  | Yes      | —       | Run Id                     |
| `userInput`                | string  | Yes      | —       | User Input                 |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "projectKey": {
        "type": "string",
        "description": "Project Key"
      },
      "optimizationKey": {
        "type": "string",
        "description": "Optimization Key"
      },
      "agentOptimizationVersion": {
        "type": "integer",
        "description": "Agent Optimization Version"
      },
      "instructions": {
        "type": "string",
        "description": "The instructions value"
      },
      "iteration": {
        "type": "integer",
        "description": "The iteration value"
      },
      "parameters": {
        "type": "object",
        "description": "The parameters value"
      },
      "runId": {
        "type": "string",
        "description": "Run Id"
      },
      "userInput": {
        "type": "string",
        "description": "User Input"
      }
    },
    "required": [
      "PCID",
      "projectKey",
      "optimizationKey",
      "agentOptimizationVersion",
      "instructions",
      "iteration",
      "runId",
      "userInput"
    ]
  }
  ```
</Expandable>

***

## launchdarkly\_ai\_configs\_post\_aiconfig

Create new AI Config

**Parameters:**

| Parameter             | Type      | Required | Default | Description                                                                               |
| --------------------- | --------- | -------- | ------- | ----------------------------------------------------------------------------------------- |
| `projectKey`          | string    | Yes      | —       | Project Key                                                                               |
| `defaultVariation`    | object    | No       | —       | Default Variation                                                                         |
| `description`         | string    | No       | —       | The description value                                                                     |
| `evaluationMetricKey` | string    | No       | —       | Evaluation metric key for this AI Config                                                  |
| `isInverted`          | boolean   | No       | —       | Whether the evaluation metric is inverted, meaning a lower value is better if set as true |
| `key`                 | string    | Yes      | —       | The key value                                                                             |
| `maintainerId`        | string    | No       | —       | Maintainer Id                                                                             |
| `maintainerTeamKey`   | string    | No       | —       | Maintainer Team Key                                                                       |
| `mode`                | string    | No       | —       | The mode value                                                                            |
| `name`                | string    | Yes      | —       | The name value                                                                            |
| `tags`                | string\[] | No       | —       | The tags value                                                                            |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "projectKey": {
        "type": "string",
        "description": "Project Key"
      },
      "defaultVariation": {
        "type": "object",
        "description": "Default Variation",
        "properties": {
          "comment": {
            "type": "string",
            "description": "Human-readable description of this variation"
          },
          "description": {
            "type": "string",
            "description": "Returns the description for the agent. This is only returned for agent variations."
          },
          "instructions": {
            "type": "string",
            "description": "Returns the instructions for the agent. This is only returned for agent variations."
          },
          "key": {
            "type": "string",
            "description": "The key value"
          },
          "messages": {
            "type": "array",
            "items": {
              "type": "object"
            },
            "description": "The messages value"
          },
          "model": {
            "type": "object",
            "description": "The model value"
          },
          "name": {
            "type": "string",
            "description": "The name value"
          },
          "modelConfigKey": {
            "type": "string",
            "description": "Model Config Key"
          },
          "tools": {
            "type": "array",
            "items": {
              "type": "object"
            },
            "description": "List of tools to use for this variation. The latest version of the tool will be used."
          },
          "toolKeys": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "List of tool keys to use for this variation. The latest version of the tool will be used."
          },
          "judgeConfiguration": {
            "type": "object",
            "description": "Judge Configuration"
          }
        },
        "required": [
          "key",
          "name"
        ]
      },
      "description": {
        "type": "string",
        "description": "The description value"
      },
      "evaluationMetricKey": {
        "type": "string",
        "description": "Evaluation metric key for this AI Config"
      },
      "isInverted": {
        "type": "boolean",
        "description": "Whether the evaluation metric is inverted, meaning a lower value is better if set as true"
      },
      "key": {
        "type": "string",
        "description": "The key value"
      },
      "maintainerId": {
        "type": "string",
        "description": "Maintainer Id"
      },
      "maintainerTeamKey": {
        "type": "string",
        "description": "Maintainer Team Key"
      },
      "mode": {
        "type": "string",
        "description": "The mode value",
        "enum": [
          "agent",
          "completion",
          "judge"
        ]
      },
      "name": {
        "type": "string",
        "description": "The name value"
      },
      "tags": {
        "type": "array",
        "items": {
          "type": "string"
        },
        "description": "The tags value"
      }
    },
    "required": [
      "PCID",
      "projectKey",
      "key",
      "name"
    ]
  }
  ```
</Expandable>

***

## launchdarkly\_ai\_configs\_post\_aiconfig\_variation

Create AI Config variation

**Parameters:**

| Parameter            | Type      | Required | Default | Description                                                                               |
| -------------------- | --------- | -------- | ------- | ----------------------------------------------------------------------------------------- |
| `projectKey`         | string    | Yes      | —       | Project Key                                                                               |
| `configKey`          | string    | Yes      | —       | Config Key                                                                                |
| `comment`            | string    | No       | —       | Human-readable description of this variation                                              |
| `description`        | string    | No       | —       | Returns the description for the agent. This is only returned for agent variations.        |
| `instructions`       | string    | No       | —       | Returns the instructions for the agent. This is only returned for agent variations.       |
| `judgeConfiguration` | object    | No       | —       | Judge Configuration                                                                       |
| `key`                | string    | Yes      | —       | The key value                                                                             |
| `messages`           | object\[] | No       | —       | The messages value                                                                        |
| `model`              | object    | No       | —       | The model value                                                                           |
| `modelConfigKey`     | string    | No       | —       | Model Config Key                                                                          |
| `name`               | string    | Yes      | —       | The name value                                                                            |
| `toolKeys`           | string\[] | No       | —       | List of tool keys to use for this variation. The latest version of the tool will be used. |
| `tools`              | object\[] | No       | —       | List of tools to use for this variation. The latest version of the tool will be used.     |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "projectKey": {
        "type": "string",
        "description": "Project Key"
      },
      "configKey": {
        "type": "string",
        "description": "Config Key"
      },
      "comment": {
        "type": "string",
        "description": "Human-readable description of this variation"
      },
      "description": {
        "type": "string",
        "description": "Returns the description for the agent. This is only returned for agent variations."
      },
      "instructions": {
        "type": "string",
        "description": "Returns the instructions for the agent. This is only returned for agent variations."
      },
      "judgeConfiguration": {
        "type": "object",
        "description": "Judge Configuration",
        "properties": {
          "judges": {
            "type": "array",
            "items": {
              "type": "object"
            },
            "description": "List of judges for this variation. When updating, this replaces all existing judge attachments, and if empty, removes all judge attachments."
          }
        }
      },
      "key": {
        "type": "string",
        "description": "The key value"
      },
      "messages": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "content": {
              "type": "string",
              "description": "The content value"
            },
            "role": {
              "type": "string",
              "description": "The role value"
            }
          },
          "required": [
            "content",
            "role"
          ]
        },
        "description": "The messages value"
      },
      "model": {
        "type": "object",
        "description": "The model value"
      },
      "modelConfigKey": {
        "type": "string",
        "description": "Model Config Key"
      },
      "name": {
        "type": "string",
        "description": "The name value"
      },
      "toolKeys": {
        "type": "array",
        "items": {
          "type": "string"
        },
        "description": "List of tool keys to use for this variation. The latest version of the tool will be used."
      },
      "tools": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "key": {
              "type": "string",
              "description": "The key of the tool to use."
            },
            "version": {
              "type": "integer",
              "description": "The version of the tool."
            }
          },
          "required": [
            "key",
            "version"
          ]
        },
        "description": "List of tools to use for this variation. The latest version of the tool will be used."
      }
    },
    "required": [
      "PCID",
      "projectKey",
      "configKey",
      "key",
      "name"
    ]
  }
  ```
</Expandable>

***

## launchdarkly\_ai\_configs\_post\_aitool

Create an AI tool

**Parameters:**

| Parameter           | Type   | Required | Default | Description                                                                   |
| ------------------- | ------ | -------- | ------- | ----------------------------------------------------------------------------- |
| `projectKey`        | string | Yes      | —       | Project Key                                                                   |
| `customParameters`  | object | No       | —       | Custom metadata and configuration for application-level use (not sent to LLM) |
| `description`       | string | No       | —       | The description value                                                         |
| `key`               | string | Yes      | —       | The key value                                                                 |
| `maintainerId`      | string | No       | —       | Maintainer Id                                                                 |
| `maintainerTeamKey` | string | No       | —       | Maintainer Team Key                                                           |
| `schema`            | object | Yes      | —       | JSON Schema defining the tool's parameters for LLM consumption                |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "projectKey": {
        "type": "string",
        "description": "Project Key"
      },
      "customParameters": {
        "type": "object",
        "description": "Custom metadata and configuration for application-level use (not sent to LLM)"
      },
      "description": {
        "type": "string",
        "description": "The description value"
      },
      "key": {
        "type": "string",
        "description": "The key value"
      },
      "maintainerId": {
        "type": "string",
        "description": "Maintainer Id"
      },
      "maintainerTeamKey": {
        "type": "string",
        "description": "Maintainer Team Key"
      },
      "schema": {
        "type": "object",
        "description": "JSON Schema defining the tool's parameters for LLM consumption"
      }
    },
    "required": [
      "PCID",
      "projectKey",
      "key",
      "schema"
    ]
  }
  ```
</Expandable>

***

## launchdarkly\_ai\_configs\_post\_model\_config

Create an AI model config

**Parameters:**

| Parameter            | Type      | Required | Default | Description                                                  |
| -------------------- | --------- | -------- | ------- | ------------------------------------------------------------ |
| `projectKey`         | string    | Yes      | —       | Project Key                                                  |
| `costPerInputToken`  | number    | No       | —       | Cost per input token in USD                                  |
| `costPerOutputToken` | number    | No       | —       | Cost per output token in USD                                 |
| `customParams`       | object    | No       | —       | Custom Params                                                |
| `icon`               | string    | No       | —       | Icon for the model                                           |
| `id`                 | string    | Yes      | —       | Identifier for the model, for use with third party providers |
| `key`                | string    | Yes      | —       | Unique key for the model                                     |
| `name`               | string    | Yes      | —       | Human readable name of the model                             |
| `params`             | object    | No       | —       | The params value                                             |
| `provider`           | string    | No       | —       | Provider for the model                                       |
| `tags`               | string\[] | No       | —       | The tags value                                               |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "projectKey": {
        "type": "string",
        "description": "Project Key"
      },
      "costPerInputToken": {
        "type": "number",
        "description": "Cost per input token in USD"
      },
      "costPerOutputToken": {
        "type": "number",
        "description": "Cost per output token in USD"
      },
      "customParams": {
        "type": "object",
        "description": "Custom Params"
      },
      "icon": {
        "type": "string",
        "description": "Icon for the model"
      },
      "id": {
        "type": "string",
        "description": "Identifier for the model, for use with third party providers"
      },
      "key": {
        "type": "string",
        "description": "Unique key for the model"
      },
      "name": {
        "type": "string",
        "description": "Human readable name of the model"
      },
      "params": {
        "type": "object",
        "description": "The params value"
      },
      "provider": {
        "type": "string",
        "description": "Provider for the model"
      },
      "tags": {
        "type": "array",
        "items": {
          "type": "string"
        },
        "description": "The tags value"
      }
    },
    "required": [
      "PCID",
      "projectKey",
      "id",
      "key",
      "name"
    ]
  }
  ```
</Expandable>

***

## launchdarkly\_ai\_configs\_post\_prompt\_snippet

Create a prompt snippet

**Parameters:**

| Parameter           | Type      | Required | Default | Description                            |
| ------------------- | --------- | -------- | ------- | -------------------------------------- |
| `projectKey`        | string    | Yes      | —       | Project Key                            |
| `description`       | string    | No       | —       | The description value                  |
| `key`               | string    | Yes      | —       | The key value                          |
| `maintainerId`      | string    | No       | —       | Maintainer Id                          |
| `maintainerTeamKey` | string    | No       | —       | Maintainer Team Key                    |
| `name`              | string    | Yes      | —       | The name value                         |
| `tags`              | string\[] | No       | —       | The tags value                         |
| `text`              | string    | Yes      | —       | The text content of the prompt snippet |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "projectKey": {
        "type": "string",
        "description": "Project Key"
      },
      "description": {
        "type": "string",
        "description": "The description value"
      },
      "key": {
        "type": "string",
        "description": "The key value"
      },
      "maintainerId": {
        "type": "string",
        "description": "Maintainer Id"
      },
      "maintainerTeamKey": {
        "type": "string",
        "description": "Maintainer Team Key"
      },
      "name": {
        "type": "string",
        "description": "The name value"
      },
      "tags": {
        "type": "array",
        "items": {
          "type": "string"
        },
        "description": "The tags value"
      },
      "text": {
        "type": "string",
        "description": "The text content of the prompt snippet"
      }
    },
    "required": [
      "PCID",
      "projectKey",
      "key",
      "name",
      "text"
    ]
  }
  ```
</Expandable>

***

## launchdarkly\_ai\_configs\_post\_restricted\_models

Add AI models to the restricted list

**Parameters:**

| Parameter    | Type      | Required | Default | Description    |
| ------------ | --------- | -------- | ------- | -------------- |
| `projectKey` | string    | Yes      | —       | Project Key    |
| `keys`       | string\[] | Yes      | —       | The keys value |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "projectKey": {
        "type": "string",
        "description": "Project Key"
      },
      "keys": {
        "type": "array",
        "items": {
          "type": "string"
        },
        "description": "The keys value"
      }
    },
    "required": [
      "PCID",
      "projectKey",
      "keys"
    ]
  }
  ```
</Expandable>
