Package dev.langchain4j.service.tool.search.decision
package dev.langchain4j.service.tool.search.decision
-
ClassesClassDescriptionA
ToolSearchStrategythat uses aDecisionModelto find the tools matching the search query of the LLM: for each searchable tool, the decision model answers whether the tool would help with the query (all tools in a single call), and the most relevant tools are returned.Selects the tools relevant to a request with aDecisionModel: one yes/no question per tool, answered in one request (or in batches, if configured), keeping the tools whose probability of "yes" reaches the minimum, most relevant first.