Loading...
Loading...
Guide for setting up AI configuration in your application. Helps you choose between agent vs completion mode, select the right approach for your stack, and create AI Configs that make sense for your use case.
npx skill4agent add launchdarkly/agent-skills aiconfig-createai-configs:writeaiconfig-projectsLAUNCHDARKLY_API_KEYLAUNCHDARKLY_API_TOKENLD_API_KEY~/.claude/config.jsonmcpServers.launchdarkly.env.LAUNCHDARKLY_API_KEY| Your Need | Mode |
|---|---|
| Persistent instructions across interactions | Agent |
| LangGraph, CrewAI, AutoGen | Agent |
| Direct OpenAI/Anthropic API calls | Completion |
| Full control of message structure | Completion |
| One-off text generation | Completion |
instructionsmessagesPOST /projects/{projectKey}/ai-configsPOST /projects/{projectKey}/ai-configs/{configKey}/variationsaiconfig-toolscurl -X GET "https://app.launchdarkly.com/api/v2/projects/{projectKey}/ai-configs/{configKey}" \
-H "Authorization: {api_token}" -H "LD-API-Version: beta"https://app.launchdarkly.com/projects/{projectKey}/ai-configs/{configKey}{Provider}.{model-id}OpenAI.gpt-4oaiconfig-tools/ai-tools/ai-configs/tools| Situation | Action |
|---|---|
| Config already exists | Ask if user wants to update instead |
| Variation shows "NO MODEL" | PATCH variation with modelConfigKey and model |
| Invalid modelConfigKey | Use values from model-configs API |
aiconfig-toolsaiconfig-variationsaiconfig-update