GitLabToolkit#
- class langchain_community.agent_toolkits.gitlab.toolkit.GitLabToolkit[source]#
Bases:
BaseToolkit
GitLab Toolkit.
- Security Note: This toolkit contains tools that can read and modify
the state of a service; e.g., by creating, deleting, or updating, reading underlying data.
For example, this toolkit can be used to create issues, pull requests, and comments on GitLab.
See https://python.langchain.com/docs/security for more information.
- Parameters:
tools – List[BaseTool]. The tools in the toolkit. Default is an empty list.
Create a new model by parsing and validating input data from keyword arguments.
Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.
self is explicitly positional-only to allow self as a field name.
- classmethod from_gitlab_api_wrapper(gitlab_api_wrapper: GitLabAPIWrapper) GitLabToolkit [source]#
Create a GitLabToolkit from a GitLabAPIWrapper.
- Parameters:
gitlab_api_wrapper (GitLabAPIWrapper) – GitLabAPIWrapper. The GitLab API wrapper.
- Returns:
GitLabToolkit. The GitLab toolkit.
- Return type:
Examples using GitLabToolkit