o
    Zhp                     @   sT   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 deZd	S )
a|  
This tool allows agents to interact with the atlassian-python-api library
and operate on a Jira instance. For more information on the
atlassian-python-api library, see https://atlassian-python-api.readthedocs.io/jira.html

To use this tool, you must first set as environment variables:
    JIRA_API_TOKEN
    JIRA_USERNAME
    JIRA_INSTANCE_URL
    JIRA_CLOUD

Below is a sample script that uses the Jira tool:

```python
from langchain_community.agent_toolkits.jira.toolkit import JiraToolkit
from langchain_community.utilities.jira import JiraAPIWrapper

jira = JiraAPIWrapper()
toolkit = JiraToolkit.from_jira_api_wrapper(jira)
```
    )Optional)CallbackManagerForToolRun)BaseTool)Field)JiraAPIWrapperc                   @   sb   e Zd ZU dZeed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dZdS )
JiraActionz)Tool that queries the Atlassian Jira API.)default_factoryapi_wrappermode namedescriptionNinstructionsrun_managerreturnc                 C   s   | j | j|S )z/Use the Atlassian Jira API to run an operation.)r	   runr
   )selfr   r    r   Z/var/www/html/lang_env/lib/python3.10/site-packages/langchain_community/tools/jira/tool.py_run(   s   zJiraAction._run)N)__name__
__module____qualname____doc__r   r   r	   __annotations__strr   r   r   r   r   r   r   r   r   r       s   
 r   N)r   typingr   Zlangchain_core.callbacksr   Zlangchain_core.toolsr   Zpydanticr   Z"langchain_community.utilities.jirar   r   r   r   r   r   <module>   s    