aiconfig-sdk

Consume LaunchDarkly AI Configs in Python applications via the Python AI SDK.

Updated Feb 4, 2026
One-click install
npx skills add https://github.com/launchdarkly-labs/aiconfigs-skills --skill aiconfig-sdk
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: aiconfig-sdk
Source: https://github.com/launchdarkly-labs/aiconfigs-skills/tree/main/aiconfig-sdk
Command: npx skills add https://github.com/launchdarkly-labs/aiconfigs-skills --skill aiconfig-sdk

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires launchdarkly-server-sdk, launchdarkly-server-sdk-ai, ldai.

What problem does it solve?

This Skill enables developers to integrate LaunchDarkly AI Configs into Python applications via the Python AI SDK, simplifying config delivery, context handling, and metrics tracking.

Core Features & Use Cases

  • SDK integration: Consume AI Configs (completion and agent modes) within a Python app.
  • Context & Metrics: Build user context, handle fallbacks, and track config-level metrics for reliability.
  • Use Case: Build a service that uses AI Configs to tailor responses and monitor outcomes.

Quick Start

Install the required packages and initialize the SDK as shown in the examples, and adapt it to your Python project for per-request config retrieval.

Frequently Asked Questions about aiconfig-sdk

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I consume LaunchDarkly AI Configs in a Python application?

Consume LaunchDarkly AI Configs in Python by installing the Python AI SDK (ldai package) alongside launchdarkly-server-sdk and launchdarkly-server-sdk-ai, then initialize the SDK to retrieve configs per request in completion or agent modes.

Can I use LaunchDarkly AI Configs with context building and metrics tracking?

Yes. The Python AI SDK supports building user context, handling fallbacks, and tracking config-level metrics to monitor reliability and outcomes within your application.

What are the prerequisites for integrating AI Configs in Python?

Python 3.8 or later is required, along with installation of launchdarkly-server-sdk, launchdarkly-server-sdk-ai, and the ldai package before initializing the SDK in your application.

Does the Python AI SDK support per-request config retrieval?

Yes. The Python AI SDK enables per-request AI Config retrieval, allowing you to tailor responses dynamically based on user context within completion and agent modes.

What should I do after retrieving AI Configs to monitor application performance?

Track config-level metrics after retrieval to monitor reliability, measure outcomes, and ensure your AI-driven service is performing as expected.