Skip to main content

OmegaEngine governance integration for langfuse-omega

Project description

OmegaEngine Logo

langfuse-omega

Langfuse + OmegaEngine Integration

PyPI License


✨ Features

  • 📊 Unified Observability — Langfuse tracing + OmegaEngine governance
  • 🔗 Bi-directional Sync — Traces flow both ways
  • 📈 Policy Metrics — Governance data in Langfuse dashboard
  • 🛡️ Alert on Violations — Trigger Langfuse alerts on policy blocks
  • Zero Config — Auto-detect and integrate

📦 Installation

pip install langfuse-omega

🚀 Quick Start

from langfuse_omega import OmegaLangfuseCallback

callback = OmegaLangfuseCallback(
    langfuse_secret_key="your-langfuse-key",
    langfuse_public_key="your-public-key",
    omega_api_key="your-omega-key",
)

# Use with any LLM framework
from langchain_openai import ChatOpenAI

llm = ChatOpenAI(callbacks=[callback])
response = llm.invoke("Hello!")

# View in Langfuse dashboard with governance metadata

📊 Dashboard Integration

In your Langfuse dashboard, you'll see:

  • ✅ Omega Decision (ALLOW/BLOCK/ESCALATE)
  • 📊 Risk Score
  • 🏷️ Policy Tags
  • 🔗 Link to Omega audit trail

🔔 Alert Configuration

callback = OmegaLangfuseCallback(
    alert_on_deny=True,
    alert_on_high_risk=True,
    risk_threshold=70,
)

📄 License

Licensed under the Apache License 2.0.

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

langfuse_omega-0.2.0.tar.gz (560.7 kB view details)

Uploaded Source

Built Distribution

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

langfuse_omega-0.2.0-py3-none-any.whl (11.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for langfuse_omega-0.2.0.tar.gz
Algorithm Hash digest
SHA256 2cc0b2a8aadfc43ea89d860dd255ab1ea20b06f2f439f956841811971e511a1d
MD5 d941f2d68de0ef8c6ff929a5bf66bed5
BLAKE2b-256 22db47a1535f543995a158a4c245ce74c1de96354aa2e76f6c14255e5c6248d6

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for langfuse_omega-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 681bd96142ab299471fe556686d2f83f17d0abdd50f42398a245f8e1b30582d4
MD5 192dedb1162f1b9bbbcd57dafdf97145
BLAKE2b-256 715a7c840ee527ff9de8a362109e50f7f7935bdb05063d9801696d615128bf6d

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