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.1.tar.gz (537.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.1-py3-none-any.whl (78.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: agentbyte-0.2.1.tar.gz
  • Upload date:
  • Size: 537.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.1.tar.gz
Algorithm Hash digest
SHA256 bc75ac2f503a9dbb1d3598269bfaff5a2c39009c218f3afb3c0b04a53116dbcd
MD5 f918168c746c083d304f844948d1cfc2
BLAKE2b-256 07a55be39a058619684d930d38fa83087bedbbe6f5d1e3b29c5ca1d934453987

See more details on using hashes here.

File details

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

File metadata

  • Download URL: agentbyte-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 78.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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3c6e7564a303cb6562530a7e78f66353462feaf81442d060523a07a14df7d352
MD5 f5a0e6655968bb78a4fdd37733fef239
BLAKE2b-256 bedd6ca6415b4af7b4fd01ec87c8ad6cac59529c375d83b0ce6d0ace6d00db80

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