InMemoryPromptCache
In-memory implementation of PromptCache. This implementation stores cache entries in memory.
Functions
Link copied to clipboard
Get a cached response for a prompt with tools, or null if not cached.
Link copied to clipboard
open suspend override fun put(prompt: Prompt, tools: List<ToolDescriptor>, response: List<Message.Response>)
Put a response in the cache for a prompt with tools.