
    7|h                     Z    d Z ddlmZ ddlmZ ddlmZ ddlmZ ddl	m
Z
  G d de      Zy	)
z
This tool allows agents to interact with the python-gitlab library
and operate on a GitLab repository.

To use this tool, you must first set as environment variables:
    GITLAB_PRIVATE_ACCESS_TOKEN
    GITLAB_REPOSITORY -> format: {owner}/{repo}

    )Optional)CallbackManagerForToolRun)BaseTool)Field)GitLabAPIWrapperc                   r    e Zd ZU dZ ee      Zeed<   eed<   dZ	eed<   dZ
eed<   	 dd	ed
ee   defdZy)GitLabActionz)Tool for interacting with the GitLab API.)default_factoryapi_wrappermode namedescriptionNinstructionsrun_managerreturnc                 N    | j                   j                  | j                  |      S )z'Use the GitLab API to run an operation.)r   runr   )selfr   r   s      d/var/www/html/test/engine/venv/lib/python3.12/site-packages/langchain_community/tools/gitlab/tool.py_runzGitLabAction._run   s!     ##DII|<<    )N)__name__
__module____qualname____doc__r   r   r   __annotations__strr   r   r   r   r    r   r   r	   r	      s[    3$):J$KK!K
ID#NK
 <@== 78= 
	=r   r	   N)r   typingr   langchain_core.callbacksr   langchain_core.toolsr   pydanticr   $langchain_community.utilities.gitlabr   r	   r   r   r   <module>r%      s'     > )  A=8 =r   