Compare commits

...

3 Commits

Author SHA1 Message Date
Liang Wu c6b1c74321 docs: add thinking_config in generate_content_config in example agent
Closes https://github.com/google/adk-python/issues/3905

Co-authored-by: Liang Wu <wuliang@google.com>
PiperOrigin-RevId: 869232930
2026-02-12 08:37:04 -08:00
Liang Wu 4000c0251d chore: remove scipy from eval dependencies
It's not used in the codebase.

Co-authored-by: Liang Wu <wuliang@google.com>
PiperOrigin-RevId: 869020801
2026-02-11 21:59:31 -08:00
Liang Wu 845818be44 ci: only use --extra test for unit tests
This can fix unit test github action error by removing `--extra eval`. `--extra a2a` is not needed because it's included in `test`. All tests are still passing.

Co-authored-by: Liang Wu <wuliang@google.com>
PiperOrigin-RevId: 869014318
2026-02-11 21:39:48 -08:00
5 changed files with 9 additions and 9 deletions
+2 -3
View File
@@ -187,8 +187,7 @@ uv venv --python "python3.11" ".venv" source .venv/bin/activate
uv sync --all-extras ``` uv sync --all-extras ```
**Minimal setup for testing only (matches CI):** `bash uv sync --extra test **Minimal setup for testing only (matches CI):** `bash uv sync --extra test`
--extra eval --extra a2a`
**Virtual Environment Usage (Required):** - **Always use** `.venv/bin/python` or **Virtual Environment Usage (Required):** - **Always use** `.venv/bin/python` or
`.venv/bin/pytest` directly - **Or activate** with `source .venv/bin/activate` `.venv/bin/pytest` directly - **Or activate** with `source .venv/bin/activate`
@@ -363,7 +362,7 @@ catching issues with the public API.
**Quick start:** Run all tests with: `bash pytest tests/unittests` **Quick start:** Run all tests with: `bash pytest tests/unittests`
**Recommended:** Match CI configuration before submitting PRs: `bash uv sync **Recommended:** Match CI configuration before submitting PRs: `bash uv sync
--extra test --extra eval --extra a2a && pytest tests/unittests` --extra test && pytest tests/unittests`
**Additional options:** ```bash **Additional options:** ```bash
+3 -3
View File
@@ -180,11 +180,11 @@ part before or alongside your code PR.
pytest ./tests/unittests pytest ./tests/unittests
``` ```
NOTE: for accurate repro of test failure, only include `test`, `eval` and NOTE: for accurate repro of test failure, only include `test` as extra
`a2a` as extra dependencies. dependencies.
```shell ```shell
uv sync --extra test --extra eval --extra a2a uv sync --extra test
pytest ./tests/unittests pytest ./tests/unittests
``` ```
@@ -1,6 +1,6 @@
# yaml-language-server: $schema=https://raw.githubusercontent.com/google/adk-python/refs/heads/main/src/google/adk/agents/config_schemas/AgentConfig.json # yaml-language-server: $schema=https://raw.githubusercontent.com/google/adk-python/refs/heads/main/src/google/adk/agents/config_schemas/AgentConfig.json
name: search_agent name: search_agent
model: gemini-2.0-flash model: gemini-2.5-flash
description: 'an agent whose job it is to perform Google search queries and answer questions about the results.' description: 'an agent whose job it is to perform Google search queries and answer questions about the results.'
instruction: You are an agent whose job is to perform Google search queries and answer questions about the results. instruction: You are an agent whose job is to perform Google search queries and answer questions about the results.
tools: tools:
@@ -8,3 +8,5 @@ tools:
generate_content_config: generate_content_config:
temperature: 0.1 temperature: 0.1
max_output_tokens: 2000 max_output_tokens: 2000
thinking_config:
include_thoughts: true
-1
View File
@@ -111,7 +111,6 @@ eval = [
"google-cloud-aiplatform[evaluation]>=1.100.0", "google-cloud-aiplatform[evaluation]>=1.100.0",
"pandas>=2.2.3", "pandas>=2.2.3",
"rouge-score>=0.1.2", "rouge-score>=0.1.2",
"scipy<1.16; python_version<'3.11'",
"tabulate>=0.9.0", "tabulate>=0.9.0",
# go/keep-sorted end # go/keep-sorted end
] ]
+1 -1
View File
@@ -94,7 +94,7 @@ for version in "${versions_to_run[@]}"; do
# 3. perform the unit tests # 3. perform the unit tests
echo "Setting up test environment in .unittest_venv..." echo "Setting up test environment in .unittest_venv..."
uv sync --extra test --extra eval --extra a2a --active uv sync --extra test --active
echo "Running unit tests..." echo "Running unit tests..."
TEST_EXIT_CODE=0 TEST_EXIT_CODE=0