Class AnthropicCacheOptions
java.lang.Object
org.springframework.ai.anthropic.api.AnthropicCacheOptions
Anthropic cache options for configuring prompt caching behavior.
- Since:
- 1.1.0
- Author:
- Austin Dase
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Map<org.springframework.ai.chat.messages.MessageType, AnthropicCacheTtl> voidsetContentLengthFunction(Function<String, Integer> contentLengthFunction) voidsetMessageTypeMinContentLengths(Map<org.springframework.ai.chat.messages.MessageType, Integer> messageTypeMinContentLengths) voidsetMessageTypeTtl(Map<org.springframework.ai.chat.messages.MessageType, AnthropicCacheTtl> messageTypeTtl) voidsetStrategy(AnthropicCacheStrategy strategy) toString()
-
Field Details
-
DISABLED
-
-
Constructor Details
-
AnthropicCacheOptions
public AnthropicCacheOptions()
-
-
Method Details
-
builder
-
getStrategy
-
setStrategy
-
getContentLengthFunction
-
setContentLengthFunction
-
getMessageTypeTtl
-
setMessageTypeTtl
public void setMessageTypeTtl(Map<org.springframework.ai.chat.messages.MessageType, AnthropicCacheTtl> messageTypeTtl) -
getMessageTypeMinContentLengths
-
setMessageTypeMinContentLengths
-
toString
-