public class ToolExecutionResultMessage extends ChatMessage
ToolExecutionRequest.
ToolExecutionRequests come from a previous AiMessage.toolExecutionRequests().text| Constructor and Description |
|---|
ToolExecutionResultMessage(String id,
String toolName,
String toolExecutionResult) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
static ToolExecutionResultMessage |
from(String id,
String toolName,
String toolExecutionResult) |
static ToolExecutionResultMessage |
from(ToolExecutionRequest request,
String toolExecutionResult) |
int |
hashCode() |
String |
id() |
static ToolExecutionResultMessage |
toolExecutionResultMessage(String id,
String toolName,
String toolExecutionResult) |
static ToolExecutionResultMessage |
toolExecutionResultMessage(ToolExecutionRequest request,
String toolExecutionResult) |
String |
toolName() |
String |
toString() |
ChatMessageType |
type() |
textpublic String id()
public String toolName()
public ChatMessageType type()
type in class ChatMessagepublic static ToolExecutionResultMessage from(ToolExecutionRequest request, String toolExecutionResult)
public static ToolExecutionResultMessage from(String id, String toolName, String toolExecutionResult)
public static ToolExecutionResultMessage toolExecutionResultMessage(ToolExecutionRequest request, String toolExecutionResult)
public static ToolExecutionResultMessage toolExecutionResultMessage(String id, String toolName, String toolExecutionResult)
Copyright © 2023. All rights reserved.