Package-level declarations
Types
Link copied to clipboard
interface ChoiceSelectionStrategy
Represents a strategy for selecting a choice from a list of available options for a given prompt.
Link copied to clipboard
class PromptExecutorWithChoiceSelection(executor: PromptExecutor, choiceSelectionStrategy: ChoiceSelectionStrategy) : PromptExecutor
A specialized implementation of PromptExecutor
that enhances the standard execution process by introducing a choice selection mechanism. This class acts as a proxy that intercepts the standard execute method, generates multiple response choices, and applies a selection strategy to filter and choose the most appropriate responses.
Functions
Link copied to clipboard
fun AIAgentSubgraphBuilderBase<*, *>.nodeLLMSendResultsMultipleChoices(name: String? = null): AIAgentNodeDelegate<List<ReceivedToolResult>, List<LLMChoice>>
A node that sends multiple tool execution results to the LLM and gets multiple LLM choices.
Link copied to clipboard
fun AIAgentSubgraphBuilderBase<*, *>.nodeSelectLLMChoice(choiceSelectionStrategy: ChoiceSelectionStrategy, name: String? = null): AIAgentNodeDelegate<List<LLMChoice>, LLMChoice>
A node that chooses an LLM choice based on the given strategy.