Add tool.model_validate

This commit is contained in:
ParthSareen
2024-11-18 09:57:06 -08:00
parent 7396ab6cdd
commit 0d9eec0264
+1 -1
View File
@@ -100,4 +100,4 @@ def convert_function_to_tool(func: Callable) -> Tool:
)
)
return tool
return Tool.model_validate(tool)