Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 1 addition & 15 deletions google/genai/_interactions/types/content_delta.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@
"DeltaMCPServerToolResultDeltaResultItemsItem",
"DeltaFileSearchCallDelta",
"DeltaFileSearchResultDelta",
"DeltaFileSearchResultDeltaResult",
]


Expand Down Expand Up @@ -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."""
Expand Down
17 changes: 2 additions & 15 deletions google/genai/_interactions/types/file_search_result_content.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand All @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion google/genai/_interactions/types/google_search_result.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading