Skip to content

Commit 34804d5

Browse files
committed
chore: Update documentation links
1 parent a48b364 commit 34804d5

5 files changed

Lines changed: 28 additions & 12 deletions

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ This repository contains LaunchDarkly AI SDK packages for Python, including the
77
| Package | PyPI | README |
88
| ------- | ---- | ------ |
99
| [launchdarkly-server-sdk-ai](packages/sdk/server-ai) | [![PyPI](https://img.shields.io/pypi/v/launchdarkly-server-sdk-ai.svg)](https://pypi.org/project/launchdarkly-server-sdk-ai/) | [README](packages/sdk/server-ai/README.md) |
10+
| [launchdarkly-server-sdk-ai-optimization](packages/optimization) | [![PyPI](https://img.shields.io/pypi/v/launchdarkly-server-sdk-ai-optimization.svg)](https://pypi.org/project/launchdarkly-server-sdk-ai-optimization/) | [README](packages/optimization/README.md) |
1011

1112
| AI Provider Packages | PyPI | README |
1213
| -------------------- | ---- | ------ |

packages/ai-providers/server-ai-langchain/README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# LaunchDarkly AI SDK - LangChain Provider
22

3-
[![PyPI](https://img.shields.io/pypi/v/launchdarkly-server-sdk-ai-langchain.svg)](https://pypi.org/project/launchdarkly-server-sdk-ai-langchain/)
3+
[![Actions Status](https://github.com/launchdarkly/python-server-sdk-ai/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/launchdarkly/python-server-sdk-ai/actions/workflows/ci.yml)
4+
5+
[![PyPI](https://img.shields.io/pypi/v/launchdarkly-server-sdk-ai-langchain.svg?maxAge=2592000)](https://pypi.org/project/launchdarkly-server-sdk-ai-langchain/)
6+
[![PyPI](https://img.shields.io/pypi/pyversions/launchdarkly-server-sdk-ai-langchain.svg)](https://pypi.org/project/launchdarkly-server-sdk-ai-langchain/)
47

58
> [!CAUTION]
69
> This package is in pre-release and not subject to backwards compatibility

packages/ai-providers/server-ai-openai/README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# LaunchDarkly AI SDK OpenAI Provider
22

3-
[![PyPI](https://img.shields.io/pypi/v/launchdarkly-server-sdk-ai-openai-dev.svg?style=flat-square)](https://pypi.org/project/launchdarkly-server-sdk-ai-openai-dev/)
3+
[![Actions Status](https://github.com/launchdarkly/python-server-sdk-ai/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/launchdarkly/python-server-sdk-ai/actions/workflows/ci.yml)
4+
5+
[![PyPI](https://img.shields.io/pypi/v/launchdarkly-server-sdk-ai-openai.svg?maxAge=2592000)](https://pypi.org/project/launchdarkly-server-sdk-ai-openai/)
6+
[![PyPI](https://img.shields.io/pypi/pyversions/launchdarkly-server-sdk-ai-openai.svg)](https://pypi.org/project/launchdarkly-server-sdk-ai-openai/)
47

58
> [!CAUTION]
69
> This package is in pre-release and not subject to backwards compatibility
@@ -13,7 +16,7 @@ This package provides an OpenAI integration for the LaunchDarkly AI SDK.
1316
## Installation
1417

1518
```bash
16-
pip install launchdarkly-server-sdk-ai-openai-dev
19+
pip install launchdarkly-server-sdk-ai-openai
1720
```
1821

1922
## Quick Start

packages/optimization/README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# LaunchDarkly AI SDK — optimization
22

3-
[![PyPI](https://img.shields.io/pypi/v/launchdarkly-server-sdk-ai-optimization.svg?style=flat-square)](https://pypi.org/project/launchdarkly-server-sdk-ai-optimization/)
3+
[![Actions Status](https://github.com/launchdarkly/python-server-sdk-ai/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/launchdarkly/python-server-sdk-ai/actions/workflows/ci.yml)
4+
5+
[![PyPI](https://img.shields.io/pypi/v/launchdarkly-server-sdk-ai-optimization.svg?maxAge=2592000)](https://pypi.org/project/launchdarkly-server-sdk-ai-optimization/)
6+
[![PyPI](https://img.shields.io/pypi/pyversions/launchdarkly-server-sdk-ai-optimization.svg)](https://pypi.org/project/launchdarkly-server-sdk-ai-optimization/)
47

58
> [!CAUTION]
69
> This package is in pre-release and not subject to backwards compatibility

packages/sdk/server-ai/README.md

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# LaunchDarkly Server-Side AI SDK for Python
22

3+
[![Actions Status](https://github.com/launchdarkly/python-server-sdk-ai/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/launchdarkly/python-server-sdk-ai/actions/workflows/ci.yml)
4+
[![readthedocs](https://readthedocs.org/projects/launchdarkly-python-sdk-ai/badge/)](https://launchdarkly-python-sdk-ai.readthedocs.io/en/latest/)
5+
6+
[![PyPI](https://img.shields.io/pypi/v/launchdarkly-server-sdk-ai.svg?maxAge=2592000)](https://pypi.org/project/launchdarkly-server-sdk-ai/)
7+
[![PyPI](https://img.shields.io/pypi/pyversions/launchdarkly-server-sdk-ai.svg)](https://pypi.org/project/launchdarkly-server-sdk-ai/)
8+
39
This package contains the LaunchDarkly Server-Side AI SDK for Python (`launchdarkly-server-sdk-ai`).
410

511
> [!CAUTION]
@@ -90,16 +96,16 @@ if ai_config.enabled:
9096
# Use with your AI provider
9197
```
9298

93-
## Chat for Conversational AI
99+
## ManagedModel for Conversational AI
94100

95-
`Chat` provides a high-level interface for conversational AI with automatic conversation management and metrics tracking:
101+
`ManagedModel` provides a high-level interface for conversational AI with automatic conversation management and metrics tracking:
96102

97103
- Automatically configures models based on AI configuration
98104
- Maintains conversation history across multiple interactions
99105
- Automatically tracks token usage, latency, and success rates
100106
- Works with any supported AI provider (see [AI Providers](https://github.com/launchdarkly/python-server-sdk-ai#ai-providers) for available packages)
101107

102-
### Using Chat
108+
### Using ManagedModel
103109

104110
```python
105111
import asyncio
@@ -109,23 +115,23 @@ from ldai import LDAIClient, AICompletionConfigDefault, ModelConfig, LDMessage
109115
# Use the same default_config from the retrieval section above
110116
async def main():
111117
context = Context.create("user-123")
112-
chat = await ai_client.create_chat(
118+
model = await ai_client.create_model(
113119
'customer-support-chat',
114120
context,
115121
default_config,
116122
variables={'customerName': 'John'}
117123
)
118124

119-
if chat:
125+
if model:
120126
# Simple conversation flow - metrics are automatically tracked by invoke()
121-
response1 = await chat.invoke('I need help with my order')
127+
response1 = await model.invoke('I need help with my order')
122128
print(response1.message.content)
123129

124-
response2 = await chat.invoke("What's the status?")
130+
response2 = await model.invoke("What's the status?")
125131
print(response2.message.content)
126132

127133
# Access conversation history
128-
messages = chat.get_messages()
134+
messages = model.get_messages()
129135
print(f'Conversation has {len(messages)} messages')
130136

131137
asyncio.run(main())

0 commit comments

Comments
 (0)