Skip to content

Commit 7e5bc26

Browse files
IvanLHcopybara-github
authored andcommitted
feat: Add content union to UserInputStep
PiperOrigin-RevId: 912655051
1 parent 00d76d1 commit 7e5bc26

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

google/genai/_interactions/types/user_input_step.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
1717

18-
from typing import List, Optional
18+
from typing import List, Union
1919
from typing_extensions import Literal
2020

2121
from .content import Content
@@ -29,4 +29,4 @@ class UserInputStep(BaseModel):
2929

3030
type: Literal["user_input"]
3131

32-
content: Optional[List[Content]] = None
32+
content: Union[List[Content], str, None] = None

google/genai/_interactions/types/user_input_step_param.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
from __future__ import annotations
1919

20-
from typing import Iterable
20+
from typing import Union, Iterable
2121
from typing_extensions import Literal, Required, TypedDict
2222

2323
from .content_param import ContentParam
@@ -30,4 +30,4 @@ class UserInputStepParam(TypedDict, total=False):
3030

3131
type: Required[Literal["user_input"]]
3232

33-
content: Iterable[ContentParam]
33+
content: Union[Iterable[ContentParam], str]

0 commit comments

Comments
 (0)