sample_id
stringlengths
21
196
text
stringlengths
105
936k
metadata
dict
category
stringclasses
6 values
langchain-ai/langchain:libs/langchain/langchain_classic/tools/human/tool.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.tools import HumanInputRun # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optional imports. DE...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/tools/human/tool.py", "license": "MIT License", "lines": 15, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/tools/interaction/tool.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.tools import StdInInquireTool # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optional imports....
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/tools/interaction/tool.py", "license": "MIT License", "lines": 15, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/tools/jira/tool.py
"""This module provides dynamic access to deprecated Jira tools. When attributes like `JiraAction` are accessed, they are redirected to their new locations in `langchain_community.tools`. This ensures backward compatibility while warning developers about deprecation. Attributes: JiraAction (deprecated): Dynamical...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/tools/jira/tool.py", "license": "MIT License", "lines": 27, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
documentation
langchain-ai/langchain:libs/langchain/langchain_classic/tools/json/tool.py
"""This module provides dynamic access to deprecated JSON tools in LangChain. It ensures backward compatibility by forwarding references such as `JsonGetValueTool`, `JsonListKeysTool`, and `JsonSpec` to their updated locations within the `langchain_community.tools` namespace. This setup allows legacy code to continue...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/tools/json/tool.py", "license": "MIT License", "lines": 36, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
documentation
langchain-ai/langchain:libs/langchain/langchain_classic/tools/memorize/tool.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.tools.memorize.tool import Memorize, TrainableLLM # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handli...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/tools/memorize/tool.py", "license": "MIT License", "lines": 19, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/tools/merriam_webster/tool.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.tools import MerriamWebsterQueryRun # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optional im...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/tools/merriam_webster/tool.py", "license": "MIT License", "lines": 15, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/tools/metaphor_search/tool.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.tools import MetaphorSearchResults # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optional imp...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/tools/metaphor_search/tool.py", "license": "MIT License", "lines": 15, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/tools/nasa/tool.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.tools import NasaAction # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optional imports. DEPRE...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/tools/nasa/tool.py", "license": "MIT License", "lines": 15, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/tools/nuclia/tool.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.tools.nuclia.tool import NUASchema, NucliaUnderstandingAPI # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/tools/nuclia/tool.py", "license": "MIT License", "lines": 19, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/tools/office365/base.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.tools.office365.base import O365BaseTool # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling option...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/tools/office365/base.py", "license": "MIT License", "lines": 15, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/tools/office365/send_message.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.tools import O365SendMessage from langchain_community.tools.office365.send_message import SendMessageSchema # Create a way to dynamically look up deprecated imports. # Used to c...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/tools/office365/send_message.py", "license": "MIT License", "lines": 20, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/tools/openweathermap/tool.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.tools import OpenWeatherMapQueryRun # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optional im...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/tools/openweathermap/tool.py", "license": "MIT License", "lines": 15, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/tools/playwright/base.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.tools.playwright.base import BaseBrowserTool # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling op...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/tools/playwright/base.py", "license": "MIT License", "lines": 15, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/tools/powerbi/tool.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.tools import ( InfoPowerBITool, ListPowerBITool, QueryPowerBITool, ) # Create a way to dynamically look up deprecated imports. # Used to consolidate logi...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/tools/powerbi/tool.py", "license": "MIT License", "lines": 25, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/tools/pubmed/tool.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.tools import PubmedQueryRun # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optional imports. D...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/tools/pubmed/tool.py", "license": "MIT License", "lines": 15, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/tools/reddit_search/tool.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.tools import RedditSearchRun, RedditSearchSchema # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handlin...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/tools/reddit_search/tool.py", "license": "MIT License", "lines": 19, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/tools/requests/tool.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.tools import ( BaseRequestsTool, RequestsDeleteTool, RequestsGetTool, RequestsPatchTool, RequestsPostTool, RequestsPutTool, ) # C...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/tools/requests/tool.py", "license": "MIT License", "lines": 34, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/tools/scenexplain/tool.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.tools import SceneXplainTool from langchain_community.tools.scenexplain.tool import SceneXplainInput # Create a way to dynamically look up deprecated imports. # Used to consolid...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/tools/scenexplain/tool.py", "license": "MIT License", "lines": 20, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/tools/searchapi/tool.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.tools import SearchAPIResults, SearchAPIRun # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling opt...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/tools/searchapi/tool.py", "license": "MIT License", "lines": 19, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/tools/searx_search/tool.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.tools import SearxSearchResults, SearxSearchRun # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/tools/searx_search/tool.py", "license": "MIT License", "lines": 19, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/tools/shell/tool.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.tools import ShellTool from langchain_community.tools.shell.tool import ShellInput # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for rais...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/tools/shell/tool.py", "license": "MIT License", "lines": 20, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/tools/slack/base.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.tools.slack.base import SlackBaseTool # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optional ...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/tools/slack/base.py", "license": "MIT License", "lines": 15, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/tools/slack/get_message.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.tools import SlackGetMessage from langchain_community.tools.slack.get_message import SlackGetMessageSchema # Create a way to dynamically look up deprecated imports. # Used to co...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/tools/slack/get_message.py", "license": "MIT License", "lines": 20, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/tools/slack/send_message.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.tools import SlackSendMessage from langchain_community.tools.slack.send_message import SendMessageSchema # Create a way to dynamically look up deprecated imports. # Used to cons...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/tools/slack/send_message.py", "license": "MIT License", "lines": 20, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/tools/sleep/tool.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.tools import SleepTool from langchain_community.tools.sleep.tool import SleepInput # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for rais...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/tools/sleep/tool.py", "license": "MIT License", "lines": 20, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/tools/spark_sql/tool.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.tools import ( BaseSparkSQLTool, InfoSparkSQLTool, ListSparkSQLTool, QueryCheckerTool, QuerySparkSQLTool, ) # Create a way to dynamically...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/tools/spark_sql/tool.py", "license": "MIT License", "lines": 31, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/tools/sql_database/prompt.py
"""For backwards compatibility.""" from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.tools.sql_database.prompt import QUERY_CHECKER _importer = create_importer( __package__, deprecated_lookups={ "QUERY_CHECKER": "...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/tools/sql_database/prompt.py", "license": "MIT License", "lines": 15, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/tools/sql_database/tool.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.tools import ( BaseSQLDatabaseTool, InfoSQLDatabaseTool, ListSQLDatabaseTool, QuerySQLCheckerTool, QuerySQLDataBaseTool, ) # Create a way...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/tools/sql_database/tool.py", "license": "MIT License", "lines": 31, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/tools/stackexchange/tool.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.tools import StackExchangeTool # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optional imports...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/tools/stackexchange/tool.py", "license": "MIT License", "lines": 15, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/tools/steam/tool.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.tools import SteamWebAPIQueryRun # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optional impor...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/tools/steam/tool.py", "license": "MIT License", "lines": 15, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/tools/steamship_image_generation/tool.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.tools import SteamshipImageGenerationTool from langchain_community.tools.steamship_image_generation.tool import ModelName # Create a way to dynamically look up deprecated import...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/tools/steamship_image_generation/tool.py", "license": "MIT License", "lines": 20, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/tools/tavily_search/tool.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.tools.tavily_search.tool import ( TavilyAnswer, TavilyInput, TavilySearchResults, ) # Create a way to dynamically look up deprecated imports. # Used to c...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/tools/tavily_search/tool.py", "license": "MIT License", "lines": 25, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/tools/vectorstore/tool.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.tools import ( VectorStoreQATool, VectorStoreQAWithSourcesTool, ) # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raisi...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/tools/vectorstore/tool.py", "license": "MIT License", "lines": 22, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/tools/wikipedia/tool.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.tools import WikipediaQueryRun # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optional imports...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/tools/wikipedia/tool.py", "license": "MIT License", "lines": 15, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/tools/wolfram_alpha/tool.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.tools import WolframAlphaQueryRun # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optional impo...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/tools/wolfram_alpha/tool.py", "license": "MIT License", "lines": 15, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/tools/youtube/search.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.tools import YouTubeSearchTool # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optional imports...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/tools/youtube/search.py", "license": "MIT License", "lines": 15, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/tools/zapier/tool.py
"""This module provides dynamic access to deprecated Zapier tools in LangChain. It supports backward compatibility by forwarding references such as `ZapierNLAListActions` and `ZapierNLARunAction` to their updated locations in the `langchain_community.tools` package. Developers using older import paths will continue t...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/tools/zapier/tool.py", "license": "MIT License", "lines": 33, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
documentation
langchain-ai/langchain:libs/langchain/langchain_classic/utilities/anthropic.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.utilities.anthropic import ( get_num_tokens_anthropic, get_token_ids_anthropic, ) # Create a way to dynamically look up deprecated imports. # Used to consolidate...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/utilities/anthropic.py", "license": "MIT License", "lines": 22, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/utilities/arcee.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.utilities import ArceeWrapper from langchain_community.utilities.arcee import ( ArceeDocument, ArceeDocumentAdapter, ArceeDocumentSource, ArceeRou...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/utilities/arcee.py", "license": "MIT License", "lines": 37, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/utilities/arxiv.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.utilities import ArxivAPIWrapper # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optional impor...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/utilities/arxiv.py", "license": "MIT License", "lines": 15, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/utilities/bibtex.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.utilities import BibtexparserWrapper # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optional i...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/utilities/bibtex.py", "license": "MIT License", "lines": 15, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/utilities/brave_search.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.utilities import BraveSearchWrapper # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optional im...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/utilities/brave_search.py", "license": "MIT License", "lines": 15, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/utilities/github.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.utilities.github import GitHubAPIWrapper # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling option...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/utilities/github.py", "license": "MIT License", "lines": 15, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/utilities/max_compute.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.utilities import MaxComputeAPIWrapper # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optional ...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/utilities/max_compute.py", "license": "MIT License", "lines": 15, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/utilities/opaqueprompts.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.utilities.opaqueprompts import desanitize, sanitize # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # hand...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/utilities/opaqueprompts.py", "license": "MIT License", "lines": 19, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/utilities/openapi.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.tools import OpenAPISpec from langchain_community.utilities.openapi import HTTPVerb # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for rai...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/utilities/openapi.py", "license": "MIT License", "lines": 20, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/utilities/outline.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.utilities import OutlineAPIWrapper # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optional imp...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/utilities/outline.py", "license": "MIT License", "lines": 15, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/utilities/pubmed.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.utilities import PubMedAPIWrapper # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optional impo...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/utilities/pubmed.py", "license": "MIT License", "lines": 15, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/utilities/redis.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.utilities.redis import ( TokenEscaper, check_redis_module_exist, get_client, ) # Create a way to dynamically look up deprecated imports. # Used to consol...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/utilities/redis.py", "license": "MIT License", "lines": 25, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/utilities/requests.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.utilities import Requests, RequestsWrapper # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling opti...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/utilities/requests.py", "license": "MIT License", "lines": 19, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/utilities/serpapi.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.utilities import SerpAPIWrapper from langchain_community.utilities.serpapi import HiddenPrints # Create a way to dynamically look up deprecated imports. # Used to consolidate lo...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/utilities/serpapi.py", "license": "MIT License", "lines": 20, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/utilities/sql_database.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.utilities import SQLDatabase from langchain_community.utilities.sql_database import truncate_word # Create a way to dynamically look up deprecated imports. # Used to consolidate...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/utilities/sql_database.py", "license": "MIT License", "lines": 20, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/utilities/tensorflow_datasets.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.utilities import TensorflowDatasets # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optional im...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/utilities/tensorflow_datasets.py", "license": "MIT License", "lines": 15, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/utilities/vertexai.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.utilities.vertexai import ( create_retry_decorator, get_client_info, init_vertexai, raise_vertex_import_error, ) # Create a way to dynamically lo...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/utilities/vertexai.py", "license": "MIT License", "lines": 28, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/utilities/wikipedia.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.utilities import WikipediaAPIWrapper # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optional i...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/utilities/wikipedia.py", "license": "MIT License", "lines": 15, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/utils/ernie_functions.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.utils.ernie_functions import ( FunctionDescription, ToolDescription, convert_pydantic_to_ernie_function, convert_pydantic_to_ernie_tool, ) # Crea...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/utils/ernie_functions.py", "license": "MIT License", "lines": 28, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/utils/openai.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.utils.openai import is_openai_v1 # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optional impor...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/utils/openai.py", "license": "MIT License", "lines": 15, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/vectorstores/astradb.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.vectorstores import AstraDB # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optional imports. D...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/vectorstores/astradb.py", "license": "MIT License", "lines": 15, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/vectorstores/cassandra.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.vectorstores import Cassandra # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optional imports....
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/vectorstores/cassandra.py", "license": "MIT License", "lines": 15, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/vectorstores/chroma.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.vectorstores import Chroma # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optional imports. DE...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/vectorstores/chroma.py", "license": "MIT License", "lines": 15, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/vectorstores/clarifai.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.vectorstores import Clarifai # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optional imports. ...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/vectorstores/clarifai.py", "license": "MIT License", "lines": 15, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/vectorstores/dashvector.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.vectorstores import DashVector # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optional imports...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/vectorstores/dashvector.py", "license": "MIT License", "lines": 15, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/vectorstores/databricks_vector_search.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.vectorstores import DatabricksVectorSearch # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling opti...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/vectorstores/databricks_vector_search.py", "license": "MIT License", "lines": 15, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/vectorstores/deeplake.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.vectorstores import DeepLake # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optional imports. ...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/vectorstores/deeplake.py", "license": "MIT License", "lines": 15, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/vectorstores/dingo.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.vectorstores import Dingo # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optional imports. DEP...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/vectorstores/dingo.py", "license": "MIT License", "lines": 15, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/vectorstores/docarray/base.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.vectorstores.docarray.base import DocArrayIndex # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/vectorstores/docarray/base.py", "license": "MIT License", "lines": 15, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/vectorstores/docarray/in_memory.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.vectorstores import DocArrayInMemorySearch # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling opti...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/vectorstores/docarray/in_memory.py", "license": "MIT License", "lines": 15, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/vectorstores/elasticsearch.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.vectorstores import ElasticsearchStore from langchain_community.vectorstores.elasticsearch import ( ApproxRetrievalStrategy, BaseRetrievalStrategy, ExactR...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/vectorstores/elasticsearch.py", "license": "MIT License", "lines": 31, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/vectorstores/llm_rails.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.vectorstores import LLMRails from langchain_community.vectorstores.llm_rails import LLMRailsRetriever # Create a way to dynamically look up deprecated imports. # Used to consoli...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/vectorstores/llm_rails.py", "license": "MIT License", "lines": 20, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/vectorstores/milvus.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.vectorstores import Milvus # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optional imports. DE...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/vectorstores/milvus.py", "license": "MIT License", "lines": 15, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/vectorstores/mongodb_atlas.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.vectorstores import MongoDBAtlasVectorSearch # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling op...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/vectorstores/mongodb_atlas.py", "license": "MIT License", "lines": 15, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/vectorstores/myscale.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.vectorstores import MyScale, MyScaleSettings from langchain_community.vectorstores.myscale import MyScaleWithoutJSON # Create a way to dynamically look up deprecated imports. # ...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/vectorstores/myscale.py", "license": "MIT License", "lines": 22, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/vectorstores/pgvector.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.vectorstores import PGVector from langchain_community.vectorstores.pgvector import DistanceStrategy # Create a way to dynamically look up deprecated imports. # Used to consolida...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/vectorstores/pgvector.py", "license": "MIT License", "lines": 20, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/vectorstores/pinecone.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.vectorstores import Pinecone # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optional imports. ...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/vectorstores/pinecone.py", "license": "MIT License", "lines": 15, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/vectorstores/qdrant.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.vectorstores import Qdrant from langchain_community.vectorstores.qdrant import QdrantException # Create a way to dynamically look up deprecated imports. # Used to consolidate lo...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/vectorstores/qdrant.py", "license": "MIT License", "lines": 20, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/vectorstores/redis/base.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.vectorstores import Redis from langchain_community.vectorstores.redis.base import ( RedisVectorStoreRetriever, check_index_exists, ) # Create a way to dynami...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/vectorstores/redis/base.py", "license": "MIT License", "lines": 25, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/vectorstores/redis/schema.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.vectorstores.redis.schema import ( FlatVectorField, HNSWVectorField, NumericFieldSchema, RedisDistanceMetric, RedisField, RedisModel, ...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/vectorstores/redis/schema.py", "license": "MIT License", "lines": 46, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/vectorstores/rocksetdb.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.vectorstores import Rockset # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optional imports. D...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/vectorstores/rocksetdb.py", "license": "MIT License", "lines": 15, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/vectorstores/singlestoredb.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.vectorstores import SingleStoreDB # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optional impo...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/vectorstores/singlestoredb.py", "license": "MIT License", "lines": 15, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/vectorstores/supabase.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.vectorstores import SupabaseVectorStore # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optiona...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/vectorstores/supabase.py", "license": "MIT License", "lines": 15, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/vectorstores/tencentvectordb.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.vectorstores import TencentVectorDB from langchain_community.vectorstores.tencentvectordb import ( ConnectionParams, IndexParams, ) # Create a way to dynamic...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/vectorstores/tencentvectordb.py", "license": "MIT License", "lines": 25, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/vectorstores/timescalevector.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.vectorstores import TimescaleVector # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optional im...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/vectorstores/timescalevector.py", "license": "MIT License", "lines": 15, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/vectorstores/utils.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.vectorstores.utils import ( DistanceStrategy, filter_complex_metadata, maximal_marginal_relevance, ) # Create a way to dynamically look up deprecated imp...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/vectorstores/utils.py", "license": "MIT License", "lines": 25, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/vectorstores/vectara.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.vectorstores import Vectara from langchain_community.vectorstores.vectara import VectaraRetriever # Create a way to dynamically look up deprecated imports. # Used to consolidate...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/vectorstores/vectara.py", "license": "MIT License", "lines": 20, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/vectorstores/weaviate.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.vectorstores import Weaviate # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optional imports. ...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/vectorstores/weaviate.py", "license": "MIT License", "lines": 15, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/vectorstores/xata.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.vectorstores.xata import XataVectorStore # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling option...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/vectorstores/xata.py", "license": "MIT License", "lines": 15, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/vectorstores/zep.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.vectorstores import ZepVectorStore from langchain_community.vectorstores.zep import CollectionConfig # Create a way to dynamically look up deprecated imports. # Used to consolid...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/vectorstores/zep.py", "license": "MIT License", "lines": 20, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/vectorstores/zilliz.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.vectorstores import Zilliz # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optional imports. DE...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/vectorstores/zilliz.py", "license": "MIT License", "lines": 15, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain_v1/langchain/agents/middleware/tool_call_limit.py
"""Tool call limit middleware for agents.""" from __future__ import annotations from typing import TYPE_CHECKING, Annotated, Any, Literal from langchain_core.messages import AIMessage, ToolCall, ToolMessage from langgraph.channels.untracked_value import UntrackedValue from langgraph.typing import ContextT from typin...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain_v1/langchain/agents/middleware/tool_call_limit.py", "license": "MIT License", "lines": 394, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
documentation
langchain-ai/langchain:libs/core/langchain_core/messages/block_translators/anthropic.py
"""Derivations of standard content blocks from Anthropic content.""" import json from collections.abc import Iterator from typing import Any, cast from langchain_core.messages import AIMessage, AIMessageChunk from langchain_core.messages import content as types def _populate_extras( standard_block: types.Conten...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/core/langchain_core/messages/block_translators/anthropic.py", "license": "MIT License", "lines": 429, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_complex
langchain-ai/langchain:libs/core/langchain_core/messages/block_translators/bedrock.py
"""Derivations of standard content blocks from Bedrock content.""" from langchain_core.messages import AIMessage, AIMessageChunk from langchain_core.messages import content as types from langchain_core.messages.block_translators.anthropic import ( _convert_to_v1_from_anthropic, ) def _convert_to_v1_from_bedrock(...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/core/langchain_core/messages/block_translators/bedrock.py", "license": "MIT License", "lines": 86, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_complex
langchain-ai/langchain:libs/core/langchain_core/messages/block_translators/bedrock_converse.py
"""Derivations of standard content blocks from Amazon (Bedrock Converse) content.""" import base64 from collections.abc import Iterator from typing import Any, cast from langchain_core.messages import AIMessage, AIMessageChunk from langchain_core.messages import content as types def _bytes_to_b64_str(bytes_: bytes)...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/core/langchain_core/messages/block_translators/bedrock_converse.py", "license": "MIT License", "lines": 263, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_complex
langchain-ai/langchain:libs/core/langchain_core/messages/block_translators/google_genai.py
"""Derivations of standard content blocks from Google (GenAI) content.""" import base64 import re from collections.abc import Iterator from typing import Any, cast from langchain_core.messages import AIMessage, AIMessageChunk from langchain_core.messages import content as types from langchain_core.messages.content im...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/core/langchain_core/messages/block_translators/google_genai.py", "license": "MIT License", "lines": 483, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_complex
langchain-ai/langchain:libs/core/langchain_core/messages/block_translators/google_vertexai.py
"""Derivations of standard content blocks from Google (VertexAI) content.""" from langchain_core.messages.block_translators.google_genai import ( translate_content, translate_content_chunk, ) def _register_google_vertexai_translator() -> None: """Register the Google (VertexAI) translator with the central...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/core/langchain_core/messages/block_translators/google_vertexai.py", "license": "MIT License", "lines": 14, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/core/langchain_core/messages/block_translators/groq.py
"""Derivations of standard content blocks from Groq content.""" import json import re from typing import Any from langchain_core.messages import AIMessage, AIMessageChunk from langchain_core.messages import content as types from langchain_core.messages.base import _extract_reasoning_from_additional_kwargs def _popu...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/core/langchain_core/messages/block_translators/groq.py", "license": "MIT License", "lines": 126, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_complex
langchain-ai/langchain:libs/core/langchain_core/messages/block_translators/langchain_v0.py
"""Derivations of standard content blocks from LangChain v0 multimodal content.""" from typing import Any, cast from langchain_core.messages import content as types def _convert_v0_multimodal_input_to_v1( content: list[types.ContentBlock], ) -> list[types.ContentBlock]: """Convert v0 multimodal blocks to v1...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/core/langchain_core/messages/block_translators/langchain_v0.py", "license": "MIT License", "lines": 257, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_complex
langchain-ai/langchain:libs/core/langchain_core/messages/block_translators/openai.py
"""Derivations of standard content blocks from OpenAI content.""" from __future__ import annotations import json import warnings from typing import TYPE_CHECKING, Any, Literal, cast from langchain_core.language_models._utils import ( _parse_data_uri, is_openai_data_block, ) from langchain_core.messages impor...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/core/langchain_core/messages/block_translators/openai.py", "license": "MIT License", "lines": 892, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_complex
langchain-ai/langchain:libs/core/langchain_core/messages/content.py
"""Standard, multimodal content blocks for Large Language Model I/O. This module provides standardized data structures for representing inputs to and outputs from LLMs. The core abstraction is the **Content Block**, a `TypedDict`. **Rationale** Different LLM providers use distinct and incompatible API schemas. This ...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/core/langchain_core/messages/content.py", "license": "MIT License", "lines": 1074, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
documentation
langchain-ai/langchain:libs/core/tests/unit_tests/messages/block_translators/test_anthropic.py
from langchain_core.messages import AIMessage, AIMessageChunk, HumanMessage from langchain_core.messages import content as types def test_convert_to_v1_from_anthropic() -> None: message = AIMessage( [ {"type": "thinking", "thinking": "foo", "signature": "foo_signature"}, {"type": "...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/core/tests/unit_tests/messages/block_translators/test_anthropic.py", "license": "MIT License", "lines": 495, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
test
langchain-ai/langchain:libs/core/tests/unit_tests/messages/block_translators/test_bedrock.py
from langchain_core.messages import AIMessage, AIMessageChunk, HumanMessage from langchain_core.messages import content as types def test_convert_to_v1_from_bedrock() -> None: message = AIMessage( [ {"type": "thinking", "thinking": "foo", "signature": "foo_signature"}, {"type": "te...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/core/tests/unit_tests/messages/block_translators/test_bedrock.py", "license": "MIT License", "lines": 392, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
test