repo stringlengths 7 90 | file_url stringlengths 81 315 | file_path stringlengths 4 228 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-04 14:38:15 2026-01-05 02:33:18 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
langchain-ai/langchain | https://github.com/langchain-ai/langchain/blob/e5d4acf681784d1ea356c932cf31c1c9723dbafa/libs/langchain/langchain_classic/utilities/dalle_image_generator.py | libs/langchain/langchain_classic/utilities/dalle_image_generator.py | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.utilities.dalle_image_generator import DallEAPIWrapper
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# h... | python | MIT | e5d4acf681784d1ea356c932cf31c1c9723dbafa | 2026-01-04T14:38:15.444279Z | false |
langchain-ai/langchain | https://github.com/langchain-ai/langchain/blob/e5d4acf681784d1ea356c932cf31c1c9723dbafa/libs/langchain/langchain_classic/utilities/jira.py | libs/langchain/langchain_classic/utilities/jira.py | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.utilities import JiraAPIWrapper
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional import... | python | MIT | e5d4acf681784d1ea356c932cf31c1c9723dbafa | 2026-01-04T14:38:15.444279Z | false |
langchain-ai/langchain | https://github.com/langchain-ai/langchain/blob/e5d4acf681784d1ea356c932cf31c1c9723dbafa/libs/langchain/langchain_classic/utilities/steam.py | libs/langchain/langchain_classic/utilities/steam.py | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.utilities import SteamWebAPIWrapper
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional im... | python | MIT | e5d4acf681784d1ea356c932cf31c1c9723dbafa | 2026-01-04T14:38:15.444279Z | false |
langchain-ai/langchain | https://github.com/langchain-ai/langchain/blob/e5d4acf681784d1ea356c932cf31c1c9723dbafa/libs/langchain/langchain_classic/utilities/google_serper.py | libs/langchain/langchain_classic/utilities/google_serper.py | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.utilities import GoogleSerperAPIWrapper
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optiona... | python | MIT | e5d4acf681784d1ea356c932cf31c1c9723dbafa | 2026-01-04T14:38:15.444279Z | false |
langchain-ai/langchain | https://github.com/langchain-ai/langchain/blob/e5d4acf681784d1ea356c932cf31c1c9723dbafa/libs/langchain/langchain_classic/utilities/opaqueprompts.py | 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... | python | MIT | e5d4acf681784d1ea356c932cf31c1c9723dbafa | 2026-01-04T14:38:15.444279Z | false |
langchain-ai/langchain | https://github.com/langchain-ai/langchain/blob/e5d4acf681784d1ea356c932cf31c1c9723dbafa/libs/langchain/langchain_classic/utilities/asyncio.py | libs/langchain/langchain_classic/utilities/asyncio.py | """Shims for asyncio features that may be missing from older python versions."""
import sys
if sys.version_info[:2] < (3, 11):
from async_timeout import timeout as asyncio_timeout
else:
from asyncio import timeout as asyncio_timeout
__all__ = ["asyncio_timeout"]
| python | MIT | e5d4acf681784d1ea356c932cf31c1c9723dbafa | 2026-01-04T14:38:15.444279Z | false |
langchain-ai/langchain | https://github.com/langchain-ai/langchain/blob/e5d4acf681784d1ea356c932cf31c1c9723dbafa/libs/langchain/langchain_classic/utilities/google_scholar.py | libs/langchain/langchain_classic/utilities/google_scholar.py | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.utilities import GoogleScholarAPIWrapper
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling option... | python | MIT | e5d4acf681784d1ea356c932cf31c1c9723dbafa | 2026-01-04T14:38:15.444279Z | false |
langchain-ai/langchain | https://github.com/langchain-ai/langchain/blob/e5d4acf681784d1ea356c932cf31c1c9723dbafa/libs/langchain/langchain_classic/utilities/google_trends.py | libs/langchain/langchain_classic/utilities/google_trends.py | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.utilities import GoogleTrendsAPIWrapper
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optiona... | python | MIT | e5d4acf681784d1ea356c932cf31c1c9723dbafa | 2026-01-04T14:38:15.444279Z | false |
langchain-ai/langchain | https://github.com/langchain-ai/langchain/blob/e5d4acf681784d1ea356c932cf31c1c9723dbafa/libs/langchain/langchain_classic/utilities/sql_database.py | 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... | python | MIT | e5d4acf681784d1ea356c932cf31c1c9723dbafa | 2026-01-04T14:38:15.444279Z | false |
langchain-ai/langchain | https://github.com/langchain-ai/langchain/blob/e5d4acf681784d1ea356c932cf31c1c9723dbafa/libs/langchain/langchain_classic/utilities/google_finance.py | libs/langchain/langchain_classic/utilities/google_finance.py | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.utilities import GoogleFinanceAPIWrapper
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling option... | python | MIT | e5d4acf681784d1ea356c932cf31c1c9723dbafa | 2026-01-04T14:38:15.444279Z | false |
langchain-ai/langchain | https://github.com/langchain-ai/langchain/blob/e5d4acf681784d1ea356c932cf31c1c9723dbafa/libs/langchain/langchain_classic/utilities/duckduckgo_search.py | libs/langchain/langchain_classic/utilities/duckduckgo_search.py | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.utilities import DuckDuckGoSearchAPIWrapper
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling opt... | python | MIT | e5d4acf681784d1ea356c932cf31c1c9723dbafa | 2026-01-04T14:38:15.444279Z | false |
langchain-ai/langchain | https://github.com/langchain-ai/langchain/blob/e5d4acf681784d1ea356c932cf31c1c9723dbafa/libs/langchain/langchain_classic/utilities/nasa.py | libs/langchain/langchain_classic/utilities/nasa.py | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.utilities import NasaAPIWrapper
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional import... | python | MIT | e5d4acf681784d1ea356c932cf31c1c9723dbafa | 2026-01-04T14:38:15.444279Z | false |
langchain-ai/langchain | https://github.com/langchain-ai/langchain/blob/e5d4acf681784d1ea356c932cf31c1c9723dbafa/libs/langchain/langchain_classic/utilities/requests.py | 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... | python | MIT | e5d4acf681784d1ea356c932cf31c1c9723dbafa | 2026-01-04T14:38:15.444279Z | false |
langchain-ai/langchain | https://github.com/langchain-ai/langchain/blob/e5d4acf681784d1ea356c932cf31c1c9723dbafa/libs/langchain/langchain_classic/utilities/google_places_api.py | libs/langchain/langchain_classic/utilities/google_places_api.py | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.utilities import GooglePlacesAPIWrapper
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optiona... | python | MIT | e5d4acf681784d1ea356c932cf31c1c9723dbafa | 2026-01-04T14:38:15.444279Z | false |
langchain-ai/langchain | https://github.com/langchain-ai/langchain/blob/e5d4acf681784d1ea356c932cf31c1c9723dbafa/libs/langchain/langchain_classic/utilities/stackexchange.py | libs/langchain/langchain_classic/utilities/stackexchange.py | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.utilities import StackExchangeAPIWrapper
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling option... | python | MIT | e5d4acf681784d1ea356c932cf31c1c9723dbafa | 2026-01-04T14:38:15.444279Z | false |
langchain-ai/langchain | https://github.com/langchain-ai/langchain/blob/e5d4acf681784d1ea356c932cf31c1c9723dbafa/libs/langchain/langchain_classic/utilities/redis.py | 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... | python | MIT | e5d4acf681784d1ea356c932cf31c1c9723dbafa | 2026-01-04T14:38:15.444279Z | false |
langchain-ai/langchain | https://github.com/langchain-ai/langchain/blob/e5d4acf681784d1ea356c932cf31c1c9723dbafa/libs/langchain/langchain_classic/utilities/powerbi.py | libs/langchain/langchain_classic/utilities/powerbi.py | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.utilities import PowerBIDataset
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional import... | python | MIT | e5d4acf681784d1ea356c932cf31c1c9723dbafa | 2026-01-04T14:38:15.444279Z | false |
langchain-ai/langchain | https://github.com/langchain-ai/langchain/blob/e5d4acf681784d1ea356c932cf31c1c9723dbafa/libs/langchain/langchain_classic/utilities/golden_query.py | libs/langchain/langchain_classic/utilities/golden_query.py | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.utilities import GoldenQueryAPIWrapper
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional... | python | MIT | e5d4acf681784d1ea356c932cf31c1c9723dbafa | 2026-01-04T14:38:15.444279Z | false |
langchain-ai/langchain | https://github.com/langchain-ai/langchain/blob/e5d4acf681784d1ea356c932cf31c1c9723dbafa/libs/langchain/langchain_classic/utilities/searchapi.py | libs/langchain/langchain_classic/utilities/searchapi.py | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.utilities import SearchApiAPIWrapper
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional i... | python | MIT | e5d4acf681784d1ea356c932cf31c1c9723dbafa | 2026-01-04T14:38:15.444279Z | false |
langchain-ai/langchain | https://github.com/langchain-ai/langchain/blob/e5d4acf681784d1ea356c932cf31c1c9723dbafa/libs/langchain/langchain_classic/utilities/dataforseo_api_search.py | libs/langchain/langchain_classic/utilities/dataforseo_api_search.py | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.utilities.dataforseo_api_search import DataForSeoAPIWrapper
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings an... | python | MIT | e5d4acf681784d1ea356c932cf31c1c9723dbafa | 2026-01-04T14:38:15.444279Z | false |
langchain-ai/langchain | https://github.com/langchain-ai/langchain/blob/e5d4acf681784d1ea356c932cf31c1c9723dbafa/libs/langchain/langchain_classic/utilities/google_search.py | libs/langchain/langchain_classic/utilities/google_search.py | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.utilities import GoogleSearchAPIWrapper
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optiona... | python | MIT | e5d4acf681784d1ea356c932cf31c1c9723dbafa | 2026-01-04T14:38:15.444279Z | false |
langchain-ai/langchain | https://github.com/langchain-ai/langchain/blob/e5d4acf681784d1ea356c932cf31c1c9723dbafa/libs/langchain/langchain_classic/utilities/zapier.py | libs/langchain/langchain_classic/utilities/zapier.py | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.utilities import ZapierNLAWrapper
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional impo... | python | MIT | e5d4acf681784d1ea356c932cf31c1c9723dbafa | 2026-01-04T14:38:15.444279Z | false |
langchain-ai/langchain | https://github.com/langchain-ai/langchain/blob/e5d4acf681784d1ea356c932cf31c1c9723dbafa/libs/langchain/langchain_classic/utilities/python.py | libs/langchain/langchain_classic/utilities/python.py | """For backwards compatibility."""
from typing import Any
from langchain_classic._api import create_importer
# Code has been removed from the community package as well.
# We'll proxy to community package, which will raise an appropriate exception,
# but we'll not include this in __all__, so it won't be listed as imp... | python | MIT | e5d4acf681784d1ea356c932cf31c1c9723dbafa | 2026-01-04T14:38:15.444279Z | false |
langchain-ai/langchain | https://github.com/langchain-ai/langchain/blob/e5d4acf681784d1ea356c932cf31c1c9723dbafa/libs/langchain/langchain_classic/utilities/clickup.py | libs/langchain/langchain_classic/utilities/clickup.py | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.utilities.clickup import (
ClickupAPIWrapper,
Component,
CUList,
Member,
Space,
Task,
Team,
)
# Create a way to dynamical... | python | MIT | e5d4acf681784d1ea356c932cf31c1c9723dbafa | 2026-01-04T14:38:15.444279Z | false |
langchain-ai/langchain | https://github.com/langchain-ai/langchain/blob/e5d4acf681784d1ea356c932cf31c1c9723dbafa/libs/langchain/langchain_classic/utilities/serpapi.py | 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... | python | MIT | e5d4acf681784d1ea356c932cf31c1c9723dbafa | 2026-01-04T14:38:15.444279Z | false |
langchain-ai/langchain | https://github.com/langchain-ai/langchain/blob/e5d4acf681784d1ea356c932cf31c1c9723dbafa/libs/langchain/langchain_classic/utilities/max_compute.py | 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 ... | python | MIT | e5d4acf681784d1ea356c932cf31c1c9723dbafa | 2026-01-04T14:38:15.444279Z | false |
langchain-ai/langchain | https://github.com/langchain-ai/langchain/blob/e5d4acf681784d1ea356c932cf31c1c9723dbafa/libs/langchain/langchain_classic/utilities/google_lens.py | libs/langchain/langchain_classic/utilities/google_lens.py | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.utilities import GoogleLensAPIWrapper
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional ... | python | MIT | e5d4acf681784d1ea356c932cf31c1c9723dbafa | 2026-01-04T14:38:15.444279Z | false |
langchain-ai/langchain | https://github.com/langchain-ai/langchain/blob/e5d4acf681784d1ea356c932cf31c1c9723dbafa/libs/langchain/langchain_classic/utilities/metaphor_search.py | libs/langchain/langchain_classic/utilities/metaphor_search.py | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.utilities import MetaphorSearchAPIWrapper
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optio... | python | MIT | e5d4acf681784d1ea356c932cf31c1c9723dbafa | 2026-01-04T14:38:15.444279Z | false |
langchain-ai/langchain | https://github.com/langchain-ai/langchain/blob/e5d4acf681784d1ea356c932cf31c1c9723dbafa/libs/langchain/langchain_classic/utilities/__init__.py | libs/langchain/langchain_classic/utilities/__init__.py | """**Utilities** are the integrations with third-part systems and packages.
Other LangChain classes use **Utilities** to interact with third-part systems
and packages.
"""
from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.utilitie... | python | MIT | e5d4acf681784d1ea356c932cf31c1c9723dbafa | 2026-01-04T14:38:15.444279Z | false |
langchain-ai/langchain | https://github.com/langchain-ai/langchain/blob/e5d4acf681784d1ea356c932cf31c1c9723dbafa/libs/langchain/langchain_classic/utilities/searx_search.py | libs/langchain/langchain_classic/utilities/searx_search.py | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.utilities import SearxSearchWrapper
from langchain_community.utilities.searx_search import SearxResults
# Create a way to dynamically look up deprecated imports.
# Used to conso... | python | MIT | e5d4acf681784d1ea356c932cf31c1c9723dbafa | 2026-01-04T14:38:15.444279Z | false |
langchain-ai/langchain | https://github.com/langchain-ai/langchain/blob/e5d4acf681784d1ea356c932cf31c1c9723dbafa/libs/langchain/langchain_classic/utilities/alpha_vantage.py | libs/langchain/langchain_classic/utilities/alpha_vantage.py | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.utilities import AlphaVantageAPIWrapper
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optiona... | python | MIT | e5d4acf681784d1ea356c932cf31c1c9723dbafa | 2026-01-04T14:38:15.444279Z | false |
langchain-ai/langchain | https://github.com/langchain-ai/langchain/blob/e5d4acf681784d1ea356c932cf31c1c9723dbafa/libs/langchain/langchain_classic/utilities/tensorflow_datasets.py | 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... | python | MIT | e5d4acf681784d1ea356c932cf31c1c9723dbafa | 2026-01-04T14:38:15.444279Z | false |
langchain-ai/langchain | https://github.com/langchain-ai/langchain/blob/e5d4acf681784d1ea356c932cf31c1c9723dbafa/libs/langchain/langchain_classic/utilities/vertexai.py | 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... | python | MIT | e5d4acf681784d1ea356c932cf31c1c9723dbafa | 2026-01-04T14:38:15.444279Z | false |
langchain-ai/langchain | https://github.com/langchain-ai/langchain/blob/e5d4acf681784d1ea356c932cf31c1c9723dbafa/libs/langchain/langchain_classic/utilities/arxiv.py | 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... | python | MIT | e5d4acf681784d1ea356c932cf31c1c9723dbafa | 2026-01-04T14:38:15.444279Z | false |
langchain-ai/langchain | https://github.com/langchain-ai/langchain/blob/e5d4acf681784d1ea356c932cf31c1c9723dbafa/libs/langchain/langchain_classic/utilities/apify.py | libs/langchain/langchain_classic/utilities/apify.py | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.utilities import ApifyWrapper
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional imports.... | python | MIT | e5d4acf681784d1ea356c932cf31c1c9723dbafa | 2026-01-04T14:38:15.444279Z | false |
langchain-ai/langchain | https://github.com/langchain-ai/langchain/blob/e5d4acf681784d1ea356c932cf31c1c9723dbafa/libs/langchain/langchain_classic/utilities/outline.py | 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... | python | MIT | e5d4acf681784d1ea356c932cf31c1c9723dbafa | 2026-01-04T14:38:15.444279Z | false |
langchain-ai/langchain | https://github.com/langchain-ai/langchain/blob/e5d4acf681784d1ea356c932cf31c1c9723dbafa/libs/langchain/langchain_classic/utilities/portkey.py | libs/langchain/langchain_classic/utilities/portkey.py | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.utilities import Portkey
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional imports.
DEPR... | python | MIT | e5d4acf681784d1ea356c932cf31c1c9723dbafa | 2026-01-04T14:38:15.444279Z | false |
langchain-ai/langchain | https://github.com/langchain-ai/langchain/blob/e5d4acf681784d1ea356c932cf31c1c9723dbafa/libs/langchain/langchain_classic/utilities/twilio.py | libs/langchain/langchain_classic/utilities/twilio.py | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.utilities import TwilioAPIWrapper
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional impo... | python | MIT | e5d4acf681784d1ea356c932cf31c1c9723dbafa | 2026-01-04T14:38:15.444279Z | false |
langchain-ai/langchain | https://github.com/langchain-ai/langchain/blob/e5d4acf681784d1ea356c932cf31c1c9723dbafa/libs/langchain/langchain_classic/utilities/merriam_webster.py | libs/langchain/langchain_classic/utilities/merriam_webster.py | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.utilities import MerriamWebsterAPIWrapper
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optio... | python | MIT | e5d4acf681784d1ea356c932cf31c1c9723dbafa | 2026-01-04T14:38:15.444279Z | false |
langchain-ai/langchain | https://github.com/langchain-ai/langchain/blob/e5d4acf681784d1ea356c932cf31c1c9723dbafa/libs/langchain/langchain_classic/utilities/tavily_search.py | libs/langchain/langchain_classic/utilities/tavily_search.py | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.utilities.tavily_search import TavilySearchAPIWrapper
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# ha... | python | MIT | e5d4acf681784d1ea356c932cf31c1c9723dbafa | 2026-01-04T14:38:15.444279Z | false |
langchain-ai/langchain | https://github.com/langchain-ai/langchain/blob/e5d4acf681784d1ea356c932cf31c1c9723dbafa/libs/langchain/langchain_classic/utilities/github.py | 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... | python | MIT | e5d4acf681784d1ea356c932cf31c1c9723dbafa | 2026-01-04T14:38:15.444279Z | false |
langchain-ai/langchain | https://github.com/langchain-ai/langchain/blob/e5d4acf681784d1ea356c932cf31c1c9723dbafa/libs/langchain/langchain_classic/utilities/arcee.py | 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... | python | MIT | e5d4acf681784d1ea356c932cf31c1c9723dbafa | 2026-01-04T14:38:15.444279Z | false |
langchain-ai/langchain | https://github.com/langchain-ai/langchain/blob/e5d4acf681784d1ea356c932cf31c1c9723dbafa/libs/langchain/langchain_classic/utilities/bing_search.py | libs/langchain/langchain_classic/utilities/bing_search.py | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.utilities import BingSearchAPIWrapper
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional ... | python | MIT | e5d4acf681784d1ea356c932cf31c1c9723dbafa | 2026-01-04T14:38:15.444279Z | false |
langchain-ai/langchain | https://github.com/langchain-ai/langchain/blob/e5d4acf681784d1ea356c932cf31c1c9723dbafa/libs/langchain/langchain_classic/utilities/openapi.py | 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... | python | MIT | e5d4acf681784d1ea356c932cf31c1c9723dbafa | 2026-01-04T14:38:15.444279Z | false |
langchain-ai/langchain | https://github.com/langchain-ai/langchain/blob/e5d4acf681784d1ea356c932cf31c1c9723dbafa/libs/langchain/langchain_classic/utilities/reddit_search.py | libs/langchain/langchain_classic/utilities/reddit_search.py | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.utilities.reddit_search import RedditSearchAPIWrapper
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# ha... | python | MIT | e5d4acf681784d1ea356c932cf31c1c9723dbafa | 2026-01-04T14:38:15.444279Z | false |
langchain-ai/langchain | https://github.com/langchain-ai/langchain/blob/e5d4acf681784d1ea356c932cf31c1c9723dbafa/libs/langchain/langchain_classic/docstore/wikipedia.py | libs/langchain/langchain_classic/docstore/wikipedia.py | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.docstore.wikipedia import Wikipedia
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional im... | python | MIT | e5d4acf681784d1ea356c932cf31c1c9723dbafa | 2026-01-04T14:38:15.444279Z | false |
langchain-ai/langchain | https://github.com/langchain-ai/langchain/blob/e5d4acf681784d1ea356c932cf31c1c9723dbafa/libs/langchain/langchain_classic/docstore/in_memory.py | libs/langchain/langchain_classic/docstore/in_memory.py | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.docstore.in_memory import InMemoryDocstore
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling opti... | python | MIT | e5d4acf681784d1ea356c932cf31c1c9723dbafa | 2026-01-04T14:38:15.444279Z | false |
langchain-ai/langchain | https://github.com/langchain-ai/langchain/blob/e5d4acf681784d1ea356c932cf31c1c9723dbafa/libs/langchain/langchain_classic/docstore/document.py | libs/langchain/langchain_classic/docstore/document.py | from langchain_core.documents import Document
__all__ = ["Document"]
| python | MIT | e5d4acf681784d1ea356c932cf31c1c9723dbafa | 2026-01-04T14:38:15.444279Z | false |
langchain-ai/langchain | https://github.com/langchain-ai/langchain/blob/e5d4acf681784d1ea356c932cf31c1c9723dbafa/libs/langchain/langchain_classic/docstore/arbitrary_fn.py | libs/langchain/langchain_classic/docstore/arbitrary_fn.py | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.docstore.arbitrary_fn import DocstoreFn
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optiona... | python | MIT | e5d4acf681784d1ea356c932cf31c1c9723dbafa | 2026-01-04T14:38:15.444279Z | false |
langchain-ai/langchain | https://github.com/langchain-ai/langchain/blob/e5d4acf681784d1ea356c932cf31c1c9723dbafa/libs/langchain/langchain_classic/docstore/__init__.py | libs/langchain/langchain_classic/docstore/__init__.py | """**Docstores** are classes to store and load Documents.
The **Docstore** is a simplified version of the Document Loader.
"""
from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.docstore.arbitrary_fn import DocstoreFn
from lang... | python | MIT | e5d4acf681784d1ea356c932cf31c1c9723dbafa | 2026-01-04T14:38:15.444279Z | false |
langchain-ai/langchain | https://github.com/langchain-ai/langchain/blob/e5d4acf681784d1ea356c932cf31c1c9723dbafa/libs/langchain/langchain_classic/docstore/base.py | libs/langchain/langchain_classic/docstore/base.py | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.docstore.base import AddableMixin, Docstore
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling opt... | python | MIT | e5d4acf681784d1ea356c932cf31c1c9723dbafa | 2026-01-04T14:38:15.444279Z | false |
langchain-ai/langchain | https://github.com/langchain-ai/langchain/blob/e5d4acf681784d1ea356c932cf31c1c9723dbafa/libs/langchain/langchain_classic/output_parsers/prompts.py | libs/langchain/langchain_classic/output_parsers/prompts.py | from langchain_core.prompts.prompt import PromptTemplate
NAIVE_FIX = """Instructions:
--------------
{instructions}
--------------
Completion:
--------------
{completion}
--------------
Above, the Completion did not satisfy the constraints given in the Instructions.
Error:
--------------
{error}
--------------
Pleas... | python | MIT | e5d4acf681784d1ea356c932cf31c1c9723dbafa | 2026-01-04T14:38:15.444279Z | false |
langchain-ai/langchain | https://github.com/langchain-ai/langchain/blob/e5d4acf681784d1ea356c932cf31c1c9723dbafa/libs/langchain/langchain_classic/output_parsers/combining.py | libs/langchain/langchain_classic/output_parsers/combining.py | from __future__ import annotations
from typing import Any
from langchain_core.output_parsers import BaseOutputParser
from langchain_core.utils import pre_init
from typing_extensions import override
_MIN_PARSERS = 2
class CombiningOutputParser(BaseOutputParser[dict[str, Any]]):
"""Combine multiple output parser... | python | MIT | e5d4acf681784d1ea356c932cf31c1c9723dbafa | 2026-01-04T14:38:15.444279Z | false |
langchain-ai/langchain | https://github.com/langchain-ai/langchain/blob/e5d4acf681784d1ea356c932cf31c1c9723dbafa/libs/langchain/langchain_classic/output_parsers/structured.py | libs/langchain/langchain_classic/output_parsers/structured.py | from __future__ import annotations
from typing import Any
from langchain_core.output_parsers import BaseOutputParser
from langchain_core.output_parsers.json import parse_and_check_json_markdown
from pydantic import BaseModel
from typing_extensions import override
from langchain_classic.output_parsers.format_instruct... | python | MIT | e5d4acf681784d1ea356c932cf31c1c9723dbafa | 2026-01-04T14:38:15.444279Z | false |
langchain-ai/langchain | https://github.com/langchain-ai/langchain/blob/e5d4acf681784d1ea356c932cf31c1c9723dbafa/libs/langchain/langchain_classic/output_parsers/enum.py | libs/langchain/langchain_classic/output_parsers/enum.py | from enum import Enum
from langchain_core.exceptions import OutputParserException
from langchain_core.output_parsers import BaseOutputParser
from langchain_core.utils import pre_init
from typing_extensions import override
class EnumOutputParser(BaseOutputParser[Enum]):
"""Parse an output that is one of a set of ... | python | MIT | e5d4acf681784d1ea356c932cf31c1c9723dbafa | 2026-01-04T14:38:15.444279Z | false |
langchain-ai/langchain | https://github.com/langchain-ai/langchain/blob/e5d4acf681784d1ea356c932cf31c1c9723dbafa/libs/langchain/langchain_classic/output_parsers/rail_parser.py | libs/langchain/langchain_classic/output_parsers/rail_parser.py | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.output_parsers.rail_parser import GuardrailsOutputParser
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
#... | python | MIT | e5d4acf681784d1ea356c932cf31c1c9723dbafa | 2026-01-04T14:38:15.444279Z | false |
langchain-ai/langchain | https://github.com/langchain-ai/langchain/blob/e5d4acf681784d1ea356c932cf31c1c9723dbafa/libs/langchain/langchain_classic/output_parsers/boolean.py | libs/langchain/langchain_classic/output_parsers/boolean.py | import re
from langchain_core.output_parsers import BaseOutputParser
class BooleanOutputParser(BaseOutputParser[bool]):
"""Parse the output of an LLM call to a boolean."""
true_val: str = "YES"
"""The string value that should be parsed as True."""
false_val: str = "NO"
"""The string value that s... | python | MIT | e5d4acf681784d1ea356c932cf31c1c9723dbafa | 2026-01-04T14:38:15.444279Z | false |
langchain-ai/langchain | https://github.com/langchain-ai/langchain/blob/e5d4acf681784d1ea356c932cf31c1c9723dbafa/libs/langchain/langchain_classic/output_parsers/datetime.py | libs/langchain/langchain_classic/output_parsers/datetime.py | from datetime import datetime, timedelta, timezone
from langchain_core.exceptions import OutputParserException
from langchain_core.output_parsers import BaseOutputParser
from langchain_core.utils import comma_list
class DatetimeOutputParser(BaseOutputParser[datetime]):
"""Parse the output of an LLM call to a dat... | python | MIT | e5d4acf681784d1ea356c932cf31c1c9723dbafa | 2026-01-04T14:38:15.444279Z | false |
langchain-ai/langchain | https://github.com/langchain-ai/langchain/blob/e5d4acf681784d1ea356c932cf31c1c9723dbafa/libs/langchain/langchain_classic/output_parsers/regex.py | libs/langchain/langchain_classic/output_parsers/regex.py | from __future__ import annotations
import re
from langchain_core.output_parsers import BaseOutputParser
from typing_extensions import override
class RegexParser(BaseOutputParser[dict[str, str]]):
"""Parse the output of an LLM call using a regex."""
@classmethod
@override
def is_lc_serializable(cls)... | python | MIT | e5d4acf681784d1ea356c932cf31c1c9723dbafa | 2026-01-04T14:38:15.444279Z | false |
langchain-ai/langchain | https://github.com/langchain-ai/langchain/blob/e5d4acf681784d1ea356c932cf31c1c9723dbafa/libs/langchain/langchain_classic/output_parsers/openai_functions.py | libs/langchain/langchain_classic/output_parsers/openai_functions.py | from langchain_core.output_parsers.openai_functions import (
JsonKeyOutputFunctionsParser,
JsonOutputFunctionsParser,
PydanticAttrOutputFunctionsParser,
PydanticOutputFunctionsParser,
)
__all__ = [
"JsonKeyOutputFunctionsParser",
"JsonOutputFunctionsParser",
"PydanticAttrOutputFunctionsPars... | python | MIT | e5d4acf681784d1ea356c932cf31c1c9723dbafa | 2026-01-04T14:38:15.444279Z | false |
langchain-ai/langchain | https://github.com/langchain-ai/langchain/blob/e5d4acf681784d1ea356c932cf31c1c9723dbafa/libs/langchain/langchain_classic/output_parsers/xml.py | libs/langchain/langchain_classic/output_parsers/xml.py | from langchain_core.output_parsers.xml import XMLOutputParser
__all__ = ["XMLOutputParser"]
| python | MIT | e5d4acf681784d1ea356c932cf31c1c9723dbafa | 2026-01-04T14:38:15.444279Z | false |
langchain-ai/langchain | https://github.com/langchain-ai/langchain/blob/e5d4acf681784d1ea356c932cf31c1c9723dbafa/libs/langchain/langchain_classic/output_parsers/openai_tools.py | libs/langchain/langchain_classic/output_parsers/openai_tools.py | from langchain_core.output_parsers.openai_tools import (
JsonOutputKeyToolsParser,
JsonOutputToolsParser,
PydanticToolsParser,
)
__all__ = ["JsonOutputKeyToolsParser", "JsonOutputToolsParser", "PydanticToolsParser"]
| python | MIT | e5d4acf681784d1ea356c932cf31c1c9723dbafa | 2026-01-04T14:38:15.444279Z | false |
langchain-ai/langchain | https://github.com/langchain-ai/langchain/blob/e5d4acf681784d1ea356c932cf31c1c9723dbafa/libs/langchain/langchain_classic/output_parsers/yaml.py | libs/langchain/langchain_classic/output_parsers/yaml.py | import json
import re
from typing import TypeVar
import yaml
from langchain_core.exceptions import OutputParserException
from langchain_core.output_parsers import BaseOutputParser
from pydantic import BaseModel, ValidationError
from typing_extensions import override
from langchain_classic.output_parsers.format_instru... | python | MIT | e5d4acf681784d1ea356c932cf31c1c9723dbafa | 2026-01-04T14:38:15.444279Z | false |
langchain-ai/langchain | https://github.com/langchain-ai/langchain/blob/e5d4acf681784d1ea356c932cf31c1c9723dbafa/libs/langchain/langchain_classic/output_parsers/list.py | libs/langchain/langchain_classic/output_parsers/list.py | from langchain_core.output_parsers.list import (
CommaSeparatedListOutputParser,
ListOutputParser,
MarkdownListOutputParser,
NumberedListOutputParser,
)
__all__ = [
"CommaSeparatedListOutputParser",
"ListOutputParser",
"MarkdownListOutputParser",
"NumberedListOutputParser",
]
| python | MIT | e5d4acf681784d1ea356c932cf31c1c9723dbafa | 2026-01-04T14:38:15.444279Z | false |
langchain-ai/langchain | https://github.com/langchain-ai/langchain/blob/e5d4acf681784d1ea356c932cf31c1c9723dbafa/libs/langchain/langchain_classic/output_parsers/pandas_dataframe.py | libs/langchain/langchain_classic/output_parsers/pandas_dataframe.py | import re
from typing import Any
from langchain_core.exceptions import OutputParserException
from langchain_core.output_parsers.base import BaseOutputParser
from pydantic import field_validator
from typing_extensions import override
from langchain_classic.output_parsers.format_instructions import (
PANDAS_DATAFRA... | python | MIT | e5d4acf681784d1ea356c932cf31c1c9723dbafa | 2026-01-04T14:38:15.444279Z | false |
langchain-ai/langchain | https://github.com/langchain-ai/langchain/blob/e5d4acf681784d1ea356c932cf31c1c9723dbafa/libs/langchain/langchain_classic/output_parsers/loading.py | libs/langchain/langchain_classic/output_parsers/loading.py | from langchain_classic.output_parsers.regex import RegexParser
def load_output_parser(config: dict) -> dict:
"""Load an output parser.
Args:
config: config dict
Returns:
config dict with output parser loaded
"""
if "output_parsers" in config and config["output_parsers"] is not No... | python | MIT | e5d4acf681784d1ea356c932cf31c1c9723dbafa | 2026-01-04T14:38:15.444279Z | false |
langchain-ai/langchain | https://github.com/langchain-ai/langchain/blob/e5d4acf681784d1ea356c932cf31c1c9723dbafa/libs/langchain/langchain_classic/output_parsers/fix.py | libs/langchain/langchain_classic/output_parsers/fix.py | from __future__ import annotations
from typing import Annotated, Any, TypeVar
from langchain_core.exceptions import OutputParserException
from langchain_core.output_parsers import BaseOutputParser, StrOutputParser
from langchain_core.prompts import BasePromptTemplate
from langchain_core.runnables import Runnable, Run... | python | MIT | e5d4acf681784d1ea356c932cf31c1c9723dbafa | 2026-01-04T14:38:15.444279Z | false |
langchain-ai/langchain | https://github.com/langchain-ai/langchain/blob/e5d4acf681784d1ea356c932cf31c1c9723dbafa/libs/langchain/langchain_classic/output_parsers/retry.py | libs/langchain/langchain_classic/output_parsers/retry.py | from __future__ import annotations
from typing import Annotated, Any, TypeVar
from langchain_core.exceptions import OutputParserException
from langchain_core.language_models import BaseLanguageModel
from langchain_core.output_parsers import BaseOutputParser, StrOutputParser
from langchain_core.prompt_values import Pr... | python | MIT | e5d4acf681784d1ea356c932cf31c1c9723dbafa | 2026-01-04T14:38:15.444279Z | false |
langchain-ai/langchain | https://github.com/langchain-ai/langchain/blob/e5d4acf681784d1ea356c932cf31c1c9723dbafa/libs/langchain/langchain_classic/output_parsers/__init__.py | libs/langchain/langchain_classic/output_parsers/__init__.py | """**OutputParser** classes parse the output of an LLM call."""
from typing import TYPE_CHECKING, Any
from langchain_core.output_parsers import (
CommaSeparatedListOutputParser,
ListOutputParser,
MarkdownListOutputParser,
NumberedListOutputParser,
PydanticOutputParser,
XMLOutputParser,
)
from ... | python | MIT | e5d4acf681784d1ea356c932cf31c1c9723dbafa | 2026-01-04T14:38:15.444279Z | false |
langchain-ai/langchain | https://github.com/langchain-ai/langchain/blob/e5d4acf681784d1ea356c932cf31c1c9723dbafa/libs/langchain/langchain_classic/output_parsers/json.py | libs/langchain/langchain_classic/output_parsers/json.py | from langchain_core.output_parsers.json import (
SimpleJsonOutputParser,
)
from langchain_core.utils.json import (
parse_and_check_json_markdown,
parse_json_markdown,
parse_partial_json,
)
__all__ = [
"SimpleJsonOutputParser",
"parse_and_check_json_markdown",
"parse_json_markdown",
"par... | python | MIT | e5d4acf681784d1ea356c932cf31c1c9723dbafa | 2026-01-04T14:38:15.444279Z | false |
langchain-ai/langchain | https://github.com/langchain-ai/langchain/blob/e5d4acf681784d1ea356c932cf31c1c9723dbafa/libs/langchain/langchain_classic/output_parsers/ernie_functions.py | libs/langchain/langchain_classic/output_parsers/ernie_functions.py | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.output_parsers.ernie_functions import (
JsonKeyOutputFunctionsParser,
JsonOutputFunctionsParser,
OutputFunctionsParser,
PydanticAttrOutputFunctionsPar... | python | MIT | e5d4acf681784d1ea356c932cf31c1c9723dbafa | 2026-01-04T14:38:15.444279Z | false |
langchain-ai/langchain | https://github.com/langchain-ai/langchain/blob/e5d4acf681784d1ea356c932cf31c1c9723dbafa/libs/langchain/langchain_classic/output_parsers/regex_dict.py | libs/langchain/langchain_classic/output_parsers/regex_dict.py | from __future__ import annotations
import re
from langchain_core.output_parsers import BaseOutputParser
class RegexDictParser(BaseOutputParser[dict[str, str]]):
"""Parse the output of an LLM call into a Dictionary using a regex."""
regex_pattern: str = r"{}:\s?([^.'\n']*)\.?"
"""The regex pattern to us... | python | MIT | e5d4acf681784d1ea356c932cf31c1c9723dbafa | 2026-01-04T14:38:15.444279Z | false |
langchain-ai/langchain | https://github.com/langchain-ai/langchain/blob/e5d4acf681784d1ea356c932cf31c1c9723dbafa/libs/langchain/langchain_classic/output_parsers/pydantic.py | libs/langchain/langchain_classic/output_parsers/pydantic.py | from langchain_core.output_parsers import PydanticOutputParser
__all__ = ["PydanticOutputParser"]
| python | MIT | e5d4acf681784d1ea356c932cf31c1c9723dbafa | 2026-01-04T14:38:15.444279Z | false |
langchain-ai/langchain | https://github.com/langchain-ai/langchain/blob/e5d4acf681784d1ea356c932cf31c1c9723dbafa/libs/langchain/langchain_classic/output_parsers/format_instructions.py | libs/langchain/langchain_classic/output_parsers/format_instructions.py | STRUCTURED_FORMAT_INSTRUCTIONS = """The output should be a markdown code snippet formatted in the following schema, including the leading and trailing "```json" and "```":
```json
{{
{format}
}}
```""" # noqa: E501
STRUCTURED_FORMAT_SIMPLE_INSTRUCTIONS = """
```json
{{
{format}
}}
```"""
PYDANTIC_FORMAT_INSTRUCTIO... | python | MIT | e5d4acf681784d1ea356c932cf31c1c9723dbafa | 2026-01-04T14:38:15.444279Z | false |
langchain-ai/langchain | https://github.com/langchain-ai/langchain/blob/e5d4acf681784d1ea356c932cf31c1c9723dbafa/libs/langchain/langchain_classic/evaluation/schema.py | libs/langchain/langchain_classic/evaluation/schema.py | """Interfaces to be implemented by general evaluators."""
from __future__ import annotations
import logging
from abc import ABC, abstractmethod
from collections.abc import Sequence
from enum import Enum
from typing import Any
from warnings import warn
from langchain_core.agents import AgentAction
from langchain_core... | python | MIT | e5d4acf681784d1ea356c932cf31c1c9723dbafa | 2026-01-04T14:38:15.444279Z | false |
langchain-ai/langchain | https://github.com/langchain-ai/langchain/blob/e5d4acf681784d1ea356c932cf31c1c9723dbafa/libs/langchain/langchain_classic/evaluation/loading.py | libs/langchain/langchain_classic/evaluation/loading.py | """Loading datasets and evaluators."""
from collections.abc import Sequence
from typing import Any
from langchain_core.language_models import BaseLanguageModel
from langchain_classic.chains.base import Chain
from langchain_classic.evaluation.agents.trajectory_eval_chain import (
TrajectoryEvalChain,
)
from langc... | python | MIT | e5d4acf681784d1ea356c932cf31c1c9723dbafa | 2026-01-04T14:38:15.444279Z | false |
langchain-ai/langchain | https://github.com/langchain-ai/langchain/blob/e5d4acf681784d1ea356c932cf31c1c9723dbafa/libs/langchain/langchain_classic/evaluation/__init__.py | libs/langchain/langchain_classic/evaluation/__init__.py | """**Evaluation** chains for grading LLM and Chain outputs.
This module contains off-the-shelf evaluation chains for grading the output of
LangChain primitives such as language models and chains.
**Loading an evaluator**
To load an evaluator, you can use the `load_evaluators <langchain.evaluation.loading.load_evalua... | python | MIT | e5d4acf681784d1ea356c932cf31c1c9723dbafa | 2026-01-04T14:38:15.444279Z | false |
langchain-ai/langchain | https://github.com/langchain-ai/langchain/blob/e5d4acf681784d1ea356c932cf31c1c9723dbafa/libs/langchain/langchain_classic/evaluation/regex_match/__init__.py | libs/langchain/langchain_classic/evaluation/regex_match/__init__.py | python | MIT | e5d4acf681784d1ea356c932cf31c1c9723dbafa | 2026-01-04T14:38:15.444279Z | false | |
langchain-ai/langchain | https://github.com/langchain-ai/langchain/blob/e5d4acf681784d1ea356c932cf31c1c9723dbafa/libs/langchain/langchain_classic/evaluation/regex_match/base.py | libs/langchain/langchain_classic/evaluation/regex_match/base.py | import re
from typing import Any
from typing_extensions import override
from langchain_classic.evaluation.schema import StringEvaluator
class RegexMatchStringEvaluator(StringEvaluator):
"""Compute a regex match between the prediction and the reference.
Examples:
----------
>>> evaluator = RegexMatc... | python | MIT | e5d4acf681784d1ea356c932cf31c1c9723dbafa | 2026-01-04T14:38:15.444279Z | false |
langchain-ai/langchain | https://github.com/langchain-ai/langchain/blob/e5d4acf681784d1ea356c932cf31c1c9723dbafa/libs/langchain/langchain_classic/evaluation/qa/eval_prompt.py | libs/langchain/langchain_classic/evaluation/qa/eval_prompt.py | from langchain_core.prompts import PromptTemplate
template = """You are a teacher grading a quiz.
You are given a question, the student's answer, and the true answer, and are asked to score the student answer as either CORRECT or INCORRECT.
Example Format:
QUESTION: question here
STUDENT ANSWER: student's answer here... | python | MIT | e5d4acf681784d1ea356c932cf31c1c9723dbafa | 2026-01-04T14:38:15.444279Z | false |
langchain-ai/langchain | https://github.com/langchain-ai/langchain/blob/e5d4acf681784d1ea356c932cf31c1c9723dbafa/libs/langchain/langchain_classic/evaluation/qa/generate_chain.py | libs/langchain/langchain_classic/evaluation/qa/generate_chain.py | """LLM Chain for generating examples for question answering."""
from __future__ import annotations
from typing import Any
from langchain_core.language_models import BaseLanguageModel
from langchain_core.output_parsers import BaseLLMOutputParser
from pydantic import Field
from typing_extensions import override
from ... | python | MIT | e5d4acf681784d1ea356c932cf31c1c9723dbafa | 2026-01-04T14:38:15.444279Z | false |
langchain-ai/langchain | https://github.com/langchain-ai/langchain/blob/e5d4acf681784d1ea356c932cf31c1c9723dbafa/libs/langchain/langchain_classic/evaluation/qa/eval_chain.py | libs/langchain/langchain_classic/evaluation/qa/eval_chain.py | """LLM Chains for evaluating question answering."""
from __future__ import annotations
import re
import string
from collections.abc import Sequence
from typing import Any
from langchain_core.callbacks import Callbacks
from langchain_core.language_models import BaseLanguageModel
from langchain_core.prompts import Pro... | python | MIT | e5d4acf681784d1ea356c932cf31c1c9723dbafa | 2026-01-04T14:38:15.444279Z | false |
langchain-ai/langchain | https://github.com/langchain-ai/langchain/blob/e5d4acf681784d1ea356c932cf31c1c9723dbafa/libs/langchain/langchain_classic/evaluation/qa/__init__.py | libs/langchain/langchain_classic/evaluation/qa/__init__.py | """Chains and utils related to evaluating question answering functionality."""
from langchain_classic.evaluation.qa.eval_chain import (
ContextQAEvalChain,
CotQAEvalChain,
QAEvalChain,
)
from langchain_classic.evaluation.qa.generate_chain import QAGenerateChain
__all__ = ["ContextQAEvalChain", "CotQAEvalC... | python | MIT | e5d4acf681784d1ea356c932cf31c1c9723dbafa | 2026-01-04T14:38:15.444279Z | false |
langchain-ai/langchain | https://github.com/langchain-ai/langchain/blob/e5d4acf681784d1ea356c932cf31c1c9723dbafa/libs/langchain/langchain_classic/evaluation/qa/generate_prompt.py | libs/langchain/langchain_classic/evaluation/qa/generate_prompt.py | from langchain_core.prompts import PromptTemplate
template = """You are a teacher coming up with questions to ask on a quiz.
Given the following document, please generate a question and answer based on that document.
Example Format:
<Begin Document>
...
<End Document>
QUESTION: question here
ANSWER: answer here
Thes... | python | MIT | e5d4acf681784d1ea356c932cf31c1c9723dbafa | 2026-01-04T14:38:15.444279Z | false |
langchain-ai/langchain | https://github.com/langchain-ai/langchain/blob/e5d4acf681784d1ea356c932cf31c1c9723dbafa/libs/langchain/langchain_classic/evaluation/comparison/prompt.py | libs/langchain/langchain_classic/evaluation/comparison/prompt.py | """Prompts for comparing the outputs of two models for a given question.
This prompt is used to compare two responses and evaluate which one best follows the instructions
and answers the question. The prompt is based on the paper from
Zheng, et. al. https://arxiv.org/abs/2306.05685
""" # noqa: E501
from langchain_co... | python | MIT | e5d4acf681784d1ea356c932cf31c1c9723dbafa | 2026-01-04T14:38:15.444279Z | false |
langchain-ai/langchain | https://github.com/langchain-ai/langchain/blob/e5d4acf681784d1ea356c932cf31c1c9723dbafa/libs/langchain/langchain_classic/evaluation/comparison/eval_chain.py | libs/langchain/langchain_classic/evaluation/comparison/eval_chain.py | """Base classes for comparing the output of two models."""
from __future__ import annotations
import logging
import re
from typing import Any
from langchain_core.callbacks import Callbacks
from langchain_core.language_models import BaseLanguageModel
from langchain_core.output_parsers import BaseOutputParser
from lan... | python | MIT | e5d4acf681784d1ea356c932cf31c1c9723dbafa | 2026-01-04T14:38:15.444279Z | false |
langchain-ai/langchain | https://github.com/langchain-ai/langchain/blob/e5d4acf681784d1ea356c932cf31c1c9723dbafa/libs/langchain/langchain_classic/evaluation/comparison/__init__.py | libs/langchain/langchain_classic/evaluation/comparison/__init__.py | r"""Comparison evaluators.
This module contains evaluators for comparing the output of two models,
be they LLMs, Chains, or otherwise. This can be used for scoring
preferences, measuring similarity / semantic equivalence between outputs,
or any other comparison task.
Example:
>>> from langchain_openai import Chat... | python | MIT | e5d4acf681784d1ea356c932cf31c1c9723dbafa | 2026-01-04T14:38:15.444279Z | false |
langchain-ai/langchain | https://github.com/langchain-ai/langchain/blob/e5d4acf681784d1ea356c932cf31c1c9723dbafa/libs/langchain/langchain_classic/evaluation/exact_match/__init__.py | libs/langchain/langchain_classic/evaluation/exact_match/__init__.py | python | MIT | e5d4acf681784d1ea356c932cf31c1c9723dbafa | 2026-01-04T14:38:15.444279Z | false | |
langchain-ai/langchain | https://github.com/langchain-ai/langchain/blob/e5d4acf681784d1ea356c932cf31c1c9723dbafa/libs/langchain/langchain_classic/evaluation/exact_match/base.py | libs/langchain/langchain_classic/evaluation/exact_match/base.py | import string
from typing import Any
from typing_extensions import override
from langchain_classic.evaluation.schema import StringEvaluator
class ExactMatchStringEvaluator(StringEvaluator):
"""Compute an exact match between the prediction and the reference.
Examples:
----------
>>> evaluator = Exac... | python | MIT | e5d4acf681784d1ea356c932cf31c1c9723dbafa | 2026-01-04T14:38:15.444279Z | false |
langchain-ai/langchain | https://github.com/langchain-ai/langchain/blob/e5d4acf681784d1ea356c932cf31c1c9723dbafa/libs/langchain/langchain_classic/evaluation/parsing/json_distance.py | libs/langchain/langchain_classic/evaluation/parsing/json_distance.py | import json
from collections.abc import Callable
from typing import Any
from langchain_core.utils.json import parse_json_markdown
from typing_extensions import override
from langchain_classic.evaluation.schema import StringEvaluator
class JsonEditDistanceEvaluator(StringEvaluator):
"""An evaluator that calculat... | python | MIT | e5d4acf681784d1ea356c932cf31c1c9723dbafa | 2026-01-04T14:38:15.444279Z | false |
langchain-ai/langchain | https://github.com/langchain-ai/langchain/blob/e5d4acf681784d1ea356c932cf31c1c9723dbafa/libs/langchain/langchain_classic/evaluation/parsing/__init__.py | libs/langchain/langchain_classic/evaluation/parsing/__init__.py | python | MIT | e5d4acf681784d1ea356c932cf31c1c9723dbafa | 2026-01-04T14:38:15.444279Z | false | |
langchain-ai/langchain | https://github.com/langchain-ai/langchain/blob/e5d4acf681784d1ea356c932cf31c1c9723dbafa/libs/langchain/langchain_classic/evaluation/parsing/base.py | libs/langchain/langchain_classic/evaluation/parsing/base.py | """Evaluators for parsing strings."""
import json
import logging
from collections.abc import Callable
from operator import eq
from typing import Any, cast
from langchain_core.utils.json import parse_json_markdown
from typing_extensions import override
from langchain_classic.evaluation.schema import StringEvaluator
... | python | MIT | e5d4acf681784d1ea356c932cf31c1c9723dbafa | 2026-01-04T14:38:15.444279Z | false |
langchain-ai/langchain | https://github.com/langchain-ai/langchain/blob/e5d4acf681784d1ea356c932cf31c1c9723dbafa/libs/langchain/langchain_classic/evaluation/parsing/json_schema.py | libs/langchain/langchain_classic/evaluation/parsing/json_schema.py | from typing import Any
from langchain_core.utils.json import parse_json_markdown
from typing_extensions import override
from langchain_classic.evaluation.schema import StringEvaluator
class JsonSchemaEvaluator(StringEvaluator):
"""An evaluator that validates a JSON prediction against a JSON schema reference.
... | python | MIT | e5d4acf681784d1ea356c932cf31c1c9723dbafa | 2026-01-04T14:38:15.444279Z | false |
langchain-ai/langchain | https://github.com/langchain-ai/langchain/blob/e5d4acf681784d1ea356c932cf31c1c9723dbafa/libs/langchain/langchain_classic/evaluation/agents/trajectory_eval_prompt.py | libs/langchain/langchain_classic/evaluation/agents/trajectory_eval_prompt.py | """Prompt for trajectory evaluation chain."""
from langchain_core.messages import AIMessage, HumanMessage, SystemMessage
from langchain_core.prompts.chat import (
ChatPromptTemplate,
HumanMessagePromptTemplate,
)
EVAL_TEMPLATE = """An AI language model has been given access to the following set of tools to he... | python | MIT | e5d4acf681784d1ea356c932cf31c1c9723dbafa | 2026-01-04T14:38:15.444279Z | false |
langchain-ai/langchain | https://github.com/langchain-ai/langchain/blob/e5d4acf681784d1ea356c932cf31c1c9723dbafa/libs/langchain/langchain_classic/evaluation/agents/__init__.py | libs/langchain/langchain_classic/evaluation/agents/__init__.py | """Chains for evaluating ReAct style agents."""
from langchain_classic.evaluation.agents.trajectory_eval_chain import (
TrajectoryEvalChain,
)
__all__ = ["TrajectoryEvalChain"]
| python | MIT | e5d4acf681784d1ea356c932cf31c1c9723dbafa | 2026-01-04T14:38:15.444279Z | false |
langchain-ai/langchain | https://github.com/langchain-ai/langchain/blob/e5d4acf681784d1ea356c932cf31c1c9723dbafa/libs/langchain/langchain_classic/evaluation/agents/trajectory_eval_chain.py | libs/langchain/langchain_classic/evaluation/agents/trajectory_eval_chain.py | """A chain for evaluating ReAct style agents.
This chain is used to evaluate ReAct style agents by reasoning about
the sequence of actions taken and their outcomes. It uses a language model
chain (LLMChain) to generate the reasoning and scores.
"""
import re
from collections.abc import Sequence
from typing import (
... | python | MIT | e5d4acf681784d1ea356c932cf31c1c9723dbafa | 2026-01-04T14:38:15.444279Z | false |
langchain-ai/langchain | https://github.com/langchain-ai/langchain/blob/e5d4acf681784d1ea356c932cf31c1c9723dbafa/libs/langchain/langchain_classic/evaluation/string_distance/__init__.py | libs/langchain/langchain_classic/evaluation/string_distance/__init__.py | """String distance evaluators."""
from langchain_classic.evaluation.string_distance.base import (
PairwiseStringDistanceEvalChain,
StringDistance,
StringDistanceEvalChain,
)
__all__ = [
"PairwiseStringDistanceEvalChain",
"StringDistance",
"StringDistanceEvalChain",
]
| python | MIT | e5d4acf681784d1ea356c932cf31c1c9723dbafa | 2026-01-04T14:38:15.444279Z | false |
langchain-ai/langchain | https://github.com/langchain-ai/langchain/blob/e5d4acf681784d1ea356c932cf31c1c9723dbafa/libs/langchain/langchain_classic/evaluation/string_distance/base.py | libs/langchain/langchain_classic/evaluation/string_distance/base.py | """String distance evaluators based on the RapidFuzz library."""
from collections.abc import Callable
from enum import Enum
from typing import Any
from langchain_core.callbacks import Callbacks
from langchain_core.callbacks.manager import (
AsyncCallbackManagerForChainRun,
CallbackManagerForChainRun,
)
from l... | python | MIT | e5d4acf681784d1ea356c932cf31c1c9723dbafa | 2026-01-04T14:38:15.444279Z | false |
langchain-ai/langchain | https://github.com/langchain-ai/langchain/blob/e5d4acf681784d1ea356c932cf31c1c9723dbafa/libs/langchain/langchain_classic/evaluation/embedding_distance/__init__.py | libs/langchain/langchain_classic/evaluation/embedding_distance/__init__.py | """Evaluators that measure embedding distances."""
from langchain_classic.evaluation.embedding_distance.base import (
EmbeddingDistance,
EmbeddingDistanceEvalChain,
PairwiseEmbeddingDistanceEvalChain,
)
__all__ = [
"EmbeddingDistance",
"EmbeddingDistanceEvalChain",
"PairwiseEmbeddingDistanceEv... | python | MIT | e5d4acf681784d1ea356c932cf31c1c9723dbafa | 2026-01-04T14:38:15.444279Z | false |
langchain-ai/langchain | https://github.com/langchain-ai/langchain/blob/e5d4acf681784d1ea356c932cf31c1c9723dbafa/libs/langchain/langchain_classic/evaluation/embedding_distance/base.py | libs/langchain/langchain_classic/evaluation/embedding_distance/base.py | """A chain for comparing the output of two models using embeddings."""
import functools
import logging
from enum import Enum
from importlib import util
from typing import Any
from langchain_core.callbacks import Callbacks
from langchain_core.callbacks.manager import (
AsyncCallbackManagerForChainRun,
Callback... | python | MIT | e5d4acf681784d1ea356c932cf31c1c9723dbafa | 2026-01-04T14:38:15.444279Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.