Package de.espirit.firstspirit.ai.dto
Interface PromptOperation
- All Known Subinterfaces:
ConfigurablePromptOperation
public interface PromptOperation
An operation to be performed using AI.
- Since:
- 5.2.240903
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
A builder to create an operation definition with. -
Method Summary
Modifier and TypeMethodDescriptionstatic PromptOperation.Builder
builder()
Returns a builder to create a new operation definition with.static PromptOperation.Builder
builder
(@NotNull PromptOperation operation) Returns a builder to create a new operation definition with.@NotNull UUID
getId()
Returns the identifier of this operation.@NotNull String
getName()
Returns the name to visualize the operation with.Returns a list of option identifiers the operation is configurable with.@NotNull String
The prompt to build the generative AI request with.getTags()
Returns the tags associated with this operation.boolean
Returns whether the operation requires input text.
-
Method Details
-
builder
Returns a builder to create a new operation definition with.- Returns:
- The builder instance.
- Since:
- 5.2.240903
-
builder
Returns a builder to create a new operation definition with.- Parameters:
operation
- The operation to pre-configure the builder with.- Returns:
- The builder instance.
- Since:
- 5.2.241209
-
getId
Returns the identifier of this operation.- Returns:
- The operation id.
- Since:
- 5.2.240903
-
getTags
Returns the tags associated with this operation.- Returns:
- The operation tags.
- Since:
- 5.2.240903
-
getName
Returns the name to visualize the operation with.- Returns:
- The operation name.
- Since:
- 5.2.240903
-
getPrompt
The prompt to build the generative AI request with.- Returns:
- The operation prompt.
- Since:
- 5.2.240903
-
isTextRequired
boolean isTextRequired()Returns whether the operation requires input text.- Returns:
true
if the operation requires input text,false
otherwise.- Since:
- 5.2.240903
-
getOptions
Returns a list of option identifiers the operation is configurable with.- Returns:
- The option identifiers of this operation.
- Since:
- 5.2.240903
-