类 ToolResultMessage

java.lang.Object
io.agentscope.core.message.Msg
io.agentscope.core.message.ToolResultMessage
所有已实现的接口:
State

public final class ToolResultMessage extends Msg
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.