diff --git a/google/genai/_interactions/types/content_delta.py b/google/genai/_interactions/types/content_delta.py index e0fb2d0f3..910fecdfc 100644 --- a/google/genai/_interactions/types/content_delta.py +++ b/google/genai/_interactions/types/content_delta.py @@ -58,7 +58,6 @@ "DeltaMCPServerToolResultDeltaResultItemsItem", "DeltaFileSearchCallDelta", "DeltaFileSearchResultDelta", - "DeltaFileSearchResultDeltaResult", ] @@ -305,26 +304,13 @@ class DeltaFileSearchCallDelta(BaseModel): type: Literal["file_search_call"] -class DeltaFileSearchResultDeltaResult(BaseModel): - """The result of the File Search.""" - - file_search_store: Optional[str] = None - """The name of the file search store.""" - - text: Optional[str] = None - """The text of the search result.""" - - title: Optional[str] = None - """The title of the search result.""" - - class DeltaFileSearchResultDelta(BaseModel): call_id: str """ID to match the ID from the function call block.""" type: Literal["file_search_result"] - result: Optional[List[DeltaFileSearchResultDeltaResult]] = None + result: Optional[List[object]] = None signature: Optional[str] = None """A signature hash for backend validation.""" diff --git a/google/genai/_interactions/types/file_search_result_content.py b/google/genai/_interactions/types/file_search_result_content.py index be786f037..31fa4d763 100644 --- a/google/genai/_interactions/types/file_search_result_content.py +++ b/google/genai/_interactions/types/file_search_result_content.py @@ -20,20 +20,7 @@ from .._models import BaseModel -__all__ = ["FileSearchResultContent", "Result"] - - -class Result(BaseModel): - """The result of the File Search.""" - - file_search_store: Optional[str] = None - """The name of the file search store.""" - - text: Optional[str] = None - """The text of the search result.""" - - title: Optional[str] = None - """The title of the search result.""" +__all__ = ["FileSearchResultContent"] class FileSearchResultContent(BaseModel): @@ -44,7 +31,7 @@ class FileSearchResultContent(BaseModel): type: Literal["file_search_result"] - result: Optional[List[Result]] = None + result: Optional[List[object]] = None """The results of the File Search.""" signature: Optional[str] = None diff --git a/google/genai/_interactions/types/file_search_result_content_param.py b/google/genai/_interactions/types/file_search_result_content_param.py index a891c0174..25b0dd4e6 100644 --- a/google/genai/_interactions/types/file_search_result_content_param.py +++ b/google/genai/_interactions/types/file_search_result_content_param.py @@ -20,20 +20,7 @@ from typing import Iterable from typing_extensions import Literal, Required, TypedDict -__all__ = ["FileSearchResultContentParam", "Result"] - - -class Result(TypedDict, total=False): - """The result of the File Search.""" - - file_search_store: str - """The name of the file search store.""" - - text: str - """The text of the search result.""" - - title: str - """The title of the search result.""" +__all__ = ["FileSearchResultContentParam"] class FileSearchResultContentParam(TypedDict, total=False): @@ -44,7 +31,7 @@ class FileSearchResultContentParam(TypedDict, total=False): type: Required[Literal["file_search_result"]] - result: Iterable[Result] + result: Iterable[object] """The results of the File Search.""" signature: str diff --git a/google/genai/_interactions/types/google_search_result.py b/google/genai/_interactions/types/google_search_result.py index a3fcbfa38..b3e835767 100644 --- a/google/genai/_interactions/types/google_search_result.py +++ b/google/genai/_interactions/types/google_search_result.py @@ -25,7 +25,7 @@ class GoogleSearchResult(BaseModel): """The result of the Google Search.""" - rendered_content: Optional[str] = None + search_suggestions: Optional[str] = None """Web content snippet that can be embedded in a web page or an app webview.""" title: Optional[str] = None diff --git a/google/genai/_interactions/types/google_search_result_param.py b/google/genai/_interactions/types/google_search_result_param.py index 40ad35bb8..f2cb06360 100644 --- a/google/genai/_interactions/types/google_search_result_param.py +++ b/google/genai/_interactions/types/google_search_result_param.py @@ -25,7 +25,7 @@ class GoogleSearchResultParam(TypedDict, total=False): """The result of the Google Search.""" - rendered_content: str + search_suggestions: str """Web content snippet that can be embedded in a web page or an app webview.""" title: str