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
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceA builder to create an operation definition with. -
Method Summary
Modifier and TypeMethodDescriptionstatic PromptOperation.Builderbuilder()Returns a builder to create a new operation definition with.static PromptOperation.Builderbuilder(@NotNull PromptOperation operation) Returns a builder to create a new operation definition with.@NotNull List<AllowedTool>Returns a list of tools to allow for this operation.@NotNull UUIDgetId()Returns the identifier of this operation.@NotNull StringgetName()Returns the name to visualize the operation with.Returns a list of option identifiers the operation is configurable with.@NotNull StringThe prompt to build the generative AI request with.getTags()Returns the tags associated with this operation.booleanReturns 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:
trueif the operation requires input text,falseotherwise.- 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
-
getAllowedTools
Returns a list of tools to allow for this operation.- Returns:
- The allowed tools specified for this operation.
- Since:
- 5.2.251104
-