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
22 changes: 22 additions & 0 deletions google/genai/_interactions/resources/interactions.py
Original file line number Diff line number Diff line change
Expand Up @@ -527,6 +527,7 @@ def get(
id: str,
*,
api_version: str | None = None,
include_input: bool | Omit = omit,
last_event_id: str | Omit = omit,
stream: Literal[False] | Omit = omit,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
Expand All @@ -540,6 +541,8 @@ def get(
Retrieves the full details of a single interaction based on its `Interaction.id`.

Args:
include_input: If set to true, includes the input in the response.

last_event_id: Optional. If set, resumes the interaction stream from the next chunk after the event marked by the event id. Can only be used if `stream` is true.

stream: If set to true, the generated content will be streamed incrementally.
Expand All @@ -561,6 +564,7 @@ def get(
*,
stream: Literal[True],
api_version: str | None = None,
include_input: bool | Omit = omit,
last_event_id: str | Omit = omit,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
Expand All @@ -575,6 +579,8 @@ def get(
Args:
stream: If set to true, the generated content will be streamed incrementally.

include_input: If set to true, includes the input in the response.

last_event_id: Optional. If set, resumes the interaction stream from the next chunk after the event marked by the event id. Can only be used if `stream` is true.

extra_headers: Send extra headers
Expand All @@ -594,6 +600,7 @@ def get(
*,
stream: bool,
api_version: str | None = None,
include_input: bool | Omit = omit,
last_event_id: str | Omit = omit,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
Expand All @@ -608,6 +615,8 @@ def get(
Args:
stream: If set to true, the generated content will be streamed incrementally.

include_input: If set to true, includes the input in the response.

last_event_id: Optional. If set, resumes the interaction stream from the next chunk after the event marked by the event id. Can only be used if `stream` is true.

extra_headers: Send extra headers
Expand All @@ -625,6 +634,7 @@ def get(
id: str,
*,
api_version: str | None = None,
include_input: bool | Omit = omit,
last_event_id: str | Omit = omit,
stream: Literal[False] | Literal[True] | Omit = omit,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
Expand All @@ -649,6 +659,7 @@ def get(
timeout=timeout,
query=maybe_transform(
{
"include_input": include_input,
"last_event_id": last_event_id,
"stream": stream,
},
Expand Down Expand Up @@ -1144,6 +1155,7 @@ async def get(
id: str,
*,
api_version: str | None = None,
include_input: bool | Omit = omit,
last_event_id: str | Omit = omit,
stream: Literal[False] | Omit = omit,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
Expand All @@ -1157,6 +1169,8 @@ async def get(
Retrieves the full details of a single interaction based on its `Interaction.id`.

Args:
include_input: If set to true, includes the input in the response.

last_event_id: Optional. If set, resumes the interaction stream from the next chunk after the event marked by the event id. Can only be used if `stream` is true.

stream: If set to true, the generated content will be streamed incrementally.
Expand All @@ -1178,6 +1192,7 @@ async def get(
*,
stream: Literal[True],
api_version: str | None = None,
include_input: bool | Omit = omit,
last_event_id: str | Omit = omit,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
Expand All @@ -1192,6 +1207,8 @@ async def get(
Args:
stream: If set to true, the generated content will be streamed incrementally.

include_input: If set to true, includes the input in the response.

last_event_id: Optional. If set, resumes the interaction stream from the next chunk after the event marked by the event id. Can only be used if `stream` is true.

extra_headers: Send extra headers
Expand All @@ -1211,6 +1228,7 @@ async def get(
*,
stream: bool,
api_version: str | None = None,
include_input: bool | Omit = omit,
last_event_id: str | Omit = omit,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
Expand All @@ -1225,6 +1243,8 @@ async def get(
Args:
stream: If set to true, the generated content will be streamed incrementally.

include_input: If set to true, includes the input in the response.

last_event_id: Optional. If set, resumes the interaction stream from the next chunk after the event marked by the event id. Can only be used if `stream` is true.

extra_headers: Send extra headers
Expand All @@ -1242,6 +1262,7 @@ async def get(
id: str,
*,
api_version: str | None = None,
include_input: bool | Omit = omit,
last_event_id: str | Omit = omit,
stream: Literal[False] | Literal[True] | Omit = omit,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
Expand All @@ -1266,6 +1287,7 @@ async def get(
timeout=timeout,
query=await async_maybe_transform(
{
"include_input": include_input,
"last_event_id": last_event_id,
"stream": stream,
},
Expand Down
3 changes: 3 additions & 0 deletions google/genai/_interactions/types/interaction_get_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@
class InteractionGetParamsBase(TypedDict, total=False):
api_version: str

include_input: bool
"""If set to true, includes the input in the response."""

last_event_id: str
"""Optional.

Expand Down