Skip to main content

Class: GithubRepoLoader

document_loaders.GithubRepoLoader

Hierarchy​

Implements​

Constructors​

constructor​

β€’ new GithubRepoLoader(githubUrl, Β«destructuredΒ»?)

Parameters​

NameType
githubUrlstring
Β«destructuredΒ»GithubRepoLoaderParams

Overrides​

BaseDocumentLoader.constructor

Defined in​

langchain/src/document_loaders/github.ts:50

Properties​

accessToken​

β€’ Optional accessToken: string

Implementation of​

GithubRepoLoaderParams.accessToken

Defined in​

langchain/src/document_loaders/github.ts:48


branch​

β€’ branch: string

Implementation of​

GithubRepoLoaderParams.branch

Defined in​

langchain/src/document_loaders/github.ts:42


recursive​

β€’ recursive: boolean

Implementation of​

GithubRepoLoaderParams.recursive

Defined in​

langchain/src/document_loaders/github.ts:44


unknown​

β€’ unknown: UnknownHandling

Implementation of​

GithubRepoLoaderParams.unknown

Defined in​

langchain/src/document_loaders/github.ts:46

Methods​

load​

β–Έ load(): Promise<Document[]>

Returns​

Promise<Document[]>

Overrides​

BaseDocumentLoader.load

Defined in​

langchain/src/document_loaders/github.ts:94


loadAndSplit​

β–Έ loadAndSplit(splitter?): Promise<Document[]>

Parameters​

NameType
splitterTextSplitter

Returns​

Promise<Document[]>

Inherited from​

BaseDocumentLoader.loadAndSplit

Defined in​

langchain/src/document_loaders/base.ts:15