adk-python Agent工作流 是 AI Skill Hub 本期精选Agent工作流之一。在 GitHub 上收获超过 19.7k 颗 Star,综合评分 8.2 分,整体质量较高。我们强烈推荐将其纳入你的 AI 工具库,帮助提升工作效率。
adk-python Agent工作流 是一套完整的 AI Agent 自动化工作流方案。通过可视化的节点编排,将复杂的多步骤任务拆解为清晰的自动化流程,实现全程无人值守的智能处理。支持与数百种外部服务和 API 无缝集成,适合构建数据处理管线、业务自动化和 AI 辅助决策系统。
adk-python Agent工作流 是一套完整的 AI Agent 自动化工作流方案。通过可视化的节点编排,将复杂的多步骤任务拆解为清晰的自动化流程,实现全程无人值守的智能处理。支持与数百种外部服务和 API 无缝集成,适合构建数据处理管线、业务自动化和 AI 辅助决策系统。
# 方式一:pip 安装(推荐)
pip install adk-python
# 方式二:虚拟环境安装(推荐生产环境)
python -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
pip install adk-python
# 方式三:从源码安装(获取最新功能)
git clone https://github.com/google/adk-python
cd adk-python
pip install -e .
# 验证安装
python -c "import adk_python; print('安装成功')"
# 命令行使用
adk-python --help
# 基本用法
adk-python input_file -o output_file
# Python 代码中调用
import adk_python
# 示例
result = adk_python.process("input")
print(result)
# adk-python 配置文件示例(config.yml) app: name: "adk-python" debug: false log_level: "INFO" # 运行时指定配置文件 adk-python --config config.yml # 或通过环境变量配置 export ADK_PYTHON_API_KEY="your-key" export ADK_PYTHON_OUTPUT_DIR="./output"
<a href="https://codewiki.google/github.com/google/adk-python"><img src="https://www.gstatic.com//boq-sdlc-agents-ui/_/r/Mvosg4klCA4.svg" alt="Ask Code Wiki" height="20"></a>
Agent Development Kit (ADK) is a flexible and modular framework that applies software development principles to AI agent creation. It is designed to simplify building, deploying, and orchestrating agent workflows, from simple tasks to complex systems. While optimized for Gemini, ADK is model-agnostic, deployment-agnostic, and compatible with other frameworks.
______________________________________________________________________
⚠️ BREAKING CHANGES FROM 1.x This release includes breaking changes to the agent API, event model, and session schema. Sessions generated by ADK 2.0 are readable by ADK 1.28+ (extra fields will be ignored), but are incompatible with older 1.x versions.
______________________________________________________________________
- Workflow Runtime: A graph-based execution engine for composing deterministic execution flows for agentic apps, with support for routing, fan-out/fan-in, loops, retry, state management, dynamic nodes, human-in-the-loop, and nested workflows.
- Task API: Structured agent-to-agent delegation with multi-turn task mode, single-turn controlled output, mixed delegation patterns, human-in-the-loop, and task agents as workflow nodes.
- Modular Multi-Agent Systems: Design scalable applications by composing multiple specialized agents into flexible hierarchies.
- Rich Tool Ecosystem: Utilize pre-built tools, custom functions, OpenAPI specs, MCP tools or integrate existing tools to give agents diverse capabilities, all for tight integration with the Google ecosystem.
- Code-First Development: Define agent logic, tools, and orchestration directly in Python for ultimate flexibility, testability, and versioning.
- Agent Config: Build agents without code. Check out the Agent Config feature.
- Deploy Anywhere: Easily containerize and deploy agents on Cloud Run or scale seamlessly with Vertex AI Agent Engine.
curl -o constraints-3.10.txt https://raw.githubusercontent.com/google/adk-python/main/constraints-3.10.txt pip install google-adk -c constraints-3.10.txt rm constraints-3.10.txt
To install optional integrations, you can use the following command:
bash pip install "google-adk[extensions]" ```
The release cadence is roughly bi-weekly.
Beginner Note: ADK applications are built using two main classes:Agent(defines an AI's instructions, tools, and behavior) andWorkflow(orchestrates agents and tasks in a graph-based flow).
from google.adk import Agent, Workflow
generate_fruit_agent = Agent(
name="generate_fruit_agent",
instruction="Return the name of a random fruit. Return only the name.",
)
generate_benefit_agent = Agent(
name="generate_benefit_agent",
instruction="Tell me a health benefit about the specified fruit.",
)
root_agent = Workflow(
name="root_agent",
edges=[("START", generate_fruit_agent, generate_benefit_agent)],
)
aiskill88点评:近2万星标的高质量工作流框架,代码优先设计理念先进,生态完整。社区活跃度高,持续维护更新,是Python AI应用开发的优选方案。
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ Apache 2.0 — 宽松开源协议,可商用,需保留版权声明和 NOTICE 文件,含专利授权条款。
经综合评估,adk-python Agent工作流 在Agent工作流赛道中表现稳健,质量优秀。如果你已有明确的使用需求,可以直接上手体验;如果还在评估阶段,建议对比同类工具后再做决策。
| 原始名称 | adk-python |
| 原始描述 | 开源AI工作流:An open-source, code-first Python toolkit for building, evaluating, and deployin。⭐19.7k · Python |
| Topics | AI工作流智能体框架Python工具包代码优先开源 |
| GitHub | https://github.com/google/adk-python |
| License | Apache-2.0 |
| 语言 | Python |
收录时间:2026-05-18 · 更新时间:2026-05-19 · License:Apache-2.0 · AI Skill Hub 不对第三方内容的准确性作法律背书。
选择 Agent 类型,复制安装指令后粘贴到对应客户端