Uses of Class
dev.langchain4j.service.tool.DecisionModelFilteringToolProvider.Builder
Packages that use DecisionModelFilteringToolProvider.Builder
-
Uses of DecisionModelFilteringToolProvider.Builder in dev.langchain4j.service.tool
Methods in dev.langchain4j.service.tool that return DecisionModelFilteringToolProvider.BuilderModifier and TypeMethodDescriptionDecisionModelFilteringToolProvider.Builder.alwaysInclude(String... toolNames) Sets tools that are always passed on, without asking the decision model.DecisionModelFilteringToolProvider.Builder.alwaysInclude(Collection<String> toolNames) Sets tools that are always passed on, without asking the decision model.DecisionModelFilteringToolProvider.builder()DecisionModelFilteringToolProvider.Builder.decisionModel(DecisionModel decisionModel) Sets the decision model that decides which tools are relevant.DecisionModelFilteringToolProvider.Builder.fallbackStrategy(DecisionModelFilteringToolProvider.FallbackStrategy fallbackStrategy) Sets what happens when the decision model fails.DecisionModelFilteringToolProvider.Builder.maxMessages(Integer maxMessages) Sets how many of the last messages of the conversation (user and assistant messages with text, the last one being the user message) the decision model receives.DecisionModelFilteringToolProvider.Builder.maxResults(Integer maxResults) Sets the maximum number of selected tools, in addition to the always included ones.DecisionModelFilteringToolProvider.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.DecisionModelFilteringToolProvider.Builder.minProbability(Double minProbability) Sets the minimum probability of "yes" for a tool to be selected.DecisionModelFilteringToolProvider.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).DecisionModelFilteringToolProvider.Builder.toolProvider(ToolProvider toolProvider) Sets the tool provider whose tools are filtered.Constructors in dev.langchain4j.service.tool with parameters of type DecisionModelFilteringToolProvider.BuilderModifierConstructorDescriptionprotected