Wei Sun (Jack)
53803522b6
refactor(config): Makes BaseAgent.from_config a final method and let sub-class to optionally override _parse_config to update kwargs if needed
...
This ensures that the pydantic hooks (e.g. model_validators) are triggered correctly.
PiperOrigin-RevId: 791545704
2025-08-05 23:53:25 -07:00
Liang Wu
e3c2bf3062
chore: remove unused Example-related classes
...
PiperOrigin-RevId: 791538058
2025-08-05 23:26:06 -07:00
Liang Wu
2fff882fb0
feat(config): implement from_config() for BaseTool
...
PiperOrigin-RevId: 791520708
2025-08-05 22:26:23 -07:00
Xuan Yang
a3b31ca950
chore: add the missing name for the ADK Answering Agent workflow
...
PiperOrigin-RevId: 791413949
2025-08-05 16:24:24 -07:00
Xuan Yang
8dc0c949af
chore: add Github workflow config for the ADK Answering agent
...
PiperOrigin-RevId: 791407331
2025-08-05 16:07:09 -07:00
Hangfei Lin
71fbc9275b
feat: Implement Live Session Resumption
...
Previous implementation doesn't pass the actual handle to server. Now we cache the handle and pass it over when reconnection happens.
To enable:
run_config = RunConfig(
session_resumption=types.SessionResumptionConfig(transparent=True)
)
PiperOrigin-RevId: 791308462
2025-08-05 11:50:54 -07:00
Xiang (Sean) Zhou
423542a43f
fix: shared default plugin manager and cost manager instances among multiple invocations
...
PiperOrigin-RevId: 791303349
2025-08-05 11:38:52 -07:00
Xiang (Sean) Zhou
37dae9b631
chore: Import AGENT_CARD_WELL_KNOWN_PATH from adk instead of from a2a directly
...
thus let adk handle import problem for a2a, e.g. python version need to be > 3.10 etc.
PiperOrigin-RevId: 791273137
2025-08-05 10:28:37 -07:00
Liang Wu
0e28d64712
feat(tools): create enterprise_web_search_tool as a tool instance
...
There is no argument for the tool, so just like google_search, we should make it an easy-to-use tool instance.
PiperOrigin-RevId: 791266806
2025-08-05 10:11:37 -07:00
Xiang (Sean) Zhou
6da6c2a44c
fix: using async lock for accessing shared object in parallel executions and update tests for testing various type of functions
...
1. given we are running parallel functions in one event loop (one thread) , we should use async lock instead of thread lock
2. test three kind of functions:
a. sync function
b. async function that doesn't yield
c. async function that yield
PiperOrigin-RevId: 791255012
2025-08-05 09:45:04 -07:00
Wei Sun (Jack)
8ef2177658
test: Fixes adk cli options and method parameters mismatching and adds a unit test for future proof checking
...
The test will fail if `@option` list and method parameter don't match.
Future proof test for #2328
PiperOrigin-RevId: 791022512
2025-08-04 21:08:57 -07:00
Google Team Member
97318bcd19
fix: correct type annotation
...
Overridden `supported_models` should be a `classmethod` rather than a `staticmethod`.
PiperOrigin-RevId: 790989895
2025-08-04 19:25:52 -07:00
Xuan Yang
283303032a
chore: update the prompt to make the ADK Answering Agent more objective
...
PiperOrigin-RevId: 790882938
2025-08-04 13:59:59 -07:00
nikkie
e369c283b3
fix: typo againt (in adk run --replay help)
...
Merge https://github.com/google/adk-python/pull/2327
`adk run --help` (adk 1.9.0)
```
--replay FILE The json file that contains the initial state of the
session and user queries. A new session will be created
using this state. And user queries are run againt the
newly created session. Users cannot continue to interact
with the agent.
```
```
$ git grep againt
src/google/adk/cli/cli_tools_click.py: " queries are run againt the newly created session. Users cannot"
```
COPYBARA_INTEGRATE_REVIEW=https://github.com/google/adk-python/pull/2327 from ftnext:fix-typo-run-replay-help 77cae65a235d9119810fe3d209910562672713c8
PiperOrigin-RevId: 790872246
2025-08-04 13:32:41 -07:00
Xuan Yang
74589a1db7
chore: make LlmRequest.LiveConnectConfig field default to a factory to avoid sharing a mutable instance
...
PiperOrigin-RevId: 790854215
2025-08-04 12:43:34 -07:00
Wei Sun (Jack)
e41dbccf7f
fix(cli): Fixes adk deploy cloud_run cli
...
Fixes #2328
PiperOrigin-RevId: 790775592
2025-08-04 09:16:26 -07:00
Carol Zheng
d620bcb384
fix: Remove thoughts from contents in llm requests
...
Merge https://github.com/google/adk-python/pull/2320
Fix #843
COPYBARA_INTEGRATE_REVIEW=https://github.com/google/adk-python/pull/2320 from CAROLZXYZXY:cazheng/fix-843 5b4a4b256928cb766a44a3e18d4300b7ee5f779f
PiperOrigin-RevId: 790592793
2025-08-03 22:48:25 -07:00
Xiang (Sean) Zhou
90b9193a20
chore: Add sample agent for testing parallel functions execution
...
PiperOrigin-RevId: 790208057
2025-08-02 14:53:03 -07:00
Xiang (Sean) Zhou
57cd41f424
feat: Support parallel execution of parallel function calls
...
PiperOrigin-RevId: 790182046
2025-08-02 12:28:19 -07:00
Divyansh Shukla
7556ebc76a
feat: Allow max tokens to be customizable in Claude
...
PiperOrigin-RevId: 789901925
2025-08-01 14:43:57 -07:00
Wei Sun (Jack)
2bb20411f4
feat(config): Adds BaseAgent.config_type field to indicate the config for the current agent and removes if-else branches against LlmAgent/LoopAgent/... in config_agent_utils::from_config
...
This makes the logic work with any user-defined agent with user-defined XxxAgentConfig.
PiperOrigin-RevId: 789845354
2025-08-01 12:02:07 -07:00
Xiang (Sean) Zhou
86a44873e9
fix: Annotate response type as None for transfer_to_agent tool and set empty Schema as response schema when tool has no response annotation
...
1. if a function has no return type annotation, we should treat it as returning any type
2. we use empty schema (with `type` as None) to indicate no type constraints and this is already supported by model server
PiperOrigin-RevId: 789808104
2025-08-01 10:22:28 -07:00
Xiang (Sean) Zhou
faadef167e
fix: incompatible a2a sdk changes
...
a. camel case to snake case
b. A2ACardResolver moved to different module
PiperOrigin-RevId: 789807686
2025-08-01 10:20:37 -07:00
Google Team Member
bead607364
chore: Hide the ask_data_insights tool until the API is publicly available
...
PiperOrigin-RevId: 789806535
2025-08-01 10:17:13 -07:00
Xuan Yang
041f04e89c
chore: change LlmRequest.config's default value to be types.GenerateContentConfig() instead of None
...
PiperOrigin-RevId: 789792582
2025-08-01 09:36:20 -07:00