PromptExecutor
An interface representing an executor for processing language model prompts. This defines methods for executing prompts against models with or without tool assistance, as well as for streaming responses.
Note: a single PromptExecutor might embed multiple LLM clients for different LLM providers supporting different models.
Inheritors
Functions
Converts a PromptExecutor instance to a JavaPromptExecutor instance.
Executes a given prompt using the specified language model and tools, returning a list of responses from the model.
Receives multiple independent choices from the LLM. The method is implemented only for some specific providers which support multiple LLM choices.
Executes a given prompt using the specified language model and returns a stream of output as a flow of StreamFrame
objects.
Moderates the content of a given message with attachments using a specified language model.