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, roomy dashboard to open the web UI in a browser)

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
examples LangGraph + OpenAI + dotenv + httpx (for repo examples under examples/)
dev Tests, ruff, mypy, build, twine
pip install "roomy-observability[api,openai]"
pip install "roomy-observability[api,openai,examples]"   # LangGraph example deps

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.2.tar.gz (19.3 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.2-py3-none-any.whl (27.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: roomy_observability-0.1.2.tar.gz
  • Upload date:
  • Size: 19.3 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.2.tar.gz
Algorithm Hash digest
SHA256 04e998e7f5f914aad32c261f7532a853bbd98776919811d908704bf35560b9c4
MD5 6760d20e926f0b09f55a66399abd9dfe
BLAKE2b-256 aa039b482db08f463750d4f975569b5ac3cf1c4f96a3fac08ee7aa5edc4ce0bd

See more details on using hashes here.

Provenance

The following attestation bundles were made for roomy_observability-0.1.2.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.2-py3-none-any.whl.

File metadata

File hashes

Hashes for roomy_observability-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 00180665f83cabb6c79c20e97015486fa3ceab50a96f18a66d508cedc9795e38
MD5 8ea31dacce89dc40aa66d7cd8ba6e32e
BLAKE2b-256 394f21c17b99132e5954e4a0a24ae8f446b737491db86f959b9cdbf412b06f7b

See more details on using hashes here.

Provenance

The following attestation bundles were made for roomy_observability-0.1.2-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