fix: make sure to pass cache control to tool constructor

This commit is contained in:
Stevan Freeborn
2024-08-18 14:19:43 -05:00
parent 07457c1808
commit 539d735e6b
+1 -1
View File
@@ -182,7 +182,7 @@ public class Tool
throw new ArgumentException($"Method '{methodName}' not found in type '{instance.GetType().FullName}'.", nameof(methodName)); 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);
} }
/// <summary> /// <summary>