Choose a configuration mode
When you create a config, you select a configuration mode that defines how the model behaves in your application. AgentControl supports two modes:- Completion mode: Configure prompts using messages and roles for single-step model responses. To learn more, read Create and manage config variations.
- Agent mode: Configure multi-step workflows using structured instructions. Agent mode does not create a separate resource. To learn more, read Agents.
- Manage model configuration outside of your application code so you can update prompts and settings at runtime without deploying changes.
- Upgrade to new model versions and roll out changes gradually and safely.
- Add new model providers and progressively shift production traffic between them.
- Compare variations to determine which performs better based on cost, latency, satisfaction, or other metrics.
- Run experiments to measure the impact of generative AI features on end-user behavior.
- Track which knowledge base or vector index is active for a given model or audience.
- Experiment with different chunking strategies, retrieval sources, or prompt and instruction structures.
- Evaluate outputs using side-by-side comparisons or online evaluations with judges in completion mode or agent mode, or invoke a judge programmatically using the AI SDK.
- Build guardrails into runtime configuration using targeting rules to block risky generations or switch to fallback behavior.
- Apply different safety filters by user type, geography, or application context.
- Use live metrics, including satisfaction and quality signals you define, to guide rollouts.
AvailabilityAgentControl is an add-on feature. Access depends on your organization’s LaunchDarkly plan. If AgentControl does not appear in your project, your organization may not have access to it.To enable AgentControl for your organization, contact your LaunchDarkly account team. They can confirm eligibility and assist with activation.For information about pricing, visit the LaunchDarkly pricing page or contact your LaunchDarkly account team.
How AgentControl works
Every config contains one or more variations. Each variation defines model settings with messages for completion mode or instructions for agent mode. You define targeting rules to control which variation LaunchDarkly serves to a given context. In your application, you use one of LaunchDarkly’s AI SDKs to evaluate a config for a given context. The LaunchDarkly SDK evaluates targeting rules and selects a variation. The AI SDK plug-in then uses that variation to return the resolved configuration, including model settings and messages or instructions. As part of this evaluation, the AI SDK resolves any variables in your prompts using context attributes and additional variables you provide. This enables you to tailor prompts and model settings for each context at runtime. When you update prompts, instructions, or model configuration in LaunchDarkly, those changes take effect immediately without requiring you to redeploy your application. LaunchDarkly does not invoke model providers on your behalf. Your application is responsible for calling the model provider directly using its own credentials and the configuration returned by the AI SDK. LaunchDarkly does not proxy or independently invoke model providers. After your application calls the model provider, use the AI SDK to track AI metrics such as generation count, token usage, latency, errors, and evaluation scores. LaunchDarkly aggregates these metrics and displays them on the Monitoring tab. The topics in this category explain how to create configs and variations, update targeting rules, monitor related metrics, and incorporate AgentControl into your application.Additional resources
In this section:Set up AgentControl configs
- Quickstart for AgentControl
- Create configs
- Create and manage config variations
- Create and manage AI model configurations
- Tools
- Prompt snippets
Config evaluations
- Playgrounds
- Offline evaluations
- Datasets
- Online evaluations
- Judges
- Run experiments with AgentControl
Agents
Deliver and monitor configs
- Config targeting
- Monitor config performance
- Understand AI impact with AI Insights
- Manually instrument LLM spans