Uses of Interface
dev.langchain4j.service.tool.ToolExecutor
Packages that use ToolExecutor
Package
Description
-
Uses of ToolExecutor in dev.langchain4j.mcp
Classes in dev.langchain4j.mcp that implement ToolExecutorMethod parameters in dev.langchain4j.mcp with type arguments of type ToolExecutorModifier and TypeMethodDescriptionMcpToolProvider.Builder.toolWrapper(Function<ToolExecutor, ToolExecutor> toolWrapper) Provide a wrapper around theToolExecutorthat can be used to implement tracing for example.McpToolProvider.Builder.toolWrapper(Function<ToolExecutor, ToolExecutor> toolWrapper) Provide a wrapper around theToolExecutorthat can be used to implement tracing for example.Constructor parameters in dev.langchain4j.mcp with type arguments of type ToolExecutorModifierConstructorDescriptionprotectedMcpToolProvider(List<McpClient> mcpClients, boolean failIfOneServerFails, BiPredicate<McpClient, ToolSpecification> mcpToolsFilter, Function<ToolExecutor, ToolExecutor> toolWrapper, McpResourcesAsToolsPresenter resourcesAsToolsPresenter, BiFunction<McpClient, ToolSpecification, String> toolNameMapper, BiFunction<McpClient, ToolSpecification, ToolSpecification> toolSpecificationMapper) protectedMcpToolProvider(List<McpClient> mcpClients, boolean failIfOneServerFails, BiPredicate<McpClient, ToolSpecification> mcpToolsFilter, Function<ToolExecutor, ToolExecutor> toolWrapper, McpResourcesAsToolsPresenter resourcesAsToolsPresenter, BiFunction<McpClient, ToolSpecification, String> toolNameMapper, BiFunction<McpClient, ToolSpecification, ToolSpecification> toolSpecificationMapper) -
Uses of ToolExecutor in dev.langchain4j.mcp.resourcesastools
Methods in dev.langchain4j.mcp.resourcesastools that return ToolExecutorModifier and TypeMethodDescriptionDefaultMcpResourcesAsToolsPresenter.createGetResourceExecutor(List<McpClient> mcpClients) McpResourcesAsToolsPresenter.createGetResourceExecutor(List<McpClient> mcpClients) Create an executor for the tool that gets a particular resource.DefaultMcpResourcesAsToolsPresenter.createListResourcesExecutor(List<McpClient> mcpClients) McpResourcesAsToolsPresenter.createListResourcesExecutor(List<McpClient> mcpClients) Create an executor for the tool that lists available resources. -
Uses of ToolExecutor in dev.langchain4j.service
Methods in dev.langchain4j.service that return types with arguments of type ToolExecutorMethod parameters in dev.langchain4j.service with type arguments of type ToolExecutorModifier and TypeMethodDescriptionAiServiceTokenStreamParameters.Builder.toolExecutors(Map<String, ToolExecutor> toolExecutors) Sets the tool executors.AiServices.tools(Map<ToolSpecification, ToolExecutor> tools) Configures the tools that the LLM can use. -
Uses of ToolExecutor in dev.langchain4j.service.tool
Classes in dev.langchain4j.service.tool that implement ToolExecutorMethods in dev.langchain4j.service.tool that return ToolExecutorMethods in dev.langchain4j.service.tool that return types with arguments of type ToolExecutorModifier and TypeMethodDescriptionToolService.toolExecutors()ToolServiceContext.toolExecutors()ToolProviderResult.tools()Methods in dev.langchain4j.service.tool with parameters of type ToolExecutorModifier and TypeMethodDescriptionToolProviderResult.Builder.add(ToolSpecification tool, ToolExecutor executor) static ToolExecutionResultToolService.executeWithErrorHandling(ToolExecutionRequest toolRequest, ToolExecutor toolExecutor, InvocationContext invocationContext, ToolArgumentsErrorHandler argumentsErrorHandler, ToolExecutionErrorHandler executionErrorHandler) Method parameters in dev.langchain4j.service.tool with type arguments of type ToolExecutorModifier and TypeMethodDescriptionToolProviderResult.Builder.addAll(Map<ToolSpecification, ToolExecutor> tools) ToolService.executeInferenceAndToolsLoop(ChatResponse chatResponse, ChatRequestParameters parameters, List<ChatMessage> messages, ChatModel chatModel, ChatMemory chatMemory, InvocationContext invocationContext, Map<String, ToolExecutor> toolExecutors, boolean isReturnTypeResult, AiServiceListenerRegistrar aiServiceListenerRegistrar) voidToolService.tools(Map<ToolSpecification, ToolExecutor> tools) Constructor parameters in dev.langchain4j.service.tool with type arguments of type ToolExecutorModifierConstructorDescriptionToolServiceContext(List<ToolSpecification> toolSpecifications, Map<String, ToolExecutor> toolExecutors)