Skip to content

Commit 76c936d

Browse files
committed
Type fix for 3.9
1 parent afbbdd0 commit 76c936d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rigging/tool/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class ToolChoiceDefinition(BaseModel):
2929
# different providers interpret it differently.
3030

3131
# ToolChoice = t.Union[t.Literal["none"], t.Literal["auto"], ToolChoiceDefinition]
32-
ToolChoice = str | dict[str, t.Any]
32+
ToolChoice = t.Union[str, dict[str, t.Any]]
3333

3434

3535
class FunctionDefinition(BaseModel):

0 commit comments

Comments
 (0)