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
4 changes: 2 additions & 2 deletions google/genai/_interactions/types/user_input_step.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

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

from typing import List, Optional
from typing import List, Union
from typing_extensions import Literal

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

type: Literal["user_input"]

content: Optional[List[Content]] = None
content: Union[List[Content], str, None] = None
4 changes: 2 additions & 2 deletions google/genai/_interactions/types/user_input_step_param.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

from __future__ import annotations

from typing import Iterable
from typing import Union, Iterable
from typing_extensions import Literal, Required, TypedDict

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

type: Required[Literal["user_input"]]

content: Iterable[ContentParam]
content: Union[Iterable[ContentParam], str]
Loading