Shangjie Chen and Copybara-Service
6a5eac0bdc
feat: Allow passing extra kwargs to create_session of VertexAiSessionService
...
This can be used to set ttl and other configs.
PiperOrigin-RevId: 821782343
2025-10-20 13:34:07 -07:00
ejfn and Copybara-Service
0b73a6937b
fix: Handle App objects in eval and graph endpoints
...
Merge https://github.com/google/adk-python/pull/3060
## Description
Fixes #3059
This PR fixes two endpoints in `adk web` that fail when using App objects instead of bare agents.
## Changes
- **Eval execution endpoint** (line ~969): Extract root_agent from App objects before passing to LocalEvalService
- **Graph visualization endpoint** (line ~1308): Extract root_agent from App objects before graph operations
Both endpoints now properly handle both BaseAgent and App objects by checking the type and extracting `.root_agent` when needed.
## Testing Plan
### Manual E2E Testing with ADK Web
Tested with an App object that includes context caching:
```python
from google.adk.apps import App
from google.adk.agents import LlmAgent
root_agent = LlmAgent(name="MyAgent", model="gemini-1.5-pro-002")
app = App(
name="my_agent",
root_agent=root_agent,
context_cache_config=ContextCacheConfig(...)
)
```
**Before fix:**
- Graph visualization failed (tried to call agent methods on App object)
- Eval execution failed (LocalEvalService received App instead of agent)
**After fix:**
- Graph visualization works correctly
- Eval execution works correctly
- Both endpoints properly extract root_agent from App objects
## Checklist
- [x] Code follows project style (autoformat.sh passed)
- [x] Changes are focused and minimal
- [x] Issue #3059 created and referenced
- [x] Manual E2E testing completed
COPYBARA_INTEGRATE_REVIEW=https://github.com/google/adk-python/pull/3060 from ejfn:ejfn/bugfix-app-object-endpoints 01c30191bfd9487a8c8463ccf24b297cb9a4ce37
PiperOrigin-RevId: 821746910
2025-10-20 12:11:26 -07:00
Google Team Member and Copybara-Service
ee39a89110
feat: introduces a new AgentEngineSandboxCodeExecutor class that supports executes agent generated code
...
The AgentEngineSandboxCodeExecutor uses the Vertex AI Code Execution Sandbox API to execute code
PiperOrigin-RevId: 821699641
2025-10-20 10:14:34 -07:00
Shangjie Chen and Copybara-Service
d327538724
chore: Throw 409 already exist error when trying to create a session with existing id
...
Resolves https://github.com/google/adk-python/issues/2950
PiperOrigin-RevId: 821362008
2025-10-19 11:21:36 -07:00
Google Team Member and Copybara-Service
a5b742b360
feat: introduces a new AgentEngineSandboxCodeExecutor class that supports executes agent generated code
...
The AgentEngineSandboxCodeExecutor uses the Vertex AI Code Execution Sandbox API to execute code
PiperOrigin-RevId: 821197794
2025-10-18 20:24:04 -07:00
Wei Sun (Jack) and Copybara-Service
af74eba695
test: Skips test_langchain_tool.py temporarily after their new 1.0.0 release breaks existings deps of langchain
...
PiperOrigin-RevId: 820875043
2025-10-17 16:53:11 -07:00
Google Team Member and Copybara-Service
dbd818be0b
feat: introduces a new AgentEngineSandboxCodeExecutor class that supports executes agent generated code
...
The AgentEngineSandboxCodeExecutor uses the Vertex AI Code Execution Sandbox API to execute code
PiperOrigin-RevId: 820854185
2025-10-17 15:42:24 -07:00
Xiang (Sean) Zhou and Copybara-Service
a2d9f13fa1
chore: Add span for context caching handling and new cache creation
...
PiperOrigin-RevId: 820852233
2025-10-17 15:37:35 -07:00
Wei Sun (Jack) and Copybara-Service
0df67599c0
chore: Checks gemini version for 2 and above for gemini-builtin tools
...
PiperOrigin-RevId: 820848897
2025-10-17 15:27:47 -07:00
Shangjie Chen and Copybara-Service
8b3ed059c2
chore: Refactor and fix state management in the session service
...
Also refactoring the test cases to focus on the expected behaviors
PiperOrigin-RevId: 820734484
2025-10-17 10:04:36 -07:00
Ankur Sharma and Copybara-Service
cf3403231d
chore: Fix evaluation test cases to only use pytest features
...
PiperOrigin-RevId: 820700378
2025-10-17 08:25:17 -07:00
Shangjie Chen and Copybara-Service
9dce06f9b0
feat: Add rewind_async to support rewinding the session to before a previous invocation
...
PiperOrigin-RevId: 820552460
2025-10-16 23:24:40 -07:00
George Weale and Copybara-Service
307896aece
fix: Exclude additionalProperties from Gemini schemas
...
PiperOrigin-RevId: 820542466
2025-10-16 22:40:43 -07:00
Kathy Wu and Copybara-Service
6dcbb5aca6
feat: Support dynamic per-request headers in MCPToolset
...
Add a header_provider param which is a callable[ReadonlyContext, Dict[str, Any]] for users to build headers in MCPToolset
fix: https://github.com/google/adk-python/issues/3156
PiperOrigin-RevId: 820412372
2025-10-16 15:12:43 -07:00
Xiang (Sean) Zhou and Copybara-Service
2a8fdd94e1
chore: Add computer use sample agent
...
PiperOrigin-RevId: 820407078
2025-10-16 14:59:27 -07:00
Xuan Yang and Copybara-Service
37a153ef94
ci: Fix the logs importing for PR triaging agent
...
PiperOrigin-RevId: 820395414
2025-10-16 14:27:18 -07:00
Giovanni Galloro and Copybara-Service
ce4638651f
docs: Bump models in llms and llms-full to Gemini 2.5
...
Merge https://github.com/google/adk-python/pull/3166
COPYBARA_INTEGRATE_REVIEW=https://github.com/google/adk-python/pull/3166 from ggalloro:model-updates e741c8b266ef8cd7def203f94e8d9f8608c06685
PiperOrigin-RevId: 820381464
2025-10-16 13:53:45 -07:00
Doug Gebert and Copybara-Service
e6e2767c39
chore: Update gemini_llm_connection.py - typo spelling correction
...
Merge https://github.com/google/adk-python/pull/3168
Fixed misspelling on line 228 from:
- logger.info('Redeived session...
To:
- logger.info('Received session...
COPYBARA_INTEGRATE_REVIEW=https://github.com/google/adk-python/pull/3168 from DHHHG:patch-1 90b76d72ba474cd0092b2cc8d955b918c18d05bd
PiperOrigin-RevId: 820369618
2025-10-16 13:23:58 -07:00
Kacper Jawoszek and Copybara-Service
e50f05a9fc
feat(otel): env variable for disabling llm_request and llm_response in spans
...
The default without the variable set is to keep the content in spans to keep backward compatible behavior for existing users.
This allows to enable tracing without potential PII data from request and response. Google GenAI instrumentation lib requires an explicit opt-in to enable request and response content - see https://github.com/open-telemetry/opentelemetry-python-contrib/tree/main/instrumentation-genai/opentelemetry-instrumentation-google-genai#enabling-message-content .
PiperOrigin-RevId: 820351154
2025-10-16 13:07:27 -07:00
Xuan Yang and Copybara-Service
9dc00360e3
ci: Add state info for PR triaging agent
...
PiperOrigin-RevId: 820340584
2025-10-16 13:07:18 -07:00
Google Team Member and Copybara-Service
5a543c00df
feat: implement new methods in in-memory artifact service
...
* save_artifact with custom_metadata
* list_artifact_versions
* get_artifact_version
PiperOrigin-RevId: 820321444
2025-10-16 13:07:09 -07:00
Alexey Guseynov and Copybara-Service
1e1d63f34c
fix: Internal change
...
PiperOrigin-RevId: 820159440
2025-10-16 13:07:00 -07:00
Xuan Yang and Copybara-Service
f51380f9ea
feat: Extend ReflectAndRetryToolPlugin to support hallucinating function calls
...
PiperOrigin-RevId: 820051762
2025-10-16 13:06:51 -07:00
Xuan Yang and Copybara-Service
3734ceaa6c
fix: Use the agent's model when creating Google search agent tool
...
PiperOrigin-RevId: 819980797
2025-10-16 13:06:41 -07:00
Google Team Member and Copybara-Service
86097afe49
feat: Update AgentEvaluator to handle async ADK agent definitions
...
AgentEvaluator should recognize root_agent and get_agent_async as valid structures for ADK agent definitions.
PiperOrigin-RevId: 819976635
2025-10-16 13:06:31 -07:00