Observability and replay for LLM agents
Project description
loupe-sdk
Python SDK for Loupe — open-source observability and replay for LLM agents.
Instrument your agent with three lines, see every trace in the dashboard, then replay any run with a different prompt or model and diff the outputs side-by-side.
Install
pip install loupe-sdk
Quick start
import loupe
from groq import Groq
loupe.init(api_key="lp_...", host="https://your-loupe-server.onrender.com")
client = Groq(api_key="...")
loupe.instrument_groq(client) # also: instrument_openai, instrument_anthropic
@loupe.trace(name="my_agent")
def run_agent(query: str) -> str:
with loupe.span("search", type="tool") as s:
results = do_search(query)
s.output = {"count": len(results)}
...
Every decorated call becomes a trace; every loupe.span() and auto-instrumented LLM call becomes a span under it.
Self-host
See the Loupe repo for the full server + dashboard setup.
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 loupe_sdk-0.1.0.tar.gz.
File metadata
- Download URL: loupe_sdk-0.1.0.tar.gz
- Upload date:
- Size: 10.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
44681dca00c3aa9cb6c434da47f1edb2588c5115063e4f25b98dc990b4de28fc
|
|
| MD5 |
9ffe3050518ccef11f17dc2f67c2ae21
|
|
| BLAKE2b-256 |
27b9c4e21689945f10aeb9361ba51f379857f287dbeccd815731fa7b69efd549
|
File details
Details for the file loupe_sdk-0.1.0-py3-none-any.whl.
File metadata
- Download URL: loupe_sdk-0.1.0-py3-none-any.whl
- Upload date:
- Size: 10.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5334652bc885a272e7790863fc93b4a4f95b5f14f5d63e7f51ea0d01ead50270
|
|
| MD5 |
f6a680d5a326bb4fcd37a72cf4d75598
|
|
| BLAKE2b-256 |
fcf13e6dce1abcb20086a0f05174648171780987690f6417d639db469328b471
|