A Python SDK for logging and visualizing OpenAI agent interactions
Project description
Agensight SDK
A simple SDK for tracing and evaluating AI agent workflows.
Installation
pip install --upgrade agensight
Quick Start
from agensight import init, trace, span
# Initialize Agensight
init(name="my-agent")
# Add tracing to your functions
@trace("my_workflow")
def my_function():
@span()
def my_subtask():
# Your code here
pass
return my_subtask()
Key Features
1. Tracing
- Auto-instrumented tracing of LLM calls
- Function execution tracking
- Agent interaction monitoring
- Performance metrics and token usage analytics
2. Evaluation
from agensight.eval.metrics import GEvalEvaluator
# Create custom evaluator
accuracy = GEvalEvaluator(
name="Accuracy",
criteria="Evaluate response accuracy",
threshold=0.7
)
# Use in your code
@span(metrics=[accuracy])
def my_function():
# Your code here
pass
3. Local Storage
- All data stored locally in
.agensight - No external data uploads
- Complete privacy and control
Dashboard
Start the dashboard to view traces and metrics:
agensight view
Visit http://localhost:5001 in your browser
Documentation
For detailed documentation, visit our docs.
Support
Join our GitHub Discussions for support and feature requests.
License
MIT License • © 2025 agensight contributors
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 agensight-0.6.3.tar.gz.
File metadata
- Download URL: agensight-0.6.3.tar.gz
- Upload date:
- Size: 1.1 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d52d9d0dddd2de711d7f51953439f7b6ad02844ff2670f62b71f85356401cac8
|
|
| MD5 |
10fc6a3f14200cb4218fa5a95e4ce244
|
|
| BLAKE2b-256 |
ce0c196811b5d09806e6edb01b615aac37d27a08deb24678cafc7102e8975484
|
File details
Details for the file agensight-0.6.3-py3-none-any.whl.
File metadata
- Download URL: agensight-0.6.3-py3-none-any.whl
- Upload date:
- Size: 1.2 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
61b34efd9d76a7c41806323bbf649762b155c4544bf67d067f37e0a6ebc8d1ff
|
|
| MD5 |
7eae08180501106835ef4d4722199e40
|
|
| BLAKE2b-256 |
11942c3b88040cfeaaa517c2a1284aab1a7545970e11205af5a9ab8e6f434c8c
|