Uses of Interface
dev.langchain4j.service.tool.ToolExecutor
Packages that use ToolExecutor
Package
Description
-
Uses of ToolExecutor in dev.langchain4j.agentic.agent
Method parameters in dev.langchain4j.agentic.agent with type arguments of type ToolExecutorModifier and TypeMethodDescriptionAgentBuilder.tools(Map<ToolSpecification, ToolExecutor> toolsMap) AgentBuilder.tools(Map<ToolSpecification, ToolExecutor> toolsMap, Set<String> immediateReturnToolNames) -
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.AiServices.tools(Map<ToolSpecification, ToolExecutor> tools, Set<String> immediateReturnToolNames) 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) ToolProviderResult.Builder.add(ToolSpecification tool, ToolExecutor executor, ReturnBehavior returnBehavior) 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) ToolServiceContext.Builder.toolExecutors(Map<String, ToolExecutor> toolExecutors) voidToolService.tools(Map<ToolSpecification, ToolExecutor> tools) voidToolService.tools(Map<ToolSpecification, ToolExecutor> tools, Set<String> immediateReturnToolNames) Constructor parameters in dev.langchain4j.service.tool with type arguments of type ToolExecutorModifierConstructorDescriptionToolServiceContext(List<ToolSpecification> toolSpecifications, Map<String, ToolExecutor> toolExecutors)