Interface PromptConfigurationTestPlugin.PromptOperationContext

Enclosing interface:
PromptConfigurationTestPlugin

public static interface PromptConfigurationTestPlugin.PromptOperationContext
Context containing information about the prompt to be evaluated.
Since:
5.2.240903
  • Method Details

    • getText

      @NotNull @NotNull String getText()
      The input text the operation should be performed on.
      Returns:
      The input text.
      Since:
      5.2.240903
    • getOperation

      @NotNull @NotNull PromptOperation getOperation()
      Returns the operation to be performed.
      Returns:
      The target operation.
      Since:
      5.2.240903
    • getOptions

      @NotNull @NotNull Map<PromptOption,PromptOptionItem> getOptions()
      Returns the selected options items as map.
      Returns:
      A map of selected options, with the option as key and the selected item as value.
      Since:
      5.2.240903
    • getSystemPrompt

      @NotNull @NotNull Optional<SystemPrompt> getSystemPrompt(@NotNull @NotNull String name)
      Returns the system prompt with the given name, if available.
      Parameters:
      name - The name of the system prompt to look for.
      Returns:
      The matching system prompt, or empty.
      Since:
      5.2.240903