Self-Contained Demo Stack¶
The demo/ directory is a portable example distribution built around
langgraph-openai-serve. It contains independently locked applications,
client integrations, gateway configuration, and a complete Compose stack.
Package and demo have different owners
The PyPI package provides the OpenAI-compatible server integration. It
contains no built-in graph, UI, gateway, database, or runnable application.
Everything described in this section belongs to demo/ and can be copied
or operated independently of the package source checkout with published
images. The development Compose override intentionally uses the parent
checkout as an editable API dependency.
-
Run the API
Start PostgreSQL and call the example graphs through an OpenAI client.
-
Explore the graphs
Compare schema adapters, RAG, citations, client events, subgraphs, and HITL.
-
Run the complete stack
Use published images or build the demo applications with an editable LGOS checkout.
-
Use Chainlit
Model discovery, Chat Settings, persistence, login, streaming, and HITL.
-
Use Open WebUI
A general manifold Pipe plus a dedicated
simple-graphUserValve demo. -
Route through Bifrost
Route two independently addressable LGOS APIs through one raw OpenAI pass-through endpoint.
Components¶
| Component | Demo-owned responsibility | Distribution |
|---|---|---|
| Demo APIs | Two FastAPI graph services that may expose different graph sets | One independent uv project; Compose runs the lgos-demo-api image twice |
| Chainlit | Persistent OpenAI client, login, settings UI, events, and approval UI | Independent uv project and lgos-chainlit image |
| Open WebUI | Dynamic generated models plus a static UserValves example | Independent uv project; Open WebUI uses its official image |
| Bifrost | Shared model catalog plus provider-selected raw pass-through | Compose configuration with the official image |
| PostgreSQL | LangGraph checkpoints and Chainlit persistence | Official image with a demo-owned bind directory |
Only the APIs import langgraph-openai-serve. Chainlit and Open WebUI exercise
the OpenAI wire contract without importing the package. Their dynamic clients
use Bifrost's catalog for provider-qualified discovery and raw pass-through for
model details and chat. The fixed-model Open WebUI example uses Bifrost
pass-through without catalog discovery. Pass-through preserves the required
LGOS model-detail extension.
Client Capabilities¶
| Demo client | Missing LGOS metadata | Runtime settings | Interrupts | Client events | Citations |
|---|---|---|---|---|---|
| Chainlit | Limited-functionality profile and warning toast | Renders supported discovered fields | Dedicated approval UI | Native status task list and live activity panel | Markdown content |
| Open WebUI generated models | Limited-functionality model description and warning notification | Renders supported discovered fields as Chat Variables | Approval through the Pipe | Native status updates | Streaming annotations and Markdown |
| Open WebUI static example | Warning notification | Fixed simple-graph UserValves |
None | Not requested | Assistant text only |
Direct OpenAI SDK clients need no demo adapter. They can use every core field their own application handles, as shown in OpenAI Clients.
For exact commands and environment ownership, use Demo Settings and Commands. To build your own application, get started with the package.