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.0

What’s New in 0.2.0

  • Memory parity upgrades (ListMemory/FileMemory serialization config support).
  • Agent-managed memory tooling (MemoryTool, sandboxed MemoryBackend).
  • Middleware parity improvements (ApprovalMiddleware, memory_access routing).
  • OpenTelemetry middleware + opt-in auto-instrumentation support.
  • New notebook coverage for real-client middleware workflows.

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

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.0.tar.gz (536.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.0-py3-none-any.whl (77.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: agentbyte-0.2.0.tar.gz
  • Upload date:
  • Size: 536.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.10.6 {"installer":{"name":"uv","version":"0.10.6","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.0.tar.gz
Algorithm Hash digest
SHA256 53de22fa8f9e2e0227b47ee687b9fa3bad954b8f58e9380d5e0293c2b95e4873
MD5 cf0d7ad557fac7c8c12dc23b842f7f16
BLAKE2b-256 62f2adda0b402b0410abe43fdea64f16a8b01709271665f1e153a9968386a2ed

See more details on using hashes here.

File details

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

File metadata

  • Download URL: agentbyte-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 77.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.10.6 {"installer":{"name":"uv","version":"0.10.6","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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ffaa854435a05ab4745ae46c46c0731e57384dc29d8ec59900c8901ef44d63dc
MD5 3179b0d6096573c389e2c73c71f95617
BLAKE2b-256 a798ac89b1460b12388b275f2bc3a0b7686eaee70db7ffaac30cecd26b0fe5f2

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