vendor_connectors.github.tools
AI framework tools for GitHub operations.
This module provides tools for GitHub operations that work with multiple AI agent frameworks.
Module Contents
Section titled “Module Contents”Classes
Section titled “Classes”ListReposSchema | Schema for listing GitHub repositories. |
|---|---|
GetRepoSchema | Schema for getting a GitHub repository. |
ListTeamsSchema | Schema for listing GitHub teams. |
GetTeamSchema | Schema for getting a GitHub team. |
ListOrgMembersSchema | Schema for listing GitHub organization members. |
GetRepositoryFileSchema | Schema for getting a file from a GitHub repository. |
Functions
Section titled “Functions”list_repositories | List repositories in a GitHub organization. |
|---|---|
get_repository | Get details of a specific GitHub repository. |
list_teams | List teams in a GitHub organization. |
get_team | Get details of a specific GitHub team. |
list_org_members | List members of a GitHub organization. |
get_repository_file | Get a file from a GitHub repository. |
get_langchain_tools | Get all GitHub tools as LangChain StructuredTools. |
get_crewai_tools | Get all GitHub tools as CrewAI tools. |
get_strands_tools | Get all GitHub tools as plain Python functions for AWS Strands. |
get_tools | Get GitHub tools for the specified or auto-detected framework. |
TOOL_DEFINITIONS |
|---|
class vendor_connectors.github.tools.ListReposSchema
Section titled “class vendor_connectors.github.tools.ListReposSchema”Bases: pydantic.BaseModel
Schema for listing GitHub repositories.
github_owner : str
Section titled “github_owner : str”‘Field(…)’
type_filter : str
Section titled “type_filter : str”‘Field(…)’
include_branches : bool
Section titled “include_branches : bool”‘Field(…)’
github_token : str | None
Section titled “github_token : str | None”‘Field(…)’
class vendor_connectors.github.tools.GetRepoSchema
Section titled “class vendor_connectors.github.tools.GetRepoSchema”Bases: pydantic.BaseModel
Schema for getting a GitHub repository.
github_owner : str
Section titled “github_owner : str”‘Field(…)’
repo_name : str
Section titled “repo_name : str”‘Field(…)’
github_token : str | None
Section titled “github_token : str | None”‘Field(…)’
class vendor_connectors.github.tools.ListTeamsSchema
Section titled “class vendor_connectors.github.tools.ListTeamsSchema”Bases: pydantic.BaseModel
Schema for listing GitHub teams.
github_owner : str
Section titled “github_owner : str”‘Field(…)’
include_members : bool
Section titled “include_members : bool”‘Field(…)’
include_repos : bool
Section titled “include_repos : bool”‘Field(…)’
github_token : str | None
Section titled “github_token : str | None”‘Field(…)’
class vendor_connectors.github.tools.GetTeamSchema
Section titled “class vendor_connectors.github.tools.GetTeamSchema”Bases: pydantic.BaseModel
Schema for getting a GitHub team.
github_owner : str
Section titled “github_owner : str”‘Field(…)’
team_slug : str
Section titled “team_slug : str”‘Field(…)’
github_token : str | None
Section titled “github_token : str | None”‘Field(…)’
class vendor_connectors.github.tools.ListOrgMembersSchema
Section titled “class vendor_connectors.github.tools.ListOrgMembersSchema”Bases: pydantic.BaseModel
Schema for listing GitHub organization members.
github_owner : str
Section titled “github_owner : str”‘Field(…)’
‘Field(…)’
include_pending : bool
Section titled “include_pending : bool”‘Field(…)’
github_token : str | None
Section titled “github_token : str | None”‘Field(…)’
class vendor_connectors.github.tools.GetRepositoryFileSchema
Section titled “class vendor_connectors.github.tools.GetRepositoryFileSchema”Bases: pydantic.BaseModel
Schema for getting a file from a GitHub repository.
github_owner : str
Section titled “github_owner : str”‘Field(…)’
github_repo : str
Section titled “github_repo : str”‘Field(…)’
file_path : str
Section titled “file_path : str”‘Field(…)’
github_branch : str | None
Section titled “github_branch : str | None”‘Field(…)’
github_token : str | None
Section titled “github_token : str | None”‘Field(…)’
vendor_connectors.github.tools.list_repositories(github_owner: str, type_filter: str = ‘all’, include_branches: bool = False, github_token: str | None = None, **kwargs) → list[dict[str, Any]]
Section titled “vendor_connectors.github.tools.list_repositories(github_owner: str, type_filter: str = ‘all’, include_branches: bool = False, github_token: str | None = None, **kwargs) → list[dict[str, Any]]”List repositories in a GitHub organization.
Args: github_owner: Organization name. type_filter: Repository type filter. include_branches: Whether to include branch info. github_token: Optional GitHub token.
Returns: List of repository data.
vendor_connectors.github.tools.get_repository(github_owner: str, repo_name: str, github_token: str | None = None, **kwargs) → dict[str, Any]
Section titled “vendor_connectors.github.tools.get_repository(github_owner: str, repo_name: str, github_token: str | None = None, **kwargs) → dict[str, Any]”Get details of a specific GitHub repository.
Args: github_owner: Organization name. repo_name: Repository name. github_token: Optional GitHub token.
Returns: Dict with repository data and status.
vendor_connectors.github.tools.list_teams(github_owner: str, include_members: bool = False, include_repos: bool = False, github_token: str | None = None, **kwargs) → list[dict[str, Any]]
Section titled “vendor_connectors.github.tools.list_teams(github_owner: str, include_members: bool = False, include_repos: bool = False, github_token: str | None = None, **kwargs) → list[dict[str, Any]]”List teams in a GitHub organization.
Args: github_owner: Organization name. include_members: Whether to include members. include_repos: Whether to include repos. github_token: Optional GitHub token.
Returns: List of team data.
vendor_connectors.github.tools.get_team(github_owner: str, team_slug: str, github_token: str | None = None, **kwargs) → dict[str, Any]
Section titled “vendor_connectors.github.tools.get_team(github_owner: str, team_slug: str, github_token: str | None = None, **kwargs) → dict[str, Any]”Get details of a specific GitHub team.
Args: github_owner: Organization name. team_slug: Team slug. github_token: Optional GitHub token.
Returns: Dict with team data and status.
vendor_connectors.github.tools.list_org_members(github_owner: str, role: str = ‘member’, include_pending: bool = False, github_token: str | None = None, **kwargs) → list[dict[str, Any]]
Section titled “vendor_connectors.github.tools.list_org_members(github_owner: str, role: str = ‘member’, include_pending: bool = False, github_token: str | None = None, **kwargs) → list[dict[str, Any]]”List members of a GitHub organization.
Args: github_owner: Organization name. role: Role filter. include_pending: Whether to include pending invites. github_token: Optional GitHub token.
Returns: List of member data.
vendor_connectors.github.tools.get_repository_file(github_owner: str, github_repo: str, file_path: str, github_branch: str | None = None, github_token: str | None = None, **kwargs) → dict[str, Any]
Section titled “vendor_connectors.github.tools.get_repository_file(github_owner: str, github_repo: str, file_path: str, github_branch: str | None = None, github_token: str | None = None, **kwargs) → dict[str, Any]”Get a file from a GitHub repository.
Args: github_owner: Organization name. github_repo: Repository name. file_path: File path. github_branch: Optional branch name. github_token: Optional GitHub token.
Returns: Dict with content, sha, path, and status.
vendor_connectors.github.tools.TOOL_DEFINITIONS
Section titled “vendor_connectors.github.tools.TOOL_DEFINITIONS”None
vendor_connectors.github.tools.get_langchain_tools() → list[Any]
Section titled “vendor_connectors.github.tools.get_langchain_tools() → list[Any]”Get all GitHub tools as LangChain StructuredTools.
vendor_connectors.github.tools.get_crewai_tools() → list[Any]
Section titled “vendor_connectors.github.tools.get_crewai_tools() → list[Any]”Get all GitHub tools as CrewAI tools.
vendor_connectors.github.tools.get_strands_tools() → list[Any]
Section titled “vendor_connectors.github.tools.get_strands_tools() → list[Any]”Get all GitHub tools as plain Python functions for AWS Strands.
vendor_connectors.github.tools.get_tools(framework: str = ‘auto’) → list[Any]
Section titled “vendor_connectors.github.tools.get_tools(framework: str = ‘auto’) → list[Any]”Get GitHub tools for the specified or auto-detected framework.