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
10 changes: 0 additions & 10 deletions google/genai/_gaos/resources/interactions/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,15 +110,10 @@
from . import googlemapsresultstep
from . import googlesearchcallstep
from . import googlesearchresultstep
from . import interactioncompletedevent
from . import interactioncreatedevent
from . import interactionstatusupdate
from . import modeloutputstep
from . import placecitation
from . import retrievalcalldelta
from . import stepdelta
from . import stepstart
from . import stepstop
from . import tool
from . import urlcontextcallstep
from . import urlcontextresultstep
Expand Down Expand Up @@ -211,15 +206,10 @@
"googlemapsresultstep",
"googlesearchcallstep",
"googlesearchresultstep",
"interactioncompletedevent",
"interactioncreatedevent",
"interactionstatusupdate",
"modeloutputstep",
"placecitation",
"retrievalcalldelta",
"stepdelta",
"stepstart",
"stepstop",
"tool",
"urlcontextcallstep",
"urlcontextresultstep",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,5 @@
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""

from ....types.interactions.error import Error
from ....types.interactions.streammetadata import StreamMetadata as Metadata

__all__ = ["Error", "Metadata"]
__all__ = ["Error"]

This file was deleted.

This file was deleted.

This file was deleted.

21 changes: 0 additions & 21 deletions google/genai/_gaos/resources/interactions/stepstart/__init__.py

This file was deleted.

21 changes: 0 additions & 21 deletions google/genai/_gaos/resources/interactions/stepstop/__init__.py

This file was deleted.

5 changes: 0 additions & 5 deletions google/genai/_gaos/types/interactions/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,6 @@
from .stepdeltametadata import StepDeltaMetadata, StepDeltaMetadataTypedDict
from .stepstart import StepStart, StepStartTypedDict
from .stepstop import StepStop, StepStopTypedDict
from .streammetadata import StreamMetadata, StreamMetadataTypedDict
from .textannotationdelta import TextAnnotationDelta, TextAnnotationDeltaTypedDict
from .textcontent import TextContent, TextContentParam
from .textdelta import TextDelta, TextDeltaTypedDict
Expand Down Expand Up @@ -644,8 +643,6 @@
"StepStartTypedDict",
"StepStop",
"StepStopTypedDict",
"StreamMetadata",
"StreamMetadataTypedDict",
"Task",
"TextAnnotationDelta",
"TextAnnotationDeltaTypedDict",
Expand Down Expand Up @@ -1002,8 +999,6 @@
"StepStartTypedDict": ".stepstart",
"StepStop": ".stepstop",
"StepStopTypedDict": ".stepstop",
"StreamMetadata": ".streammetadata",
"StreamMetadataTypedDict": ".streammetadata",
"TextAnnotationDelta": ".textannotationdelta",
"TextAnnotationDeltaTypedDict": ".textannotationdelta",
"TextContent": ".textcontent",
Expand Down
6 changes: 1 addition & 5 deletions google/genai/_gaos/types/interactions/errorevent.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
from .. import BaseModel, UNSET_SENTINEL
from ...utils import validate_const
from .error import Error, ErrorTypedDict
from .streammetadata import StreamMetadata, StreamMetadataTypedDict
import pydantic
from pydantic import model_serializer
from pydantic.functional_validators import AfterValidator
Expand All @@ -36,7 +35,6 @@ class ErrorEventTypedDict(TypedDict):
r"""The event_id token to be used to resume the interaction stream, from
this event.
"""
metadata: NotRequired[StreamMetadataTypedDict]


class ErrorEvent(BaseModel):
Expand All @@ -53,11 +51,9 @@ class ErrorEvent(BaseModel):
this event.
"""

metadata: Optional[StreamMetadata] = None

@model_serializer(mode="wrap")
def serialize_model(self, handler):
optional_fields = set(["error", "event_id", "metadata"])
optional_fields = set(["error", "event_id"])
serialized = handler(self)
m = {}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
InteractionSseEventInteraction,
InteractionSseEventInteractionTypedDict,
)
from .streammetadata import StreamMetadata, StreamMetadataTypedDict
import pydantic
from pydantic import model_serializer
from pydantic.functional_validators import AfterValidator
Expand All @@ -43,7 +42,6 @@ class InteractionCompletedEventTypedDict(TypedDict):
r"""The event_id token to be used to resume the interaction stream, from
this event.
"""
metadata: NotRequired[StreamMetadataTypedDict]


class InteractionCompletedEvent(BaseModel):
Expand All @@ -67,11 +65,9 @@ class InteractionCompletedEvent(BaseModel):
this event.
"""

metadata: Optional[StreamMetadata] = None

@model_serializer(mode="wrap")
def serialize_model(self, handler):
optional_fields = set(["event_id", "metadata"])
optional_fields = set(["event_id"])
serialized = handler(self)
m = {}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
InteractionSseEventInteraction,
InteractionSseEventInteractionTypedDict,
)
from .streammetadata import StreamMetadata, StreamMetadataTypedDict
import pydantic
from pydantic import model_serializer
from pydantic.functional_validators import AfterValidator
Expand All @@ -43,7 +42,6 @@ class InteractionCreatedEventTypedDict(TypedDict):
r"""The event_id token to be used to resume the interaction stream, from
this event.
"""
metadata: NotRequired[StreamMetadataTypedDict]


class InteractionCreatedEvent(BaseModel):
Expand All @@ -67,11 +65,9 @@ class InteractionCreatedEvent(BaseModel):
this event.
"""

metadata: Optional[StreamMetadata] = None

@model_serializer(mode="wrap")
def serialize_model(self, handler):
optional_fields = set(["event_id", "metadata"])
optional_fields = set(["event_id"])
serialized = handler(self)
m = {}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
from __future__ import annotations
from .. import BaseModel, UNSET_SENTINEL, UnrecognizedStr
from ...utils import validate_const
from .streammetadata import StreamMetadata, StreamMetadataTypedDict
import pydantic
from pydantic import model_serializer
from pydantic.functional_validators import AfterValidator
Expand Down Expand Up @@ -49,7 +48,6 @@ class InteractionStatusUpdateTypedDict(TypedDict):
r"""The event_id token to be used to resume the interaction stream, from
this event.
"""
metadata: NotRequired[StreamMetadataTypedDict]


class InteractionStatusUpdate(BaseModel):
Expand All @@ -70,11 +68,9 @@ class InteractionStatusUpdate(BaseModel):
this event.
"""

metadata: Optional[StreamMetadata] = None

@model_serializer(mode="wrap")
def serialize_model(self, handler):
optional_fields = set(["event_id", "metadata"])
optional_fields = set(["event_id"])
serialized = handler(self)
m = {}

Expand Down
6 changes: 1 addition & 5 deletions google/genai/_gaos/types/interactions/stepstart.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
from .. import BaseModel, UNSET_SENTINEL
from ...utils import validate_const
from .step import Step, StepParam
from .streammetadata import StreamMetadata, StreamMetadataTypedDict
import pydantic
from pydantic import model_serializer
from pydantic.functional_validators import AfterValidator
Expand All @@ -37,7 +36,6 @@ class StepStartTypedDict(TypedDict):
r"""The event_id token to be used to resume the interaction stream, from
this event.
"""
metadata: NotRequired[StreamMetadataTypedDict]


class StepStart(BaseModel):
Expand All @@ -56,11 +54,9 @@ class StepStart(BaseModel):
this event.
"""

metadata: Optional[StreamMetadata] = None

@model_serializer(mode="wrap")
def serialize_model(self, handler):
optional_fields = set(["event_id", "metadata"])
optional_fields = set(["event_id"])
serialized = handler(self)
m = {}

Expand Down
6 changes: 1 addition & 5 deletions google/genai/_gaos/types/interactions/stepstop.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
from __future__ import annotations
from .. import BaseModel, UNSET_SENTINEL
from ...utils import validate_const
from .streammetadata import StreamMetadata, StreamMetadataTypedDict
from .usage import Usage, UsageTypedDict
import pydantic
from pydantic import model_serializer
Expand All @@ -39,7 +38,6 @@ class StepStopTypedDict(TypedDict):
r"""The event_id token to be used to resume the interaction stream, from
this event.
"""
metadata: NotRequired[StreamMetadataTypedDict]


class StepStop(BaseModel):
Expand All @@ -61,11 +59,9 @@ class StepStop(BaseModel):
this event.
"""

metadata: Optional[StreamMetadata] = None

@model_serializer(mode="wrap")
def serialize_model(self, handler):
optional_fields = set(["usage", "step_usage", "event_id", "metadata"])
optional_fields = set(["usage", "step_usage", "event_id"])
serialized = handler(self)
m = {}

Expand Down
Loading
Loading