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.
Functions
Executes a given prompt using the specified language model and tools, returning a list of responses from the model.
Executes a given prompt using the specified language model and returns a single response.
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 strings.
Moderates the content of a given message with attachments using a specified language model.