Class EntityDataLoadGenerationRequest
java.lang.Object
io.jmix.aitools.dataload.generation.EntityDataLoadGenerationRequest
A generation request carrying, besides the natural-language prompt, the constraints a caller knows as data:
the parameters the query may reference and how each is bound, and the result columns it must expose under
fixed aliases. All constraints are optional; a request with only a prompt generates exactly as free text does.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the parameters the generated query may reference.Returns the text the caller asks the model to answer.Returns the aliases the generated query must select and expose verbatim.setAvailableParameters(@Nullable List<EntityDataLoadQueryParameter> availableParameters) Sets the parameters the generated query may reference.setRequiredResultProperties(@Nullable List<String> requiredResultProperties) Sets the aliases the generated query must select and expose, verbatim.
-
Field Details
-
prompt
-
availableParameters
-
requiredResultProperties
-
-
Constructor Details
-
EntityDataLoadGenerationRequest
-
-
Method Details
-
setAvailableParameters
public EntityDataLoadGenerationRequest setAvailableParameters(@Nullable List<EntityDataLoadQueryParameter> availableParameters) Sets the parameters the generated query may reference.- Parameters:
availableParameters- the parameters, ornullfor none- Returns:
- this request
-
setRequiredResultProperties
public EntityDataLoadGenerationRequest setRequiredResultProperties(@Nullable List<String> requiredResultProperties) Sets the aliases the generated query must select and expose, verbatim.- Parameters:
requiredResultProperties- the required aliases, ornullfor none- Returns:
- this request
-
getPrompt
Returns the text the caller asks the model to answer.- Returns:
- the natural-language prompt
-
getAvailableParameters
Returns the parameters the generated query may reference.- Returns:
- the parameters; empty when none were given
-
getRequiredResultProperties
Returns the aliases the generated query must select and expose verbatim.- Returns:
- the required aliases; empty when none were given
-