类 SystemMessage
java.lang.Object
dev.langchain4j.data.message.SystemMessage
- 所有已实现的接口:
ChatMessage
Represents a system message, typically defined by a developer.
This type of message usually provides instructions regarding the AI's actions, such as its behavior or response style.
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明booleanstatic SystemMessageCreates a new system message.inthashCode()static SystemMessagesystemMessage(String text) Creates a new system message.text()Returns the message text.toString()type()The type of the message.
-
构造器详细资料
-
SystemMessage
Creates a new system message.- 参数:
text- the message text.
-
-
方法详细资料
-
text
Returns the message text.- 指定者:
text在接口中ChatMessage- 返回:
- the message text.
-
type
从接口复制的说明:ChatMessageThe type of the message.- 指定者:
type在接口中ChatMessage- 返回:
- the type of the message
-
equals
-
hashCode
public int hashCode() -
toString
-
from
Creates a new system message.- 参数:
text- the message text.- 返回:
- the system message.
-
systemMessage
Creates a new system message.- 参数:
text- the message text.- 返回:
- the system message.
-