Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

launchdarkly_server_sdk_ai_langchain-0.0.0.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file launchdarkly_server_sdk_ai_langchain-0.0.0.tar.gz.

File metadata

File hashes

Hashes for launchdarkly_server_sdk_ai_langchain-0.0.0.tar.gz
Algorithm Hash digest
SHA256 b1d582bfde5a47499c55c1ca7f2ee47fad1b5edadeda359e45b6b6266be1d79b
MD5 00cf281f7b7207790c4b91698b1c38ef
BLAKE2b-256 22d23ce267c1abc4e0c49d1972d93ed2be77f18d4ea84d9c73e7726fbdcf9772

See more details on using hashes here.

File details

Details for the file launchdarkly_server_sdk_ai_langchain-0.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for launchdarkly_server_sdk_ai_langchain-0.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9ef56df3d60fed29c30640d1fc9f44a63735bc003abc212c426050b67fc8ba5a
MD5 33d826f2870105520ce2208f7fa35677
BLAKE2b-256 c8272b128e2442f37a47d0de80a366c98a507bb779b7d5c5bc2376aa6267b0ed

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page