Skip to main content

Telemetry and Observability SDK for AI Agents

Project description

agenteval_sdk

A lightweight SDK to log agent traces to the AgentEval ingestion endpoint.

Usage

from agenteval_sdk import trace, log_trace

@trace
def my_handler(x):
    return x * 2

log_trace(
    trace_id="demo-123",
    input_text="hello",
    output_text="world",
    latency_ms=120,
    tokens_used=42,
    status="NEW",
)

The SDK honors an environment variable AGENTEVAL_API_URL; otherwise it defaults to http://ingestion:5000/trace. You can also pass url= explicitly to log_trace.

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

agenteval_sdk-0.2.0-py3-none-any.whl (13.5 kB view details)

Uploaded Python 3

File details

Details for the file agenteval_sdk-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: agenteval_sdk-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 13.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for agenteval_sdk-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 933be45a8b6093ea99eac6533168d7eb88faa0662dc296185f90a0977a53eb17
MD5 99508b6c041a9a8214fb5d4d8a40b346
BLAKE2b-256 ef15718a2003880c6165f6d8145bdfdfbd04d0c2e2a7b8cd6fb22e402b32d098

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