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
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,12 @@ class CreateAgentInteraction(BaseModel):
tools: Optional[List[Tool]] = None
r"""A list of tool declarations the model may call during interaction."""

response_modalities: Optional[List[ResponseModality]] = None
response_modalities: Annotated[
Optional[List[ResponseModality]],
pydantic.Field(
deprecated="warning: ** DEPRECATED ** - This will be removed in a future release, please migrate away from it as soon as possible."
),
] = None
r"""The requested modalities of the response (TEXT, IMAGE, AUDIO)."""

response_mime_type: Annotated[
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,12 @@ class CreateModelInteraction(BaseModel):
tools: Optional[List[Tool]] = None
r"""A list of tool declarations the model may call during interaction."""

response_modalities: Optional[List[ResponseModality]] = None
response_modalities: Annotated[
Optional[List[ResponseModality]],
pydantic.Field(
deprecated="warning: ** DEPRECATED ** - This will be removed in a future release, please migrate away from it as soon as possible."
),
] = None
r"""The requested modalities of the response (TEXT, IMAGE, AUDIO)."""

response_mime_type: Annotated[
Expand Down
7 changes: 6 additions & 1 deletion google/genai/_gaos/types/interactions/interaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,12 @@ class Interaction(BaseModel):
usage: Optional[Usage] = None
r"""Statistics on the interaction request's token usage."""

response_modalities: Optional[List[ResponseModality]] = None
response_modalities: Annotated[
Optional[List[ResponseModality]],
pydantic.Field(
deprecated="warning: ** DEPRECATED ** - This will be removed in a future release, please migrate away from it as soon as possible."
),
] = None
r"""The requested modalities of the response (TEXT, IMAGE, AUDIO)."""

response_mime_type: Annotated[
Expand Down
Loading