diff --git a/google/genai/_interactions/resources/interactions.py b/google/genai/_interactions/resources/interactions.py index 919b00a17..7454ed75b 100644 --- a/google/genai/_interactions/resources/interactions.py +++ b/google/genai/_interactions/resources/interactions.py @@ -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. @@ -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. @@ -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. @@ -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 @@ -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. @@ -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 @@ -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. @@ -649,6 +659,7 @@ def get( timeout=timeout, query=maybe_transform( { + "include_input": include_input, "last_event_id": last_event_id, "stream": stream, }, @@ -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. @@ -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. @@ -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. @@ -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 @@ -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. @@ -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 @@ -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. @@ -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, }, diff --git a/google/genai/_interactions/types/interaction_get_params.py b/google/genai/_interactions/types/interaction_get_params.py index ffbf07ff1..40a025d0f 100644 --- a/google/genai/_interactions/types/interaction_get_params.py +++ b/google/genai/_interactions/types/interaction_get_params.py @@ -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.