Skip to content

Commit e259642

Browse files
authored
fix: schema float type (#14)
1 parent 0b459e2 commit e259642

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/toolbox_langchain_sdk/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ def _parse_type(type_: str) -> Any:
124124
return str
125125
elif type_ == "integer":
126126
return int
127-
elif type_ == "number":
127+
elif type_ == "float":
128128
return float
129129
elif type_ == "boolean":
130130
return bool

tests/test_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ def test_schema_to_model_empty(self):
169169
[
170170
("string", str),
171171
("integer", int),
172-
("number", float),
172+
("float", float),
173173
("boolean", bool),
174174
("array", list),
175175
],

0 commit comments

Comments
 (0)