Calvin Giles
ffe2bdbe4c
feat: Add support for vertex gemini model optimizer
...
Merge https://github.com/google/adk-python/pull/1130
This enables the use of the `model-optimizer-*` family of models in vertex, as per the [documentation](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/vertex-ai-model-optimizer#using-vertex-ai-model-optimizer ).
To use this, ensure your location is set to `global` and pass a model optimizer model to an agent:
```python
root_agent = Agent(
model="model-optimizer-exp-04-09",
name="fast_and_slow_agent",
instruction="Answer any question the user gives you - easy or hard.",
generate_content_config=types.GenerateContentConfig(
temperature=0.01,
model_selection_config=ModelSelectionConfig(
feature_selection_preference=FeatureSelectionPreference.BALANCED
# Options: PRIORITIZE_QUALITY, BALANCED, PRIORITIZE_COST
)
),
)
```
COPYBARA_INTEGRATE_REVIEW=https://github.com/google/adk-python/pull/1130 from calvingiles:feat-model-optimizer 1a76bfa22420edb07d83415dcea6dd0114084e8e
PiperOrigin-RevId: 784921913
2025-07-19 09:05:17 -07:00
Calvin Giles
67284fc466
feat: History Management Sample
...
Merge https://github.com/google/adk-python/pull/891
This creates a sample relating to discussion #826 - how to manage context windows.
COPYBARA_INTEGRATE_REVIEW=https://github.com/google/adk-python/pull/891 from calvingiles:history-management-sample 2827817bea8d96ea0eee7e3ba84c14bd1fe4286d
PiperOrigin-RevId: 784920438
2025-07-19 08:57:11 -07:00
Hangfei Lin
0ec69d05a4
feat: Enhance LangchainTool to accept more forms of functions
...
Now the LangchainTool can wrap:
* Langchain StructuredTool (sync and async).
* Langchain @Tool (sync and async).
This enhance the flexibility for user and enables async functionalities.
PiperOrigin-RevId: 784728061
2025-07-18 15:56:17 -07:00
Hangfei Lin
f1e0bc0b18
chore: remove pr-commit-check
...
With this mode, the PR commit can be squashed before copybara. So we can delete the pr-commit-check.yml.
PiperOrigin-RevId: 784665025
2025-07-18 12:26:46 -07:00
Liang Wu
5edc493da9
chore: allow "from google.adk.tools import AgentTool"
...
PiperOrigin-RevId: 784606041
2025-07-18 09:30:40 -07:00
Copybara-Service
3568c9291d
Merge pull request #547 from jeffreyrubi:fix/missing-path-level-parameters
...
PiperOrigin-RevId: 784415343
2025-07-17 20:27:46 -07:00
Copybara-Service
d0a330cd15
Merge pull request #2020 from thiagosalvatore:main
...
PiperOrigin-RevId: 784393522
2025-07-17 18:50:46 -07:00
seanzhou1023
637fa410d8
Merge branch 'main' into main
2025-07-17 18:23:32 -07:00
Sean Zhou
6f016609e8
fix: support path level parameters for open_api_spec_parser
...
autoformat the changes
2025-07-17 18:09:40 -07:00
Hangfei Lin
bb1b1c695f
Merge branch 'main' into fix/missing-path-level-parameters
2025-07-17 17:46:27 -07:00
Wei Sun (Jack)
bb4ff2cc3d
chore: fixes formatting in adk_project_overview_and_architecture.md
...
PiperOrigin-RevId: 784371131
2025-07-17 17:21:14 -07:00
Wei Sun (Jack)
b1f4aebb25
chore: lint fixings in vertex_ai_memory_bank.py
...
* Adds type hints;
* Switches to lazy evaluation in logs.
PiperOrigin-RevId: 784353566
2025-07-17 16:21:49 -07:00
Shangjie Chen
2e778049d0
feat: Support passing fully qualified agent engine resource name when constructing session service and memory service
...
Resolves https://github.com/google/adk-python/issues/1760
PiperOrigin-RevId: 784353411
2025-07-17 16:19:55 -07:00
Ankur Sharma
36e45cdab3
feat: Enable FinalResponseMatchV2 metric as an experiment
...
PiperOrigin-RevId: 784346859
2025-07-17 15:59:47 -07:00
Xuan Yang
35de210d4e
chore: add a script to upload ADK docs for the ADK Answering Agent
...
PiperOrigin-RevId: 784343501
2025-07-17 15:49:44 -07:00
Xuan Yang
bbe1c9dc66
fix: specify version into the uv installation action to bypass the setup-uv bug
...
https://github.com/astral-sh/setup-uv/issues/489
PiperOrigin-RevId: 784339143
2025-07-17 15:35:15 -07:00
Thiago Salvatore
9ad4350c88
Merge branch 'main' of github.com:thiagosalvatore/adk-python
2025-07-17 18:21:59 -03:00
Thiago Salvatore
2f8bb91e6b
add docstring
2025-07-17 18:21:40 -03:00
Thiago Salvatore
3f01c8c999
Merge branch 'main' into main
2025-07-17 18:20:37 -03:00
Thiago Salvatore
b5850e0757
reformat file structure
2025-07-17 18:17:09 -03:00
Thiago Salvatore
53df35ee58
fix(schema to dict): fix serialization of tools with nested schema
2025-07-17 18:16:17 -03:00
Xuan Yang
6e68c2d7f3
chore: update ADK Triage Agent to set issue type
...
It will change bug report to "Bug" type and feature request to "Feature" type.
PiperOrigin-RevId: 784280674
2025-07-17 12:51:41 -07:00
Xuan Yang
8ada46a18e
chore: remove the redundant service.bucket setting in mock_gcs_artifact_service
...
PiperOrigin-RevId: 784253138
2025-07-17 11:29:32 -07:00
Xuan Yang
1c4c887bec
fix: use the same word extractor for query and event contents in InMemoryMemoryService
...
PiperOrigin-RevId: 784236637
2025-07-17 10:43:01 -07:00
Xuan Yang
78697aa6af
chore: add to_session method in StorageSession for readability
...
PiperOrigin-RevId: 784232578
2025-07-17 10:32:18 -07:00