George Weale and Copybara-Service
6b7386b762
fix: Heal missing tool results before LiteLLM requests
...
Detect assistant tool calls that lack matching tool results in the history and insert placeholder tool messages so strict providers don’t reject the request. Prevents crash loops when executions are interrupted mid-tool call.
Close #3971
Co-authored-by: George Weale <gweale@google.com >
PiperOrigin-RevId: 852340750
2026-01-05 09:49:20 -08:00
Joseph Pagadora and Copybara-Service
5b7c8c04d6
chore: Introduce MetricInfoProvider interface, and refactor metric evaluators to use this interface to provide MetricInfo
...
Co-authored-by: Joseph Pagadora <jcpagadora@google.com >
PiperOrigin-RevId: 851406110
2026-01-02 11:49:34 -08:00
Google Team Member and Copybara-Service
07bb164758
fix: Exclude thought parts when merging agent output
...
PiperOrigin-RevId: 850500329
2025-12-30 13:39:40 -08:00
Keyur Joshi and Copybara-Service
a364388d97
feat: Add custom instructions support to LlmBackedUserSimulator
...
Details:
- Allows users to provide custom instructions for the LLM-backed user simulator via the `custom_instructions` field in `LlmBackedUserSimulatorConfig`.
- The custom instructions must include placeholders for the stop signal, conversation plan, and conversation history. A pydantic validator ensures these placeholders are present.
- If no custom instructions are provided, the current default template is used.
Co-authored-by: Keyur Joshi <keyurj@google.com >
PiperOrigin-RevId: 850471448
2025-12-30 11:42:46 -08:00
Keyur Joshi and Copybara-Service
0918b647df
fix: fix inconsistent method signatures for evaluate_invocations
...
The evaluate_invocations method override in Evaluator subclasses was not consistent, leading to errors during calls, especially when using kwargs. Made the overrides and calls consistent to resolve this issue.
Co-authored-by: Keyur Joshi <keyurj@google.com >
PiperOrigin-RevId: 850462752
2025-12-30 11:07:25 -08:00
Yeesian Ng and Copybara-Service
38a30a44d2
fix: Handle overriding of requirements when deploying to agent engine
...
Co-authored-by: Yeesian Ng <ysian@google.com >
PiperOrigin-RevId: 850423017
2025-12-30 08:30:35 -08:00
Google Team Member and Copybara-Service
26e77e1694
fix: Fix issue with MCP tools throwing an error
...
Fixes: https://github.com/google/adk-python/issues/3082
PiperOrigin-RevId: 849562638
2025-12-27 15:51:03 -08:00
Yeesian Ng and Copybara-Service
1f546df35a
feat: Set log level when deploying to Agent Engine
...
Co-authored-by: Yeesian Ng <ysian@google.com >
PiperOrigin-RevId: 848243087
2025-12-23 11:25:39 -08:00
Google Team Member and Copybara-Service
871571d997
feat: Mark Vertex calls made from non-gemini models
...
PiperOrigin-RevId: 848159669
2025-12-23 06:50:46 -08:00
Google Team Member and Copybara-Service
0f5b677c53
feat: Mark Vertex calls made from non-gemini models
...
PiperOrigin-RevId: 848140103
2025-12-23 05:37:36 -08:00
Google Team Member and Copybara-Service
4f3b733074
fix: label response as thought if task is immediately returned as working
...
PiperOrigin-RevId: 847660113
2025-12-22 01:21:41 -08:00
Xuan Yang and Copybara-Service
0b1cff2976
feat: Enable PROGRESSIVE_SSE_STREAMING feature by default
...
Related: https://github.com/google/adk-python/issues/3705
Co-authored-by: Xuan Yang <xygoogle@google.com >
PiperOrigin-RevId: 846793027
2025-12-19 10:50:49 -08:00
Kathy Wu and Copybara-Service
71b32890f5
fix: Only prepend "https://" to the MCP server url if it doesn't already have a scheme
...
There isn't a consistent format for MCP server urls in the registry-- some customers add the https:// but others don't. To standardize, only prepend if it isn't there already.
Co-authored-by: Kathy Wu <wukathy@google.com >
PiperOrigin-RevId: 846451152
2025-12-18 16:07:16 -08:00
Rohit Yanamadala and Copybara-Service
f51b9b70b2
fix: Prevent stale bot from flagging internal maintainer discussions
...
Merge https://github.com/google/adk-python/pull/3938
Co-authored-by: Xuan Yang <xygoogle@google.com >
COPYBARA_INTEGRATE_REVIEW=https://github.com/google/adk-python/pull/3938 from ryanaiagent:fix/stale-bot-logic 605d3499784facffc0e0ca3c1fb0547202660f46
PiperOrigin-RevId: 846450195
2025-12-18 16:04:21 -08:00
Google Team Member and Copybara-Service
e4ee9d7c46
feat: Update event_converter used in A2ARemote agent to use a2a_task.status.message only if parts are non-empty
...
PiperOrigin-RevId: 846413612
2025-12-18 14:23:27 -08:00
Xiang (Sean) Zhou and Copybara-Service
f1eb1c0254
chore: Update latest Live Model names for sample agent
...
Co-authored-by: Xiang (Sean) Zhou <seanzhougoogle@google.com >
PiperOrigin-RevId: 846351549
2025-12-18 11:33:18 -08:00
Xiang (Sean) Zhou and Copybara-Service
d58ea589ad
chore: Update google-genai and google-cloud-aiplatform versions
...
Co-authored-by: Xiang (Sean) Zhou <seanzhougoogle@google.com >
PiperOrigin-RevId: 846307170
2025-12-18 09:42:15 -08:00
Xuan Yang and Copybara-Service
f5f4c01d1b
fix: Pin aiosqlite version to 0.21.0
...
Co-authored-by: Xuan Yang <xygoogle@google.com >
PiperOrigin-RevId: 846056994
2025-12-17 21:26:19 -08:00
Kathy Wu and Copybara-Service
253ac87c79
fix: nit fixes for API Registry - updating imports / type hints and formatting
...
Co-authored-by: Kathy Wu <wukathy@google.com >
PiperOrigin-RevId: 845980315
2025-12-17 17:23:58 -08:00
Kathy Wu and Copybara-Service
0088b0f3ad
fix: Add x-goog-user-project header to http calls in API Registry
...
This gcloud authentication header is required as a project override when using google ADC credentials. It is required for all OneMCP servers. Originally I manually put it in the big query sample, but since it is used for all OneMCP, it makes sense to just add it to the core API Registry logic. I also refactored the auth header logic a bit to deduplicate.
Co-authored-by: Kathy Wu <wukathy@google.com >
PiperOrigin-RevId: 845967178
2025-12-17 16:41:50 -08:00
George Weale and Copybara-Service
fcea86f58c
chore: Update _flatten_ollama_content return type and add tests
...
The return type of _flatten_ollama_content is now strictly str | None
Co-authored-by: George Weale <gweale@google.com >
PiperOrigin-RevId: 845963722
2025-12-17 16:31:43 -08:00
Google Team Member and Copybara-Service
f35d129b4c
feat(fix): Check all content parts for emptiness in _contains_empty_content
...
PiperOrigin-RevId: 845954226
2025-12-17 16:03:12 -08:00
Shangjie Chen and Copybara-Service
589f15cb27
feat: Add an internal function name 'adk_framework' to allow passing function response to the framework but not poluting the agent context
...
Co-authored-by: Shangjie Chen <deanchen@google.com >
PiperOrigin-RevId: 845933584
2025-12-17 15:07:25 -08:00
Kathy Wu and Copybara-Service
78c96e99ff
fix: update Api Registry Agent prompt to be more specific and give it the gcloud project id
...
Co-authored-by: Kathy Wu <wukathy@google.com >
PiperOrigin-RevId: 845884290
2025-12-17 13:00:19 -08:00
George Weale and Copybara-Service
e3bac1ab8c
fix: Built-in agents (names starting with "__") now use in-memory session storage instead of creating .adk folders in the agents directory
...
Co-authored-by: George Weale <gweale@google.com >
PiperOrigin-RevId: 845852695
2025-12-17 11:36:22 -08:00