For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Sign inTry it free
DocsGuidesSDKsIntegrationsAPI docsTutorialsFlagship blog
DocsGuidesSDKsIntegrationsAPI docsTutorialsFlagship blog
  • Get started
    • Overview
    • Onboarding
    • Get started
    • Launch Insights
    • LaunchDarkly architecture
    • LaunchDarkly vocabulary
  • AgentControl
    • AgentControl
      • Create configs
      • Create and manage config variations
      • Create and manage AI model configurations
      • Tools
      • Prompt snippets
    • Manage AgentControl
  • Feature flags
    • Create flags
    • Target with flags
    • Flag templates
    • Manage flags
    • Code references
    • Contexts
    • Segments
  • Releases
    • Releasing features with LaunchDarkly
    • Release policies
    • Percentage rollouts
    • Progressive rollouts
    • Guarded rollouts
    • Feature monitoring
    • Release pipelines
    • Engineering insights
    • Release management tools
    • Applications and app versions
    • Change history
    • Restoring previous flag versions
  • Observability
    • Observability
    • Session replay
    • Error monitoring
    • Logs
    • Traces
    • Observability metrics
    • Product analytics events
    • LLM observability
    • Alerts
    • Dashboards
    • Service map
    • Vega for auto-remediation
    • Observability MCP server
    • Search specification
    • Observability settings
    • Observability integrations
  • Experimentation
    • Experimentation
    • Experiment metric types
    • Experiment configuration
    • Managing experiments
    • Analyzing experiments
    • Multi-armed bandits
    • Holdouts
  • Metrics and events
    • Metrics in LaunchDarkly
    • Creating metrics
    • Metric groups
    • Events
    • Autogenerated metrics
  • Warehouse native
    • Warehouse native metrics
    • Setting up external warehouses
    • Creating experiments using warehouse native metrics
  • Infrastructure
    • Connect apps and services to LaunchDarkly
    • LaunchDarkly in China and Pakistan
    • LaunchDarkly in the European Union (EU)
    • LaunchDarkly in federal environments
    • Public IP list
  • Your account
    • Projects
    • Views
    • Environments
    • Tags
    • Teams
    • Members
    • Roles
    • Account security
    • Feature previews
    • Billing and usage
    • Changelog
Sign inTry it free
LogoLogo
On this page
  • Overview
  • Create an AI model configuration
  • Create an AI model configuration from a variation
  • Create an AI model configuration from project settings
  • Complete the “Add custom model” dialog
  • View AI model configurations
  • Restrict an AI model configuration
  • Delete an AI model configuration
AgentControlSet up AgentControl configs

Create and manage AI model configurations

Was this page helpful?
Previous

Tools

Next
Built with

Overview

This topic explains how to create and manage custom models to use in AgentControl.

An AgentControl config is a resource that you create in LaunchDarkly. You can use AgentControl to customize, test, and roll out new large language models (LLMs) within your generative AI applications. Within each config, you define one or more variations. Each variation includes a model configuration and uses messages in completion mode or instructions in agent mode. When you create a variation, you have the option to use a standard model, also called a “global” model, from the list provided by LaunchDarkly.

You can also add your own model and set up its parameters. This is called an AI model configuration. After you create an AI model configuration, you can use it in any variation for any config in your project.

You can set both global models and custom models as restricted, which means that no one in your organization can use those model configurations in any config variations. This lets you effectively limit the models that are available in each LaunchDarkly project.

This topic covers the following topics:

  • Create an AI model configuration
  • View AI model configurations
  • Restrict an AI model configuration
  • Delete an AI model configuration

Create an AI model configuration

You can create an AI model configuration while either creating a config variation or from the AI model configs tab under Project settings.

Create an AI model configuration from a variation

To create an AI model configuration from a config variation:

  1. Navigate to the Variations tab of the config and select a variation. Some sections in the interface may be collapsed. Expand the section you want to edit before continuing.
  2. Open the Select a model menu.
  3. Choose + Add a model.
  4. Follow the steps for completing the “Add custom model” dialog, below.

Create an AI model configuration from project settings

To create an AI model configuration from your Project settings page:

  1. Click the project dropdown to open the project menu.
  2. Select Project settings.
  3. Select AI model configs to open the AI model configs list.
  4. Click Add AI model config.
  5. Follow the steps for completing the “Add custom model” dialog, below.

Complete the “Add custom model” dialog

To complete the “Add custom model” dialog:

  1. Enter a Name for your AI model configuration.

    • The name appears in the Select a model dropdown when you create a variation for a config.
    • You also need the name if you want to create a role that allows or denies access to this AI model configuration.
  2. Select a Provider.

  3. Enter a Model ID.

    • The model ID is the identifier for the model that the LLM provider uses. This must exactly match the identifier from the provider.
    • You also need the model ID if you want to create a role that allows or denies access to this AI model configuration.
  4. Enter the token costs:

    • Enter the Input token cost per million tokens.
    • Enter the Output token cost per million tokens.
    Token costs cannot be adjusted

    The token costs are fixed for each model configuration. If model pricing changes, you must create a new model configuration with the new cost. Then update any config variations that use this model.

  5. (Optional) Click + Add suggested parameters. The menu displays model parameters, their types, and their default values.

    • Select a model parameter from the list.
    • Set its value in the dialog. This will be the default value when you choose this model in a config variation. You can set a different value in the config variation if needed.
    • When you customize a config in your SDK, you can access these parameters in the model section of the LDAIConfig.
  6. (Optional) Click + Add custom parameters.

    • Enter any additional parameters you want to include as a valid JSON object.
    • LaunchDarkly always applies these parameters and their values when you select this model in a config variation.
    • When you customize a config in your SDK, you can access these parameters in the model.custom section of the LDAIConfig.
  7. Click Save.

Here is an example:

The "Add custom model" dialog.

The "Add custom model" dialog.

View AI model configurations

To view all of the AI model configurations in a project:

  1. Click the project dropdown to open the project menu.
  2. Select Project settings.
  3. Select AI model configs to open the AI model configs list.

You can filter the list by model type and availability:

The "Filters" menu for the AI model configs list.

The "Filters" menu for the AI model configs list.

You can use the search box to find models by entering all or part of the model name or ID.

Restrict an AI model configuration

You can mark any AI model configuration as restricted, which prevents anyone in your organization from using it in any config variations. This lets you effectively limit the models that are available in each LaunchDarkly project.

To restrict an AI model configuration:

  1. Click the project dropdown to open the project menu.
  2. Select Project settings.
  3. Select AI model configs to open the AI model configs list.
  4. Click the three-dot overflow menu and select Restrict.

To make an AI model configuration available again, click the three-dot overflow menu and select Make available.

Delete an AI model configuration

To delete an AI model configuration:

  1. Click the project dropdown to open the project menu.
  2. Select Project settings.
  3. Select AI model configs to open the AI model configs list.
  4. For the model you want to delete, click the three-dot overflow menu and select Delete.
    • Alternatively, click the name of the AI model config you want to delete, then click Delete AI model config from the detail page.

You can only delete custom AI model configurations. You cannot delete the global AI model configs provided by LaunchDarkly.

You cannot delete an AI model configuration if it is currently used in a variation for a config.