Skip to main content

Local-first LangChain agent observability: traces, context segments, tokens, CLI & web UI

Project description

Roomy

Roomy is a local-first observability toolkit for LangChain agents. It records what entered the model (messages, tools, retrievers), token usage, latency, and structured traces in SQLite, with a CLI and an optional web UI for inspection.

Install

pip install roomy-observability
  • PyPI package: roomy-observability
  • Python import: import roomy
  • CLI: roomy (e.g. roomy serve, roomy sessions list)

Requires Python 3.11+.

Quick start

from roomy import end_session, instrument_langchain

bindings = instrument_langchain(app_name="my-agent", db_path="./traces.db")
result = chain.invoke(
    {"topic": "Hello"},
    config={"callbacks": bindings.callbacks},
)
end_session(bindings.manager)

Use wrap_agent(chain, bindings.manager) if you prefer binding callbacks on a Runnable.

Optional extras

Extra Purpose
api FastAPI + Uvicorn (roomy serve for the inspector API)
openai tiktoken for better token estimates
dev Tests, ruff, mypy, build, twine
pip install "roomy-observability[api,openai]"

Documentation & source

Full monorepo (sample agents, web app, architecture docs): github.com/Sarang-Pramode/Roomy

Author: Sarang Pramode · 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

roomy_observability-0.1.1.tar.gz (17.7 kB view details)

Uploaded Source

Built Distribution

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

roomy_observability-0.1.1-py3-none-any.whl (25.9 kB view details)

Uploaded Python 3

File details

Details for the file roomy_observability-0.1.1.tar.gz.

File metadata

  • Download URL: roomy_observability-0.1.1.tar.gz
  • Upload date:
  • Size: 17.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for roomy_observability-0.1.1.tar.gz
Algorithm Hash digest
SHA256 dd83d07ebba4fcaef14ea3d906e3dfc609d5ed6e6453edd208fb40b718b71e42
MD5 f7f2ba7ef3775d1f1d45b0713ac591e5
BLAKE2b-256 99b31bf3eef6223d9bc70ddc9dcde28a062e182971fda438d0526329ccd474ab

See more details on using hashes here.

Provenance

The following attestation bundles were made for roomy_observability-0.1.1.tar.gz:

Publisher: publish-pypi.yml on Sarang-Pramode/Roomy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file roomy_observability-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for roomy_observability-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 27bc21574ebcc86dd9bdb0b295acd170b4ac71066ec5da6beff56eb4f7d9bfcf
MD5 e73b7d266865fa3365be5cc2eb08ad88
BLAKE2b-256 d204740a97aa874f7e4fb41fca8f1b8439befa467c3d36e0d709a0d82ad75e28

See more details on using hashes here.

Provenance

The following attestation bundles were made for roomy_observability-0.1.1-py3-none-any.whl:

Publisher: publish-pypi.yml on Sarang-Pramode/Roomy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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