DefaultMultiLLMPromptExecutor

Deprecated

DefaultMultiLLMPromptExecutor is deprecated. Use MultiLLMPromptExecutor(OpenAILLMClient, AnthropicLMClient, GoogleLLMClient), instead.

Replace with

import ai.koog.prompt.executor.llms.MultiLLMPromptExecutor
MultiLLMPromptExecutor

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 override fun close()
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
open suspend override fun models(): List<LLModel>
Link copied to clipboard
open suspend override fun moderate(prompt: Prompt, model: LLModel): ModerationResult