类 ToolExecutionResultMessage
java.lang.Object
com.ajaxjs.mcp.message.ToolExecutionResultMessage
- 所有已实现的接口:
ChatMessage
Represents the result of a tool execution in response to a
ToolExecutionRequest.
ToolExecutionRequests come from a previous AiMessage.toolExecutionRequests().-
构造器概要
构造器构造器说明ToolExecutionResultMessage(String id, String toolName, String text) Creates aToolExecutionResultMessage. -
方法概要
-
构造器详细资料
-
ToolExecutionResultMessage
Creates aToolExecutionResultMessage.- 参数:
id- the id of the tool.toolName- the name of the tool.text- the result of the tool execution.
-
-
方法详细资料
-
id
Returns the id of the tool.- 返回:
- the id of the tool.
-
toolName
Returns the name of the tool.- 返回:
- the name of the tool.
-
text
Returns the result of the tool execution.- 返回:
- the result of the tool execution.
-
type
从接口复制的说明:ChatMessageThe type of the message.- 指定者:
type在接口中ChatMessage- 返回:
- the type of the message
-