Uses of Class
dev.langchain4j.agent.tool.ToolExecutionRequest
Packages that use ToolExecutionRequest
Package
Description
-
Uses of ToolExecutionRequest in dev.langchain4j.agent.tool
Methods in dev.langchain4j.agent.tool that return ToolExecutionRequestModifier and TypeMethodDescriptionToolExecutionRequest.Builder.build()Returns aToolExecutionRequestbuilt from the parameters previously set. -
Uses of ToolExecutionRequest in dev.langchain4j.agentic.agent
Method parameters in dev.langchain4j.agentic.agent with type arguments of type ToolExecutionRequestModifier and TypeMethodDescriptionAgentBuilder.hallucinatedToolNameStrategy(Function<ToolExecutionRequest, ToolExecutionResultMessage> hallucinatedToolNameStrategy) -
Uses of ToolExecutionRequest in dev.langchain4j.data.message
Methods in dev.langchain4j.data.message that return types with arguments of type ToolExecutionRequestModifier and TypeMethodDescriptionAiMessage.toolExecutionRequests()Get the tool execution requests of the message.Methods in dev.langchain4j.data.message with parameters of type ToolExecutionRequestModifier and TypeMethodDescriptionstatic AiMessageAiMessage.aiMessage(ToolExecutionRequest... toolExecutionRequests) Create a newAiMessagewith the given tool execution requests.static AiMessageAiMessage.from(ToolExecutionRequest... toolExecutionRequests) Create a newAiMessagewith the given tool execution requests.static ToolExecutionResultMessageToolExecutionResultMessage.from(ToolExecutionRequest request, String toolExecutionResult) Creates aToolExecutionResultMessagefrom aToolExecutionRequestand the result of the tool execution.static ToolExecutionResultMessageToolExecutionResultMessage.toolExecutionResultMessage(ToolExecutionRequest request, String toolExecutionResult) Creates aToolExecutionResultMessagefrom aToolExecutionRequestand the result of the tool execution.Method parameters in dev.langchain4j.data.message with type arguments of type ToolExecutionRequestModifier and TypeMethodDescriptionstatic AiMessageAiMessage.aiMessage(String text, List<ToolExecutionRequest> toolExecutionRequests) Create a newAiMessagewith the given text and tool execution requests.static AiMessageAiMessage.aiMessage(List<ToolExecutionRequest> toolExecutionRequests) Create a newAiMessagewith the given tool execution requests.static AiMessageAiMessage.from(String text, List<ToolExecutionRequest> toolExecutionRequests) Create a newAiMessagewith the given text and tool execution requests.static AiMessageAiMessage.from(List<ToolExecutionRequest> toolExecutionRequests) Create a newAiMessagewith the given tool execution requests.AiMessage.Builder.toolExecutionRequests(List<ToolExecutionRequest> toolExecutionRequests) Constructor parameters in dev.langchain4j.data.message with type arguments of type ToolExecutionRequestModifierConstructorDescriptionAiMessage(String text, List<ToolExecutionRequest> toolExecutionRequests) Create a newAiMessagewith the given text and tool execution requests.AiMessage(List<ToolExecutionRequest> toolExecutionRequests) Create a newAiMessagewith the given tool execution requests. -
Uses of ToolExecutionRequest in dev.langchain4j.internal
Methods in dev.langchain4j.internal that return types with arguments of type ToolExecutionRequest -
Uses of ToolExecutionRequest in dev.langchain4j.mcp
Methods in dev.langchain4j.mcp with parameters of type ToolExecutionRequestModifier and TypeMethodDescriptionMcpToolExecutor.execute(ToolExecutionRequest executionRequest, Object memoryId) McpToolExecutor.executeWithContext(ToolExecutionRequest executionRequest, InvocationContext context) -
Uses of ToolExecutionRequest in dev.langchain4j.mcp.client
Methods in dev.langchain4j.mcp.client with parameters of type ToolExecutionRequestModifier and TypeMethodDescriptionDefaultMcpClient.executeTool(ToolExecutionRequest executionRequest) McpClient.executeTool(ToolExecutionRequest executionRequest) Executes a tool on the MCP server and returns the result. -
Uses of ToolExecutionRequest in dev.langchain4j.model.chat.response
Methods in dev.langchain4j.model.chat.response that return ToolExecutionRequestModifier and TypeMethodDescriptionCompleteToolCall.toolExecutionRequest()A fully constructedToolExecutionRequestthat is ready for execution.Constructors in dev.langchain4j.model.chat.response with parameters of type ToolExecutionRequestModifierConstructorDescriptionCompleteToolCall(int index, ToolExecutionRequest toolExecutionRequest) -
Uses of ToolExecutionRequest in dev.langchain4j.model.googleai
Method parameters in dev.langchain4j.model.googleai with type arguments of type ToolExecutionRequestModifier and TypeMethodDescriptionintGoogleAiGeminiTokenCountEstimator.estimateTokenCountInToolExecutionRequests(Iterable<ToolExecutionRequest> toolExecutionRequests) -
Uses of ToolExecutionRequest in dev.langchain4j.model.mistralai.internal.mapper
Methods in dev.langchain4j.model.mistralai.internal.mapper that return ToolExecutionRequestModifier and TypeMethodDescriptionstatic ToolExecutionRequestMistralAiMapper.toToolExecutionRequest(MistralAiToolCall mistralAiToolCall) Methods in dev.langchain4j.model.mistralai.internal.mapper that return types with arguments of type ToolExecutionRequestModifier and TypeMethodDescriptionstatic List<ToolExecutionRequest> MistralAiMapper.toToolExecutionRequests(List<MistralAiToolCall> mistralAiToolCalls) -
Uses of ToolExecutionRequest in dev.langchain4j.observability.api.event
Methods in dev.langchain4j.observability.api.event that return ToolExecutionRequestModifier and TypeMethodDescriptionToolExecutedEvent.request()Gets theToolExecutionRequestthat initiated the tool execution.ToolExecutedEvent.ToolExecutedEventBuilder.request()Methods in dev.langchain4j.observability.api.event with parameters of type ToolExecutionRequestModifier and TypeMethodDescriptionToolExecutedEvent.ToolExecutedEventBuilder.request(ToolExecutionRequest request) Sets the tool execution request. -
Uses of ToolExecutionRequest in dev.langchain4j.observability.event
Methods in dev.langchain4j.observability.event that return ToolExecutionRequest -
Uses of ToolExecutionRequest in dev.langchain4j.service
Method parameters in dev.langchain4j.service with type arguments of type ToolExecutionRequestModifier and TypeMethodDescriptionAiServices.hallucinatedToolNameStrategy(Function<ToolExecutionRequest, ToolExecutionResultMessage> hallucinatedToolNameStrategy) Configures the strategy to be used when the LLM hallucinates a tool name (i.e., attempts to call a nonexistent tool). -
Uses of ToolExecutionRequest in dev.langchain4j.service.tool
Classes in dev.langchain4j.service.tool that implement interfaces with type arguments of type ToolExecutionRequestMethods in dev.langchain4j.service.tool that return ToolExecutionRequestModifier and TypeMethodDescriptionBeforeToolExecution.request()Returns the tool execution request that is about to be executed.ToolExecution.request()Returns the request of the tool execution.ToolErrorContext.toolExecutionRequest()Methods in dev.langchain4j.service.tool with parameters of type ToolExecutionRequestModifier and TypeMethodDescriptionHallucinatedToolNameStrategy.apply(ToolExecutionRequest toolExecutionRequest) ToolService.applyToolHallucinationStrategy(ToolExecutionRequest toolRequest) DefaultToolExecutor.execute(ToolExecutionRequest request, Object memoryId) ToolExecutor.execute(ToolExecutionRequest request, Object memoryId) Executes a tool request.DefaultToolExecutor.executeWithContext(ToolExecutionRequest request, InvocationContext context) default ToolExecutionResultToolExecutor.executeWithContext(ToolExecutionRequest request, InvocationContext context) Executes a tool request.static ToolExecutionResultToolService.executeWithErrorHandling(ToolExecutionRequest toolRequest, ToolExecutor toolExecutor, InvocationContext invocationContext, ToolArgumentsErrorHandler argumentsErrorHandler, ToolExecutionErrorHandler executionErrorHandler) BeforeToolExecution.Builder.request(ToolExecutionRequest request) ToolExecution.Builder.request(ToolExecutionRequest request) ToolErrorContext.Builder.toolExecutionRequest(ToolExecutionRequest toolExecutionRequest) Method parameters in dev.langchain4j.service.tool with type arguments of type ToolExecutionRequestModifier and TypeMethodDescriptionvoidToolService.hallucinatedToolNameStrategy(Function<ToolExecutionRequest, ToolExecutionResultMessage> toolHallucinationStrategy) Constructors in dev.langchain4j.service.tool with parameters of type ToolExecutionRequestModifierConstructorDescriptionDefaultToolExecutor(Object object, ToolExecutionRequest toolExecutionRequest)