Class ToolExecutionResultMessage.Builder
java.lang.Object
dev.langchain4j.data.message.ToolExecutionResultMessage.Builder
- Enclosing class:
ToolExecutionResultMessage
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds theToolExecutionResultMessage.Sets the id of the tool.Sets whether the tool execution resulted in an error.Sets the result text of the tool execution.Sets the name of the tool.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
id
Sets the id of the tool.- Parameters:
id- the id of the tool.- Returns:
- the builder.
-
toolName
Sets the name of the tool.- Parameters:
toolName- the name of the tool.- Returns:
- the builder.
-
text
Sets the result text of the tool execution.- Parameters:
text- the result of the tool execution.- Returns:
- the builder.
-
isError
Sets whether the tool execution resulted in an error.- Parameters:
isError- whether the tool execution resulted in an error.- Returns:
- the builder.
-
build
Builds theToolExecutionResultMessage.- Returns:
- the
ToolExecutionResultMessage.
-