When from __future__ import annotations is used, type hints are stored as strings. This caused is_list_of_basemodel to fail in FunctionTool, preventing dictionaries from being automatically converted back to Pydantic models when passed to tools. Used get_type_hints to evaluate them.
Also updated 10_burgers.json test trace to reflect the successful execution after this fix.
Change-Id: I92a708dd17ef76fc222779cd28e4a2d551325ce8
Use a FIFO queue for function name lookups to handle multiple calls in a trace, and remove hardcoded agent names to support all task agents. Also extract duplicate post-processing logic into a shared function.
Change-Id: Ia1062c6a6ba87a0d49c3982936121ac02f2bb352
Compare events using raw dicts instead of constructing AdkEvent objects to avoid validation overhead and potential issues. Also sort longRunningToolIds to ensure order-independent comparison.
Change-Id: Ia17ea5bd0caaa1dd1b38cbef66e10d38d5666893
The is_parallel flag was ignored in Context.run_node when falling back to non-workflow mode. Now it propagates to NodeRunner so that events generated by the node correctly create a sub-branch.
Change-Id: I4f58a7fb58f998a831c48b3c0b39f18dbb828bae
Sort keys when saving rebuilt JSON test files and re-assign sequential event IDs to avoid gaps from filtered events. Also applied these changes to all existing test files in the contributing folder.
Change-Id: Ib126228f016db1d28030eee4f7d9d8cbc604e038
Only add branch segments when parallelism occurs. Handle joins by using the common prefix of incoming branches.
Change-Id: If75f57e2dd69f2ddf71ade818e9c19d2a6e32c53
Introduces two major capabilities:
- Workflow runtime: 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
Co-Authored-By: Bo Yang <ybo@google.com>
Co-Authored-By: George Weale <gweale@google.com>
Co-Authored-By: Sean Zhou <seanzhougoogle@google.com>
Co-Authored-By: Shangjie Chen <deanchen@google.com>
Co-Authored-By: Swapnil Agarwal <swapnilag@google.com>
Co-Authored-By: Wei Sun <weisun@google.com>
Co-Authored-By: Xuan Yang <xygoogle@google.com>
Co-Authored-By: Yifan Wang <wanyif@google.com>
Change-Id: I35932c50cfe29ff68559e3781713dbb5eb7b3382