Skip to content

vendor_connectors.github.tools

AI framework tools for GitHub operations.

This module provides tools for GitHub operations that work with multiple AI agent frameworks.

ListReposSchemaSchema for listing GitHub repositories.
GetRepoSchemaSchema for getting a GitHub repository.
ListTeamsSchemaSchema for listing GitHub teams.
GetTeamSchemaSchema for getting a GitHub team.
ListOrgMembersSchemaSchema for listing GitHub organization members.
GetRepositoryFileSchemaSchema for getting a file from a GitHub repository.
list_repositoriesList repositories in a GitHub organization.
get_repositoryGet details of a specific GitHub repository.
list_teamsList teams in a GitHub organization.
get_teamGet details of a specific GitHub team.
list_org_membersList members of a GitHub organization.
get_repository_fileGet a file from a GitHub repository.
get_langchain_toolsGet all GitHub tools as LangChain StructuredTools.
get_crewai_toolsGet all GitHub tools as CrewAI tools.
get_strands_toolsGet all GitHub tools as plain Python functions for AWS Strands.
get_toolsGet 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.

‘Field(…)’

‘Field(…)’

‘Field(…)’

‘Field(…)’

class vendor_connectors.github.tools.GetRepoSchema

Section titled “class vendor_connectors.github.tools.GetRepoSchema”

Bases: pydantic.BaseModel

Schema for getting a GitHub repository.

‘Field(…)’

‘Field(…)’

‘Field(…)’

class vendor_connectors.github.tools.ListTeamsSchema

Section titled “class vendor_connectors.github.tools.ListTeamsSchema”

Bases: pydantic.BaseModel

Schema for listing GitHub teams.

‘Field(…)’

‘Field(…)’

‘Field(…)’

‘Field(…)’

class vendor_connectors.github.tools.GetTeamSchema

Section titled “class vendor_connectors.github.tools.GetTeamSchema”

Bases: pydantic.BaseModel

Schema for getting a GitHub team.

‘Field(…)’

‘Field(…)’

‘Field(…)’

class vendor_connectors.github.tools.ListOrgMembersSchema

Section titled “class vendor_connectors.github.tools.ListOrgMembersSchema”

Bases: pydantic.BaseModel

Schema for listing GitHub organization members.

‘Field(…)’

‘Field(…)’

‘Field(…)’

‘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.

‘Field(…)’

‘Field(…)’

‘Field(…)’

‘Field(…)’

‘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.

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.

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.

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.

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.

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

Get all GitHub tools as LangChain StructuredTools.

Get all GitHub tools as CrewAI tools.

Get all GitHub tools as plain Python functions for AWS Strands.

Get GitHub tools for the specified or auto-detected framework.