You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit de4ac2d
Browse filesBrowse the repository at this point in the historyBrowse files
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
Copy file name to clipboardExpand all lines: contributing/samples/adk_team/adk_answering_agent/README.md
+7-1Lines changed: 7 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -114,6 +114,7 @@ The following environment variables are required for the agent to connect to the
114
114
-`GOOGLE_CLOUD_PROJECT=YOUR_PROJECT_ID`: **(Required)** The Google Cloud project ID.
115
115
-`GOOGLE_CLOUD_LOCATION=LOCATION`: **(Required)** The Google Cloud region.
116
116
-`VERTEXAI_DATASTORE_ID=YOUR_DATASTORE_ID`: **(Required)** The full Vertex AI datastore ID for the document store (i.e. knowledge base), with the format of `projects/{project_number}/locations/{location}/collections/{collection}/dataStores/{datastore_id}`.
117
+
-`LLM_MODEL_NAME`: The Gemini model used by the answering agent. Defaults to `gemini-2.5-flash`.
117
118
-`OWNER`: The GitHub organization or username that owns the repository (e.g., `google`). Needed for both modes.
118
119
-`REPO`: The name of the GitHub repository (e.g., `adk-python`). Needed for both modes.
119
120
-`INTERACTIVE`: Controls the agent's interaction mode. For the automated workflow, this is set to `0`. For interactive mode, it should be set to `1` or left unset.
@@ -124,4 +125,9 @@ The following environment variables are required to upload the docs to update th
124
125
-`ADK_DOCS_ROOT_PATH=YOUR_ADK_DOCS_ROOT_PATH`: **(Required)** Path to the root of the downloaded adk-docs repo.
125
126
-`ADK_PYTHON_ROOT_PATH=YOUR_ADK_PYTHON_ROOT_PATH`: **(Required)** Path to the root of the downloaded adk-python repo.
126
127
127
-
For local execution in interactive mode, you can place these variables in a `.env` file in the project's root directory. For the GitHub workflow, they should be configured as repository secrets.
128
+
For local execution in interactive mode, you can place these variables in a
129
+
`.env` file in the project's root directory. For the GitHub workflow, required
130
+
credentials should be configured as repository secrets. The workflow also
131
+
supports the optional repository variables `ADK_ANSWERING_MODEL` and
132
+
`ADK_ANSWERING_LOCATION` to override the default model and location without
0 commit comments