Package org.wildfly.mcp.api
Annotation Interface CompletePrompt
Annotates a business method of a CDI bean used to complete a prompt argument
The result of a "complete" operation is always represented as a CompletionResponse. However, the annotated method can
also return other types that are converted according to the following rules.
- If the method returns
Stringthen the reponse contains the single value. - If the method returns a
ListofStrings then the reponse contains the list of values. - The method may return a
Unithat wraps any of the type mentioned above.
CompletionResponseStringList<String>Uni<CompletionResponse>Uni<String>Uni<List<String>>
- See Also:
-
Required Element Summary
Required Elements