Uses of Class
dev.langchain4j.agent.tool.ToolExecutionRequest
Packages that use ToolExecutionRequest
-
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.Methods in dev.langchain4j.agent.tool with parameters of type ToolExecutionRequestModifier and TypeMethodDescriptionstatic <T> T
ToolExecutionRequestUtil.argument
(ToolExecutionRequest toolExecutionRequest, String name) Get an argument value from ToolExecutionRequest. -
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
(List<ToolExecutionRequest> toolExecutionRequests) Create a newAiMessage
with the given 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
(List<ToolExecutionRequest> toolExecutionRequests) Create a newAiMessage
with the given tool execution requests. -
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.