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
- Get your API Key from the 5to1r Dashboard.
- Set it as an environment variable:
export FIVETOONE_API_KEY=your_sk_live_...
- 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/awaitor standard functions.
License
MIT
Metadata
Release files for 5to1r 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| 5to1r-0.1.0.tar.gz | 3.5 kB | Without provenance | Details for 5to1r-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| 5to1r-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for 5to1r-0.1.0-py3-none-any.whl |
Total release size: 6.9 kB
Release files / 5to1r-0.1.0.tar.gz
| Download URL | 5to1r-0.1.0.tar.gz |
|---|---|
| Size | 3.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b6d1c88dbf5801bd2cd72e4f59d2f182a8ec28ec9c010d332dd26467c5ae4291
|
|
BLAKE2b-256 checksum How to use checksums |
71f6eb566b18911715d504af47f3d9d983754c2e5b7d492183b217a305a82b3c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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}
|
Release files / 5to1r-0.1.0-py3-none-any.whl
| Download URL | 5to1r-0.1.0-py3-none-any.whl |
|---|---|
| Size | 3.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b1d6895cda94963ae5fd6b2774fb8b686abd9dc26b2b15e04fe25a0e40589eb6
|
|
BLAKE2b-256 checksum How to use checksums |
6875ef9ee06efd669dd635b1e952073f23f7d47c0c24df7965424679b5c03bb6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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}
|
Security for 5to1r 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.