Uses of Class
dev.langchain4j.service.tool.ToolExecutionResult.Builder
Packages that use ToolExecutionResult.Builder
-
Uses of ToolExecutionResult.Builder in dev.langchain4j.service.tool
Methods in dev.langchain4j.service.tool that return ToolExecutionResult.BuilderModifier and TypeMethodDescriptionToolExecutionResult.Builder.attributes(Map<String, Object> attributes) Sets attributes associated with the tool execution.static ToolExecutionResult.BuilderToolExecutionResult.builder()ToolExecutionResult.Builder.isError(boolean isError) Sets whether the tool execution resulted in an error.Sets the raw object returned by the tool method.ToolExecutionResult.Builder.resultContents(List<Content> resultContents) Sets the contents of the tool execution result.ToolExecutionResult.Builder.resultText(String resultText) Sets the result as a text string.ToolExecutionResult.Builder.resultTextSupplier(Supplier<String> resultTextSupplier) Sets a supplier for lazy calculation of the result text.Constructors in dev.langchain4j.service.tool with parameters of type ToolExecutionResult.Builder