Uses of Class
dev.langchain4j.agent.tool.ToolExecutionRequest
Package
Description
-
Uses of ToolExecutionRequest in dev.langchain4j.agent.tool
Modifier and TypeMethodDescriptionToolExecutionRequest.Builder.build()
Returns aToolExecutionRequest
built from the parameters previously set. -
Uses of ToolExecutionRequest in dev.langchain4j.data.message
Modifier and TypeMethodDescriptionAiMessage.toolExecutionRequests()
Get the tool execution requests of the message.Modifier 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.Modifier 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.ModifierConstructorDescriptionAiMessage
(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.model
Modifier and TypeMethodDescriptiondefault int
Tokenizer.estimateTokenCountInForcefulToolExecutionRequest
(ToolExecutionRequest toolExecutionRequest) Estimates the count of tokens in the given tool execution request.Modifier 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
Modifier and TypeMethodDescriptionint
AzureOpenAiTokenizer.estimateTokenCountInForcefulToolExecutionRequest
(ToolExecutionRequest toolExecutionRequest) Modifier and TypeMethodDescriptionint
AzureOpenAiTokenizer.estimateTokenCountInToolExecutionRequests
(Iterable<ToolExecutionRequest> toolExecutionRequests) -
Uses of ToolExecutionRequest in dev.langchain4j.model.googleai
Modifier and TypeMethodDescriptionint
GoogleAiGeminiTokenizer.estimateTokenCountInToolExecutionRequests
(Iterable<ToolExecutionRequest> toolExecutionRequests) -
Uses of ToolExecutionRequest in dev.langchain4j.model.mistralai.internal.mapper
Modifier and TypeMethodDescriptionstatic ToolExecutionRequest
MistralAiMapper.toToolExecutionRequest
(MistralAiToolCall mistralAiToolCall) Modifier and TypeMethodDescriptionstatic List
<ToolExecutionRequest> MistralAiMapper.toToolExecutionRequests
(List<MistralAiToolCall> mistralAiToolCalls) -
Uses of ToolExecutionRequest in dev.langchain4j.model.openai
Modifier and TypeMethodDescriptionint
OpenAiTokenizer.estimateTokenCountInForcefulToolExecutionRequest
(ToolExecutionRequest toolExecutionRequest) Modifier and TypeMethodDescriptionint
OpenAiTokenizer.estimateTokenCountInToolExecutionRequests
(Iterable<ToolExecutionRequest> toolExecutionRequests) -
Uses of ToolExecutionRequest in dev.langchain4j.service.tool
Modifier and TypeMethodDescriptionToolExecution.request()
Returns the request of the tool execution.Modifier and TypeMethodDescriptionDefaultToolExecutor.execute
(ToolExecutionRequest toolExecutionRequest, Object memoryId) ToolExecutor.execute
(ToolExecutionRequest toolExecutionRequest, Object memoryId) Executes a tool requests.ToolExecution.Builder.request
(ToolExecutionRequest request) ModifierConstructorDescriptionDefaultToolExecutor
(Object object, ToolExecutionRequest toolExecutionRequest)