BaseGitHubLoader#
- class langchain_community.document_loaders.github.BaseGitHubLoader[source]#
Bases:
BaseLoader
,BaseModel
,ABC
Load GitHub repository Issues.
Create a new model by parsing and validating input data from keyword arguments.
Raises ValidationError if the input data cannot be parsed to form a valid model.
- param access_token: str [Required]#
Personal access token - see settings/tokens
- param github_api_url: str = 'https://api.github.com'#
URL of GitHub API
- param repo: str [Required]#
Name of repository
- async alazy_load() AsyncIterator[Document] #
A lazy loader for Documents.
- Return type:
AsyncIterator[Document]
- load_and_split(text_splitter: TextSplitter | None = None) List[Document] #
Load Documents and split into chunks. Chunks are returned as Documents.
Do not override this method. It should be considered to be deprecated!
- Parameters:
text_splitter (Optional[TextSplitter]) – TextSplitter instance to use for splitting documents. Defaults to RecursiveCharacterTextSplitter.
- Returns:
List of Documents.
- Return type:
List[Document]
- property headers: Dict[str, str]#