Package de.espirit.firstspirit.ai.admin
Interface PromptOptionList
- All Superinterfaces:
PromptList<ConfigurablePromptOption>
A modifiable list of prompt options, containing both modifiable options and inherited ones.
Keep in mind that
inherited
options can not be modified, any modification
will be ignored.
Options available as preset can be modified on in the ServicePromptConfiguration
but can not be removed.- Since:
- 5.2.241209
-
Method Summary
Modifier and TypeMethodDescriptiondefault @NotNull ConfigurablePromptOption
create()
Creates a new configurable prompt, usePromptList.add(Object)
to add the option to this list.@NotNull ConfigurablePromptOption
Creates a new configurable prompt, usePromptList.add(Object)
to add the option to this list.default @NotNull Optional<ConfigurablePromptOption>
Searches for a specific option by id.Methods inherited from interface de.espirit.firstspirit.ai.admin.PromptList
add, get, remove, set
-
Method Details
-
get
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.241209
-
create
Creates a new configurable prompt, usePromptList.add(Object)
to add the option to this list.- Parameters:
id
- The unique identifier of the option.- Returns:
- The configurable prompt.
- Since:
- 5.2.241209
-
create
Creates a new configurable prompt, usePromptList.add(Object)
to add the option to this list.- Returns:
- The configurable prompt.
- Since:
- 5.2.241209
-