Metadata-Version: 2.4
Name: abt-core
Version: 0.0.1
Summary: Declarative markdown-driven agent framework with pluggable tools and MCP integrations
Keywords: agents,llm,langgraph,markdown,yaml,workflows,cli
Author: GetYourGuide
License-Expression: Apache-2.0
License-File: LICENSE
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Typing :: Typed
Requires-Dist: deepagents>=0.7.35,<0.8
Requires-Dist: langgraph>=1.2.11,<2
Requires-Dist: langchain[mcp]>=1.5.0,<2
Requires-Dist: langchain-core>=1.8.0,<2
Requires-Dist: fastmcp>=4.0.11,<5
Requires-Dist: mcp>=2.2.0,<3
Requires-Dist: httpx2>=2.5.0,<3
Requires-Dist: orjson>=3.11.9
Requires-Dist: click>=8.4.2
Requires-Dist: cachetools>=7.1.6
Requires-Dist: tenacity>=9.0
Requires-Dist: pydantic>=2.13.4
Requires-Dist: pydantic-settings>=2.14.2
Requires-Dist: pyyaml>=6.0.2
Requires-Dist: boto3>=1.43.70
Requires-Dist: jinja2>=3.1
Requires-Dist: jsonschema>=4.26
Requires-Dist: rich>=15,<16
Requires-Dist: rich-click>=1.9.8
Requires-Dist: prompt-toolkit>=3.0.50
Requires-Dist: structlog>=26.1
Requires-Dist: python-frontmatter>=1.3
Requires-Dist: msgspec>=0.21.1
Requires-Dist: tiktoken>=0.13
Requires-Dist: httpx>=0.27
Requires-Dist: packaging>=26.3
Requires-Dist: python-dotenv>=1.2.2
Requires-Dist: croniter>=6.2.4
Requires-Dist: abt-core[bedrock,openai,anthropic,confluence,slack,jira,databricks,web-search,serve,collapse,quickjs,checkpoint-sqlite,checkpoint-bedrock,checkpoint-dynamodb,approvals-dynamodb,observability,braintrust,queue] ; extra == 'all'
Requires-Dist: langchain-anthropic>=1.7.10 ; extra == 'anthropic'
Requires-Dist: langchain-aws>=1.9.0 ; extra == 'bedrock'
Requires-Dist: braintrust>=0.49.1 ; extra == 'braintrust'
Requires-Dist: langgraph-checkpoint-aws>=1.1.0 ; extra == 'checkpoint-bedrock'
Requires-Dist: langgraph-checkpoint-aws>=1.1.0 ; extra == 'checkpoint-dynamodb'
Requires-Dist: langgraph-checkpoint-sqlite>=3.1.1 ; extra == 'checkpoint-sqlite'
Requires-Dist: langchain-collapse>=0.1.1,<1 ; extra == 'collapse'
Requires-Dist: atlassian-python-api>=5.0.5 ; extra == 'confluence'
Requires-Dist: beautifulsoup4>=4.15.0 ; extra == 'confluence'
Requires-Dist: databricks-sdk>=0.162.0 ; extra == 'databricks'
Requires-Dist: jira>=3.10.5 ; extra == 'jira'
Requires-Dist: opentelemetry-api>=1.45.1 ; extra == 'observability'
Requires-Dist: opentelemetry-sdk>=1.45.1 ; extra == 'observability'
Requires-Dist: opentelemetry-exporter-otlp-proto-http>=1.45.1 ; extra == 'observability'
Requires-Dist: langchain-openai>=1.4.1 ; extra == 'openai'
Requires-Dist: redis>=8.1.0 ; extra == 'queue'
Requires-Dist: deepagents[quickjs] ; extra == 'quickjs'
Requires-Dist: langchain-quickjs>=0.3.12,<1 ; extra == 'quickjs'
Requires-Dist: starlette>=1.3.1 ; extra == 'serve'
Requires-Dist: uvicorn[standard]>=0.51 ; extra == 'serve'
Requires-Dist: slack-sdk>=3.43.0 ; extra == 'slack'
Requires-Dist: slack-bolt>=1.30.0 ; extra == 'slack'
Requires-Dist: aiohttp>=3.14.3 ; extra == 'slack'
Requires-Dist: ddgs>=9.0 ; extra == 'web-search'
Maintainer: GetYourGuide GmbH
Requires-Python: >=3.12
Project-URL: Homepage, https://github.com/getyourguide/abt-core
Project-URL: Documentation, https://getyourguide.github.io/abt-core
Project-URL: Repository, https://github.com/getyourguide/abt-core
Project-URL: Issues, https://github.com/getyourguide/abt-core/issues
Provides-Extra: all
Provides-Extra: anthropic
Provides-Extra: approvals-dynamodb
Provides-Extra: bedrock
Provides-Extra: braintrust
Provides-Extra: checkpoint-bedrock
Provides-Extra: checkpoint-dynamodb
Provides-Extra: checkpoint-sqlite
Provides-Extra: collapse
Provides-Extra: confluence
Provides-Extra: databricks
Provides-Extra: jira
Provides-Extra: observability
Provides-Extra: openai
Provides-Extra: queue
Provides-Extra: quickjs
Provides-Extra: serve
Provides-Extra: slack
Provides-Extra: web-search
Description-Content-Type: text/markdown

<p align="center">
  <img src="docs/images/logo.png" width="175" alt="Agent Build Tool" />
</p>

<h1 align="center">abt</h1>
<p align="center"><strong>Write AI agents as files. Test them like code.<br />Run them where your team already works.</strong></p>

<p align="center">
<code>abt</code> (Agent Build Tool) checks your agents' wiring before anything runs, tests and benchmarks every change, and runs them on real events at scale.
</p>

<p align="center">
  <a href="docs/getting-started/quickstart.md">Quickstart</a> ·
  <a href="docs/index.md">Docs</a> ·
  <a href="https://github.com/getyourguide/abt-core/tree/main/examples">Examples</a> ·
  <a href="#contributing">Contributing</a>
</p>

<p align="center">
  <a href="https://github.com/getyourguide/abt-core/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-Apache%202.0-blue.svg" alt="License"></a>
  <a href="https://www.python.org/downloads/"><img src="https://img.shields.io/badge/python-3.12%2B-3776AB?logo=python&logoColor=white" alt="Python"></a>
  <a href="docs/index.md"><img src="https://img.shields.io/badge/docs-MkDocs-526CFE?logo=materialformkdocs&logoColor=white" alt="Docs"></a>
  <img src="https://img.shields.io/badge/status-alpha-orange" alt="Alpha">
</p>

<p align="center">
  <img src="assets/flow-dark.gif#gh-dark-mode-only" width="840" alt="Animation: an event in Slack, Jira or GitHub reaches a trigger and starts a run. In the workflow, a source reads the data from the tool, a prompt builds the task, and an agent decides, delegating to subagents and tools whose work converges back into one answer. An exposure then delivers the result to Slack, Jira or GitHub" />
  <img src="assets/flow-light.gif#gh-light-mode-only" width="840" alt="Animation: an event in Slack, Jira or GitHub reaches a trigger and starts a run. In the workflow, a source reads the data from the tool, a prompt builds the task, and an agent decides, delegating to subagents and tools whose work converges back into one answer. An exposure then delivers the result to Slack, Jira or GitHub" />
</p>

*An event comes in, a trigger starts a run, the agent decides, and the result goes out where your team wants.*

abt is for teams that put agents in front of real Slack, Jira and GitHub traffic and need to change them with high confidence that nothing will break. It was built at GetYourGuide and runs in production there. It is alpha, so breaking changes can land in minor versions; the GitHub release notes call them out.

## What you get

- **Write agents as files.** An agent is a Markdown file with a little YAML on top. Tools, MCPs, budgets and middleware are a few lines of config, and custom tools are plain Python functions.
- **Catch breakage before it ships.** `abt compile` reads every file and checks that names and references line up, so a renamed agent fails there, not in production. Tests and benchmarks show whether a prompt or model change made answers better or worse.
- **Try it all on your laptop.** Run a whole Slack, Jira or GitHub workflow against a fake event and mocked data. Nothing gets posted.
- **Run it for real.** Agents react to events in Slack, Jira and GitHub, scale out across workers, and stay inside the limits you set.

## Why abt?

Plain SDK code gives you full control and leaves the wiring, tests and integrations to you. abt ships those ready-made: Slack, Jira, GitHub, Confluence, email, Datadog, Databricks and any MCP server, with Jinja templates for prompts and a compiler, tests and benchmarks that check every change before it ships. Claude Code subagents live in your Claude Code session; abt agents run unattended on events. For a one-off script, plain code is simpler.

## An agent is a file

Here's a whole agent. `agents/triage.md` has a one-line description up top and the system prompt below it. The commented lines show what else you can switch on, one line each:

```markdown
---
description: Routes a support message to the right team.
# model_id: anthropic:claude-haiku-5-5     # a different model for this agent
# tools: [lookup_order]                    # a Python function the agent can call
# subagents: [refund_specialist]           # other agents it can delegate to
# transformers: [redact_pii]               # clean up the answer before it goes out
# middleware:                              # guardrails on calls, tokens and time
#   - model_call_limit: {max_model_calls: 5}
#   - token_budget: {max_total_tokens: 50000}
---

You triage incoming support messages. Reply with the team that should handle it
(billing, refunds or engineering) and one sentence of why.
```

And here's its test, `tests/triage.yaml`. A check can be an exact match, a schema, or a plain sentence that an LLM judge answers with yes or no:

```yaml
agents:
  - agent: triage
    tests:
      - name: sends_refund_requests_to_refunds
        prompt: "Tour cancelled by the supplier, still no refund for my 84 EUR."
        says: [routes the message to refunds]
```

## Try it in five minutes

You'll need Python 3.12+ and [uv](https://docs.astral.sh/uv/). `compile`, `graph`, `docs generate` and `test --dry-run` never call the model, so you can try those without a key. A key (Anthropic by default, OpenAI, or an AWS profile for Bedrock) only matters once an agent runs.

<p align="center">
  <img src="assets/demo-dark.gif#gh-dark-mode-only" width="840" alt="Terminal recording: abt init scaffolds a project, an agent is shown as a Markdown file, abt compile passes and then fails with an unknown-agent error after the analyst file is renamed, abt run and abt test call the model, and abt dispatch runs a Slack workflow with a stand-in thread and nothing posted" />
  <img src="assets/demo-light.gif#gh-light-mode-only" width="840" alt="Terminal recording: abt init scaffolds a project, an agent is shown as a Markdown file, abt compile passes and then fails with an unknown-agent error after the analyst file is renamed, abt run and abt test call the model, and abt dispatch runs a Slack workflow with a stand-in thread and nothing posted" />
</p>


```bash
mkdir my-agents && cd my-agents
uv venv --python 3.13 && source .venv/bin/activate
uv pip install "abt-core[all]"

abt init                              # a two-agent starter: agents, tests, a sample prompt, profiles.yaml
abt compile                           # checks the wiring, no model call
export ANTHROPIC_API_KEY=...          # set base_url in profiles.yaml if running behind an AI gateway
abt debug                             # preflight: key, profile and one tiny live request to your LLM
abt run -s reviewer -p "Review: revenue grew 40%, no citations."   # the reviewer asks the analyst for help along the way
abt test                              # every test, LLM judges included
```

The [Quickstart](docs/getting-started/quickstart.md) walks through every file, and [Installation](docs/getting-started/installation.md) covers lighter installs. Ready to connect your tools? Keep reading.

## Connect agents to the tools you already use

A **trigger** starts a run when something happens, a **source** fetches the data your agent needs, and an **exposure** delivers the answer. Each is a small YAML file, and one workflow wires them together:

```yaml
# workflows/support_ticket.yaml
trigger:
  support_slack:                 # a new message in #support
    vars:
      channel_id: "{{ event.scope_id }}"   # hand the channel and thread to the source
      thread_ts: "{{ event.thread_id }}"
steps: [support_thread, triage_task, triage, triage_writeback]
```

Try it first. In the [Slack example](https://github.com/getyourguide/abt-core/tree/main/examples/slack-workflow), this runs the real agents against a made-up Slack thread, prints the answer and posts nothing:

```bash
abt dispatch -s summarize_thread --skip-exposures \
  --mock-source slack_thread="Tour cancelled by the supplier, still no refund for my 84 EUR."
```

Then switch it on. `abt watch run --all` listens to Slack, Jira or GitHub and runs the workflow on every event. When one process is not enough, split listening from running over Redis and add workers; with `--acks-late`, a worker that dies mid-run hands its job to another. The [watch guide](docs/guides/watch.md) covers scaling, health checks and observability.

## Know whether a change made it better

`abt bench` runs the same cases with your changes and without them, then compares quality and token use. Cases bring their own data, so a benchmark needs no access to your tools and posts nothing. Add it to CI and a pull request that makes answers clearly worse fails before it merges.

<p align="center">
  <img src="assets/bench-dark.png#gh-dark-mode-only" width="840" alt="abt bench report: your changes against main, all 10 cases still pass, quality unchanged, a typical case uses 34% fewer tokens and runs faster" />
  <img src="assets/bench-light.png#gh-light-mode-only" width="840" alt="abt bench report: your changes against main, all 10 cases still pass, quality unchanged, a typical case uses 34% fewer tokens and runs faster" />
</p>

*What `abt bench` prints for a tighter triage prompt: every case still passes and a typical case spends a third fewer tokens (example numbers).*

Want a cheaper model? Swap it in and the report tells you what it costs in quality before you ship it. [Benchmarks](docs/build/benchmarks.md) explains how to read the report.

## Contributing

Bug reports, feature requests and PRs are welcome. Easy ways in: run an [example](https://github.com/getyourguide/abt-core/tree/main/examples), tell us where the docs lost you, or add an example of your own. [CONTRIBUTING.md](https://github.com/getyourguide/abt-core/blob/main/CONTRIBUTING.md) shows how to run abt from source and open a PR. We follow the [Code of Conduct](https://github.com/getyourguide/abt-core/blob/main/CODE_OF_CONDUCT.md). If you've found a security issue, please read [SECURITY.md](https://github.com/getyourguide/abt-core/blob/main/SECURITY.md) instead of opening a public issue.

## License

Copyright 2026 GetYourGuide GmbH.

Apache License 2.0. See [LICENSE](https://github.com/getyourguide/abt-core/blob/main/LICENSE).
