Package com.tnsai.llm.cache
Class PromptCachingClient.Builder
java.lang.Object
com.tnsai.llm.cache.PromptCachingClient.Builder
- Enclosing class:
PromptCachingClient
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()cacheHistoryBreakpoints(int breakpoints) Sets the requested number of history breakpoints.cacheSystemPrompt(boolean enabled) cacheTools(boolean enabled) client(com.tnsai.llm.LLMClient client) minTokensForCaching(int tokens)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
client
-
cacheSystemPrompt
-
cacheTools
-
cacheHistoryBreakpoints
Sets the requested number of history breakpoints. The effective number per request is lower when tool caching also claims a marker: history + tool markers together never exceed Anthropic's 4-breakpoint limit (TAN-5922). -
minTokensForCaching
-
build
-