Open source Python library for multi-agent web interfaces.
Project description
GenAILit
GenAILit is a small Python base for building web interfaces for multi-agent systems.
This milestone only includes the package foundation:
GenAILitEventTelemetryStoreAdapterContextBaseAgentAdapter
Requirements
- Python 3.10+
pydantic>=2pytestfor tests
Install
pip install genailit
Example
from genailit import AdapterContext, BaseAgentAdapter, GenAILitEvent, TelemetryStore
class EchoAdapter(BaseAgentAdapter):
def build_events(self, context: AdapterContext):
yield GenAILitEvent(name="ready")
telemetry = TelemetryStore()
context = AdapterContext(session_id="demo", telemetry=telemetry)
events = EchoAdapter().run(context)
LangGraph example
LangGraph remains optional. To run the LangGraph demo, install the extra first:
pip install "genailit[langgraph]"
python examples/langgraph_demo.py
The example builds a tiny LangGraph workflow, wraps it with LangGraphAdapter, and serves it through GenAILitApp on 0.0.0.0:8501.
Scope
This milestone intentionally does not add LangGraph, React, CLI commands, or FastAPI application code.
Project details
Release history Release notifications | RSS feed
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 genailit-0.0.5.tar.gz.
File metadata
- Download URL: genailit-0.0.5.tar.gz
- Upload date:
- Size: 9.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2ff1b287142a18636691cc3e1608e1ff4a450128203db31d2b49c1f43cbe5710
|
|
| MD5 |
b9342722a73a32641e9687aa891165b5
|
|
| BLAKE2b-256 |
dfb3c28759680bfb0752f93430d40b95a740c1dbc1318cd7d3bd4011a0977101
|
File details
Details for the file genailit-0.0.5-py3-none-any.whl.
File metadata
- Download URL: genailit-0.0.5-py3-none-any.whl
- Upload date:
- Size: 8.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b921c49ddc98f09fa5081ab5a6ba3bf763f42c665464df1b58dd8ff43b1062fd
|
|
| MD5 |
3602b8be8f124d79df235612ad601364
|
|
| BLAKE2b-256 |
df102af1990cbeb84746b051c5b7734d38526e327b2d8b2f7f7a048a6f359113
|