Capabilities and use cases
Agent-based configs support structured workflows that involve multiple coordinated steps. Teams use them to define structured behavior and manage complex workflows through configuration rather than application code. Tools are reusable, versioned resources defined at the project level and can be attached to config variations as needed. You can use agent-based configs to:- Guide models through multi-step tasks using structured instructions.
- Coordinate multi-step workflows that may interact with external systems.
- Reuse shared tools across multiple agents and variations.
- Monitor workflow performance and compare variations.
- Update workflow behavior safely using targeting rules, approvals, and guarded rollouts.
Create and configure an agent
To create an agent-based config:- In the left sidebar, click Agents. The AgentControl menu appears.
- Click Configs.
- Click Create config. The “Create config” dialog appears.
- Click Agent.
- Enter a name for the config.
- (Optional) Click Edit key to update the config key. You use the key to reference the config in your code.
- (Optional) Select a maintainer.
- Click Create. LaunchDarkly creates the config and displays the configuration panel.

The "Create AgentControl config" dialog.
Tools
Tools provide structured capabilities, such as retrieving data or calling an external service. Tools are reusable resources defined at the project level and can be attached to both agent-based and completion-based variations. To learn more, read Tools. To attach tools to a variation, open the variation, click Attach tools, then choose from the tools in your library.Skills
Skills let you attach short sets of instructions, scripts, and resources to an agent config. They extend agent capabilities with specialized knowledge and workflows. To attach skills to a variation, open the variation, click Attach skills, then choose from the skills in your library.Judges
Judges are specialized AgentControl configs that evaluate responses and return numeric scores that represent quality signals related to accuracy, relevance, toxicity, or custom signals you define. To learn more, read Judges. To attach judges to a variation, open the variation, click Attach judges, then choose from the judges in your library.Retrieve and use agent-based configs in your application
Use the LaunchDarkly Node.js (server-side) AI SDK or Python AI SDK to retrieve agent-based configs for a context. Agent-based configs are retrieved using the agent-specific SDK methods, such as.agentConfig() or .agentConfigs(). These methods return the evaluated agent, including its instructions, model configuration, provider information, attached tools, and a tracker instance for recording metrics.
This allows you to compose multi-agent workflows where each agent has a distinct role and can be evaluated independently.
These examples assume that you have already initialized the AI client and created a context. To learn how to do this, read Quickstart for AgentControl.
Agent configuration structure
Agent-based configs share the same overall configuration model as completion-mode AgentControl, but have a different variation structure. Each config includes amode property that is set at creation time and determines which fields are required and how targeting, evaluation, and metrics are handled.
In agent-based configs, each variation requires a description and an instructions field. These fields define how the model should behave when evaluated. Agent-based variations do not use message roles or message history. Workflow behavior is defined through the instructions field and any configuration associated with the variation.
Because agent-based configs use an instructions-based structure rather than message-based prompts, the Monitoring tab may display metrics differently for agent-based workflows.
Monitor agent performance
The Monitoring tab displays metrics for each variation of an agent-based config. Metrics include:- Generations
- Time to generate
- Time to first token
- Token usage
- Costs
- Error rate
- Satisfaction, when instrumented