Skip to main content

launchdarkly-ai-litellm-agents

Experimental. This package stays on 0.x until the Python and JavaScript LiteLLM integrations match.

Provider-agnostic LaunchDarkly AI Config and graph handlers built on the OpenAI Agents SDK's LitellmModel.

Installation

pip install "launchdarkly-ai-server[ld]" launchdarkly-ai-litellm-agents

Python uses LiteLLM in-process; no proxy endpoint is required. Set the provider credentials required by the models in your AI Config, such as OPENAI_API_KEY or ANTHROPIC_API_KEY. Standard LiteLLM configuration, gateways, and model aliases are supported.

Usage

from launchdarkly_ai_litellm_agents import create_litellm_agents_handler
from launchdarkly_ai_server import config

result = await config(
    key="assistant",
    handler=create_litellm_agents_handler(),
).invoke("Hello", {"kind": "user", "key": "user-123"})

Each evaluated config model is authoritative and creates its own LitellmModel. The one rewrite is for Bedrock: a bedrock/... name, or a bare name when the provider is Bedrock, gets model.region (us, global, ...) prepended to the model id as its cross-region inference-profile prefix, unless the id already has one. The package supports callable tools, structured output, streaming, the litellm_graph convenience wrapper, and to_litellm_agents for native Agents SDK handoffs.

Because this is a wildcard agent handler, do not register it together with another ["*", "agent"] handler such as LangChain in the same registry.

Metadata

Release files for launchdarkly-ai-litellm-agents 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for launchdarkly-ai-litellm-agents 1.0.2
File Size Uploaded Provenance Actions
launchdarkly_ai_litellm_agents-1.0.2.tar.gz 23.8 kB Without provenance Details for launchdarkly_ai_litellm_agents-1.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for launchdarkly-ai-litellm-agents 1.0.2
File Interpreter ABI Platform Actions
launchdarkly_ai_litellm_agents-1.0.2-py3-none-any.whl Python 3 none any Details for launchdarkly_ai_litellm_agents-1.0.2-py3-none-any.whl

Total release size: 37.7 kB

Release files / launchdarkly_ai_litellm_agents-1.0.2.tar.gz

Download URL launchdarkly_ai_litellm_agents-1.0.2.tar.gz
Size 23.8 kB
Tags Source
SHA-256 checksum
How to use checksums
6503dd25480b10b4d0d18fec2ef393a128889642991845df15281b6ceea63837
BLAKE2b-256 checksum
How to use checksums
6810dd26d70b5f21be6447704ef17ca2eda442e2a4a232dbdc42229a82d6706f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / launchdarkly_ai_litellm_agents-1.0.2-py3-none-any.whl

Download URL launchdarkly_ai_litellm_agents-1.0.2-py3-none-any.whl
Size 13.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
36a7c24a503777900ca1f953dfedbc9f164828c051bc3b78168569a059022602
BLAKE2b-256 checksum
How to use checksums
970870ac2618ce554a33b5f7522b6845c1976be989f5ad5291e8be471296c24a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for launchdarkly-ai-litellm-agents 1.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page