Uses of Class
dev.langchain4j.service.tool.search.decision.DecisionModelToolSearchStrategy.Builder
Packages that use DecisionModelToolSearchStrategy.Builder
-
Uses of DecisionModelToolSearchStrategy.Builder in dev.langchain4j.service.tool.search.decision
Methods in dev.langchain4j.service.tool.search.decision that return DecisionModelToolSearchStrategy.BuilderModifier and TypeMethodDescriptionDecisionModelToolSearchStrategy.builder()DecisionModelToolSearchStrategy.Builder.decisionModel(DecisionModel decisionModel) Sets the decision model that decides which tools match the query.DecisionModelToolSearchStrategy.Builder.maxResults(Integer maxResults) Sets the maximum number of tools returned by a search.DecisionModelToolSearchStrategy.Builder.maxToolsPerDecisionRequest(Integer maxToolsPerDecisionRequest) Sets the maximum number of tools evaluated in a single request to the decision model, for when the tools together exceed the input size accepted by the decision model.DecisionModelToolSearchStrategy.Builder.minProbability(Double minProbability) Sets the minimum probability of "yes" for a tool to be returned.DecisionModelToolSearchStrategy.Builder.questionTemplate(PromptTemplate questionTemplate) Sets the template of the yes/no question asked for each tool, which must contain the{{name}}variable (the name of the tool) and can contain{{description}}(its description, empty if it has none).DecisionModelToolSearchStrategy.Builder.throwToolArgumentsExceptions(Boolean throwToolArgumentsExceptions) Controls which exception type is thrown when the tool arguments are missing or cannot be parsed:ToolArgumentsExceptioniftrue,ToolExecutionExceptionotherwise.DecisionModelToolSearchStrategy.Builder.toolArgumentDescription(String toolArgumentDescription) Sets the description of the tool argument that contains the search query.DecisionModelToolSearchStrategy.Builder.toolArgumentName(String toolArgumentName) Sets the name of the tool argument that contains the search query.DecisionModelToolSearchStrategy.Builder.toolDescription(String toolDescription) Sets the description of the tool that performs the tool search.Sets the name of the tool that performs the tool search.DecisionModelToolSearchStrategy.Builder.toolResultMessageTextProvider(Function<List<String>, String> toolResultMessageTextProvider) Sets the function that creates the text of the tool result message from the names of the found tools.Constructors in dev.langchain4j.service.tool.search.decision with parameters of type DecisionModelToolSearchStrategy.BuilderModifierConstructorDescriptionprotected