Uses of Class
dev.langchain4j.service.tool.ToolServiceContext.Builder
Packages that use ToolServiceContext.Builder
-
Uses of ToolServiceContext.Builder in dev.langchain4j.service.tool
Methods in dev.langchain4j.service.tool that return ToolServiceContext.BuilderModifier and TypeMethodDescriptionToolServiceContext.Builder.availableTools(List<ToolSpecification> availableTools) Sets all available tool specifications configured for AI service.static ToolServiceContext.BuilderToolServiceContext.builder()ToolServiceContext.Builder.dynamicToolProviders(List<ToolProvider> dynamicToolProviders) ToolServiceContext.Builder.effectiveTools(List<ToolSpecification> effectiveTools) Sets effective tool specifications that should be included in the nextChatRequest.ToolServiceContext.Builder.guardrailRequestParams(@Nullable GuardrailRequestParams guardrailRequestParams) Sets theGuardrailRequestParamsof the AI service invocation, which the tool guardrails receive in their requests, so they see the same context as the AI service guardrails and their events reach the listeners registered for the invocation.ToolServiceContext.Builder.immediateReturnTools(Set<String> immediateReturnTools) Deprecated.ToolServiceContext.Builder.returnBehaviors(Map<String, ReturnBehavior> returnBehaviorByName) ToolServiceContext.toBuilder()ToolServiceContext.Builder.toolExecutors(Map<String, ToolExecutor> toolExecutors) ToolServiceContext.Builder.toolGuardrailKeys(Map<String, ToolGuardrailService.ToolKey> toolGuardrailKeys) Sets the key thatToolGuardrailService.bind(AiServiceTool)of the tool guardrail service returned for each tool, by tool name.ToolServiceContext.Builder.toolGuardrailService(@Nullable ToolGuardrailService toolGuardrailService) Sets the service that executes the tool guardrails, and binds on demand the tools that have no key.ToolServiceContext.Builder.toolSpecifications(List<ToolSpecification> toolSpecifications) Deprecated.useToolServiceContext.Builder.effectiveTools(List)insteadConstructors in dev.langchain4j.service.tool with parameters of type ToolServiceContext.Builder
ToolServiceContext.Builder.returnBehaviors(Map)instead