经 AI Skill Hub 精选评估,AI任务规划 获评「推荐使用」。这款Agent工作流在功能完整性、社区活跃度和易用性方面表现出色,AI 评分 7.5 分,适合有一定技术背景的用户使用。
AI任务规划 是一套完整的 AI Agent 自动化工作流方案。通过可视化的节点编排,将复杂的多步骤任务拆解为清晰的自动化流程,实现全程无人值守的智能处理。支持与数百种外部服务和 API 无缝集成,适合构建数据处理管线、业务自动化和 AI 辅助决策系统。
AI任务规划 是一套完整的 AI Agent 自动化工作流方案。通过可视化的节点编排,将复杂的多步骤任务拆解为清晰的自动化流程,实现全程无人值守的智能处理。支持与数百种外部服务和 API 无缝集成,适合构建数据处理管线、业务自动化和 AI 辅助决策系统。
# 方式一:pip 安装(推荐)
pip install pydantic-ai-todo
# 方式二:虚拟环境安装(推荐生产环境)
python -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
pip install pydantic-ai-todo
# 方式三:从源码安装(获取最新功能)
git clone https://github.com/vstorm-co/pydantic-ai-todo
cd pydantic-ai-todo
pip install -e .
# 验证安装
python -c "import pydantic_ai_todo; print('安装成功')"
# 命令行使用
pydantic-ai-todo --help
# 基本用法
pydantic-ai-todo input_file -o output_file
# Python 代码中调用
import pydantic_ai_todo
# 示例
result = pydantic_ai_todo.process("input")
print(result)
# pydantic-ai-todo 配置文件示例(config.yml) app: name: "pydantic-ai-todo" debug: false log_level: "INFO" # 运行时指定配置文件 pydantic-ai-todo --config config.yml # 或通过环境变量配置 export PYDANTIC_AI_TODO_API_KEY="your-key" export PYDANTIC_AI_TODO_OUTPUT_DIR="./output"
<p align="center"> <em>Task Planning and Tracking for AI Agents</em> </p>
<p align="center"> <a href="https://pypi.org/project/pydantic-ai-todo/"><img src="https://img.shields.io/pypi/v/pydantic-ai-todo.svg" alt="PyPI version"></a> <a href="https://www.python.org/downloads/"><img src="https://img.shields.io/badge/python-3.10+-blue.svg" alt="Python 3.10+"></a> <a href="https://opensource.org/licenses/MIT"><img src="https://img.shields.io/badge/License-MIT-yellow.svg" alt="License: MIT"></a> <a href="https://github.com/vstorm-co/pydantic-ai-todo/actions/workflows/ci.yml"><img src="https://github.com/vstorm-co/pydantic-ai-todo/actions/workflows/ci.yml/badge.svg" alt="CI"></a> <a href="https://github.com/pydantic/pydantic-ai"><img src="https://img.shields.io/badge/Powered%20by-Pydantic%20AI-E92063?logo=pydantic&logoColor=white" alt="Pydantic AI"></a> </p>
<p align="center"> <b>Capabilities API</b> — plug-and-play with one line • <b>Subtasks & Dependencies</b> — hierarchical task management • <b>PostgreSQL Storage</b> — persistent multi-tenant tasks • <b>Event System</b> — webhooks and callbacks </p>
---
Todo Toolset for Pydantic AI adds task planning capabilities to any Pydantic AI agent. Your agent can create, track, and complete tasks with full support for subtasks, dependencies, and persistent storage.
Full framework? Check out Pydantic Deep Agents — complete agent framework with planning, filesystem, subagents, and skills.
agent = Agent(
"openai:gpt-4.1",
capabilities=[TodoCapability(enable_subtasks=True)],
)
Enables add_subtask, set_dependency, and get_available_tasks tools with automatic cycle detection.
pip install pydantic-ai-todo
Or with uv:
uv add pydantic-ai-todo
The recommended way to add todo support is via the Capabilities API — one import, one line:
from pydantic_ai import Agent
from pydantic_ai_todo import TodoCapability
agent = Agent("openai:gpt-4.1", capabilities=[TodoCapability()])
result = await agent.run("Create a todo list for building a REST API")
TodoCapability automatically: - Registers all todo tools (add_todo, read_todos, write_todos, update_todo_status, remove_todo) - Injects dynamic system prompt showing current task state - Creates in-memory storage (or use your own)
If you prefer the lower-level toolset approach (without capabilities):
from pydantic_ai import Agent
from pydantic_ai_todo import create_todo_toolset, get_todo_system_prompt, TodoStorage
storage = TodoStorage()
toolset = create_todo_toolset(storage=storage)
agent = Agent(
"openai:gpt-4.1",
toolsets=[toolset],
system_prompt=get_todo_system_prompt(storage),
)
Note: With the toolset API, you need to wireget_todo_system_prompt()manually.TodoCapabilityhandles this automatically.
高质量的AI工作流工具
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ MIT 协议 — 最宽松的开源协议之一,可自由商用、修改、分发,仅需保留版权声明。
AI Skill Hub 点评:AI任务规划 的核心功能完整,质量良好。对于自动化工程师和运维人员来说,这是一个值得纳入个人工具库的选择。建议先在非生产环境试用,再逐步推广。
| 原始名称 | pydantic-ai-todo |
| 原始描述 | 开源AI工作流:Task Planning and Tracking toolset for Pydantic AI agents, enabling hierarchical。⭐67 · Python |
| Topics | aiai-agentpython |
| GitHub | https://github.com/vstorm-co/pydantic-ai-todo |
| License | MIT |
| 语言 | Python |
收录时间:2026-06-12 · 更新时间:2026-06-12 · License:MIT · AI Skill Hub 不对第三方内容的准确性作法律背书。
选择 Agent 类型,复制安装指令后粘贴到对应客户端