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 (APPROVE/DENY/REVIEW)
  • 📊 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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

langfuse_omega-0.1.0-py3-none-any.whl (9.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for langfuse_omega-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f5f73d3b8db5ae55405ad1cbea664c48600bc7a565a58dae3fad51d8ed4bf828
MD5 a4311421d7bf81507480a8ee17ee6991
BLAKE2b-256 8ae88fb1968da3dc29ff289c8a00bf7f875751f077a863af96d528667f8f56ee

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