Package de.espirit.firstspirit.ai.dto
Interface PromptOptionItem
public interface PromptOptionItem
An item selectable in a specific
PromptOption
.- Since:
- 5.2.240903
-
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull PromptOptionItem
Creates a new option item definition.@NotNull String
getName()
Returns the name of this option item.@NotNull String
Returns the prompt text associated with this option item.
-
Method Details
-
create
@NotNull static @NotNull PromptOptionItem create(@NotNull @NotNull String name, @NotNull @NotNull String prompt) Creates a new option item definition.- Parameters:
name
- The name of the item to be shown.prompt
- The prompt text associated with the option item.- Returns:
- The resulting item definition.
- Since:
- 5.2.240903
-
getName
Returns the name of this option item.- Returns:
- The name of this item to be shown.
- Since:
- 5.2.240903
-
getPrompt
Returns the prompt text associated with this option item.- Returns:
- The prompt text of this item.
- Since:
- 5.2.240903
-