CachedPromptExecutor
class CachedPromptExecutor(cache: PromptCache, nested: PromptExecutor, clock: Clock = Clock.System) : PromptExecutor(source)
A CodePromptExecutor that caches responses from a nested executor.
Parameters
cache
The cache implementation to use
nested
The nested executor to use for cache misses
Functions
Link copied to clipboard
open suspend override fun execute(prompt: Prompt, model: LLModel, tools: List<ToolDescriptor>): List<Message.Response>
Link copied to clipboard
open suspend fun executeMultipleChoices(prompt: Prompt, model: LLModel, tools: List<ToolDescriptor>): List<LLMChoice>
Link copied to clipboard
Link copied to clipboard