The agent engineering platform.
Python agentsaiai-agentsanthropicchatgptdeepagentsenterpriseframeworkgeminigenerative-ailangchainlanggraphllmmultiagentopen-sourceopenaipydanticpythonragtypescript
community; allow to set gitlab url in gitlab tool in constrictor (#29380)
Tim Malleziea13faab6b7ed
diff --git a/libs/community/langchain_community/utilities/gitlab.py b/libs/community/langchain_community/utilities/gitlab.pyindex b33ddc1180..c56e1711b0 100644--- a/libs/community/langchain_community/utilities/gitlab.py+++ b/libs/community/langchain_community/utilities/gitlab.py@@ -17,6 +17,8 @@ class GitLabAPIWrapper(BaseModel):gitlab: Any = None #: :meta private:gitlab_repo_instance: Any = None #: :meta private:+ gitlab_url: Optional[str] = None+ """The url of the GitLab instance."""gitlab_repository: Optional[str] = None"""The name of the GitLab repository, in the form {username}/{repo-name}."""gitlab_personal_access_token: Optional[str] = None@@ -76,6 +78,7 @@ class GitLabAPIWrapper(BaseModel):values["gitlab"] = gvalues["gitlab_repo_instance"] = g.projects.get(gitlab_repository)+ values["gitlab_url"] = gitlab_urlvalues["gitlab_repository"] = gitlab_repositoryvalues["gitlab_personal_access_token"] = gitlab_personal_access_tokenvalues["gitlab_branch"] = gitlab_branch