mirror of
https://github.com/google/adk-go.git
synced 2026-10-28 08:34:37 +08:00
A before-agent callback that returns content yields its event straight from the base agent, so llmAgent.run never sees it and state[output_key] was not updated. The base agent now lets an agent type observe that event through an internal hook, and llmagent installs maybeSaveOutputToState on it. The state delta lands on the callback's own event. Matches adk-python 0e263f1b5. Refs #1962 Co-authored-by: João Westerberg <westerberg@google.com>