Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

discovery_engine_search content_search_spec.search_result_mode 400 error after 1.16.0 release #3183

Copy link
Copy link
@asalauyeu-hubspot

Description

@asalauyeu-hubspot
Issue body actions

** Please make sure you read the contribution guide and file the issues in the right place. **
Contribution guide.

Describe the bug
Our agent includes several VertexAiSearchTool tools, we pass data_store_id there. One of the stores is a structured data store. After the 1.16.0 release, the agent invocation returns the following error (from the discovery_engine_search):

status: "error"
error_message: "400 `content_search_spec.search_result_mode` must be set to SearchRequest.ContentSearchSpec.SearchResultMode.DOCUMENTS when the engine contains structured data store."

To Reproduce
Please share a minimal code and data to reproduce your problem.
Steps to reproduce the behavior:
Run any agent that includes VertexAiSearchTool with structured data store with adk web locally to reproduce the issue.

Expected behavior
200 llm response

Screenshots

Image

Desktop (please complete the following information):

  • OS: [e.g. macOS, Linux, Windows]
  • Python version(python -V):
  • ADK version(pip show google-adk): 1.16.0

Model Information:

  • Are you using LiteLLM: Yes/No
  • Which model is being used(e.g. gemini-2.5-pro)

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

Labels

tools[Component] This issue is related to tools[Component] This issue is related to tools

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.