Interface SystemPromptList

All Superinterfaces:
PromptList<ConfigurableSystemPrompt>

@Experimental public interface SystemPromptList extends PromptList<ConfigurableSystemPrompt>
A modifiable list of system prompts.
Since:
5.2.241209
  • Method Details

    • get

      @NotNull default @NotNull Optional<ConfigurableSystemPrompt> get(@NotNull @NotNull String name)
      Searches for a specific system prompt by name.
      Parameters:
      name - The name of the system prompt to look for.
      Returns:
      The matching system prompt, if there is one.
      Since:
      5.2.241209
    • create

      @NotNull @NotNull ConfigurableSystemPrompt create()
      Creates a new configurable system prompt, use PromptList.add(Object) to add the configured prompt to this list. Make sure to configure a unique name for the system prompt before adding it.
      Returns:
      The configurable prompt.
      Since:
      5.2.241209