Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

agensight-0.6.3.tar.gz (1.1 MB view details)

Uploaded Source

Built Distribution

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

agensight-0.6.3-py3-none-any.whl (1.2 MB view details)

Uploaded Python 3

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

Hashes for agensight-0.6.3.tar.gz
Algorithm Hash digest
SHA256 d52d9d0dddd2de711d7f51953439f7b6ad02844ff2670f62b71f85356401cac8
MD5 10fc6a3f14200cb4218fa5a95e4ce244
BLAKE2b-256 ce0c196811b5d09806e6edb01b615aac37d27a08deb24678cafc7102e8975484

See more details on using hashes here.

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

Hashes for agensight-0.6.3-py3-none-any.whl
Algorithm Hash digest
SHA256 61b34efd9d76a7c41806323bbf649762b155c4544bf67d067f37e0a6ebc8d1ff
MD5 7eae08180501106835ef4d4722199e40
BLAKE2b-256 11942c3b88040cfeaaa517c2a1284aab1a7545970e11205af5a9ab8e6f434c8c

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