Class ToolExecution

java.lang.Object
dev.langchain4j.service.tool.ToolExecution

public class ToolExecution extends Object
Represents the execution of a tool, including the request and the result.
  • Method Details

    • request

      public ToolExecutionRequest request()
      Returns the request of the tool execution.
      Returns:
      the request of the tool execution.
    • result

      public String result()
      Returns the result of the tool execution.
      Returns:
      the result of the tool execution.
    • equals

      public boolean equals(Object another)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • builder

      public static ToolExecution.Builder builder()