
    Ngp                     b    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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                       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dS )
JiraActionz)Tool that queries the Atlassian Jira API.)default_factoryapi_wrappermode namedescriptionNinstructionsrun_managerreturnc                 B    | j                             | j        |          S )z/Use the Atlassian Jira API to run an operation.)r   runr   )selfr   r   s      _/var/www/html/ai-engine/env/lib/python3.11/site-packages/langchain_community/tools/jira/tool.py_runzJiraAction._run(   s     ##DI|<<<    )N)__name__
__module____qualname____doc__r   r   r   __annotations__strr   r   r   r   r    r   r   r	   r	       s         33"'%"G"G"GKGGG
IIID#NNNK
 <@= == 78= 
	= = = = = =r   r	   N)r   typingr   langchain_core.callbacksr   langchain_core.toolsr   pydanticr   "langchain_community.utilities.jirar   r	   r   r   r   <module>r%      s    ,       > > > > > > ) ) ) ) ) )       = = = = = == = = = = = = = = =r   