Skip to content

Commit 2c9ad27

Browse files
authored
fix(types): tool calls should be a list (#37)
1 parent ac7fbc5 commit 2c9ad27

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

src/openai_responses/_types/partials/run_steps.py

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,15 @@ class PartialFunctionToolCall(TypedDict):
6969

7070

7171
class PartialToolCallsStepDetails(TypedDict):
72-
tool_calls: Annotated[
73-
Union[
74-
PartialCodeInterpreterToolCall,
75-
PartialFileSearchToolCall,
76-
PartialFunctionToolCall,
77-
],
78-
PropertyInfo(discriminator="type"),
72+
tool_calls: List[
73+
Annotated[
74+
Union[
75+
PartialCodeInterpreterToolCall,
76+
PartialFileSearchToolCall,
77+
PartialFunctionToolCall,
78+
],
79+
PropertyInfo(discriminator="type"),
80+
]
7981
]
8082
type: Literal["tool_calls"]
8183

0 commit comments

Comments
 (0)