From 6431e2a113b9a87a53c4a1ddd2c1ef49f5e3e50d Mon Sep 17 00:00:00 2001 From: Stevan Freeborn <65925598+StevanFreeborn@users.noreply.github.com> Date: Sat, 17 Aug 2024 17:51:45 -0500 Subject: [PATCH] fix: make cache control class abstract --- src/AnthropicClient/Models/CacheControl.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/AnthropicClient/Models/CacheControl.cs b/src/AnthropicClient/Models/CacheControl.cs index d29dafb..b39e487 100644 --- a/src/AnthropicClient/Models/CacheControl.cs +++ b/src/AnthropicClient/Models/CacheControl.cs @@ -5,7 +5,7 @@ namespace AnthropicClient.Models; /// /// Represents the cache control to be used for content. /// -public class CacheControl +public abstract class CacheControl { /// /// Gets the type of the cache control. @@ -18,7 +18,7 @@ public class CacheControl /// The type of the cache control. /// A new instance of the class. /// Thrown when the type is null or whitespace. - public CacheControl(string type) + protected CacheControl(string type) { ArgumentValidator.ThrowIfNullOrWhitespace(type, nameof(type));