Interface ConfigurableSystemPrompt

All Superinterfaces:
PresettablePrompt<SystemPrompt>, SystemPrompt

@Experimental public interface ConfigurableSystemPrompt extends PresettablePrompt<SystemPrompt>, SystemPrompt
Object for configuring a specific SystemPrompt.
Since:
5.2.241209
  • Method Details

    • setName

      void setName(@NotNull @NotNull String name)
      Configures the name of this system prompt.
      Parameters:
      name - The system prompt name.
      Since:
      5.2.241209
    • setPrompt

      void setPrompt(@NotNull @NotNull String prompt)
      Configures the prompt text of this system prompt.
      Parameters:
      prompt - The prompt text.
      Since:
      5.2.241209
    • apply

      @Contract("_ -> this") @NotNull default @NotNull ConfigurableSystemPrompt apply(@NotNull @NotNull SystemPrompt definition)
      Applies the definition of the given system prompt, which is the same as calling each setter individually.
      Parameters:
      definition - The option definition to initialize the configurable option with.
      Returns:
      This instance.
      Since:
      5.2.241209