AI工作流代理 是 AI Skill Hub 本期精选Agent工作流之一。综合评分 8.0 分,整体质量较高。我们强烈推荐将其纳入你的 AI 工具库,帮助提升工作效率。
统一API的轻量级Python SDK,支持9个LLM提供商
AI工作流代理 是一套完整的 AI Agent 自动化工作流方案。通过可视化的节点编排,将复杂的多步骤任务拆解为清晰的自动化流程,实现全程无人值守的智能处理。支持与数百种外部服务和 API 无缝集成,适合构建数据处理管线、业务自动化和 AI 辅助决策系统。
统一API的轻量级Python SDK,支持9个LLM提供商
AI工作流代理 是一套完整的 AI Agent 自动化工作流方案。通过可视化的节点编排,将复杂的多步骤任务拆解为清晰的自动化流程,实现全程无人值守的智能处理。支持与数百种外部服务和 API 无缝集成,适合构建数据处理管线、业务自动化和 AI 辅助决策系统。
# 方式一:pip 安装(推荐)
pip install miiflow-agent
# 方式二:虚拟环境安装(推荐生产环境)
python -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
pip install miiflow-agent
# 方式三:从源码安装(获取最新功能)
git clone https://github.com/MiiFlow/miiflow-agent
cd miiflow-agent
pip install -e .
# 验证安装
python -c "import miiflow_agent; print('安装成功')"
# 命令行使用
miiflow-agent --help
# 基本用法
miiflow-agent input_file -o output_file
# Python 代码中调用
import miiflow_agent
# 示例
result = miiflow_agent.process("input")
print(result)
# miiflow-agent 配置文件示例(config.yml) app: name: "miiflow-agent" debug: false log_level: "INFO" # 运行时指定配置文件 miiflow-agent --config config.yml # 或通过环境变量配置 export MIIFLOW_AGENT_API_KEY="your-key" export MIIFLOW_AGENT_OUTPUT_DIR="./output"
<p align="center"> <h1 align="center">miiflow-agent</h1> <p align="center"> <strong>A model-agnostic agent harness for Python — think Claude Agent SDK, for any LLM</strong> </p> </p>
<p align="center"> <a href="https://pypi.org/project/miiflow-agent/"><img src="https://img.shields.io/pypi/v/miiflow-agent.svg" alt="PyPI version"></a> <a href="https://pypi.org/project/miiflow-agent/"><img src="https://img.shields.io/pypi/pyversions/miiflow-agent.svg" alt="Python versions"></a> <a href="https://github.com/Miiflow/miiflow-agent/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-MIT-blue.svg" alt="License"></a> </p>
---
A model call is easy. The hard part of an agent is the harness around it: the loop that decides when to call tools and when to answer, running those tools safely and in parallel, handing work to sub-agents, pausing for a human and resuming later, keeping a long run inside the context window, recovering when a provider errors, and streaming all of it to a UI.
miiflow-agent is that harness, as a Python library. It plays the same role as the Claude Agent SDK, but it is not tied to one model family: the same agent runs on Claude, GPT, Gemini or six other providers, and you can switch with one line. It runs Miiflow's production agent traffic.
```python from miiflow_agent import Agent, AgentType, CallbackEventType, LLMClient, scoped_callbacks, tool
@tool("get_weather", "Current weather for a city", writes=False) def get_weather(city: str) -> str: return f"18°C and clear in {city}"
@tool("book_table", "Reserve a restaurant table", writes=True) def book_table(restaurant: str, time: str) -> str: return f"Booked {restaurant} at {time}"
agent = Agent( LLMClient.create("anthropic", model="claude-sonnet-5-5"), # or "openai", "gemini", ... agent_type=AgentType.REACT, tools=[get_weather, book_table], )
```bash pip install miiflow-agent
pip install "miiflow-agent[groq,google,mistral]"
from miiflow_agent.core.observability import setup_opentelemetry_tracing setup_opentelemetry_tracing()
高质量的AI工作流代理,支持多个LLM提供商
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ MIT 协议 — 最宽松的开源协议之一,可自由商用、修改、分发,仅需保留版权声明。
经综合评估,AI工作流代理 在Agent工作流赛道中表现稳健,质量优秀。如果你已有明确的使用需求,可以直接上手体验;如果还在评估阶段,建议对比同类工具后再做决策。
| 原始名称 | miiflow-agent |
| 原始描述 | 开源AI工作流:Lightweight Python SDK for LLMs with unified API across 9 providers. Built-in Re。⭐20 · Python |
| Topics | aillmpythonworkflow |
| GitHub | https://github.com/MiiFlow/miiflow-agent |
| License | MIT |
| 语言 | Python |
收录时间:2026-06-10 · 更新时间:2026-06-11 · License:MIT · AI Skill Hub 不对第三方内容的准确性作法律背书。
选择 Agent 类型,复制安装指令后粘贴到对应客户端