Skip to main content

LangObs observability server for AI agents

Project description

langobs-server

FastAPI backend for LangObs — real-time observability for AI agents.

Install

pip install langobs-server

Run

langobs-server
# REST API: http://localhost:8766/api/v1
# WebSocket: ws://localhost:8766/ws
# Dashboard: http://localhost:5173 (start separately)

Run from source

git clone https://github.com/langobs/langobs
cd langobs
make install && make dev

API Endpoints

Method Path Description
GET /api/v1/sessions List all sessions
GET /api/v1/traces/{session_id} Get all trace events for a session
POST /api/v1/traces/{session_id} Ingest trace events
GET /api/v1/costs/{session_id} Cost breakdown
GET /api/v1/hallucinations/{session_id} Hallucination alerts
POST /api/v1/hallucinations/{session_id}/detect Run detection
GET /api/v1/memory/{session_id} Memory entries
PATCH /api/v1/memory/entry/{id} Edit memory entry
DELETE /api/v1/memory/entry/{id} Delete memory entry
GET /api/v1/replay/{session_id} Replay event stream
GET /health Health check

WebSocket Protocol

Connect to ws://localhost:8766/ws and send a hello message:

{ "type": "hello", "role": "sdk" }

Roles: "sdk" (agent sending events) or "dashboard" (browser receiving events).

Configuration

Environment variables (all optional):

Variable Default Description
DATABASE_URL sqlite+aiosqlite:///langobs.db Database URL
HOST 0.0.0.0 Bind address
PORT 8766 Port
CORS_ORIGINS ["*"] Allowed CORS origins

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

langobs_server-0.2.0.tar.gz (394.9 kB view details)

Uploaded Source

Built Distribution

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

langobs_server-0.2.0-py3-none-any.whl (393.7 kB view details)

Uploaded Python 3

File details

Details for the file langobs_server-0.2.0.tar.gz.

File metadata

  • Download URL: langobs_server-0.2.0.tar.gz
  • Upload date:
  • Size: 394.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.5

File hashes

Hashes for langobs_server-0.2.0.tar.gz
Algorithm Hash digest
SHA256 3d90681bbf1f26670349499d1584cee4087d08062a873b045eafaa54225dd163
MD5 e6ca37c17f686acb9ea7d4f4a41cb38d
BLAKE2b-256 f64f6b7353439767c8abe1d42f91348ef20cada8de5570b2f6cc299d5b8ae607

See more details on using hashes here.

File details

Details for the file langobs_server-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: langobs_server-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 393.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.5

File hashes

Hashes for langobs_server-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f453f079051b00555b1b13afb5950d80c1c56534552525fda624e76ef3876879
MD5 b7d6086a4f38791e0e11ad03dce7f63d
BLAKE2b-256 58b93c50fe83f945be382728ff57eba2e4819745f45df9e8a7baed948c564fbf

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