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mdndddddwddmdnddddwddtdtdddddddddddddnddmdmdmdndwdddldldldldlddddddddddddddddodddodddddwddddddydydddodZeedddZdS )a  **Tools** are classes that an Agent uses to interact with the world.

Each tool has a **description**. Agent uses the description to choose the right
tool for the job.

**Class hierarchy:**

.. code-block::

    ToolMetaclass --> BaseTool --> <name>Tool  # Examples: AIPluginTool, BaseGraphQLTool
                                   <name>      # Examples: BraveSearch, HumanInputRun

**Main helpers:**

.. code-block::

    CallbackManagerForToolRun, AsyncCallbackManagerForToolRun
    N)TYPE_CHECKINGAny)BaseTool)StructuredTool)Tool)tool)	AINAppOps)AINOwnerOps)
AINRuleOps)AINTransfer)AINValueOps)ArxivQueryRun)AskNewsSearch)'AzureAiServicesDocumentIntelligenceTool AzureAiServicesImageAnalysisToolAzureAiServicesSpeechToTextTool)AzureAiServicesTextAnalyticsForHealthToolAzureAiServicesTextToSpeechTool)AzureCogsFormRecognizerToolAzureCogsImageAnalysisToolAzureCogsSpeech2TextToolAzureCogsText2SpeechTool AzureCogsTextAnalyticsHealthTool)BearlyInterpreterTool)BingSearchResultsBingSearchRun)BraveSearch)GetSchemaCassandraDatabaseTool!GetTableDataCassandraDatabaseToolQueryCassandraDatabaseTool)CogniswitchKnowledgeRequestCogniswitchKnowledgeSourceFileCogniswitchKnowledgeSourceURLCogniswitchKnowledgeStatus)ConneryAction)format_tool_to_openai_function)DataheraldTextToSQL)DuckDuckGoSearchResultsDuckDuckGoSearchRun)E2BDataAnalysisTool)EdenAiExplicitImageToolEdenAiObjectDetectionToolEdenAiParsingIDToolEdenAiParsingInvoiceToolEdenAiSpeechToTextToolEdenAiTextModerationToolEdenAiTextToSpeechTool
EdenaiTool)ElevenLabsText2SpeechTool)CopyFileToolDeleteFileToolFileSearchToolListDirectoryToolMoveFileToolReadFileToolWriteFileTool)BalanceSheets)CashFlowStatements)IncomeStatements)GmailCreateDraftGmailGetMessageGmailGetThreadGmailSearchGmailSendMessage)GoogleBooksQueryRun)GoogleCloudTextToSpeechTool)GooglePlacesTool)GoogleSearchResultsGoogleSearchRun)GoogleSerperResultsGoogleSerperRun)BaseGraphQLTool)HumanInputRun)IFTTTWebhook)StdInInquireTool)
JinaSearch)
JiraAction)JsonGetValueToolJsonListKeysTool)MerriamWebsterQueryRun)MetaphorSearchResults)MojeekSearch)
NasaAction)O365CreateDraftMessage)O365SearchEvents)O365SearchEmails)O365SendEvent)O365SendMessage)authenticate)APIOperation)OpenAPISpec)OpenWeatherMapQueryRun)	ClickToolCurrentWebPageToolExtractHyperlinksToolExtractTextToolGetElementsToolNavigateBackToolNavigateTool)AIPluginTool)PolygonAggregates)PolygonFinancials)PolygonLastQuote)PolygonTickerNews)InfoPowerBIToolListPowerBIToolQueryPowerBITool)PubmedQueryRun)RedditSearchRunRedditSearchSchema)BaseRequestsToolRequestsDeleteToolRequestsGetToolRequestsPatchToolRequestsPostToolRequestsPutTool)SceneXplainTool)SearchAPIResultsSearchAPIRun)SearxSearchResultsSearxSearchRun)	ShellTool)SlackGetChannel)SlackGetMessage)SlackScheduleMessage)SlackSendMessage)	SleepTool)BaseSparkSQLToolInfoSparkSQLToolListSparkSQLToolQueryCheckerToolQuerySparkSQLTool)BaseSQLDatabaseToolInfoSQLDatabaseToolListSQLDatabaseToolQuerySQLCheckerToolQuerySQLDataBaseToolQuerySQLDatabaseTool)StackExchangeTool)SteamWebAPIQueryRun)SteamshipImageGenerationTool)TavilyAnswerTavilySearchResults)VectorStoreQAToolVectorStoreQAWithSourcesTool)WikipediaQueryRun)WolframAlphaQueryRun)YahooFinanceNewsTool)YouSearchTool)YouTubeSearchTool)ZapierNLAListActionsZapierNLARunAction)DetectorZenGuardInputZenGuardTool)r   r   r   r   r   r	   r
   r   r   re   r[   r   r   r   r   r   r   r   r   r   r   r   r   r:   rI   rp   r   r   r   r   r   r   r;   r^   r    r!   r"   r#   r$   r3   r_   r4   r&   r'   r(   r)   r*   r+   r,   r-   r.   r/   r0   r1   r2   r`   ra   r5   rb   r=   r>   r?   r@   rA   rB   rC   rD   rE   rF   rG   rH   rJ   rK   r<   rj   r   r   rN   rM   rO   rP   r6   rk   r   r   rQ   rR   rS   r7   rT   rc   rd   rU   rW   rV   rX   rY   r\   r]   rf   rg   rh   ri   rm   r   rl   r   r   r   r   r8   rn   ro   rq   rr   rs   rt   ru   rv   rw   rx   ry   rz   r{   r|   r}   r~   r   r   r   rL   r   r   r   r   r   r   r   r   r9   r   r   r   r   r   r   r   r   rZ   r%   ZPythonAstREPLToolZPythonREPLToolz'langchain_community.tools.ainetwork.appz)langchain_community.tools.ainetwork.ownerz(langchain_community.tools.ainetwork.rulez,langchain_community.tools.ainetwork.transferz)langchain_community.tools.ainetwork.valuez langchain_community.tools.pluginz2langchain_community.tools.openapi.utils.api_modelsz$langchain_community.tools.arxiv.toolz&langchain_community.tools.asknews.toolz+langchain_community.tools.azure_ai_servicesz2langchain_community.tools.azure_cognitive_servicesz;langchain_community.tools.financial_datasets.balance_sheetsz&langchain_community.tools.graphql.toolz'langchain_community.tools.requests.toolz+langchain_community.tools.sql_database.toolz(langchain_community.tools.spark_sql.toolzlangchain_core.toolsz%langchain_community.tools.bearly.toolz*langchain_community.tools.bing_search.toolz+langchain_community.tools.brave_search.toolzAlangchain_community.tools.financial_datasets.cash_flow_statementsz$langchain_community.tools.playwrightz*langchain_community.tools.cogniswitch.toolz!langchain_community.tools.conneryz)langchain_community.tools.file_managementz)langchain_community.tools.dataherald.toolz'langchain_community.tools.zenguard.toolz)langchain_community.tools.ddg_search.toolz0langchain_community.tools.e2b_data_analysis.toolz langchain_community.tools.edenaiz1langchain_community.tools.eleven_labs.text2speechzlangchain_community.tools.gmailz&langchain_community.tools.google_booksz3langchain_community.tools.google_cloud.texttospeechz,langchain_community.tools.google_places.toolz,langchain_community.tools.google_search.toolz,langchain_community.tools.google_serper.toolz$langchain_community.tools.human.toolzlangchain_community.tools.iftttz>langchain_community.tools.financial_datasets.income_statementsz&langchain_community.tools.powerbi.toolz#langchain_community.tools.jira.toolz*langchain_community.tools.jina_search.toolz#langchain_community.tools.json.toolz.langchain_community.tools.merriam_webster.toolz)langchain_community.tools.metaphor_searchz,langchain_community.tools.mojeek_search.toolz#langchain_community.tools.nasa.toolz8langchain_community.tools.office365.create_draft_messagez3langchain_community.tools.office365.messages_searchz1langchain_community.tools.office365.events_searchz.langchain_community.tools.office365.send_eventz0langchain_community.tools.office365.send_messagez5langchain_community.tools.openapi.utils.openapi_utilsz-langchain_community.tools.openweathermap.toolz,langchain_community.tools.polygon.aggregatesz,langchain_community.tools.polygon.financialsz,langchain_community.tools.polygon.last_quotez-langchain_community.tools.polygon.ticker_newsz%langchain_community.tools.pubmed.toolz,langchain_community.tools.reddit_search.toolz*langchain_community.tools.scenexplain.toolz(langchain_community.tools.searchapi.toolz+langchain_community.tools.searx_search.toolz$langchain_community.tools.shell.toolz+langchain_community.tools.slack.get_channelz+langchain_community.tools.slack.get_messagez0langchain_community.tools.slack.schedule_messagez,langchain_community.tools.slack.send_messagez$langchain_community.tools.sleep.toolz,langchain_community.tools.stackexchange.toolz*langchain_community.tools.interaction.toolz$langchain_community.tools.steam.toolz4langchain_community.tools.steamship_image_generationz'langchain_community.tools.tavily_searchz*langchain_community.tools.vectorstore.toolz(langchain_community.tools.wikipedia.toolz,langchain_community.tools.wolfram_alpha.toolz,langchain_community.tools.yahoo_finance_newsz"langchain_community.tools.you.toolz(langchain_community.tools.youtube.searchz%langchain_community.tools.zapier.toolz)langchain_community.tools.office365.utilsz+langchain_community.tools.convert_to_openai)r   r	   r
   r   r   re   r[   r   r   r   r   r   r   r   r   r   r   r   r   r:   rI   rp   r   r   r   r   r   r   r   r;   r^   r    r!   r"   r#   r$   r3   r_   r&   r4   r   r'   r(   r)   r*   r+   r,   r-   r.   r/   r0   r1   r2   r`   ra   r5   rb   r=   r>   r?   r@   rA   rB   rC   rD   rE   rF   rG   rH   rJ   rK   r<   rj   r   r   rN   rM   rO   rP   r6   rk   r   r   rQ   rR   rS   r7   rT   rc   rd   rU   rW   rV   rX   rY   r\   r]   rf   rg   rh   ri   rm   r   rl   r   r   r   r   r8   rn   ro   rq   rr   rs   rt   ru   rv   rw   rx   ry   rz   r{   r|   r}   r~   r   r   r   rL   r   r   r   r   r   r   r   r   r   r   r9   r   r   r   r   r   r   r   rZ   r%   r   )namereturnc                 C   s8   | t v r tt |  }t|| S tdt d|  d S )Nzmodule z has no attribute )_module_lookup	importlibimport_modulegetattrAttributeError__name__)r   module r   p/var/www/html/cobodadashboardai.evdpl.com/venv/lib/python3.9/site-packages/langchain_community/tools/__init__.py__getattr__  s    
r   )__doc__r   typingr   r   Zlangchain_core.toolsr   r   r   Zlangchain_core.tools.convertr   Z'langchain_community.tools.ainetwork.appr   Z)langchain_community.tools.ainetwork.ownerr	   Z(langchain_community.tools.ainetwork.ruler
   Z,langchain_community.tools.ainetwork.transferr   Z)langchain_community.tools.ainetwork.valuer   Z$langchain_community.tools.arxiv.toolr   Z&langchain_community.tools.asknews.toolr   Z+langchain_community.tools.azure_ai_servicesr   r   r   r   r   Z2langchain_community.tools.azure_cognitive_servicesr   r   r   r   r   Z%langchain_community.tools.bearly.toolr   Z*langchain_community.tools.bing_search.toolr   r   Z+langchain_community.tools.brave_search.toolr   Z1langchain_community.tools.cassandra_database.toolr   r   r   Z*langchain_community.tools.cogniswitch.toolr    r!   r"   r#   Z!langchain_community.tools.conneryr$   Z+langchain_community.tools.convert_to_openair%   Z$langchain_community.tools.dataheraldr&   Z)langchain_community.tools.ddg_search.toolr'   r(   Z0langchain_community.tools.e2b_data_analysis.toolr)   Z langchain_community.tools.edenair*   r+   r,   r-   r.   r/   r0   r1   Z1langchain_community.tools.eleven_labs.text2speechr2   Z)langchain_community.tools.file_managementr3   r4   r5   r6   r7   r8   r9   Z;langchain_community.tools.financial_datasets.balance_sheetsr:   ZAlangchain_community.tools.financial_datasets.cash_flow_statementsr;   Z>langchain_community.tools.financial_datasets.income_statementsr<   Zlangchain_community.tools.gmailr=   r>   r?   r@   rA   Z&langchain_community.tools.google_booksrB   Z3langchain_community.tools.google_cloud.texttospeechrC   Z,langchain_community.tools.google_places.toolrD   Z,langchain_community.tools.google_search.toolrE   rF   Z,langchain_community.tools.google_serper.toolrG   rH   Z&langchain_community.tools.graphql.toolrI   Z$langchain_community.tools.human.toolrJ   Zlangchain_community.tools.iftttrK   Z*langchain_community.tools.interaction.toolrL   Z*langchain_community.tools.jina_search.toolrM   Z#langchain_community.tools.jira.toolrN   Z#langchain_community.tools.json.toolrO   rP   Z.langchain_community.tools.merriam_webster.toolrQ   Z)langchain_community.tools.metaphor_searchrR   Z,langchain_community.tools.mojeek_search.toolrS   Z#langchain_community.tools.nasa.toolrT   Z8langchain_community.tools.office365.create_draft_messagerU   Z1langchain_community.tools.office365.events_searchrV   Z3langchain_community.tools.office365.messages_searchrW   Z.langchain_community.tools.office365.send_eventrX   Z0langchain_community.tools.office365.send_messagerY   Z)langchain_community.tools.office365.utilsrZ   Z2langchain_community.tools.openapi.utils.api_modelsr[   Z5langchain_community.tools.openapi.utils.openapi_utilsr\   Z-langchain_community.tools.openweathermap.toolr]   Z$langchain_community.tools.playwrightr^   r_   r`   ra   rb   rc   rd   Z langchain_community.tools.pluginre   Z,langchain_community.tools.polygon.aggregatesrf   Z,langchain_community.tools.polygon.financialsrg   Z,langchain_community.tools.polygon.last_quoterh   Z-langchain_community.tools.polygon.ticker_newsri   Z&langchain_community.tools.powerbi.toolrj   rk   rl   Z%langchain_community.tools.pubmed.toolrm   Z,langchain_community.tools.reddit_search.toolrn   ro   Z'langchain_community.tools.requests.toolrp   rq   rr   rs   rt   ru   Z*langchain_community.tools.scenexplain.toolrv   Z(langchain_community.tools.searchapi.toolrw   rx   Z+langchain_community.tools.searx_search.toolry   rz   Z$langchain_community.tools.shell.toolr{   Z+langchain_community.tools.slack.get_channelr|   Z+langchain_community.tools.slack.get_messager}   Z0langchain_community.tools.slack.schedule_messager~   Z,langchain_community.tools.slack.send_messager   Z$langchain_community.tools.sleep.toolr   Z(langchain_community.tools.spark_sql.toolr   r   r   r   r   Z+langchain_community.tools.sql_database.toolr   r   r   r   r   r   Z,langchain_community.tools.stackexchange.toolr   Z$langchain_community.tools.steam.toolr   Z4langchain_community.tools.steamship_image_generationr   Z'langchain_community.tools.tavily_searchr   r   Z*langchain_community.tools.vectorstore.toolr   r   Z(langchain_community.tools.wikipedia.toolr   Z,langchain_community.tools.wolfram_alpha.toolr   Z,langchain_community.tools.yahoo_finance_newsr   Z"langchain_community.tools.you.toolr   Z(langchain_community.tools.youtube.searchr   Z%langchain_community.tools.zapier.toolr   r   Z'langchain_community.tools.zenguard.toolr   r   r   __all__Z_DEPRECATED_TOOLSr   strr   r   r   r   r   <module>   s  (
$	$	     