You've already forked adk-python
mirror of
https://github.com/encounter/adk-python.git
synced 2026-07-09 18:19:28 -07:00
Compare commits
3 Commits
release/v1.25.0
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| c6b1c74321 | |||
| 4000c0251d | |||
| 845818be44 |
@@ -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
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user