Opinionated event-driven abstraction for LangGraph. State IS events.
Project description
langgraph-events
Opinionated event-driven abstraction for LangGraph. State IS events.
[!CAUTION] Experimental (v0.3.0) - This is an early-stage personal project, not a supported product. The API will change without notice or migration path.
Quick Start
from langgraph_events import Event, EventGraph, on
class MessageReceived(Event):
text: str
class ReplyProduced(Event):
text: str
@on(MessageReceived)
def reply(event: MessageReceived) -> ReplyProduced:
return ReplyProduced(text=f"Echo: {event.text}")
graph = EventGraph([reply])
log = graph.invoke(MessageReceived(text="hello"))
print(log.latest(ReplyProduced))
Installation
pip install langgraph-events
# With AG-UI adapter support
pip install "langgraph-events[agui]"
# From source (development)
pip install git+https://github.com/cadance-io/langgraph-events.git
Documentation
- Docs site (GitHub Pages): https://cadance-io.github.io/langgraph-events/
- Local docs index:
docs/index.md - Getting started:
docs/getting-started.md - Core concepts:
docs/concepts.md - Patterns:
docs/patterns.md - API reference:
docs/api.md - AG-UI adapter:
docs/agui.md - Checkpointer and graph evolution:
docs/checkpointer-evolution.md
Development
uv sync --group dev
uv run pytest tests/
uv run ruff check src/ tests/
uv run mypy src/
License
MIT - see LICENSE.
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
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 langgraph_events-0.3.0.tar.gz.
File metadata
- Download URL: langgraph_events-0.3.0.tar.gz
- Upload date:
- Size: 227.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2f3a5924d91cece0a8a9bb530a8364f412b36bc7a7d4dfc6457480016e823f4f
|
|
| MD5 |
9232564fe455380e10dd92bcdf8e0a12
|
|
| BLAKE2b-256 |
8c0fa854e2ad3948ee3cd260008758314bf8c55bfced5e035ffa189167de6d8c
|
File details
Details for the file langgraph_events-0.3.0-py3-none-any.whl.
File metadata
- Download URL: langgraph_events-0.3.0-py3-none-any.whl
- Upload date:
- Size: 36.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8ea81585aee2fcd7de04d4e0ae018cf43259764994b42b5f9ba825a6e612c0bf
|
|
| MD5 |
0b5f787ed13dbc8b03416042259df8b8
|
|
| BLAKE2b-256 |
09f3317308e68d621a69ab8dfb80680e932b911730f198159049928773bba966
|