Class AnthropicCacheOptions

java.lang.Object
org.springframework.ai.anthropic.api.AnthropicCacheOptions

public class AnthropicCacheOptions extends Object
Anthropic cache options for configuring prompt caching behavior.
Since:
1.1.0
Author:
Austin Dase
  • Field Details

  • Constructor Details

    • AnthropicCacheOptions

      public AnthropicCacheOptions()
  • Method Details

    • builder

      public static AnthropicCacheOptions.Builder builder()
    • getStrategy

      public AnthropicCacheStrategy getStrategy()
    • setStrategy

      public void setStrategy(AnthropicCacheStrategy strategy)
    • getContentLengthFunction

      public Function<String,Integer> getContentLengthFunction()
    • setContentLengthFunction

      public void setContentLengthFunction(Function<String,Integer> contentLengthFunction)
    • getMessageTypeTtl

      public Map<org.springframework.ai.chat.messages.MessageType, AnthropicCacheTtl> getMessageTypeTtl()
    • setMessageTypeTtl

      public void setMessageTypeTtl(Map<org.springframework.ai.chat.messages.MessageType, AnthropicCacheTtl> messageTypeTtl)
    • getMessageTypeMinContentLengths

      public Map<org.springframework.ai.chat.messages.MessageType, Integer> getMessageTypeMinContentLengths()
    • setMessageTypeMinContentLengths

      public void setMessageTypeMinContentLengths(Map<org.springframework.ai.chat.messages.MessageType, Integer> messageTypeMinContentLengths)
    • toString

      public String toString()
      Overrides:
      toString in class Object