Optional
accessThe API endpoint URL of the GitHub instance. To be used when you are not targeting github.com, e.g. a GitHub Enterprise instance.
The base URL of the GitHub instance. To be used when you are not targeting github.com, e.g. a GitHub Enterprise instance.
Protected
callerOptional
ignoreOptional
ignoreOptional
maxThe maximum number of concurrent calls that can be made. Defaults to 2.
Optional
maxThe maximum number of retries that can be made for a single call, with an exponential backoff between each attempt. Defaults to 2.
Set to true to recursively process submodules. Is only effective, when recursive=true.
Optional
verboseFetches the files from the GitHub repository and creates Document instances for each file. It also handles error handling based on the unknown handling option.
A promise that resolves to an array of Document instances.
Optional
splitter: BaseDocumentTransformer<DocumentInterface<Record<string, any>>[], DocumentInterface<Record<string, any>>[]>A Promise that resolves with an array of Document instances, each split according to the provided TextSplitter.
Asynchronously streams documents from the entire GitHub repository. It is suitable for situations where processing large repositories in a memory-efficient manner is required.
Protected
shouldDetermines whether a file or directory should be ignored based on its path and type.
The path of the file or directory.
The type of the file or directory.
A boolean indicating whether the file or directory should be ignored.
Deprecated
A class that extends the BaseDocumentLoader and implements the GithubRepoLoaderParams interface. It represents a document loader for loading files from a GitHub repository.