FlowPilot: AI-powered task automation SDK with intent recognition, tool selection, orchestration, and execution.
Project description
AgentFlowPilot
AgentFlowPilot 是一个智能代理任务处理 SDK,具备以下核心功能:
- ✨ 意图识别
- 🛠️ 工具判断
- 📋 任务编排
- 🚀 任务执行
安装
通过 PyPI 安装
pip install agent_flowpilot
通过源码安装
- 克隆仓库:
git clone https://github.com/deepissue/flowpilot.git
cd flowpilot
- 安装依赖:
pip install -e ".[test]"
这将以可编辑模式安装 agent_flowpilot 包,并同时安装测试依赖。
结构说明
core.py:统一流程入口,负责启动和管理任务执行流程。intent.py:意图识别器,基于输入的提示词进行意图分析,返回任务定义信息。scheduler.py:任务编排调度,负责任务的顺序和依赖关系管理。executor.py:任务执行器抽象类,具体任务执行逻辑的实现。tools.py:工具注解生成,提供辅助功能的工具接口。
使用示例
可以在 test/demo.py 中找到具体的使用示例。
任务定义是整个 SDK 的核心,结构如下
# 任务定义示例
task_definitions = [
{
"name": "create_vm",
"description": "创建虚拟机",
"parameters": {"vm_name": "myvm"}, # 从用户输入中提取的参数
"required_parameters": [],
"optional_parameters": ["vm_name"],
"execution_mode": "sequential",
"depends_on": [],
}
]
测试
运行测试,可以使用以下命令:
pytest tests/
贡献
欢迎提交 PR 或 issue!任何问题或建议都可以提到 issue。
License
MIT 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
agent_flowpilot-0.3.1.tar.gz
(16.3 kB
view details)
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 agent_flowpilot-0.3.1.tar.gz.
File metadata
- Download URL: agent_flowpilot-0.3.1.tar.gz
- Upload date:
- Size: 16.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
27d7c10706802118ee6b63f7ec920b939695a6a74b2be7b57c09f0fc378afa26
|
|
| MD5 |
6f56795bb2f1c506833d0962420a5ca6
|
|
| BLAKE2b-256 |
a7e267742778fb46933b2a8dd486c0b480af680a2e8d8ad98e26ade46f35c0e0
|
File details
Details for the file agent_flowpilot-0.3.1-py3-none-any.whl.
File metadata
- Download URL: agent_flowpilot-0.3.1-py3-none-any.whl
- Upload date:
- Size: 17.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f97b6b2f7d6ca0107809e31d86f80e94f9dbee95069268fac442ef9eda8c5824
|
|
| MD5 |
049017261cb71cffe4833dc0cfc55e8a
|
|
| BLAKE2b-256 |
5b37ddd6abb8b1e1bb81e018ca2476d7fdaf464cb29ec42128e3622ee7ab16cf
|