Annotation Interface Prompt
Annotates a business method of a CDI bean as an exposed prompt template.
The result of a "prompt get" operation is always represented as a
. However, the annotated method can
also return other types that are converted according to the following rules.
invalid reference
PromptResponse
- If the method returns a
PromptMessagethen the reponse has no description and contains the single message object. - If the method returns a
ListofPromptMessages then the reponse has no description and contains the list of messages. - The method may return a
that wraps any of the type mentioned above.
invalid reference
Uni
PromptResponsePromptMessageList<PromptMessage>Uni<PromptResponse>Uni<PromptMessage>Uni<List<PromptMessage>>
- See Also:
-
Field Summary
Fields -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionAn optional description.Each prompt must have a unique name.
-
Field Details
-
ELEMENT_NAME
-
-
Element Details
-
name
String nameEach prompt must have a unique name. By default, the name is derived from the name of the annotated method.- Default:
"<<element name>>"
-
description
-