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 ConfigurableSystemPrompt
apply
(@NotNull SystemPrompt definition) Applies the definition of the given system prompt, which is the same as calling each setter individually.void
Configures the name of this system prompt.void
Configures the prompt text of this system prompt.Methods inherited from interface de.espirit.firstspirit.ai.admin.PresettablePrompt
getPreset, getPresetMode, restorePreset
Methods 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
-