Class TextFile

java.lang.Object
dev.langchain4j.data.text.TextFile

public class TextFile extends Object
  • Method Details

    • builder

      public static TextFile.Builder builder()
      Create a new TextFile.Builder.
      Returns:
      the new TextFile.Builder.
    • url

      public URI url()
      Get the url of the text file.
      Returns:
      the url of the text file, or null if not set.
    • base64Data

      public String base64Data()
      Get the base64 data of the text file content.
      Returns:
      the base64 data of the text file content, or null if not set.
    • mimeType

      public String mimeType()
      Get the mime type of the text file.
      Returns:
      the mime type of the text file, or null if not set.
    • equals

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

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

      public String toString()
      Overrides:
      toString in class Object