Skip to main content

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:

  • GenAILitEvent
  • TelemetryStore
  • AdapterContext
  • BaseAgentAdapter

Requirements

  • Python 3.10+
  • pydantic>=2
  • pytest for 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

genailit-0.0.5.tar.gz (9.4 kB view details)

Uploaded Source

Built Distribution

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

genailit-0.0.5-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

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

Hashes for genailit-0.0.5.tar.gz
Algorithm Hash digest
SHA256 2ff1b287142a18636691cc3e1608e1ff4a450128203db31d2b49c1f43cbe5710
MD5 b9342722a73a32641e9687aa891165b5
BLAKE2b-256 dfb3c28759680bfb0752f93430d40b95a740c1dbc1318cd7d3bd4011a0977101

See more details on using hashes here.

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

Hashes for genailit-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 b921c49ddc98f09fa5081ab5a6ba3bf763f42c665464df1b58dd8ff43b1062fd
MD5 3602b8be8f124d79df235612ad601364
BLAKE2b-256 df102af1990cbeb84746b051c5b7734d38526e327b2d8b2f7f7a048a6f359113

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