类 AssistantMessage
java.lang.Object
io.agentscope.core.message.Msg
io.agentscope.core.message.AssistantMessage
- 所有已实现的接口:
State
A
Msg with MsgRole.ASSISTANT pinned at construction time.
Provides convenience constructors that take a String directly
(wrapped into a TextBlock) or any combination of ContentBlocks,
including ThinkingBlock and ToolUseBlock which are common in
assistant turns.
Also offers an independent AssistantMessage.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 -
构造器概要
构造器构造器说明AssistantMessage(ContentBlock... blocks) AssistantMessage(String text) AssistantMessage(String name, ContentBlock... blocks) AssistantMessage(String name, String text) AssistantMessage(List<ContentBlock> blocks) -
方法概要
修饰符和类型方法说明static AssistantMessage.Builderbuilder()Creates a builder forAssistantMessagewith 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
-
构造器详细资料
-
AssistantMessage
-
AssistantMessage
-
AssistantMessage
-
AssistantMessage
-
AssistantMessage
-
-
方法详细资料
-
builder
Creates a builder forAssistantMessagewith a randomly generated ID and the current timestamp pre-populated.
-