Skip to main content

A toolkit for designing multiagent systems

Project description

Agentbyte

Agentbyte is a Python toolkit for building and studying multiagent systems with a learning-first, implementation-oriented workflow.

Current release: 0.2.1

Repository: gitlab.com/pyninja/aiengineering/agentbyte

What’s New in 0.2.1

  • Added explicit project URLs in package metadata (Homepage, Repository, Issues, Changelog).
  • Added MIT LICENSE file at repository root.
  • Expanded README install guidance for extras using pip install and uv add.

See CHANGELOG.md for the complete release history.

Current Capabilities

  • Agent execution loop with run() and run_stream() APIs.
  • Tooling system (function tools + core tools + memory tool).
  • Middleware chain for request/response/error handling.
  • Built-in middleware: logging, security, rate limiting, approval, telemetry.
  • Memory abstractions: list memory, file memory, context injection.
  • OpenAI and Azure OpenAI model client support.

Installation

uv sync --all-groups

Optional extras:

uv sync --extra openai
uv sync --extra azureopenai
uv sync --extra otel

Install in another project (pip / uv add)

Use extras to enable provider + telemetry support:

pip install "agentbyte[azureopenai,otel]"
uv add "agentbyte[azureopenai,otel]"

Install all optional features:

pip install "agentbyte[all]"
# or
uv add "agentbyte[all]"

Note: the Azure extra is azureopenai.

Quick Start

from agentbyte.agents import Agent
from agentbyte.middleware import LoggingMiddleware

# model_client = OpenAIChatCompletionClient(...) or AzureOpenAIChatCompletionClient(...)

def quick_faq_lookup(topic: str) -> str:
    faq = {
        "middleware": "Middleware handles cross-cutting runtime concerns.",
        "memory": "Memory helps agents keep useful context across interactions.",
    }
    return faq.get(topic.lower(), "No FAQ found.")

agent = Agent(
    name="helpful-assistant",
    description="Helpful assistant with middleware",
    instructions="Answer clearly and use tools when needed.",
    model_client=model_client,
    tools=[quick_faq_lookup],
    middlewares=[LoggingMiddleware()],
)

Project Layout

src/agentbyte/
  agents/
  llm/
  memory/
  middleware/
  tools/
  messages.py
  context.py
  types.py

Development

uv run ruff check src tests
uv run pytest tests -v

License

MIT — see LICENSE.

References

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

agentbyte-0.2.2.tar.gz (551.0 kB view details)

Uploaded Source

Built Distribution

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

agentbyte-0.2.2-py3-none-any.whl (81.1 kB view details)

Uploaded Python 3

File details

Details for the file agentbyte-0.2.2.tar.gz.

File metadata

  • Download URL: agentbyte-0.2.2.tar.gz
  • Upload date:
  • Size: 551.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.10.7 {"installer":{"name":"uv","version":"0.10.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for agentbyte-0.2.2.tar.gz
Algorithm Hash digest
SHA256 3b2fb35e373559f21694d66dcf6f86e0cb1226b815b80882347a9887b6e53365
MD5 93f47db3410a4fe074c363d96446f3b8
BLAKE2b-256 a20f89994a6dc01522ca785319b0eece3e6d58224dcde987e62e41180af337e5

See more details on using hashes here.

File details

Details for the file agentbyte-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: agentbyte-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 81.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.10.7 {"installer":{"name":"uv","version":"0.10.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for agentbyte-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 65fbe16fb6e3cae7733e43494e7647c240533657672edc36c3e3028742932baf
MD5 879362522ab9d48dd00fb7cda52bd2ad
BLAKE2b-256 d2bf62355528f537495f450cb721e85dbc37b9becf132a1157ea8ef992a05df8

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