mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-03 18:00:36 +00:00
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:
parent
e809d21357
commit
acf835401e
1 changed files with 1 additions and 1 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue