From 0d9eec0264e867939e65eb2910e382bd56eb1ff3 Mon Sep 17 00:00:00 2001 From: ParthSareen Date: Mon, 18 Nov 2024 09:57:06 -0800 Subject: [PATCH] Add tool.model_validate --- ollama/_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ollama/_utils.py b/ollama/_utils.py index 390dbe6..7059442 100644 --- a/ollama/_utils.py +++ b/ollama/_utils.py @@ -100,4 +100,4 @@ def convert_function_to_tool(func: Callable) -> Tool: ) ) - return tool + return Tool.model_validate(tool)