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
34 changes: 34 additions & 0 deletions google/genai/_interactions/resources/interactions.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ def create(
response_format: object | Omit = omit,
response_mime_type: str | Omit = omit,
response_modalities: List[Literal["text", "image", "audio"]] | Omit = omit,
service_tier: Literal["flex", "standard", "priority"] | Omit = omit,
store: bool | Omit = omit,
stream: Literal[False] | Omit = omit,
system_instruction: str | Omit = omit,
Expand Down Expand Up @@ -109,6 +110,8 @@ def create(

response_modalities: The requested modalities of the response (TEXT, IMAGE, AUDIO).

service_tier: The service tier for the interaction.

store: Input only. Whether to store the response and request for later retrieval.

stream: Input only. Whether the interaction will be streamed.
Expand Down Expand Up @@ -141,6 +144,7 @@ def create(
response_format: object | Omit = omit,
response_mime_type: str | Omit = omit,
response_modalities: List[Literal["text", "image", "audio"]] | Omit = omit,
service_tier: Literal["flex", "standard", "priority"] | Omit = omit,
store: bool | Omit = omit,
system_instruction: str | Omit = omit,
tools: Iterable[ToolParam] | Omit = omit,
Expand Down Expand Up @@ -174,6 +178,8 @@ def create(

response_modalities: The requested modalities of the response (TEXT, IMAGE, AUDIO).

service_tier: The service tier for the interaction.

store: Input only. Whether to store the response and request for later retrieval.

system_instruction: System instruction for the interaction.
Expand Down Expand Up @@ -203,6 +209,7 @@ def create(
response_format: object | Omit = omit,
response_mime_type: str | Omit = omit,
response_modalities: List[Literal["text", "image", "audio"]] | Omit = omit,
service_tier: Literal["flex", "standard", "priority"] | Omit = omit,
store: bool | Omit = omit,
stream: Literal[False] | Omit = omit,
system_instruction: str | Omit = omit,
Expand Down Expand Up @@ -235,6 +242,8 @@ def create(

response_modalities: The requested modalities of the response (TEXT, IMAGE, AUDIO).

service_tier: The service tier for the interaction.

store: Input only. Whether to store the response and request for later retrieval.

stream: Input only. Whether the interaction will be streamed.
Expand Down Expand Up @@ -267,6 +276,7 @@ def create(
response_format: object | Omit = omit,
response_mime_type: str | Omit = omit,
response_modalities: List[Literal["text", "image", "audio"]] | Omit = omit,
service_tier: Literal["flex", "standard", "priority"] | Omit = omit,
store: bool | Omit = omit,
system_instruction: str | Omit = omit,
tools: Iterable[ToolParam] | Omit = omit,
Expand Down Expand Up @@ -300,6 +310,8 @@ def create(

response_modalities: The requested modalities of the response (TEXT, IMAGE, AUDIO).

service_tier: The service tier for the interaction.

store: Input only. Whether to store the response and request for later retrieval.

system_instruction: System instruction for the interaction.
Expand Down Expand Up @@ -330,6 +342,7 @@ def create(
response_format: object | Omit = omit,
response_mime_type: str | Omit = omit,
response_modalities: List[Literal["text", "image", "audio"]] | Omit = omit,
service_tier: Literal["flex", "standard", "priority"] | Omit = omit,
store: bool | Omit = omit,
system_instruction: str | Omit = omit,
tools: Iterable[ToolParam] | Omit = omit,
Expand Down Expand Up @@ -363,6 +376,8 @@ def create(

response_modalities: The requested modalities of the response (TEXT, IMAGE, AUDIO).

service_tier: The service tier for the interaction.

store: Input only. Whether to store the response and request for later retrieval.

system_instruction: System instruction for the interaction.
Expand Down Expand Up @@ -392,6 +407,7 @@ def create(
response_format: object | Omit = omit,
response_mime_type: str | Omit = omit,
response_modalities: List[Literal["text", "image", "audio"]] | Omit = omit,
service_tier: Literal["flex", "standard", "priority"] | Omit = omit,
store: bool | Omit = omit,
stream: Literal[False] | Literal[True] | Omit = omit,
system_instruction: str | Omit = omit,
Expand Down Expand Up @@ -425,6 +441,7 @@ def create(
"response_format": response_format,
"response_mime_type": response_mime_type,
"response_modalities": response_modalities,
"service_tier": service_tier,
"store": store,
"stream": stream,
"system_instruction": system_instruction,
Expand Down Expand Up @@ -705,6 +722,7 @@ async def create(
response_format: object | Omit = omit,
response_mime_type: str | Omit = omit,
response_modalities: List[Literal["text", "image", "audio"]] | Omit = omit,
service_tier: Literal["flex", "standard", "priority"] | Omit = omit,
store: bool | Omit = omit,
stream: Literal[False] | Omit = omit,
system_instruction: str | Omit = omit,
Expand Down Expand Up @@ -737,6 +755,8 @@ async def create(

response_modalities: The requested modalities of the response (TEXT, IMAGE, AUDIO).

service_tier: The service tier for the interaction.

store: Input only. Whether to store the response and request for later retrieval.

stream: Input only. Whether the interaction will be streamed.
Expand Down Expand Up @@ -769,6 +789,7 @@ async def create(
response_format: object | Omit = omit,
response_mime_type: str | Omit = omit,
response_modalities: List[Literal["text", "image", "audio"]] | Omit = omit,
service_tier: Literal["flex", "standard", "priority"] | Omit = omit,
store: bool | Omit = omit,
system_instruction: str | Omit = omit,
tools: Iterable[ToolParam] | Omit = omit,
Expand Down Expand Up @@ -802,6 +823,8 @@ async def create(

response_modalities: The requested modalities of the response (TEXT, IMAGE, AUDIO).

service_tier: The service tier for the interaction.

store: Input only. Whether to store the response and request for later retrieval.

system_instruction: System instruction for the interaction.
Expand Down Expand Up @@ -831,6 +854,7 @@ async def create(
response_format: object | Omit = omit,
response_mime_type: str | Omit = omit,
response_modalities: List[Literal["text", "image", "audio"]] | Omit = omit,
service_tier: Literal["flex", "standard", "priority"] | Omit = omit,
store: bool | Omit = omit,
stream: Literal[False] | Omit = omit,
system_instruction: str | Omit = omit,
Expand Down Expand Up @@ -863,6 +887,8 @@ async def create(

response_modalities: The requested modalities of the response (TEXT, IMAGE, AUDIO).

service_tier: The service tier for the interaction.

store: Input only. Whether to store the response and request for later retrieval.

stream: Input only. Whether the interaction will be streamed.
Expand Down Expand Up @@ -895,6 +921,7 @@ async def create(
response_format: object | Omit = omit,
response_mime_type: str | Omit = omit,
response_modalities: List[Literal["text", "image", "audio"]] | Omit = omit,
service_tier: Literal["flex", "standard", "priority"] | Omit = omit,
store: bool | Omit = omit,
system_instruction: str | Omit = omit,
tools: Iterable[ToolParam] | Omit = omit,
Expand Down Expand Up @@ -928,6 +955,8 @@ async def create(

response_modalities: The requested modalities of the response (TEXT, IMAGE, AUDIO).

service_tier: The service tier for the interaction.

store: Input only. Whether to store the response and request for later retrieval.

system_instruction: System instruction for the interaction.
Expand Down Expand Up @@ -958,6 +987,7 @@ async def create(
response_format: object | Omit = omit,
response_mime_type: str | Omit = omit,
response_modalities: List[Literal["text", "image", "audio"]] | Omit = omit,
service_tier: Literal["flex", "standard", "priority"] | Omit = omit,
store: bool | Omit = omit,
system_instruction: str | Omit = omit,
tools: Iterable[ToolParam] | Omit = omit,
Expand Down Expand Up @@ -991,6 +1021,8 @@ async def create(

response_modalities: The requested modalities of the response (TEXT, IMAGE, AUDIO).

service_tier: The service tier for the interaction.

store: Input only. Whether to store the response and request for later retrieval.

system_instruction: System instruction for the interaction.
Expand Down Expand Up @@ -1020,6 +1052,7 @@ async def create(
response_format: object | Omit = omit,
response_mime_type: str | Omit = omit,
response_modalities: List[Literal["text", "image", "audio"]] | Omit = omit,
service_tier: Literal["flex", "standard", "priority"] | Omit = omit,
store: bool | Omit = omit,
stream: Literal[False] | Literal[True] | Omit = omit,
system_instruction: str | Omit = omit,
Expand Down Expand Up @@ -1053,6 +1086,7 @@ async def create(
"response_format": response_format,
"response_mime_type": response_mime_type,
"response_modalities": response_modalities,
"service_tier": service_tier,
"store": store,
"stream": stream,
"system_instruction": system_instruction,
Expand Down
3 changes: 3 additions & 0 deletions google/genai/_interactions/types/interaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,9 @@ class Interaction(BaseModel):
role: Optional[str] = None
"""Output only. The role of the interaction."""

service_tier: Optional[Literal["flex", "standard", "priority"]] = None
"""The service tier for the interaction."""

system_instruction: Optional[str] = None
"""System instruction for the interaction."""

Expand Down
6 changes: 6 additions & 0 deletions google/genai/_interactions/types/interaction_create_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,9 @@ class BaseCreateModelInteractionParams(TypedDict, total=False):
response_modalities: List[Literal["text", "image", "audio"]]
"""The requested modalities of the response (TEXT, IMAGE, AUDIO)."""

service_tier: Literal["flex", "standard", "priority"]
"""The service tier for the interaction."""

store: bool
"""Input only. Whether to store the response and request for later retrieval."""

Expand Down Expand Up @@ -157,6 +160,9 @@ class BaseCreateAgentInteractionParams(TypedDict, total=False):
response_modalities: List[Literal["text", "image", "audio"]]
"""The requested modalities of the response (TEXT, IMAGE, AUDIO)."""

service_tier: Literal["flex", "standard", "priority"]
"""The service tier for the interaction."""

store: bool
"""Input only. Whether to store the response and request for later retrieval."""

Expand Down
Loading