Placeholder - LaunchDarkly LangChain provider package coming soon
Project description
LaunchDarkly AI SDK - LangChain Provider
This package provides LangChain provider support for the LaunchDarkly AI SDK.
Installation
pip install launchdarkly-server-sdk-ai-langchain
This will automatically install the core SDK (launchdarkly-server-sdk-ai) and LangChain dependencies.
Usage
from ldclient import init, Context
from ldai import init_ai
# Initialize clients
ld_client = init('your-sdk-key')
ai_client = init_ai(ld_client)
# Create a chat - will automatically use LangChain provider
context = Context.create('user-key')
chat = await ai_client.create_chat('chat-config', context, {
'enabled': True,
'provider': {'name': 'openai'},
'model': {'name': 'gpt-4'}
})
if chat:
response = await chat.invoke('Hello!')
print(response.message.content)
Supported LangChain Providers
This provider supports any LangChain-compatible model, including:
- OpenAI (GPT-3.5, GPT-4, etc.)
- Anthropic (Claude)
- Google (Gemini)
- And many more through LangChain integrations
Requirements
- Python 3.9+
- launchdarkly-server-sdk-ai >= 0.10.1
- langchain >= 0.3.0
- langchain-core >= 0.3.0
Documentation
For full documentation, visit: https://docs.launchdarkly.com/sdk/ai/python
License
Apache-2.0
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file launchdarkly_server_sdk_ai_langchain-0.0.0.tar.gz.
File metadata
- Download URL: launchdarkly_server_sdk_ai_langchain-0.0.0.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.2.1 CPython/3.13.5 Linux/6.10.14-linuxkit
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b1d582bfde5a47499c55c1ca7f2ee47fad1b5edadeda359e45b6b6266be1d79b
|
|
| MD5 |
00cf281f7b7207790c4b91698b1c38ef
|
|
| BLAKE2b-256 |
22d23ce267c1abc4e0c49d1972d93ed2be77f18d4ea84d9c73e7726fbdcf9772
|
File details
Details for the file launchdarkly_server_sdk_ai_langchain-0.0.0-py3-none-any.whl.
File metadata
- Download URL: launchdarkly_server_sdk_ai_langchain-0.0.0-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.2.1 CPython/3.13.5 Linux/6.10.14-linuxkit
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9ef56df3d60fed29c30640d1fc9f44a63735bc003abc212c426050b67fc8ba5a
|
|
| MD5 |
33d826f2870105520ce2208f7fa35677
|
|
| BLAKE2b-256 |
c8272b128e2442f37a47d0de80a366c98a507bb779b7d5c5bc2376aa6267b0ed
|