Skip to content

fix: make discussion answering model configurable - #6113

Closed
Haihan-Jiang wants to merge 3 commits into
google:mainfrom
Haihan-Jiang:codex/adk-python-answering-model-config
Closed

Haihan-Jiang wants to merge 3 commits into
google:mainfrom
Haihan-Jiang:codex/adk-python-answering-model-config

Conversation

@Haihan-Jiang

Copy link
Copy Markdown
Contributor

Summary

  • Configure the discussion answering agents through LLM_MODEL_NAME instead of hardcoding gemini-3.5-flash.
  • Let the GitHub workflow override both the answering model and Vertex location with repository variables.
  • Document the new knobs and add a regression test that prevents the answering agent model from being hardcoded again.

Fixes #6104

Testing

  • git diff --check
  • python3.12 -m py_compile contributing/samples/adk_team/adk_answering_agent/settings.py contributing/samples/adk_team/adk_answering_agent/agent.py contributing/samples/adk_team/adk_answering_agent/gemini_assistant/agent.py tests/unittests/contributing/test_adk_answering_agent_model_config.py
  • /tmp/adk-python-pr6104-venv/bin/python -m pytest tests/unittests/contributing/test_adk_answering_agent_model_config.py
  • /tmp/adk-python-pr6104-venv/bin/python -m pyink --check contributing/samples/adk_team/adk_answering_agent/settings.py contributing/samples/adk_team/adk_answering_agent/agent.py contributing/samples/adk_team/adk_answering_agent/gemini_assistant/agent.py tests/unittests/contributing/test_adk_answering_agent_model_config.py

@rohityan rohityan self-assigned this Jun 15, 2026
@rohityan rohityan added models [Component] This issue is related to model support workflow [Component] This issue is related to ADKworkflow and removed models [Component] This issue is related to model support labels Jun 17, 2026
@rohityan

Copy link
Copy Markdown
Collaborator

Hi @Haihan-Jiang , Thank you for your contribution! We appreciate you taking the time to submit this pull request. Please fix formatting errors before we can proceed with a review.

@rohityan rohityan added the request clarification [Status] The maintainer need clarification or more information from the author label Jun 17, 2026
@wukath wukath assigned wukath and unassigned rohityan Jun 17, 2026

@ftnext ftnext left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@adk-bot adk-bot added the tools [Component] This issue is related to tools label Jul 11, 2026
copybara-service Bot pushed a commit that referenced this pull request Jul 13, 2026
Merge #6113

## Summary
- Configure the discussion answering agents through `LLM_MODEL_NAME` instead of
hardcoding `gemini-3.5-flash`.
- Let the GitHub workflow override both the answering model and Vertex location
with repository variables.
- Downgrade the default model from `gemini-3.5-flash` to `gemini-2.5-flash` because
`gemini-3.5-flash` 404s on Vertex AI Search (#6104).
- Document the new knobs.

Fixes #6104

## Testing
- `git diff --check`
- `python3.12 -m py_compile contributing/samples/adk_team/adk_answering_agent/settings.py contributing/samples/adk_team/adk_answering_agent/agent.py contributing/samples/adk_team/adk_answering_agent/gemini_assistant/agent.py`

Co-authored-by: Kathy Wu <wukathy@google.com>
COPYBARA_INTEGRATE_REVIEW=#6113 from Haihan-Jiang:codex/adk-python-answering-model-config aea24ea
PiperOrigin-RevId: 947224603
@adk-bot

adk-bot commented Jul 13, 2026

Copy link
Copy Markdown
Collaborator

Thank you @Haihan-Jiang for your contribution! 🎉

Your changes have been successfully imported and merged via Copybara in commit de4ac2d.

Closing this PR as the changes are now in the main branch.

@adk-bot adk-bot added the merged [Status] This PR is merged label Jul 13, 2026
@adk-bot adk-bot closed this Jul 13, 2026
FrigaZzz pushed a commit to FrigaZzz/adk-python that referenced this pull request Aug 11, 2026
Merge google#6113

## Summary
- Configure the discussion answering agents through `LLM_MODEL_NAME` instead of
hardcoding `gemini-3.5-flash`.
- Let the GitHub workflow override both the answering model and Vertex location
with repository variables.
- Downgrade the default model from `gemini-3.5-flash` to `gemini-2.5-flash` because
`gemini-3.5-flash` 404s on Vertex AI Search (google#6104).
- Document the new knobs.

Fixes google#6104

## Testing
- `git diff --check`
- `python3.12 -m py_compile contributing/samples/adk_team/adk_answering_agent/settings.py contributing/samples/adk_team/adk_answering_agent/agent.py contributing/samples/adk_team/adk_answering_agent/gemini_assistant/agent.py`

Co-authored-by: Kathy Wu <wukathy@google.com>
COPYBARA_INTEGRATE_REVIEW=google#6113 from Haihan-Jiang:codex/adk-python-answering-model-config aea24ea
PiperOrigin-RevId: 947224603
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merged [Status] This PR is merged request clarification [Status] The maintainer need clarification or more information from the author tools [Component] This issue is related to tools workflow [Component] This issue is related to ADKworkflow

Projects

None yet

Development

Successfully merging this pull request may close these issues.

GitHub Actions workflow discussion_answering.yml fails on Q&A discussion creation with a Vertex AI 404 for gemini-3.5-flash

6 participants