CachedPromptExecutor
class CachedPromptExecutor(cache: PromptCache, nested: PromptExecutor, clock: KoogClock = KoogClock.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>): Message.Assistant
Link copied to clipboard
open suspend fun executeMultipleChoices(prompt: Prompt, model: LLModel, tools: List<ToolDescriptor>): LLMChoice
Link copied to clipboard
open override fun executeStreaming(prompt: Prompt, model: LLModel, tools: List<ToolDescriptor>): Flow<StreamFrame>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard