Package de.espirit.firstspirit.ai
Interface PromptConfigurationTestPlugin.PromptOperationContext
- Enclosing interface:
- PromptConfigurationTestPlugin
public static interface PromptConfigurationTestPlugin.PromptOperationContext
Context containing information about the prompt to be evaluated.
- Since:
- 5.2.240903
-
Method Summary
Modifier and TypeMethodDescription@NotNull PromptOperation
Returns the operation to be performed.@NotNull Map<PromptOption,
PromptOptionItem> Returns the selected options items as map.@NotNull Optional<SystemPrompt>
getSystemPrompt
(@NotNull String name) Returns the system prompt with the given name, if available.@NotNull String
getText()
The input text the operation should be performed on.
-
Method Details
-
getText
The input text the operation should be performed on.- Returns:
- The input text.
- Since:
- 5.2.240903
-
getOperation
Returns the operation to be performed.- Returns:
- The target operation.
- Since:
- 5.2.240903
-
getOptions
Returns the selected options items as map.- Returns:
- A map of selected options, with the option as key and the selected item as value.
- Since:
- 5.2.240903
-
getSystemPrompt
Returns the system prompt with the given name, if available.- Parameters:
name
- The name of the system prompt to look for.- Returns:
- The matching system prompt, or empty.
- Since:
- 5.2.240903
-