Skip to main content

AgentFlowPilot

AgentFlowPilot 是一个智能代理任务处理 SDK,具备以下核心功能:

  • ✨ 意图识别
  • 🛠️ 工具判断
  • 📋 任务编排
  • 🚀 任务执行

安装

通过 PyPI 安装

pip install agent_flowpilot

通过源码安装

  1. 克隆仓库:
git clone https://github.com/deepissue/flowpilot.git
cd flowpilot
  1. 安装依赖:
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

Release files for agent-flowpilot 0.4.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for agent-flowpilot 0.4.3
File Size Uploaded
agent_flowpilot-0.4.3.tar.gz 14.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for agent-flowpilot 0.4.3
File Interpreter ABI Platform
agent_flowpilot-0.4.3-py3-none-any.whl Python 3 none any Details

Total release size: 33.3 kB

Release files / agent_flowpilot-0.4.3.tar.gz

Download URL agent_flowpilot-0.4.3.tar.gz
Size 14.9 kB
Tags Source
SHA-256 checksum
How to use checksums
0e77802a5c1d4500ba0b15f77a613446b3093b8f64ba7bca8047a6cefbc30a8c
BLAKE2b-256 checksum
How to use checksums
db82f72f9e0dcb0a6125f0695c5284c70ea7b1263561b45b916f870967820b72
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.10

Release files / agent_flowpilot-0.4.3-py3-none-any.whl

Download URL agent_flowpilot-0.4.3-py3-none-any.whl
Size 18.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6ad0be26d32b6e2f2bc893161dc9b55834dc8427c3a5ecfd97c435fce22e90c5
BLAKE2b-256 checksum
How to use checksums
85d878705089f9a922c33112d84f77069cdbb2d93620a9dae0546b2bdde3dbbd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.10

Release history Release notifications | RSS feed

This release

0.4.3 This release

2 release files

0.4.2

2 release files

0.4.0

2 release files

0.3.3

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.9

2 release files

0.2.8

2 release files

0.2.7

2 release files

0.2.6

2 release files

0.2.5

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page