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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dd83d07ebba4fcaef14ea3d906e3dfc609d5ed6e6453edd208fb40b718b71e42
|
|
| MD5 |
f7f2ba7ef3775d1f1d45b0713ac591e5
|
|
| BLAKE2b-256 |
99b31bf3eef6223d9bc70ddc9dcde28a062e182971fda438d0526329ccd474ab
|
Provenance
The following attestation bundles were made for roomy_observability-0.1.1.tar.gz:
Publisher:
publish-pypi.yml on Sarang-Pramode/Roomy
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
roomy_observability-0.1.1.tar.gz -
Subject digest:
dd83d07ebba4fcaef14ea3d906e3dfc609d5ed6e6453edd208fb40b718b71e42 - Sigstore transparency entry: 1417103550
- Sigstore integration time:
-
Permalink:
Sarang-Pramode/Roomy@b7418eba3b02906700b87d6c874c8102ebfc4c3e -
Branch / Tag:
refs/heads/main - Owner: https://github.com/Sarang-Pramode
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@b7418eba3b02906700b87d6c874c8102ebfc4c3e -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file roomy_observability-0.1.1-py3-none-any.whl.
File metadata
- Download URL: roomy_observability-0.1.1-py3-none-any.whl
- Upload date:
- Size: 25.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
27bc21574ebcc86dd9bdb0b295acd170b4ac71066ec5da6beff56eb4f7d9bfcf
|
|
| MD5 |
e73b7d266865fa3365be5cc2eb08ad88
|
|
| BLAKE2b-256 |
d204740a97aa874f7e4fb41fca8f1b8439befa467c3d36e0d709a0d82ad75e28
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
roomy_observability-0.1.1-py3-none-any.whl -
Subject digest:
27bc21574ebcc86dd9bdb0b295acd170b4ac71066ec5da6beff56eb4f7d9bfcf - Sigstore transparency entry: 1417103561
- Sigstore integration time:
-
Permalink:
Sarang-Pramode/Roomy@b7418eba3b02906700b87d6c874c8102ebfc4c3e -
Branch / Tag:
refs/heads/main - Owner: https://github.com/Sarang-Pramode
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@b7418eba3b02906700b87d6c874c8102ebfc4c3e -
Trigger Event:
workflow_dispatch
-
Statement type: