We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent afbbdd0 commit 76c936dCopy full SHA for 76c936d
rigging/tool/api.py
@@ -29,7 +29,7 @@ class ToolChoiceDefinition(BaseModel):
29
# different providers interpret it differently.
30
31
# ToolChoice = t.Union[t.Literal["none"], t.Literal["auto"], ToolChoiceDefinition]
32
-ToolChoice = str | dict[str, t.Any]
+ToolChoice = t.Union[str, dict[str, t.Any]]
33
34
35
class FunctionDefinition(BaseModel):
0 commit comments