Package de.espirit.firstspirit.ai.dto
Interface Request
- All Superinterfaces:
AttributeProvider
A descriptor for a generative AI request.
- Since:
- 5.2.240708
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Request.Builder
builder()
Creates a new builder to create a request instance with.static @NotNull Request
Creates a new request with the given user prompt.Returns a list of messages to use for the request.int
The number of variants to be requested,1
by default.Methods inherited from interface de.espirit.firstspirit.ai.dto.AttributeProvider
getAttribute, getAttribute, getAttributeBoolean, getAttributeDouble, getAttributeFloat, getAttributeInteger, getAttributeLong, getAttributeString
-
Method Details
-
builder
Creates a new builder to create a request instance with.- Returns:
- The builder instance.
- Since:
- 5.2.240708
-
create
Creates a new request with the given user prompt.- Parameters:
prompt
- The user prompt.- Returns:
- The request objects.
- Since:
- 5.2.240708
-
getMessages
Returns a list of messages to use for the request.- Returns:
- The request messages.
- Since:
- 5.2.240708
-
getVariantCount
int getVariantCount()The number of variants to be requested,1
by default.- Returns:
- The number of requested variants.
- Since:
- 5.2.240708
- See Also:
-