← 返回日报
精读 预计 6 分钟

Apache Burr: Build reliable AI agents and applications

摘要

Burr 允许开发者通过纯 Python 函数和装饰器定义 AI 应用的动作与转换,无需学习复杂的 DSL 或 YAML。它内置了实时监控 UI,支持状态持久化、人机协同(Human-in-the-loop)以及复杂的并行 DAG 逻辑。该项目强调 “无魔法” 和易于调试,支持运行回放与单元测试,并能与 OpenAI、LangChain 及 FastAPI 等主流工具无缝集成。

荐读理由

Burr 提供纯 Python API、动作与状态转换定义、状态持久化到磁盘或数据库、实时 UI 监控调试、分支并行与人类循环暂停,支持 LangChain 等现有栈,无锁定,可直接在 AI 工程项目中搭建可靠多代理系统

原文

Build reliable AI agents and applications

Apache Burr (Incubating) makes it easy to develop applications that make decisions, from simple chatbots to complex multi-agent systems. Pure Python, no magic.

View on GitHub

0GitHub Stars

0k+PyPI Downloads

0+Discord Members

Simple, powerful Python API

Build anything from chatbots to multi-agent systems with a clean, composable interface.

chatbot.py

from burr.core import action, State, ApplicationBuilder

@action(reads=["messages"], writes=["messages"])
def chat(state: State, llm_client) -> State:
    response = llm_client.chat(state["messages"])
    return state.update(
        messages=[*state["messages"], response]
    )

app = (
    ApplicationBuilder()
    .with_actions(chat)
    .with_transitions(("chat", "chat"))
    .with_state(messages=[])
    .with_tracker("local")
    .build()
)

app.run(halt_after=["chat"], inputs={"llm_client": client})

Python 3.12UTF-8burr >= 0.30

Everything you need to build AI applications

Burr provides the building blocks for reliable, observable, and testable AI-powered applications.

Simple Python API

Define your application as a set of actions and transitions. No DSL, no YAML — just Python functions and decorators.

Built-in Observability

The Burr UI lets you monitor, debug, and trace every step of your application in real time. See state changes as they happen.

Persistence & State Management

Automatically persist state to disk, databases, or custom backends. Resume applications from where they left off.

Human-in-the-Loop

Pause execution and wait for human input at any step. Perfect for approval workflows and interactive agents.

Branching & Parallelism

Run actions in parallel, fan out / fan in, and build complex DAGs. Compose sub-applications for modular design.

Testing & Replay

Replay past runs, unit test individual actions, and validate state transitions. Build confidence in your AI systems.

Works with your stack

Burr integrates with the tools and frameworks you already use. No lock-in, no wrappers.

OpenAI

LLM

Anthropic

LLM

LangChain

Framework

Hamilton

Framework

Streamlit

UI

OpenAI

LLM

Anthropic

LLM

LangChain

Framework

Hamilton

Framework

Streamlit

UI

OpenAI

LLM

Anthropic

LLM

LangChain

Framework

Hamilton

Framework

Streamlit

UI

OpenAI

LLM

Anthropic

LLM

LangChain

Framework

Hamilton

Framework

Streamlit

UI

FastAPI

Serving

Haystack

Framework

Instructor

LLM

Pydantic

Validation

PostgreSQL

Storage

FastAPI

Serving

Haystack

Framework

Instructor

LLM

Pydantic

Validation

PostgreSQL

Storage

FastAPI

Serving

Haystack

Framework

Instructor

LLM

Pydantic

Validation

PostgreSQL

Storage

FastAPI

Serving

Haystack

Framework

Instructor

LLM

Pydantic

Validation

PostgreSQL

Storage

View all integrations

Trusted by engineers worldwide

See what developers and teams are saying about Burr.

Peanut Robotics

P

Peanut Robotics

Watto.ai

W

Watto.ai

xton AI

P

Paxton AI

Provectus

P

Provectus

TaskHuman

T

TaskHuman

“After evaluating several other obfuscating LLM frameworks, their elegant yet comprehensive state management solution proved to be the powerful answer to rolling out robots driven by AI decision making.”

A

Ashish Ghosh

CTO, Peanut Robotics

“Using Burr is a no-brainer if you want to build a modular AI application. It is so easy to build with and I especially love their UI which makes debugging a piece of cake. And the always ready to help team is the cherry on top.”

I

Ishita

Founder, Watto.ai

“I just came across Burr and I'm like WOW, this seems like you guys predicted this exact need when building this. No weird esoteric concepts just because it's AI.”

M

Matthew Rideout

Staff Software Engineer, Paxton AI

“Burr's state management part is really helpful for creating state snapshots and build debugging, replaying and even building evaluation cases around that.”

R

Rinat Gareev

Senior Solutions Architect, Provectus

“I have been using Burr over the past few months, and compared to many agentic LLM platforms out there (e.g. LangChain, CrewAi, AutoGen, Agency Swarm, etc), Burr provides a more robust framework for designing complex behaviors.”

H

Hadi Nayebi

Co-founder, CognitiveGraphs

“Moving from LangChain to Burr was a game-changer! It took me just a few hours to get started with Burr, compared to the days and weeks I spent trying to navigate LangChain. I pitched Burr to my teammates, and we pivoted our entire codebase to it.”

A

Aditya K.

DS Architect, TaskHuman

“Of course, you can use it [LangChain], but whether it's really production-ready and improves the time from code-to-prod, we've been doing LLM apps for two years, and the answer is no. Honestly, take a look at Burr. Thank me later.”

R

Reddit User

Developer, r/LocalLlama

“After evaluating several other obfuscating LLM frameworks, their elegant yet comprehensive state management solution proved to be the powerful answer to rolling out robots driven by AI decision making.”

A

Ashish Ghosh

CTO, Peanut Robotics

“Using Burr is a no-brainer if you want to build a modular AI application. It is so easy to build with and I especially love their UI which makes debugging a piece of cake. And the always ready to help team is the cherry on top.”

I

Ishita

Founder, Watto.ai

“I just came across Burr and I'm like WOW, this seems like you guys predicted this exact need when building this. No weird esoteric concepts just because it's AI.”

M

Matthew Rideout

Staff Software Engineer, Paxton AI

“Burr's state management part is really helpful for creating state snapshots and build debugging, replaying and even building evaluation cases around that.”

R

Rinat Gareev

Senior Solutions Architect, Provectus

“I have been using Burr over the past few months, and compared to many agentic LLM platforms out there (e.g. LangChain, CrewAi, AutoGen, Agency Swarm, etc), Burr provides a more robust framework for designing complex behaviors.”

H

Hadi Nayebi

Co-founder, CognitiveGraphs

“Moving from LangChain to Burr was a game-changer! It took me just a few hours to get started with Burr, compared to the days and weeks I spent trying to navigate LangChain. I pitched Burr to my teammates, and we pivoted our entire codebase to it.”

A

Aditya K.

DS Architect, TaskHuman

“Of course, you can use it [LangChain], but whether it's really production-ready and improves the time from code-to-prod, we've been doing LLM apps for two years, and the answer is no. Honestly, take a look at Burr. Thank me later.”

R

Reddit User

Developer, r/LocalLlama

“After evaluating several other obfuscating LLM frameworks, their elegant yet comprehensive state management solution proved to be the powerful answer to rolling out robots driven by AI decision making.”

A

Ashish Ghosh

CTO, Peanut Robotics

“Using Burr is a no-brainer if you want to build a modular AI application. It is so easy to build with and I especially love their UI which makes debugging a piece of cake. And the always ready to help team is the cherry on top.”

I

Ishita

Founder, Watto.ai

“I just came across Burr and I'm like WOW, this seems like you guys predicted this exact need when building this. No weird esoteric concepts just because it's AI.”

M

Matthew Rideout

Staff Software Engineer, Paxton AI

“Burr's state management part is really helpful for creating state snapshots and build debugging, replaying and even building evaluation cases around that.”

R

Rinat Gareev

Senior Solutions Architect, Provectus

“I have been using Burr over the past few months, and compared to many agentic LLM platforms out there (e.g. LangChain, CrewAi, AutoGen, Agency Swarm, etc), Burr provides a more robust framework for designing complex behaviors.”

H

Hadi Nayebi

Co-founder, CognitiveGraphs

“Moving from LangChain to Burr was a game-changer! It took me just a few hours to get started with Burr, compared to the days and weeks I spent trying to navigate LangChain. I pitched Burr to my teammates, and we pivoted our entire codebase to it.”

A

Aditya K.

DS Architect, TaskHuman

“Of course, you can use it [LangChain], but whether it's really production-ready and improves the time from code-to-prod, we've been doing LLM apps for two years, and the answer is no. Honestly, take a look at Burr. Thank me later.”

R

Reddit User

Developer, r/LocalLlama

“After evaluating several other obfuscating LLM frameworks, their elegant yet comprehensive state management solution proved to be the powerful answer to rolling out robots driven by AI decision making.”

A

Ashish Ghosh

CTO, Peanut Robotics

“Using Burr is a no-brainer if you want to build a modular AI application. It is so easy to build with and I especially love their UI which makes debugging a piece of cake. And the always ready to help team is the cherry on top.”

I

Ishita

Founder, Watto.ai

“I just came across Burr and I'm like WOW, this seems like you guys predicted this exact need when building this. No weird esoteric concepts just because it's AI.”

M

Matthew Rideout

Staff Software Engineer, Paxton AI

“Burr's state management part is really helpful for creating state snapshots and build debugging, replaying and even building evaluation cases around that.”

R

Rinat Gareev

Senior Solutions Architect, Provectus

“I have been using Burr over the past few months, and compared to many agentic LLM platforms out there (e.g. LangChain, CrewAi, AutoGen, Agency Swarm, etc), Burr provides a more robust framework for designing complex behaviors.”

H

Hadi Nayebi

Co-founder, CognitiveGraphs

“Moving from LangChain to Burr was a game-changer! It took me just a few hours to get started with Burr, compared to the days and weeks I spent trying to navigate LangChain. I pitched Burr to my teammates, and we pivoted our entire codebase to it.”

A

Aditya K.

DS Architect, TaskHuman

“Of course, you can use it [LangChain], but whether it's really production-ready and improves the time from code-to-prod, we've been doing LLM apps for two years, and the answer is no. Honestly, take a look at Burr. Thank me later.”

R

Reddit User

Developer, r/LocalLlama

Join the community

Get help, share your projects, and contribute to the future of Burr.

Discord

Chat with maintainers and the community

GitHub

Star the repo, file issues, contribute

Twitter / X

Follow for updates and announcements

Hacker News · 132 赞 · 78 评 讨论 → 阅读原文 →

这条对你有帮助吗?