DefaultMultiLLMPromptExecutor
class DefaultMultiLLMPromptExecutor(openAIClient: OpenAILLMClient, anthropicClient: AnthropicLLMClient, googleClient: GoogleLLMClient) : MultiLLMPromptExecutor(source)
Deprecated
DefaultMultiLLMPromptExecutor is deprecated. Use MultiLLMPromptExecutor(OpenAILLMClient, AnthropicLMClient, GoogleLLMClient), instead.
Replace with
import ai.koog.prompt.executor.llms.MultiLLMPromptExecutor
Content copied to clipboard
MultiLLMPromptExecutorContent copied to clipboard
Implementation of MultiLLMPromptExecutor that supports OpenAI, Anthropic, and Google providers.
Parameters
openAIClient
The OpenAI client
anthropicClient
The Anthropic client
googleClient
The Google client
Constructors
Link copied to clipboard
constructor(openAIClient: OpenAILLMClient, anthropicClient: AnthropicLLMClient, googleClient: GoogleLLMClient)
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>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard