Skip to content

Commit a6f8753

Browse files
committed
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.
1 parent e809d21 commit a6f8753

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/llama_stack/models/llama/datatypes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class BuiltinTool(Enum):
3131

3232

3333
Primitive = str | int | float | bool | None
34-
RecursiveType = Primitive | list[Primitive] | dict[str, Primitive]
34+
type RecursiveType = Primitive | list[RecursiveType] | dict[str, RecursiveType]
3535

3636

3737
class ToolCall(BaseModel):

0 commit comments

Comments
 (0)