Skip to main content

Profile, analyze, and optimize token consumption in LLM-powered applications and agentic workflows.

Project description

AgenticLens

An open-source profiler for AI agents that analyzes token usage, cost, latency, and optimization opportunities across LLM workflows.

Status: early scaffold. Core data models, provider abstraction, and the explicit profile()/step() instrumentation API are in place. The recommendation engine's heuristic rules are not yet implemented — see AgenticLens_Spec.md.

Install (development)

uv sync --extra dev

Usage

from agenticlens import profile, step

with profile("Customer Support"):
    with step("Planner", type="planner") as s:
        response = planner_llm.invoke(prompt)
        s.record(response)

Development

uv run pytest          # tests
uv run ruff check .    # lint
uv run ruff format .   # format
uv run mypy            # type check

See AgenticLens_Spec.md for the full project specification and ROADMAP.md for what's planned beyond the MVP.

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

agenticlens-0.1.0.tar.gz (105.3 kB view details)

Uploaded Source

Built Distribution

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

agenticlens-0.1.0-py3-none-any.whl (25.8 kB view details)

Uploaded Python 3

File details

Details for the file agenticlens-0.1.0.tar.gz.

File metadata

  • Download URL: agenticlens-0.1.0.tar.gz
  • Upload date:
  • Size: 105.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for agenticlens-0.1.0.tar.gz
Algorithm Hash digest
SHA256 082f7843ee9e20a94166605c864ab86bddb96f7cb467fa8b213f8a362c2a17ae
MD5 65d773438457c06ffa1a333ae2625c5e
BLAKE2b-256 53ac0001633c683e9ca30442c78e412b85a7269234c5122a6611051bdedfe462

See more details on using hashes here.

File details

Details for the file agenticlens-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: agenticlens-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 25.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for agenticlens-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0dbfb0f93a661341dff366c3ca1a04693cf22e6bd5f438af3406c189da7f151f
MD5 19abe787c2417e68c19a8efd7d94934b
BLAKE2b-256 af30dc2be2d297d8f42af44d3fb76075b4ea3e362d5e4e8f7238e7fb47cbbd36

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