Uses of Class
dev.langchain4j.data.message.ToolExecutionResultMessage
Packages that use ToolExecutionResultMessage
Package
Description
-
Uses of ToolExecutionResultMessage in dev.langchain4j.data.message
Methods in dev.langchain4j.data.message that return ToolExecutionResultMessageModifier and TypeMethodDescriptionstatic ToolExecutionResultMessage
ToolExecutionResultMessage.from
(ToolExecutionRequest request, String toolExecutionResult) Creates aToolExecutionResultMessage
from aToolExecutionRequest
and the result of the tool execution.static ToolExecutionResultMessage
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.static ToolExecutionResultMessage
ToolExecutionResultMessage.toolExecutionResultMessage
(String id, String toolName, String toolExecutionResult) Creates aToolExecutionResultMessage
from aToolExecutionRequest
and the result of the tool execution. -
Uses of ToolExecutionResultMessage in dev.langchain4j.service
Method parameters in dev.langchain4j.service with type arguments of type ToolExecutionResultMessageModifier 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 ToolExecutionResultMessage in dev.langchain4j.service.tool
Methods in dev.langchain4j.service.tool that return ToolExecutionResultMessageModifier and TypeMethodDescriptionHallucinatedToolNameStrategy.apply
(ToolExecutionRequest toolExecutionRequest) Method parameters in dev.langchain4j.service.tool with type arguments of type ToolExecutionResultMessageModifier and TypeMethodDescriptionvoid
ToolService.hallucinatedToolNameStrategy
(Function<ToolExecutionRequest, ToolExecutionResultMessage> toolHallucinationStrategy)