Skip to main content

GitHub

GitHub is a developer platform that allows developers to create, store, manage and share their code. It uses Git software, providing the distributed version control of Git plus access control, bug tracking, software feature requests, task management, continuous integration, and wikis for every project.

Installation and Setupโ€‹

To access the GitHub API, you need a personal access token.

Document Loaderโ€‹

There are two document loaders available for GitHub.

See a usage example.

from langchain_community.document_loaders import GitHubIssuesLoader, GithubFileLoader

Tools/Toolkitโ€‹

GitHubToolkitโ€‹

The GitHub toolkit contains tools that enable an LLM agent to interact with a GitHub repository.

The toolkit is a wrapper for the PyGitHub library.

from langchain_community.agent_toolkits.github.toolkit import GitHubToolkit
API Reference:GitHubToolkit

Learn more in the example notebook.

GitHubActionโ€‹

Tool for interacting with the GitHub API.

from langchain_community.tools.github.tool import GitHubAction
API Reference:GitHubAction

Was this page helpful?