Skip to content

fix: preserve single-turn structured output#6100

Open
he-yufeng wants to merge 1 commit into
google:mainfrom
he-yufeng:fix/single-turn-output-schema
Open

fix: preserve single-turn structured output#6100
he-yufeng wants to merge 1 commit into
google:mainfrom
he-yufeng:fix/single-turn-output-schema

Conversation

@he-yufeng

Copy link
Copy Markdown
Contributor

Fixes #6089.

Summary

  • Keep message_as_output for plain single-turn agent text output.
  • Leave structured output_schema results as event.output instead of marking them as message output.
  • Add direct tests for both plain text and structured single-turn output handling.

To verify

  • $env:PYTHONPATH=(Resolve-Path .\src).Path; python -m pytest tests\unittests\workflow\test_llm_agent_as_node.py -q
  • python -m py_compile src\google\adk\workflow\_llm_agent_wrapper.py tests\unittests\workflow\test_llm_agent_as_node.py
  • python -m ruff check src\google\adk\workflow\_llm_agent_wrapper.py
  • git diff --check

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

message_as_output=True unconditionally set, destroying structured event.output for single_turn agents with output_schema

1 participant