Class GitHubSource

java.lang.Object
dev.langchain4j.data.document.source.github.GitHubSource
All Implemented Interfaces:
DocumentSource

public class GitHubSource extends Object implements DocumentSource
  • Constructor Details

    • GitHubSource

      public GitHubSource(org.kohsuke.github.GHContent content) throws IOException
      Throws:
      IOException
  • Method Details

    • inputStream

      public InputStream inputStream()
      Description copied from interface: DocumentSource
      Provides an InputStream to read the content of the document. This method can be implemented to read from various sources like a local file or a network connection.
      Specified by:
      inputStream in interface DocumentSource
      Returns:
      An InputStream from which the document content can be read.
    • metadata

      public Metadata metadata()
      Description copied from interface: DocumentSource
      Returns the metadata associated with the source of the document. This could include details such as the source location, date of creation, owner, etc.
      Specified by:
      metadata in interface DocumentSource
      Returns:
      A Metadata object containing information associated with the source of the document.