From 539d735e6b244715f1e30c67175bf8f2eb6f5729 Mon Sep 17 00:00:00 2001 From: Stevan Freeborn <65925598+StevanFreeborn@users.noreply.github.com> Date: Sun, 18 Aug 2024 14:19:43 -0500 Subject: [PATCH] fix: make sure to pass cache control to tool constructor --- src/AnthropicClient/Models/Tool.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AnthropicClient/Models/Tool.cs b/src/AnthropicClient/Models/Tool.cs index 45e61e1..66243fc 100644 --- a/src/AnthropicClient/Models/Tool.cs +++ b/src/AnthropicClient/Models/Tool.cs @@ -182,7 +182,7 @@ public class Tool throw new ArgumentException($"Method '{methodName}' not found in type '{instance.GetType().FullName}'.", nameof(methodName)); } - return new Tool(name, description, new AnthropicFunction(method, instance), null); + return new Tool(name, description, new AnthropicFunction(method, instance), cacheControl); } ///