Class TextFileContent

java.lang.Object
dev.langchain4j.data.message.TextFileContent
All Implemented Interfaces:
Content

public class TextFileContent extends Object implements Content
  • Constructor Details

    • TextFileContent

      public TextFileContent(URI url)
      Create a new TextFileContent from the given url.
      Parameters:
      url - the url of the text file.
    • TextFileContent

      public TextFileContent(String url)
      Create a new TextFileContent from the given url.
      Parameters:
      url - the url of the text file.
    • TextFileContent

      public TextFileContent(String base64Data, String mimeType)
      Create a new TextFileContent from the given base64 data and mime type.
      Parameters:
      base64Data - the base64 data of the text file.
      mimeType - the mime type of the text file.
    • TextFileContent

      public TextFileContent(TextFile textFile)
      Create a new TextFileContent from the given text file.
      Parameters:
      textFile - the text file.
  • Method Details