Package de.espirit.firstspirit.ai
Interface PromptConfigurationAgent
public interface PromptConfigurationAgent
Agent providing access to the current prompt configuration.
- Since:
- 5.2.240903
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SpecialistType<PromptConfigurationAgent>Agent providing access to the current prompt configuration. -
Method Summary
Modifier and TypeMethodDescriptiondefault @NotNull Optional<PromptOperation>getOperation(@NotNull UUID id) Searches for a specific operation by id.@NotNull List<PromptOperation>Returns all prompt operations in the current context.default @NotNull Stream<PromptOperation>getOperations(@NotNull Set<String> tags) Searches for operations containing all the given tags.default @NotNull Optional<PromptOption>Searches for a specific option by id.@NotNull List<PromptOption>Returns all prompt options in the current context.default @NotNull Stream<PromptOption>getOptions(@NotNull PromptOperation operation) Searches for all options referenced by the given operation.default @NotNull Optional<SystemPrompt>getSystemPrompt(@NotNull String name) Returns a specific system prompt, if available.@NotNull List<SystemPrompt>Returns a list of the current system prompts.
-
Field Details
-
TYPE
Agent providing access to the current prompt configuration.- Since:
- 5.2.240903
-
-
Method Details
-
getSystemPrompts
Returns a list of the current system prompts.- Returns:
- The configured system prompts.
- Since:
- 5.2.240903
-
getSystemPrompt
Returns a specific system prompt, if available.- Parameters:
name- The name of the system prompt to look for.- Returns:
- The current system prompt with the given name, or empty.
- Since:
- 5.2.240903
-
getOperations
Returns all prompt operations in the current context.- Returns:
- The list of operations.
- Since:
- 5.2.240903
-
getOperation
Searches for a specific operation by id.- Parameters:
id- The id of the operation to be returned.- Returns:
- The matching operation, if available.
- Since:
- 5.2.240903
-
getOperations
Searches for operations containing all the given tags.- Parameters:
tags- A set of tags the operations need to have.- Returns:
- A stream of operations containing all the specific tags.
- Since:
- 5.2.240903
-
getOptions
Returns all prompt options in the current context.- Returns:
- The list of options.
- Since:
- 5.2.240903
-
getOption
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.240903
-
getOptions
@NotNull default @NotNull Stream<PromptOption> getOptions(@NotNull @NotNull PromptOperation operation) Searches for all options referenced by the given operation.- Parameters:
operation- The operation to return the options for.- Returns:
- A stream of options for the given operation.
- Since:
- 5.2.240903
-