类 ToolResultMessage
java.lang.Object
io.agentscope.core.message.Msg
io.agentscope.core.message.ToolResultMessage
- 所有已实现的接口:
State
A
Msg with MsgRole.TOOL pinned at construction time.
Carries one or more ToolResultBlocks as its content. The
three-argument constructor takes the tool call id, tool name and a result
string, automatically wrapping the string in a TextBlock inside the
ToolResultBlock.
Also offers an independent ToolResultMessage.Builder that lets callers accumulate
multiple tool results, attach metadata, or set timestamp/usage explicitly.
-
嵌套类概要
嵌套类 -
字段概要
从类继承的字段 io.agentscope.core.message.Msg
METADATA_CONFIRM_RESULTS, METADATA_GENERATE_REASON, METADATA_REMINDER_KIND, METADATA_SYNTHETIC -
构造器概要
构造器构造器说明ToolResultMessage(ToolResultBlock... results) ToolResultMessage(String toolCallId, String toolName, String resultText) ToolResultMessage(List<ToolResultBlock> results) -
方法概要
修饰符和类型方法说明static ToolResultMessage.Builderbuilder()Creates a builder forToolResultMessagewith 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
-
构造器详细资料
-
ToolResultMessage
-
ToolResultMessage
-
ToolResultMessage
-
-
方法详细资料
-
builder
Creates a builder forToolResultMessagewith a randomly generated ID and the current timestamp pre-populated.
-