fix: Make ToolCall arguments fully recursive

The previous definitions only allowed for a single level of nesting of lists/dicts
and was not truly recursive. Tool call inputs with more complex inputs would fail
validation and throw an exception.
This commit is contained in:
Ben Keith 2025-10-29 09:43:55 -04:00
parent e809d21357
commit acf835401e
No known key found for this signature in database
GPG key ID: 6539FC89F9FA3C5B

View file

@ -31,7 +31,7 @@ class BuiltinTool(Enum):
Primitive = str | int | float | bool | None
RecursiveType = Primitive | list[Primitive] | dict[str, Primitive]
type RecursiveType = Primitive | list[RecursiveType] | dict[str, RecursiveType]
class ToolCall(BaseModel):