File tree 1 file changed +22
-1
lines changed
spring-ai-core/src/main/java/org/springframework/ai/chat/messages
1 file changed +22
-1
lines changed Original file line number Diff line number Diff line change 16
16
package org .springframework .ai .chat .messages ;
17
17
18
18
/**
19
- * The MessageType enum represents the type of a message in a chat application. It can be
19
+ * The MessageType enum represents the type of message in a chat application. It can be
20
20
* one of the following: USER, ASSISTANT, SYSTEM, FUNCTION.
21
21
*/
22
22
public enum MessageType {
23
23
24
+ /**
25
+ * A message of the type 'user' passed as input Messages with the user role are from
26
+ * the end-user or developer.
27
+ * @see UserMessage
28
+ */
24
29
USER ("user" ),
25
30
31
+ /**
32
+ * A message of the type 'assistant' passed as input Messages with the message is
33
+ * generated as a response to the user.
34
+ * @see AssistantMessage
35
+ */
26
36
ASSISTANT ("assistant" ),
27
37
38
+ /**
39
+ * A message of the type 'system' passed as input Messages with high level
40
+ * instructions for the conversation, such as behave like a certain character or
41
+ * provide answers in a specific format.
42
+ * @see SystemMessage
43
+ */
28
44
SYSTEM ("system" ),
29
45
46
+ /**
47
+ * A message of the type 'function' passed as input Messages with a function content
48
+ * in a chat application.
49
+ * @see FunctionMessage
50
+ */
30
51
FUNCTION ("function" );
31
52
32
53
private final String value ;
You can’t perform that action at this time.
0 commit comments