类 SystemMessage
java.lang.Object
io.agentscope.core.message.Msg
io.agentscope.core.message.SystemMessage
- 所有已实现的接口:
State
A
Msg with MsgRole.SYSTEM pinned at construction time.
Provides convenience constructors that take a String directly
(wrapped into a TextBlock). System messages are restricted to text
blocks by Msg's validator; passing non-text blocks will throw
IllegalArgumentException.
Also offers an independent SystemMessage.Builder for cases that need to set
metadata, timestamp, usage or generateReason.
-
嵌套类概要
嵌套类 -
字段概要
从类继承的字段 io.agentscope.core.message.Msg
METADATA_CONFIRM_RESULTS, METADATA_GENERATE_REASON, METADATA_REMINDER_KIND, METADATA_SYNTHETIC -
构造器概要
构造器构造器说明SystemMessage(ContentBlock... blocks) SystemMessage(String text) SystemMessage(String name, ContentBlock... blocks) SystemMessage(String name, String text) SystemMessage(List<ContentBlock> blocks) -
方法概要
修饰符和类型方法说明static SystemMessage.Builderbuilder()Creates a builder forSystemMessagewith a randomly generated ID and the current timestamp pre-populated.从类继承的方法 io.agentscope.core.message.Msg
builderForRole, currentTimestamp, generateId, getChatUsage, getContent, getContentBlocks, getFirstContentBlock, getFirstContentBlock, getGenerateReason, getId, getMetadata, getName, getRole, getStructuredData, getStructuredData, getTextContent, getTimestamp, getUsage, hasContentBlocks, hasStructuredData, withContent, withGenerateReason
-
构造器详细资料
-
SystemMessage
-
SystemMessage
-
SystemMessage
-
SystemMessage
-
SystemMessage
-
-
方法详细资料
-
builder
Creates a builder forSystemMessagewith a randomly generated ID and the current timestamp pre-populated.
-