DefaultMultiLLMPromptExecutor

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>
open suspend fun execute(prompt: Prompt, model: LLModel): String
Link copied to clipboard
open suspend override fun executeStreaming(prompt: Prompt, model: LLModel): Flow<String>