Skip to main content

Observability and tracing for AI agents.

Project description

5to1r Python SDK

Observability and tracing for AI agents. Gain full visibility into your agent's decision-making process, tool usage, and LLM costs.

Installation

pip install 5to1r

Quickstart

  1. Get your API Key from the 5to1r Dashboard.
  2. Set it as an environment variable:
export FIVETOONE_API_KEY=your_sk_live_...
  1. Instrument your agent:
from fivetoone import trace_agent, llm_call, tool_call

@trace_agent()
async def my_agent(query: str):
    # LLM Call
    llm_call(
        input_data=query,
        output_data="Thinking...",
        model_id="gpt-4o",
        cost_usd=0.002,
        latency_ms=800
    )
    
    # Tool Use
    tool_call(
        tool_name="web_search",
        input_data={"q": query},
        output_data="Found results...",
        latency_ms=1200
    )
    
    return "Final Answer"

Features

  • @trace_agent Decorator: Automatically captures run lifecycle and errors.
  • Granular Spans: Manually record LLMs, tools, and custom decisions.
  • Cost Tracking: Monitor your infrastructure spend in real-time.
  • Asynchronous & Synchronous Support: Works with async/await or standard functions.

License

MIT

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

5to1r-0.1.0.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

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

5to1r-0.1.0-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file 5to1r-0.1.0.tar.gz.

File metadata

  • Download URL: 5to1r-0.1.0.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.13 {"installer":{"name":"uv","version":"0.11.13","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for 5to1r-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b6d1c88dbf5801bd2cd72e4f59d2f182a8ec28ec9c010d332dd26467c5ae4291
MD5 a5316ca0a8f4745ee7724a59a0c3eb9a
BLAKE2b-256 71f6eb566b18911715d504af47f3d9d983754c2e5b7d492183b217a305a82b3c

See more details on using hashes here.

File details

Details for the file 5to1r-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: 5to1r-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.13 {"installer":{"name":"uv","version":"0.11.13","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for 5to1r-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b1d6895cda94963ae5fd6b2774fb8b686abd9dc26b2b15e04fe25a0e40589eb6
MD5 590ce18fb7d414907079dc8cb68ab5cf
BLAKE2b-256 6875ef9ee06efd669dd635b1e952073f23f7d47c0c24df7965424679b5c03bb6

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