3 Commits

Author SHA1 Message Date
Ankit Ranjan 096ecfcf56 docs: fix broken relative links in documentation
Merge https://github.com/google/adk-python/pull/6489

Fixes four broken relative links in the documentation.

PiperOrigin-RevId: 954428272
2026-07-26 23:20:50 -07:00
Shangjie Chen 00760f8455 feat: Support HITL resumption for standalone nodes and NodeTool
- Enable resumability and add Human-in-the-Loop (HITL) step to `node_as_tool` sample workflow.
- Update `node_as_tool` README to document the HITL multi-turn flow.
- Fix `agent_test_runner.py` to preserve the `branch` field when replaying user events in tests.
- Implement lazy rehydration of `resume_inputs` from `session.events` in `NodeRunner` for standalone nodes (e.g. nodes run as tools of an Agent). This allows standalone nodes to resume correctly.

Co-authored-by: Shangjie Chen <deanchen@google.com>
PiperOrigin-RevId: 948503030
2026-07-15 13:07:08 -07:00
Shangjie Chen 1263ed64e3 feat: Implement Workflow as Tool core feature
Introduce NodeTool, allowing individual Nodes and entire Workflows to be wrapped and executed as standard ADK Tools.

This PR implements the core, single-turn execution capability:
- Support auto-wrapping of BaseNode (Workflows) directly in Agent.tools.
- Wrapping synchronous and asynchronous function nodes as NodeTools.
- Providing a complete sample workflow demonstrating how to run a workflow as a tool.

Resumption and multi-turn nested HITL support are skipped in this PR and will be fully enabled in the later PR.

Co-authored-by: Shangjie Chen <deanchen@google.com>
PiperOrigin-RevId: 943499058
2026-07-06 14:32:39 -07:00