Skip to content

Commit 56acb2e

Browse files
chore(internal): codegen related update
1 parent 7b8d016 commit 56acb2e

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

src/gradient/types/response_create_params.py

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -130,18 +130,15 @@ class ResponseCreateParamsBase(TypedDict, total=False):
130130
"""
131131

132132

133-
class InputUnionMember1UnionMember0ContentTyped(TypedDict, total=False):
133+
class InputUnionMember1UnionMember0Content(TypedDict, total=False, extra_items=object): # type: ignore[call-arg]
134134
text: str
135135
"""The reasoning text content"""
136136

137137
type: Literal["reasoning_text"]
138138
"""The type of content"""
139139

140140

141-
InputUnionMember1UnionMember0Content: TypeAlias = Union[InputUnionMember1UnionMember0ContentTyped, Dict[str, object]]
142-
143-
144-
class InputUnionMember1UnionMember0Typed(TypedDict, total=False):
141+
class InputUnionMember1UnionMember0(TypedDict, total=False, extra_items=object): # type: ignore[call-arg]
145142
type: Required[Literal["function_call", "function_call_output", "reasoning"]]
146143
"""
147144
The type of input item (must be function_call, function_call_output, or
@@ -176,9 +173,6 @@ class InputUnionMember1UnionMember0Typed(TypedDict, total=False):
176173
"""Summary of the reasoning (optional for reasoning)"""
177174

178175

179-
InputUnionMember1UnionMember0: TypeAlias = Union[InputUnionMember1UnionMember0Typed, Dict[str, object]]
180-
181-
182176
class InputUnionMember1UnionMember1ContentUnionMember1UnionMember0(TypedDict, total=False):
183177
text: Required[str]
184178
"""The text content"""
@@ -218,7 +212,7 @@ class InputUnionMember1UnionMember1ToolCall(TypedDict, total=False):
218212
"""The type of the tool. Currently, only `function` is supported."""
219213

220214

221-
class InputUnionMember1UnionMember1Typed(TypedDict, total=False):
215+
class InputUnionMember1UnionMember1(TypedDict, total=False, extra_items=object): # type: ignore[call-arg]
222216
content: Required[Union[str, Iterable[InputUnionMember1UnionMember1ContentUnionMember1]]]
223217
"""The content of the message (string or content parts array)"""
224218

@@ -235,8 +229,6 @@ class InputUnionMember1UnionMember1Typed(TypedDict, total=False):
235229
"""Optional type identifier for message items (used by some clients like Codex)"""
236230

237231

238-
InputUnionMember1UnionMember1: TypeAlias = Union[InputUnionMember1UnionMember1Typed, Dict[str, object]]
239-
240232
InputUnionMember1: TypeAlias = Union[InputUnionMember1UnionMember0, InputUnionMember1UnionMember1]
241233

242234

0 commit comments

Comments
 (0)