mirror of
https://github.com/hwchase17/langchain
synced 2024-11-04 06:00:26 +00:00
60 lines
1.4 KiB
Python
60 lines
1.4 KiB
Python
"""Test the public API of the tools package."""
|
|
from langchain.tools import __all__ as public_api
|
|
|
|
_EXPECTED = [
|
|
"AIPluginTool",
|
|
"APIOperation",
|
|
"BaseTool",
|
|
"BaseTool",
|
|
"BaseTool",
|
|
"BingSearchResults",
|
|
"BingSearchRun",
|
|
"ClickTool",
|
|
"CopyFileTool",
|
|
"CurrentWebPageTool",
|
|
"DeleteFileTool",
|
|
"DuckDuckGoSearchResults",
|
|
"DuckDuckGoSearchRun",
|
|
"ExtractHyperlinksTool",
|
|
"ExtractTextTool",
|
|
"FileSearchTool",
|
|
"GetElementsTool",
|
|
"GmailCreateDraft",
|
|
"GmailGetMessage",
|
|
"GmailGetThread",
|
|
"GmailSearch",
|
|
"GmailSendMessage",
|
|
"GooglePlacesTool",
|
|
"GoogleSearchResults",
|
|
"GoogleSearchRun",
|
|
"GoogleSerperResults",
|
|
"GoogleSerperRun",
|
|
"HumanInputRun",
|
|
"IFTTTWebhook",
|
|
"ListDirectoryTool",
|
|
"MoveFileTool",
|
|
"NavigateBackTool",
|
|
"NavigateTool",
|
|
"OpenAPISpec",
|
|
"ReadFileTool",
|
|
"SceneXplainTool",
|
|
"ShellTool",
|
|
"StructuredTool",
|
|
"Tool",
|
|
"VectorStoreQATool",
|
|
"VectorStoreQAWithSourcesTool",
|
|
"WikipediaQueryRun",
|
|
"WolframAlphaQueryRun",
|
|
"WriteFileTool",
|
|
"ZapierNLAListActions",
|
|
"ZapierNLARunAction",
|
|
"tool",
|
|
"YouTubeSearchTool",
|
|
]
|
|
|
|
|
|
def test_public_api() -> None:
|
|
"""Test for regressions or changes in the public API."""
|
|
# Check that the public API is as expected
|
|
assert sorted(public_api) == sorted(_EXPECTED)
|