Package dev.langchain4j.service
Annotation Type UserMessage
-
Optional Element Summary
Optional Elements
-
Element Details
-
value
String[] valuePrompt template can be defined in one line or multiple lines. If the template is defined in multiple lines, the lines will be joined with a delimiter defined below.- Default:
{""}
-
delimiter
String delimiter- Default:
"\n"
-
fromResource
String fromResourceThe resource from which to read the prompt template. If no resource is specified, the prompt template is taken fromvalue(). If the resource is not found, anIllegalConfigurationExceptionis thrown.The resource will be read by calling
Class.getResourceAsStream(String)on the AI Service class (interface).- Default:
""
-