类的使用
dev.langchain4j.agent.tool.ToolExecutionRequest
使用ToolExecutionRequest的程序包
-
dev.langchain4j.agent.tool中ToolExecutionRequest的使用
修饰符和类型方法说明ToolExecutionRequest.Builder.build()Returns aToolExecutionRequestbuilt from the parameters previously set.修饰符和类型方法说明static <T> TToolExecutionRequestUtil.argument(ToolExecutionRequest toolExecutionRequest, String name) Get an argument value from ToolExecutionRequest. -
dev.langchain4j.data.message中ToolExecutionRequest的使用
返回变量类型为ToolExecutionRequest的类型的dev.langchain4j.data.message中的方法修饰符和类型方法说明static 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.类型变量类型为ToolExecutionRequest的dev.langchain4j.data.message中的方法参数修饰符和类型方法说明static AiMessageAiMessage.aiMessage(List<ToolExecutionRequest> toolExecutionRequests) Create a newAiMessagewith the given tool execution requests.static AiMessageAiMessage.from(List<ToolExecutionRequest> toolExecutionRequests) Create a newAiMessagewith the given tool execution requests.类型变量类型为ToolExecutionRequest的dev.langchain4j.data.message中的构造器参数限定符构造器说明AiMessage(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. -
dev.langchain4j.model中ToolExecutionRequest的使用
修饰符和类型方法说明default intTokenizer.estimateTokenCountInForcefulToolExecutionRequest(ToolExecutionRequest toolExecutionRequest) Estimates the count of tokens in the given tool execution request.类型变量类型为ToolExecutionRequest的dev.langchain4j.model中的方法参数修饰符和类型方法说明intTokenizer.estimateTokenCountInToolExecutionRequests(Iterable<ToolExecutionRequest> toolExecutionRequests) Estimates the count of tokens in the given tool execution requests.