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 aToolExecutionRequest
built from the parameters previously set. -
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 AiMessage
AiMessage.aiMessage
(ToolExecutionRequest... toolExecutionRequests) Create a newAiMessage
with the given tool execution requests.static AiMessage
AiMessage.from
(ToolExecutionRequest... toolExecutionRequests) Create a newAiMessage
with the given tool execution requests.static ToolExecutionResultMessage
ToolExecutionResultMessage.from
(ToolExecutionRequest request, String toolExecutionResult) Creates aToolExecutionResultMessage
from aToolExecutionRequest
and the result of the tool execution.static ToolExecutionResultMessage
ToolExecutionResultMessage.toolExecutionResultMessage
(ToolExecutionRequest request, String toolExecutionResult) Creates aToolExecutionResultMessage
from aToolExecutionRequest
and the result of the tool execution.Method parameters in dev.langchain4j.data.message with type arguments of type ToolExecutionRequestModifier and TypeMethodDescriptionstatic AiMessage
AiMessage.aiMessage
(String text, List<ToolExecutionRequest> toolExecutionRequests) Create a newAiMessage
with the given text and tool execution requests.static AiMessage
AiMessage.aiMessage
(List<ToolExecutionRequest> toolExecutionRequests) Create a newAiMessage
with the given tool execution requests.static AiMessage
AiMessage.from
(String text, List<ToolExecutionRequest> toolExecutionRequests) Create a newAiMessage
with the given text and tool execution requests.static AiMessage
AiMessage.from
(List<ToolExecutionRequest> toolExecutionRequests) Create a newAiMessage
with the given tool execution requests.Constructor parameters in dev.langchain4j.data.message with type arguments of type ToolExecutionRequestModifierConstructorDescriptionAiMessage
(String text, List<ToolExecutionRequest> toolExecutionRequests) Create a newAiMessage
with the given text and tool execution requests.AiMessage
(List<ToolExecutionRequest> toolExecutionRequests) Create a newAiMessage
with the given tool execution requests. -
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 as a String. -
Uses of ToolExecutionRequest in dev.langchain4j.model
Methods in dev.langchain4j.model with parameters of type ToolExecutionRequestModifier and TypeMethodDescriptiondefault int
Tokenizer.estimateTokenCountInForcefulToolExecutionRequest
(ToolExecutionRequest toolExecutionRequest) Estimates the count of tokens in the given tool execution request.Method parameters in dev.langchain4j.model with type arguments of type ToolExecutionRequestModifier and TypeMethodDescriptionint
Tokenizer.estimateTokenCountInToolExecutionRequests
(Iterable<ToolExecutionRequest> toolExecutionRequests) Estimates the count of tokens in the given tool execution requests. -
Uses of ToolExecutionRequest in dev.langchain4j.model.azure
Methods in dev.langchain4j.model.azure with parameters of type ToolExecutionRequestModifier and TypeMethodDescriptionint
AzureOpenAiTokenizer.estimateTokenCountInForcefulToolExecutionRequest
(ToolExecutionRequest toolExecutionRequest) Method parameters in dev.langchain4j.model.azure with type arguments of type ToolExecutionRequestModifier and TypeMethodDescriptionint
AzureOpenAiTokenizer.estimateTokenCountInToolExecutionRequests
(Iterable<ToolExecutionRequest> toolExecutionRequests) -
Uses of ToolExecutionRequest in dev.langchain4j.model.googleai
Method parameters in dev.langchain4j.model.googleai with type arguments of type ToolExecutionRequestModifier and TypeMethodDescriptionint
GoogleAiGeminiTokenizer.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 ToolExecutionRequest
MistralAiMapper.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.model.openai
Methods in dev.langchain4j.model.openai with parameters of type ToolExecutionRequestModifier and TypeMethodDescriptionint
OpenAiTokenizer.estimateTokenCountInForcefulToolExecutionRequest
(ToolExecutionRequest toolExecutionRequest) Method parameters in dev.langchain4j.model.openai with type arguments of type ToolExecutionRequestModifier and TypeMethodDescriptionint
OpenAiTokenizer.estimateTokenCountInToolExecutionRequests
(Iterable<ToolExecutionRequest> toolExecutionRequests) -
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
Methods in dev.langchain4j.service.tool that return ToolExecutionRequestModifier and TypeMethodDescriptionToolExecution.request()
Returns the request of the tool execution.Methods in dev.langchain4j.service.tool with parameters of type ToolExecutionRequestModifier and TypeMethodDescriptionHallucinatedToolNameStrategy.apply
(ToolExecutionRequest toolExecutionRequest) DefaultToolExecutor.execute
(ToolExecutionRequest toolExecutionRequest, Object memoryId) ToolExecutor.execute
(ToolExecutionRequest toolExecutionRequest, Object memoryId) Executes a tool requests.ToolExecution.Builder.request
(ToolExecutionRequest request) Method parameters in dev.langchain4j.service.tool with type arguments of type ToolExecutionRequestModifier and TypeMethodDescriptionvoid
ToolService.hallucinatedToolNameStrategy
(Function<ToolExecutionRequest, ToolExecutionResultMessage> toolHallucinationStrategy) Constructors in dev.langchain4j.service.tool with parameters of type ToolExecutionRequestModifierConstructorDescriptionDefaultToolExecutor
(Object object, ToolExecutionRequest toolExecutionRequest)