类 ToolExecutionResultMessage

java.lang.Object
com.ajaxjs.mcp.message.ToolExecutionResultMessage
所有已实现的接口:
ChatMessage

public class ToolExecutionResultMessage extends Object implements ChatMessage
Represents the result of a tool execution in response to a ToolExecutionRequest. ToolExecutionRequests come from a previous AiMessage.toolExecutionRequests().
  • 构造器详细资料

    • ToolExecutionResultMessage

      public ToolExecutionResultMessage(String id, String toolName, String text)
      参数:
      id - the id of the tool.
      toolName - the name of the tool.
      text - the result of the tool execution.
  • 方法详细资料

    • id

      public String id()
      Returns the id of the tool.
      返回:
      the id of the tool.
    • toolName

      public String toolName()
      Returns the name of the tool.
      返回:
      the name of the tool.
    • text

      public String text()
      Returns the result of the tool execution.
      返回:
      the result of the tool execution.
    • type

      public ChatMessageType type()
      从接口复制的说明: ChatMessage
      The type of the message.
      指定者:
      type 在接口中 ChatMessage
      返回:
      the type of the message