Skip to main content

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:

  1. Check your API key.
  2. Ensure you are using the correct base_url if self-hosting.
  3. Use lightcurve.is_connected() to check initialization status.

405 Method Not Allowed

  • Ensure your base_url does 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

use_lightcurve-0.2.4.tar.gz (13.1 kB view details)

Uploaded Source

Built Distribution

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

use_lightcurve-0.2.4-py3-none-any.whl (17.9 kB view details)

Uploaded Python 3

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

Hashes for use_lightcurve-0.2.4.tar.gz
Algorithm Hash digest
SHA256 ace9b86c167ce47baa150c4e468d6cafff044e390b58893b87a96d36035f3146
MD5 f209a86c2625e4404e9d6cff2f5d4602
BLAKE2b-256 8c301cadf57926812793b696bae553f46bc35338e1319e94fd555cf42755e99c

See more details on using hashes here.

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

Hashes for use_lightcurve-0.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 93f46a099c409e818657ff54f2c5513db5ecc86e3d3dfbaf700db3c896e6bcb3
MD5 8cbdce8f8b9a4b650be5630976ea48c8
BLAKE2b-256 64853921e0b2f5460821a17558880a01723ec91dd48cd1c231fa0466e62460db

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