Interface PromptConfigurationAgent


public interface PromptConfigurationAgent
Agent providing access to the current prompt configuration.
Since:
5.2.240903
  • Field Details

  • Method Details

    • getSystemPrompts

      @NotNull @NotNull List<SystemPrompt> getSystemPrompts()
      Returns a list of the current system prompts.
      Returns:
      The configured system prompts.
      Since:
      5.2.240903
    • getSystemPrompt

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

      @NotNull @NotNull List<PromptOperation> getOperations()
      Returns all prompt operations in the current context.
      Returns:
      The list of operations.
      Since:
      5.2.240903
    • getOperation

      @NotNull default @NotNull Optional<PromptOperation> getOperation(@NotNull @NotNull UUID id)
      Searches for a specific operation by id.
      Parameters:
      id - The id of the operation to be returned.
      Returns:
      The matching operation, if available.
      Since:
      5.2.240903
    • getOperations

      @NotNull default @NotNull Stream<PromptOperation> getOperations(@NotNull @NotNull Set<String> tags)
      Searches for operations containing all the given tags.
      Parameters:
      tags - A set of tags the operations need to have.
      Returns:
      A stream of operations containing all the specific tags.
      Since:
      5.2.240903
    • getOptions

      @NotNull @NotNull List<PromptOption> getOptions()
      Returns all prompt options in the current context.
      Returns:
      The list of options.
      Since:
      5.2.240903
    • getOption

      @NotNull default @NotNull Optional<PromptOption> getOption(@NotNull @NotNull UUID id)
      Searches for a specific option by id.
      Parameters:
      id - The id of the option to look for.
      Returns:
      The matching option, if there is one.
      Since:
      5.2.240903
    • getOptions

      @NotNull default @NotNull Stream<PromptOption> getOptions(@NotNull @NotNull PromptOperation operation)
      Searches for all options referenced by the given operation.
      Parameters:
      operation - The operation to return the options for.
      Returns:
      A stream of options for the given operation.
      Since:
      5.2.240903