Package de.espirit.firstspirit.ai.admin
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 Summary
Modifier and TypeMethodDescriptiondefault @NotNull ConfigurableSystemPromptapply(@NotNull SystemPrompt definition) Applies the definition of the given system prompt, which is the same as calling each setter individually.voidConfigures the name of this system prompt.voidConfigures the prompt text of this system prompt.Methods inherited from interface de.espirit.firstspirit.ai.admin.PresettablePrompt
getPreset, getPresetMode, restorePresetMethods inherited from interface de.espirit.firstspirit.ai.dto.SystemPrompt
getName, getPrompt
-
Method Details
-
setName
Configures the name of this system prompt.- Parameters:
name- The system prompt name.- Since:
- 5.2.241209
-
setPrompt
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
-