构建
继承一个基础智能体,用一个装饰器注册,再调用 create_app()。REST、MCP、持久化和身份认证均已内置。
开源 · MIT · Python 3.12+
构建、模拟并测试 LLM 智能体。
一个基于 FastAPI、LangGraph 和 PostgreSQL 的云原生 Python 框架。
$ uvx cookiecutter gh:btech-software/agent-lab --directory cookiecutter
$ cd my-agent-app && docker compose up --build -d
$ curl http://localhost:18000/status/liveness
# REST API 位于 /agents · MCP 服务器位于 /mcp · OpenAPI 文档位于 /docs继承一个基础智能体,用一个装饰器注册,再调用 create_app()。REST、MCP、持久化和身份认证均已内置。
借助模拟用户和 LLM 评审,让智能体在真实 LLM 上运行,并在 Langfuse 和 LangWatch 中长期跟踪。
通过 testcontainers 启动真实基础设施来验证每一处更改。关键之处不使用 mock。
教程 · 约 15 分钟
# 1 · 生成项目骨架
$ uvx cookiecutter gh:btech-software/agent-lab --directory cookiecutter
# 2 · 无需基础设施即可安装并测试
$ cd my-agent-app
$ uv lock && uv sync --group dev --group test
$ make test_unit
# 3 · 运行完整的本地技术栈
$ docker compose up --build -d
$ curl http://localhost:18000/status/liveness