Observability and evaluation SDK for LLM Agents
Project description
use-lightcurve
The official Python SDK for Lightcurve, the observability and evaluation platform for LLM Agents.
Installation
pip install use-lightcurve
Quick Start
Magic Mode (Auto-Instrumentation)
The easiest way to use Lightcurve is to enable auto-instrumentation for your AI libraries.
import lightcurve
# Automatically monitors OpenAI, Anthropic, Gemini, and LangChain
lightcurve.monitor(
api_key="lc_live_...",
integrations=['openai', 'gemini'] # Optional: specify integrations
)
# Optional: Verify connection
if lightcurve.is_connected():
print("✅ Lightcurve is active")
Self-Hosted
If you are running the Lightcurve platform on your own infrastructure, specify your base_url:
lightcurve.monitor(
api_key="...",
base_url="https://your-lightcurve-instance.com",
integrations=['openai']
)
Troubleshooting
verify connection failure
If you don't see data in your dashboard:
- Check your API key.
- Ensure you are using the correct
base_urlif self-hosting. - Use
lightcurve.is_connected()to check initialization status.
405 Method Not Allowed
- Ensure your
base_urldoes NOT end with/v1/ingest. The SDK appends this automatically. - Correct:
https://api.uselightcurve.com - Incorrect:
https://api.uselightcurve.com/v1/ingest
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
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 use_lightcurve-0.2.4.tar.gz.
File metadata
- Download URL: use_lightcurve-0.2.4.tar.gz
- Upload date:
- Size: 13.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ace9b86c167ce47baa150c4e468d6cafff044e390b58893b87a96d36035f3146
|
|
| MD5 |
f209a86c2625e4404e9d6cff2f5d4602
|
|
| BLAKE2b-256 |
8c301cadf57926812793b696bae553f46bc35338e1319e94fd555cf42755e99c
|
File details
Details for the file use_lightcurve-0.2.4-py3-none-any.whl.
File metadata
- Download URL: use_lightcurve-0.2.4-py3-none-any.whl
- Upload date:
- Size: 17.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
93f46a099c409e818657ff54f2c5513db5ecc86e3d3dfbaf700db3c896e6bcb3
|
|
| MD5 |
8cbdce8f8b9a4b650be5630976ea48c8
|
|
| BLAKE2b-256 |
64853921e0b2f5460821a17558880a01723ec91dd48cd1c231fa0466e62460db
|