PromptExecutorProxy
class PromptExecutorProxy(executor: PromptExecutor, pipeline: AIAgentPipeline, runId: String) : PromptExecutor(source)
A wrapper around ai.koog.prompt.executor.model.PromptExecutor that allows for adding internal functionality to the executor to catch and log events related to LLM calls.
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 override fun executeMultipleChoices(prompt: Prompt, model: LLModel, tools: List<ToolDescriptor>): List<LLMChoice>
Link copied to clipboard
open override fun executeStreaming(prompt: Prompt, model: LLModel, tools: List<ToolDescriptor>): Flow<StreamFrame>
Executes a streaming call to the language model with tool support.
Link copied to clipboard