Class ToolSearchResult
java.lang.Object
dev.langchain4j.service.tool.search.ToolSearchResult
The result of a tool search.
Contains a list of the found tool names
and the text to be sent to the LLM inside the
ToolExecutionResultMessage.- Since:
- 1.12.0
-
Constructor Summary
ConstructorsConstructorDescriptionToolSearchResult(List<String> foundToolNames, String toolResultMessageText) Creates aToolSearchResultfrom a list of tool names and a tool result message text. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the list of the found tool names.inthashCode()Returns the text to be set in theToolExecutionResultMessageand sent to the LLM as the result of the tool search.toString()
-
Constructor Details
-
ToolSearchResult
Creates aToolSearchResultfrom a list of tool names and a tool result message text.- Parameters:
foundToolNames- the names of the found toolstoolResultMessageText- the text to be set in theToolExecutionResultMessageand sent to the LLM as the result of the tool search
-
-
Method Details
-
foundToolNames
-
toolResultMessageText
Returns the text to be set in theToolExecutionResultMessageand sent to the LLM as the result of the tool search. -
equals
-
hashCode
-
toString
-