A Framework for Scalable AI Agents
Project description
dead-parrot is a Python package created by Lucas Konstantin Bรคrenfรคnger (@pygumby) as part of his thesis for the master's program "Data Analytics & Management" at Frankfurt School of Finance & Management. The thesis addresses the challenges of building and maintaining AI agents at scale in large organizations. These include heterogeneous technology stacks, sensitivity to the choice of underlying language models (LMs) and more. dead-parrot implements the approaches proposed to meet the challenges.
Overview
dead-parrot defines two key abstractions:
- Expert agents answer questions based on subject-matter expertise, via retrieval-augmented generation (RAG)
- Triage agents answer questions by interacting with expert agents in an agentic loop, via the ReAct pattern
dead-parrot builds on three key technologies:
- DSPy to program LM pipelines declaratively, replacing brittle prompt engineering
- Temporal to orchestrate agents as durable workflows, with automatic retries and recovery
- Model Context Protocol (MCP) to expose agents in a standardized way, enabling integration with LM clients
โโโโโโโโโโโโโโโโโโโโโโโ
โ MCP โโ REST โ
โ server โโ server โ
โโโโโโโโโโโโโโโโโโโโโโโ
โโโโโโโโโโโโโโโโโโโโโโโ
โ โโโโโโโโโโโโโโโโโโโ โ
โ โ Triage agent โ โ
โ โ (DSPy ReAct) โ โ
โ โโโโโโโโโโโโโโโโโโโ โ
โ Temporal workflow โ
โโโโโโโโโโโโโโโโโโโโโโโ
โโโโโโโโโโโโโโโโโโโโโโโ
โ REST clients โ
โโโโโโโโโโโโโโโโโโโโโโโ
โฒ
โ
โ
โโโโโโโโโโโโโโโโโโโโดโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโ
โ โ โ
โ โ โ
โผ โผ โผ
โโโโโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโ
โ MCP โโ REST โ โ MCP โโ REST โ โ MCP โโ REST โ
โ server โโ server โ โ server โโ server โ โ server โโ server โ
โโโโโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโ
โโโโโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโ
โ โโโโโโโโโโโโโโโโโโโ โ โ โโโโโโโโโโโโโโโโโโโ โ โ โโโโโโโโโโโโโโโโโโโ โ
โ โ Expert agent #1 โ โ โ โ Expert agent #2 โ โ โ โ Expert agent #n โ โ
โ โ (DSPy RAG) โ โ โ โ (DSPy RAG) โ โ โ โ (DSPy RAG) โ โ
โ โโโโโโโโโโโโโโโโโโโ โ โ โโโโโโโโโโโโโโโโโโโ โ โ โโโโโโโโโโโโโโโโโโโ โ
โ Temporal workflow โ โ Temporal workflow โ โ Temporal workflow โ
โโโโโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโ
Usage
dead-parrot is available on PyPI and can be installed via uv add dead-parrot or pip install dead-parrot.
The demos folder contains three projects that serve as examples of and templates for building agents with dead-parrot. There are two expert agents grounded in public documents from the European Central Bank (ECB), and one triage agent that answers questions by interacting with them:
- ecb_bs_expert_agent: Expert agent for ECB Banking Supervision matters, grounded in public ECB documents
- ecb_hr_expert_agent: Expert agent for ECB Human Resources matters, grounded in public ECB documents
- ecb_triage_agent: Triage agent that answers questions on ECB matters by interacting with the expert agents
Each expert agent can be run standalone, but together with the triage agent they form the full architecture shown above.
To start them all together, ensure uv and Temporal are installed, then run ./demos/start_all.sh.
To ask questions to the triage agent, hook up localhost:9000/mcp with your favorite local LM client, e.g., Goose or Claude Desktop.
Please refer to each demo's README.md for more information.
Development
- Install dependencies:
uv sync --all-packages - Type-check:
uv run mypy . - Lint:
uv run ruff check . --fix - Format:
uv run ruff format .
License
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 dead_parrot-0.1.9.tar.gz.
File metadata
- Download URL: dead_parrot-0.1.9.tar.gz
- Upload date:
- Size: 3.1 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.17 {"installer":{"name":"uv","version":"0.11.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d074bed716c10f5bbb20ac518c2ed63da5a3bf8301d71ac38d449ddebab98541
|
|
| MD5 |
911ac5064d03bbf52eb6882c3d915c3b
|
|
| BLAKE2b-256 |
8482be5c0896cb32d54c6689c9d5f4dde52a4082b26502123abf03bbc35912a5
|
File details
Details for the file dead_parrot-0.1.9-py3-none-any.whl.
File metadata
- Download URL: dead_parrot-0.1.9-py3-none-any.whl
- Upload date:
- Size: 14.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.17 {"installer":{"name":"uv","version":"0.11.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
335dd0af709476191d092e4b09860e7d5004743bfb0bc75e295b3ccc0fe605ec
|
|
| MD5 |
0df78efe9d4b1d58cebf1de7930e67e1
|
|
| BLAKE2b-256 |
239597a37fdd179d1791eec33149ad2bfc7c6e9c5c7904c81fde0c552f2ee254
|