Skip to content
Closed
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
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@


class CodeExecutionResultDeltaTypedDict(TypedDict):
r"""ToolResultDelta.type"""

result: str
type: Literal["code_execution_result"]
is_error: NotRequired[bool]
Expand All @@ -35,6 +37,8 @@ class CodeExecutionResultDeltaTypedDict(TypedDict):


class CodeExecutionResultDelta(BaseModel):
r"""ToolResultDelta.type"""

result: str

type: Annotated[
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,17 @@


class FileSearchResultDeltaTypedDict(TypedDict):
r"""ToolResultDelta.type"""

result: List[FileSearchResultTypedDict]
type: Literal["file_search_result"]
signature: NotRequired[str]
r"""A signature hash for backend validation."""


class FileSearchResultDelta(BaseModel):
r"""ToolResultDelta.type"""

result: List[FileSearchResult]

type: Annotated[
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@


class GoogleMapsResultDeltaTypedDict(TypedDict):
r"""ToolResultDelta.type"""

type: Literal["google_maps_result"]
result: NotRequired[List[GoogleMapsResultParam]]
r"""The results of the Google Maps."""
Expand All @@ -36,6 +38,8 @@ class GoogleMapsResultDeltaTypedDict(TypedDict):


class GoogleMapsResultDelta(BaseModel):
r"""ToolResultDelta.type"""

type: Annotated[
Annotated[
Literal["google_maps_result"],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@


class GoogleSearchResultDeltaTypedDict(TypedDict):
r"""ToolResultDelta.type"""

result: List[GoogleSearchResultParam]
type: Literal["google_search_result"]
is_error: NotRequired[bool]
Expand All @@ -36,6 +38,8 @@ class GoogleSearchResultDeltaTypedDict(TypedDict):


class GoogleSearchResultDelta(BaseModel):
r"""ToolResultDelta.type"""

result: List[GoogleSearchResult]

type: Annotated[
Expand Down
4 changes: 4 additions & 0 deletions google/genai/_gaos/types/interactions/stepdelta.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@


class StepDeltaTypedDict(TypedDict):
r"""Payload.event_type"""

index: int
delta: StepDeltaDataTypedDict
event_type: Literal["step.delta"]
Expand All @@ -41,6 +43,8 @@ class StepDeltaTypedDict(TypedDict):


class StepDelta(BaseModel):
r"""Payload.event_type"""

index: int

delta: StepDeltaData
Expand Down
4 changes: 4 additions & 0 deletions google/genai/_gaos/types/interactions/stepstart.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@


class StepStartTypedDict(TypedDict):
r"""Payload.event_type"""

index: int
step: StepParam
r"""A step in the interaction."""
Expand All @@ -41,6 +43,8 @@ class StepStartTypedDict(TypedDict):


class StepStart(BaseModel):
r"""Payload.event_type"""

index: int

step: Step
Expand Down
4 changes: 4 additions & 0 deletions google/genai/_gaos/types/interactions/stepstop.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@


class StepStopTypedDict(TypedDict):
r"""Payload.event_type"""

index: int
event_type: Literal["step.stop"]
usage: NotRequired[UsageTypedDict]
Expand All @@ -43,6 +45,8 @@ class StepStopTypedDict(TypedDict):


class StepStop(BaseModel):
r"""Payload.event_type"""

index: int

event_type: Annotated[
Expand Down
4 changes: 4 additions & 0 deletions google/genai/_gaos/types/interactions/textdelta.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,15 @@


class TextDeltaTypedDict(TypedDict):
r"""StepDeltaData.type"""

text: str
type: Literal["text"]


class TextDelta(BaseModel):
r"""StepDeltaData.type"""

text: str

type: Annotated[
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@


class URLContextResultDeltaTypedDict(TypedDict):
r"""ToolResultDelta.type"""

result: List[URLContextResultParam]
type: Literal["url_context_result"]
is_error: NotRequired[bool]
Expand All @@ -36,6 +38,8 @@ class URLContextResultDeltaTypedDict(TypedDict):


class URLContextResultDelta(BaseModel):
r"""ToolResultDelta.type"""

result: List[URLContextResult]

type: Annotated[
Expand Down
Loading