Repository navigation
Conversation
|
I have successfully performed a comprehensive, read-only analysis of Pull Request #6001 and its related issue #5995. I have created a premium, structured review report for you. You can read the full, detailed analysis in the newly generated artifact: Key Highlights & Summary of Findings
Next Steps and Recommendations
|
|
Hi @he-yufeng , Thank you for your contribution! We appreciate you taking the time to submit this pull request. |
4f54a2a to
7adfbb5
Compare
|
Pushed This addresses both review nits:
Validation:
|
feec696 to
dbd31bb
Compare
|
Rebased this on current
The focused test run passed with 3 tests. |
2af17a5 to
cc27387
Compare
|
Rebased this onto current Current head: Validation:
|
2b97d62 to
de4db1e
Compare
de4db1e to
1bc442a
Compare
|
+1. we see same error when we need to add eval for graph workflow in adk2. please prioritize this PR |
|
Is there a temporary workaround? |
Merge #6001 ## Summary Fixes #5995. `create_empty_state()` only walked `sub_agents`, so graph-based `Workflow` roots crashed when the dev server tried to add the current session to an eval set. Workflow children live in `workflow.graph.nodes`, not `sub_agents`. This updates the state traversal to: - keep the existing `sub_agents` walk for normal agents - also walk `graph.nodes` for Workflow-style roots and nested graph nodes - track visited objects so shared graph/agent nodes are not processed repeatedly ## Testing ``` python -m pytest tests\unittests\cli\utils\test_state.py -q python -m py_compile src\google\adk\cli\utils\state.py tests\unittests\cli\utils\test_state.py python -m pyink --check src\google\adk\cli\utils\state.py tests\unittests\cli\utils\test_state.py git diff --check ``` Co-authored-by: Yi Liu <yiliuly@google.com> COPYBARA_INTEGRATE_REVIEW=#6001 from he-yufeng:fix/workflow-empty-state 1bc442a PiperOrigin-RevId: 960722840
|
Thank you @he-yufeng for your contribution! 🎉 Your changes have been successfully imported and merged via Copybara in commit 568b4f6. Closing this PR as the changes are now in the main branch. |
Merge google#6001 ## Summary Fixes google#5995. `create_empty_state()` only walked `sub_agents`, so graph-based `Workflow` roots crashed when the dev server tried to add the current session to an eval set. Workflow children live in `workflow.graph.nodes`, not `sub_agents`. This updates the state traversal to: - keep the existing `sub_agents` walk for normal agents - also walk `graph.nodes` for Workflow-style roots and nested graph nodes - track visited objects so shared graph/agent nodes are not processed repeatedly ## Testing ``` python -m pytest tests\unittests\cli\utils\test_state.py -q python -m py_compile src\google\adk\cli\utils\state.py tests\unittests\cli\utils\test_state.py python -m pyink --check src\google\adk\cli\utils\state.py tests\unittests\cli\utils\test_state.py git diff --check ``` Co-authored-by: Yi Liu <yiliuly@google.com> COPYBARA_INTEGRATE_REVIEW=google#6001 from he-yufeng:fix/workflow-empty-state 1bc442a PiperOrigin-RevId: 960722840
Summary
Fixes #5995.
create_empty_state()only walkedsub_agents, so graph-basedWorkflowroots crashed when the dev server tried to add the current session to an eval set. Workflow children live inworkflow.graph.nodes, notsub_agents.This updates the state traversal to:
sub_agentswalk for normal agentsgraph.nodesfor Workflow-style roots and nested graph nodesTesting