SYMBOL INDEX (12145 symbols across 1888 files) FILE: .github/scripts/check_diff.py function all_package_dirs (line 51) | def all_package_dirs() -> Set[str]: function dependents_graph (line 59) | def dependents_graph() -> dict: function add_dependents (line 112) | def add_dependents(dirs_to_eval: Set[str], dependents: dict) -> List[str]: function _get_configs_for_single_dir (line 125) | def _get_configs_for_single_dir(job: str, dir_: str) -> List[Dict[str, s... function _get_pydantic_test_configs (line 153) | def _get_pydantic_test_configs( function _get_configs_for_multi_dirs (line 208) | def _get_configs_for_multi_dirs( FILE: .github/scripts/get_min_versions.py function get_pypi_versions (line 37) | def get_pypi_versions(package_name: str) -> List[str]: function get_minimum_version (line 56) | def get_minimum_version(package_name: str, spec_string: str) -> str | None: function _check_python_version_from_requirement (line 94) | def _check_python_version_from_requirement( function get_min_version_from_toml (line 111) | def get_min_version_from_toml( function check_python_version (line 155) | def check_python_version(version_string, constraint_string): FILE: .github/scripts/pr-labeler.js function loadConfig (line 9) | function loadConfig() { function init (line 35) | function init(github, owner, repo, config, core) { function loadAndInit (line 273) | function loadAndInit(github, owner, repo, core) { FILE: libs/core/langchain_core/_api/__init__.py function __getattr__ (line 60) | def __getattr__(attr_name: str) -> object: function __dir__ (line 81) | def __dir__() -> list[str]: FILE: libs/core/langchain_core/_api/beta_decorator.py class LangChainBetaWarning (line 22) | class LangChainBetaWarning(DeprecationWarning): function beta (line 32) | def beta( function suppress_langchain_beta_warning (line 206) | def suppress_langchain_beta_warning() -> Generator[None, None, None]: function warn_beta (line 213) | def warn_beta( function surface_langchain_beta_warnings (line 248) | def surface_langchain_beta_warnings() -> None: FILE: libs/core/langchain_core/_api/deprecation.py function _build_deprecation_message (line 30) | def _build_deprecation_message( class LangChainDeprecationWarning (line 51) | class LangChainDeprecationWarning(DeprecationWarning): class LangChainPendingDeprecationWarning (line 55) | class LangChainPendingDeprecationWarning(PendingDeprecationWarning): function _validate_deprecation_params (line 66) | def _validate_deprecation_params( function deprecated (line 89) | def deprecated( function suppress_langchain_deprecation_warning (line 430) | def suppress_langchain_deprecation_warning() -> Generator[None, None, No... function warn_deprecated (line 438) | def warn_deprecated( function surface_langchain_deprecation_warnings (line 538) | def surface_langchain_deprecation_warnings() -> None: function rename_parameter (line 555) | def rename_parameter( FILE: libs/core/langchain_core/_api/internal.py function is_caller_internal (line 5) | def is_caller_internal(depth: int = 2) -> bool: FILE: libs/core/langchain_core/_api/path.py function get_relative_path (line 11) | def get_relative_path(file: Path | str, *, relative_to: Path = PACKAGE_D... function as_import_path (line 26) | def as_import_path( FILE: libs/core/langchain_core/_import_utils.py function import_attr (line 4) | def import_attr( FILE: libs/core/langchain_core/_security/_ssrf_protection.py function _normalize_ip (line 82) | def _normalize_ip(ip_str: str) -> str: function is_private_ip (line 97) | def is_private_ip(ip_str: str) -> bool: function is_cloud_metadata (line 113) | def is_cloud_metadata(hostname: str, ip_str: str | None = None) -> bool: function is_localhost (line 143) | def is_localhost(hostname: str, ip_str: str | None = None) -> bool: function validate_safe_url (line 174) | def validate_safe_url( function is_safe_url (line 293) | def is_safe_url( function _validate_url_ssrf_strict (line 327) | def _validate_url_ssrf_strict(v: Any) -> Any: function _validate_url_ssrf_https_only (line 334) | def _validate_url_ssrf_https_only(v: Any) -> Any: function _validate_url_ssrf_relaxed (line 341) | def _validate_url_ssrf_relaxed(v: Any) -> Any: FILE: libs/core/langchain_core/agents.py class AgentAction (line 44) | class AgentAction(Serializable): method __init__ (line 71) | def __init__(self, tool: str, tool_input: str | dict, log: str, **kwar... method is_lc_serializable (line 82) | def is_lc_serializable(cls) -> bool: method get_lc_namespace (line 91) | def get_lc_namespace(cls) -> list[str]: method messages (line 100) | def messages(self) -> Sequence[BaseMessage]: class AgentActionMessageLog (line 105) | class AgentActionMessageLog(AgentAction): class AgentStep (line 131) | class AgentStep(Serializable): method messages (line 141) | def messages(self) -> Sequence[BaseMessage]: class AgentFinish (line 146) | class AgentFinish(Serializable): method __init__ (line 167) | def __init__(self, return_values: dict, log: str, **kwargs: Any): method is_lc_serializable (line 172) | def is_lc_serializable(cls) -> bool: method get_lc_namespace (line 177) | def get_lc_namespace(cls) -> list[str]: method messages (line 186) | def messages(self) -> Sequence[BaseMessage]: function _convert_agent_action_to_messages (line 191) | def _convert_agent_action_to_messages( function _convert_agent_observation_to_messages (line 209) | def _convert_agent_observation_to_messages( function _create_function_message (line 234) | def _create_function_message( FILE: libs/core/langchain_core/caches.py class BaseCache (line 32) | class BaseCache(ABC): method lookup (line 49) | def lookup(self, prompt: str, llm_string: str) -> RETURN_VAL_TYPE | None: method update (line 73) | def update(self, prompt: str, llm_string: str, return_val: RETURN_VAL_... method clear (line 97) | def clear(self, **kwargs: Any) -> None: method alookup (line 100) | async def alookup(self, prompt: str, llm_string: str) -> RETURN_VAL_TY... method aupdate (line 125) | async def aupdate( method aclear (line 150) | async def aclear(self, **kwargs: Any) -> None: class InMemoryCache (line 155) | class InMemoryCache(BaseCache): method __init__ (line 182) | def __init__(self, *, maxsize: int | None = None) -> None: method lookup (line 201) | def lookup(self, prompt: str, llm_string: str) -> RETURN_VAL_TYPE | None: method update (line 216) | def update(self, prompt: str, llm_string: str, return_val: RETURN_VAL_... method clear (line 234) | def clear(self, **kwargs: Any) -> None: method alookup (line 238) | async def alookup(self, prompt: str, llm_string: str) -> RETURN_VAL_TY... method aupdate (line 253) | async def aupdate( method aclear (line 270) | async def aclear(self, **kwargs: Any) -> None: FILE: libs/core/langchain_core/callbacks/__init__.py function __getattr__ (line 124) | def __getattr__(attr_name: str) -> object: function __dir__ (line 131) | def __dir__() -> list[str]: FILE: libs/core/langchain_core/callbacks/base.py class RetrieverManagerMixin (line 23) | class RetrieverManagerMixin: method on_retriever_error (line 26) | def on_retriever_error( method on_retriever_end (line 43) | def on_retriever_end( class LLMManagerMixin (line 61) | class LLMManagerMixin: method on_llm_new_token (line 64) | def on_llm_new_token( method on_llm_end (line 89) | def on_llm_end( method on_llm_error (line 108) | def on_llm_error( class ChainManagerMixin (line 128) | class ChainManagerMixin: method on_chain_end (line 131) | def on_chain_end( method on_chain_error (line 148) | def on_chain_error( method on_agent_action (line 165) | def on_agent_action( method on_agent_finish (line 182) | def on_agent_finish( class ToolManagerMixin (line 200) | class ToolManagerMixin: method on_tool_end (line 203) | def on_tool_end( method on_tool_error (line 220) | def on_tool_error( class CallbackManagerMixin (line 238) | class CallbackManagerMixin: method on_llm_start (line 241) | def on_llm_start( method on_chat_model_start (line 270) | def on_chat_model_start( method on_retriever_start (line 322) | def on_retriever_start( method on_chain_start (line 345) | def on_chain_start( method on_tool_start (line 368) | def on_tool_start( class RunManagerMixin (line 394) | class RunManagerMixin: method on_text (line 397) | def on_text( method on_retry (line 414) | def on_retry( method on_custom_event (line 431) | def on_custom_event( class BaseCallbackHandler (line 455) | class BaseCallbackHandler( method ignore_llm (line 472) | def ignore_llm(self) -> bool: method ignore_retry (line 477) | def ignore_retry(self) -> bool: method ignore_chain (line 482) | def ignore_chain(self) -> bool: method ignore_agent (line 487) | def ignore_agent(self) -> bool: method ignore_retriever (line 492) | def ignore_retriever(self) -> bool: method ignore_chat_model (line 497) | def ignore_chat_model(self) -> bool: method ignore_custom_event (line 502) | def ignore_custom_event(self) -> bool: class AsyncCallbackHandler (line 507) | class AsyncCallbackHandler(BaseCallbackHandler): method on_llm_start (line 510) | async def on_llm_start( method on_chat_model_start (line 539) | async def on_chat_model_start( method on_llm_new_token (line 591) | async def on_llm_new_token( method on_llm_end (line 614) | async def on_llm_end( method on_llm_error (line 633) | async def on_llm_error( method on_chain_start (line 655) | async def on_chain_start( method on_chain_end (line 678) | async def on_chain_end( method on_chain_error (line 697) | async def on_chain_error( method on_tool_start (line 716) | async def on_tool_start( method on_tool_end (line 741) | async def on_tool_end( method on_tool_error (line 760) | async def on_tool_error( method on_text (line 779) | async def on_text( method on_retry (line 798) | async def on_retry( method on_agent_action (line 815) | async def on_agent_action( method on_agent_finish (line 834) | async def on_agent_finish( method on_retriever_start (line 853) | async def on_retriever_start( method on_retriever_end (line 876) | async def on_retriever_end( method on_retriever_error (line 895) | async def on_retriever_error( method on_custom_event (line 914) | async def on_custom_event( class BaseCallbackManager (line 938) | class BaseCallbackManager(CallbackManagerMixin): method __init__ (line 941) | def __init__( method copy (line 973) | def copy(self) -> Self: method merge (line 985) | def merge(self, other: BaseCallbackManager) -> Self: method is_async (line 1041) | def is_async(self) -> bool: method add_handler (line 1045) | def add_handler( method remove_handler (line 1061) | def remove_handler(self, handler: BaseCallbackHandler) -> None: method set_handlers (line 1072) | def set_handlers( method set_handler (line 1088) | def set_handler( method add_tags (line 1101) | def add_tags( method remove_tags (line 1119) | def remove_tags(self, tags: list[str]) -> None: method add_metadata (line 1131) | def add_metadata( method remove_metadata (line 1146) | def remove_metadata(self, keys: list[str]) -> None: FILE: libs/core/langchain_core/callbacks/file.py class FileCallbackHandler (line 21) | class FileCallbackHandler(BaseCallbackHandler): method __init__ (line 60) | def __init__( method __enter__ (line 81) | def __enter__(self) -> Self: method __exit__ (line 96) | def __exit__( method __del__ (line 112) | def __del__(self) -> None: method close (line 116) | def close(self) -> None: method _write (line 126) | def _write( method on_chain_start (line 164) | def on_chain_start( method on_chain_end (line 183) | def on_chain_end(self, outputs: dict[str, Any], **kwargs: Any) -> None: method on_agent_action (line 194) | def on_agent_action( method on_tool_end (line 210) | def on_tool_end( method on_text (line 237) | def on_text( method on_agent_finish (line 254) | def on_agent_finish( FILE: libs/core/langchain_core/callbacks/manager.py function _get_debug (line 49) | def _get_debug() -> bool: function trace_as_chain_group (line 54) | def trace_as_chain_group( function atrace_as_chain_group (line 134) | async def atrace_as_chain_group( function shielded (line 219) | def shielded(func: Func) -> Func: function handle_event (line 254) | def handle_event( function _run_coros (line 337) | def _run_coros(coros: list[Coroutine[Any, Any, Any]]) -> None: function _ahandle_event_for_handler (line 366) | async def _ahandle_event_for_handler( function ahandle_event (line 418) | async def ahandle_event( class BaseRunManager (line 455) | class BaseRunManager(RunManagerMixin): method __init__ (line 458) | def __init__( method get_noop_manager (line 493) | def get_noop_manager(cls) -> Self: class RunManager (line 511) | class RunManager(BaseRunManager): method on_text (line 514) | def on_text( method on_retry (line 538) | def on_retry( class ParentRunManager (line 564) | class ParentRunManager(RunManager): method get_child (line 567) | def get_child(self, tag: str | None = None) -> CallbackManager: class AsyncRunManager (line 586) | class AsyncRunManager(BaseRunManager, ABC): method get_sync (line 590) | def get_sync(self) -> RunManager: method on_text (line 598) | async def on_text( method on_retry (line 622) | async def on_retry( class AsyncParentRunManager (line 648) | class AsyncParentRunManager(AsyncRunManager): method get_child (line 651) | def get_child(self, tag: str | None = None) -> AsyncCallbackManager: class CallbackManagerForLLMRun (line 670) | class CallbackManagerForLLMRun(RunManager, LLMManagerMixin): method on_llm_new_token (line 673) | def on_llm_new_token( method on_llm_end (line 702) | def on_llm_end(self, response: LLMResult, **kwargs: Any) -> None: method on_llm_error (line 723) | def on_llm_error( class AsyncCallbackManagerForLLMRun (line 751) | class AsyncCallbackManagerForLLMRun(AsyncRunManager, LLMManagerMixin): method get_sync (line 754) | def get_sync(self) -> CallbackManagerForLLMRun: method on_llm_new_token (line 772) | async def on_llm_new_token( method on_llm_end (line 802) | async def on_llm_end(self, response: LLMResult, **kwargs: Any) -> None: method on_llm_error (line 824) | async def on_llm_error( class CallbackManagerForChainRun (line 853) | class CallbackManagerForChainRun(ParentRunManager, ChainManagerMixin): method on_chain_end (line 856) | def on_chain_end(self, outputs: dict[str, Any] | Any, **kwargs: Any) -... method on_chain_error (line 877) | def on_chain_error( method on_agent_action (line 902) | def on_agent_action(self, action: AgentAction, **kwargs: Any) -> None: method on_agent_finish (line 922) | def on_agent_finish(self, finish: AgentFinish, **kwargs: Any) -> None: class AsyncCallbackManagerForChainRun (line 943) | class AsyncCallbackManagerForChainRun(AsyncParentRunManager, ChainManage... method get_sync (line 946) | def get_sync(self) -> CallbackManagerForChainRun: method on_chain_end (line 964) | async def on_chain_end(self, outputs: dict[str, Any] | Any, **kwargs: ... method on_chain_error (line 986) | async def on_chain_error( method on_agent_action (line 1011) | async def on_agent_action(self, action: AgentAction, **kwargs: Any) ->... method on_agent_finish (line 1031) | async def on_agent_finish(self, finish: AgentFinish, **kwargs: Any) ->... class CallbackManagerForToolRun (line 1052) | class CallbackManagerForToolRun(ParentRunManager, ToolManagerMixin): method on_tool_end (line 1055) | def on_tool_end( method on_tool_error (line 1080) | def on_tool_error( class AsyncCallbackManagerForToolRun (line 1106) | class AsyncCallbackManagerForToolRun(AsyncParentRunManager, ToolManagerM... method get_sync (line 1109) | def get_sync(self) -> CallbackManagerForToolRun: method on_tool_end (line 1126) | async def on_tool_end(self, output: Any, **kwargs: Any) -> None: method on_tool_error (line 1147) | async def on_tool_error( class CallbackManagerForRetrieverRun (line 1173) | class CallbackManagerForRetrieverRun(ParentRunManager, RetrieverManagerM... method on_retriever_end (line 1176) | def on_retriever_end( method on_retriever_error (line 1201) | def on_retriever_error( class AsyncCallbackManagerForRetrieverRun (line 1227) | class AsyncCallbackManagerForRetrieverRun( method get_sync (line 1233) | def get_sync(self) -> CallbackManagerForRetrieverRun: method on_retriever_end (line 1252) | async def on_retriever_end( method on_retriever_error (line 1276) | async def on_retriever_error( class CallbackManager (line 1302) | class CallbackManager(BaseCallbackManager): method on_llm_start (line 1305) | def on_llm_start( method on_chat_model_start (line 1356) | def on_chat_model_start( method on_chain_start (line 1410) | def on_chain_start( method on_tool_start (line 1456) | def on_tool_start( method on_retriever_start (line 1516) | def on_retriever_start( method on_custom_event (line 1563) | def on_custom_event( method configure (line 1608) | def configure( class CallbackManagerForChainGroup (line 1644) | class CallbackManagerForChainGroup(CallbackManager): method __init__ (line 1647) | def __init__( method copy (line 1676) | def copy(self) -> CallbackManagerForChainGroup: method merge (line 1688) | def merge( method on_chain_end (line 1748) | def on_chain_end(self, outputs: dict[str, Any] | Any, **kwargs: Any) -... method on_chain_error (line 1759) | def on_chain_error( class AsyncCallbackManager (line 1775) | class AsyncCallbackManager(BaseCallbackManager): method is_async (line 1779) | def is_async(self) -> bool: method on_llm_start (line 1783) | async def on_llm_start( method on_chat_model_start (line 1871) | async def on_chat_model_start( method on_chain_start (line 1942) | async def on_chain_start( method on_tool_start (line 1988) | async def on_tool_start( method on_custom_event (line 2035) | async def on_custom_event( method on_retriever_start (line 2080) | async def on_retriever_start( method configure (line 2128) | def configure( class AsyncCallbackManagerForChainGroup (line 2164) | class AsyncCallbackManagerForChainGroup(AsyncCallbackManager): method __init__ (line 2167) | def __init__( method copy (line 2194) | def copy(self) -> AsyncCallbackManagerForChainGroup: method merge (line 2207) | def merge( method on_chain_end (line 2269) | async def on_chain_end(self, outputs: dict[str, Any] | Any, **kwargs: ... method on_chain_error (line 2279) | async def on_chain_error( function _configure (line 2297) | def _configure( function adispatch_custom_event (line 2485) | async def adispatch_custom_event( function dispatch_custom_event (line 2610) | def dispatch_custom_event( function _executor (line 2685) | def _executor() -> ThreadPoolExecutor: FILE: libs/core/langchain_core/callbacks/stdout.py class StdOutCallbackHandler (line 16) | class StdOutCallbackHandler(BaseCallbackHandler): method __init__ (line 19) | def __init__(self, color: str | None = None) -> None: method on_chain_start (line 28) | def on_chain_start( method on_chain_end (line 47) | def on_chain_end(self, outputs: dict[str, Any], **kwargs: Any) -> None: method on_agent_action (line 57) | def on_agent_action( method on_tool_end (line 70) | def on_tool_end( method on_text (line 95) | def on_text( method on_agent_finish (line 113) | def on_agent_finish( FILE: libs/core/langchain_core/callbacks/streaming_stdout.py class StreamingStdOutCallbackHandler (line 18) | class StreamingStdOutCallbackHandler(BaseCallbackHandler): method on_llm_start (line 24) | def on_llm_start( method on_chat_model_start (line 35) | def on_chat_model_start( method on_llm_new_token (line 50) | def on_llm_new_token(self, token: str, **kwargs: Any) -> None: method on_llm_end (line 60) | def on_llm_end(self, response: LLMResult, **kwargs: Any) -> None: method on_llm_error (line 68) | def on_llm_error(self, error: BaseException, **kwargs: Any) -> None: method on_chain_start (line 76) | def on_chain_start( method on_chain_end (line 87) | def on_chain_end(self, outputs: dict[str, Any], **kwargs: Any) -> None: method on_chain_error (line 95) | def on_chain_error(self, error: BaseException, **kwargs: Any) -> None: method on_tool_start (line 103) | def on_tool_start( method on_agent_action (line 114) | def on_agent_action(self, action: AgentAction, **kwargs: Any) -> Any: method on_tool_end (line 122) | def on_tool_end(self, output: Any, **kwargs: Any) -> None: method on_tool_error (line 130) | def on_tool_error(self, error: BaseException, **kwargs: Any) -> None: method on_text (line 138) | def on_text(self, text: str, **kwargs: Any) -> None: method on_agent_finish (line 146) | def on_agent_finish(self, finish: AgentFinish, **kwargs: Any) -> None: FILE: libs/core/langchain_core/callbacks/usage.py class UsageMetadataCallbackHandler (line 18) | class UsageMetadataCallbackHandler(BaseCallbackHandler): method __init__ (line 51) | def __init__(self) -> None: method __repr__ (line 58) | def __repr__(self) -> str: method on_llm_end (line 62) | def on_llm_end(self, response: LLMResult, **kwargs: Any) -> None: function get_usage_metadata_callback (line 93) | def get_usage_metadata_callback( FILE: libs/core/langchain_core/chat_history.py class BaseChatMessageHistory (line 22) | class BaseChatMessageHistory(ABC): method aget_messages (line 99) | async def aget_messages(self) -> list[BaseMessage]: method add_user_message (line 112) | def add_user_message(self, message: HumanMessage | str) -> None: method add_ai_message (line 130) | def add_ai_message(self, message: AIMessage | str) -> None: method add_message (line 148) | def add_message(self, message: BaseMessage) -> None: method add_messages (line 169) | def add_messages(self, messages: Sequence[BaseMessage]) -> None: method aadd_messages (line 181) | async def aadd_messages(self, messages: Sequence[BaseMessage]) -> None: method clear (line 190) | def clear(self) -> None: method aclear (line 193) | async def aclear(self) -> None: method __str__ (line 197) | def __str__(self) -> str: class InMemoryChatMessageHistory (line 202) | class InMemoryChatMessageHistory(BaseChatMessageHistory, BaseModel): method aget_messages (line 211) | async def aget_messages(self) -> list[BaseMessage]: method add_message (line 224) | def add_message(self, message: BaseMessage) -> None: method aadd_messages (line 232) | async def aadd_messages(self, messages: Sequence[BaseMessage]) -> None: method clear (line 240) | def clear(self) -> None: method aclear (line 244) | async def aclear(self) -> None: FILE: libs/core/langchain_core/chat_loaders.py class BaseChatLoader (line 9) | class BaseChatLoader(ABC): method lazy_load (line 13) | def lazy_load(self) -> Iterator[ChatSession]: method load (line 20) | def load(self) -> list[ChatSession]: FILE: libs/core/langchain_core/chat_sessions.py class ChatSession (line 9) | class ChatSession(TypedDict, total=False): FILE: libs/core/langchain_core/cross_encoders.py class BaseCrossEncoder (line 6) | class BaseCrossEncoder(ABC): method score (line 10) | def score(self, text_pairs: list[tuple[str, str]]) -> list[float]: FILE: libs/core/langchain_core/document_loaders/__init__.py function __getattr__ (line 31) | def __getattr__(attr_name: str) -> object: function __dir__ (line 38) | def __dir__() -> list[str]: FILE: libs/core/langchain_core/document_loaders/base.py class BaseLoader (line 26) | class BaseLoader(ABC): # noqa: B024 method load (line 37) | def load(self) -> list[Document]: method aload (line 45) | async def aload(self) -> list[Document]: method load_and_split (line 53) | def load_and_split( method lazy_load (line 91) | def lazy_load(self) -> Iterator[Document]: method alazy_load (line 102) | async def alazy_load(self) -> AsyncIterator[Document]: class BaseBlobParser (line 117) | class BaseBlobParser(ABC): method lazy_parse (line 128) | def lazy_parse(self, blob: Blob) -> Iterator[Document]: method parse (line 140) | def parse(self, blob: Blob) -> list[Document]: FILE: libs/core/langchain_core/document_loaders/blob_loaders.py class BlobLoader (line 19) | class BlobLoader(ABC): method yield_blobs (line 27) | def yield_blobs( FILE: libs/core/langchain_core/document_loaders/langsmith.py class LangSmithLoader (line 17) | class LangSmithLoader(BaseLoader): method __init__ (line 40) | def __init__( method lazy_load (line 113) | def lazy_load(self) -> Iterator[Document]: function _stringify (line 137) | def _stringify(x: str | dict[str, Any]) -> str: FILE: libs/core/langchain_core/documents/__init__.py function __getattr__ (line 47) | def __getattr__(attr_name: str) -> object: function __dir__ (line 54) | def __dir__() -> list[str]: FILE: libs/core/langchain_core/documents/base.py class BaseMedia (line 34) | class BaseMedia(Serializable): class Blob (line 59) | class Blob(BaseMedia): method source (line 137) | def source(self) -> str | None: method check_blob_is_valid (line 151) | def check_blob_is_valid(cls, values: dict[str, Any]) -> Any: method as_string (line 158) | def as_string(self) -> str: method as_bytes (line 176) | def as_bytes(self) -> bytes: method as_bytes_io (line 195) | def as_bytes_io(self) -> Generator[BytesIO | BufferedReader, None, None]: method from_path (line 214) | def from_path( method from_data (line 251) | def from_data( method __repr__ (line 280) | def __repr__(self) -> str: class Document (line 288) | class Document(BaseMedia): method __init__ (line 311) | def __init__(self, page_content: str, **kwargs: Any) -> None: method is_lc_serializable (line 318) | def is_lc_serializable(cls) -> bool: method get_lc_namespace (line 323) | def get_lc_namespace(cls) -> list[str]: method __str__ (line 331) | def __str__(self) -> str: FILE: libs/core/langchain_core/documents/compressor.py class BaseDocumentCompressor (line 19) | class BaseDocumentCompressor(BaseModel, ABC): method compress_documents (line 37) | def compress_documents( method acompress_documents (line 55) | async def acompress_documents( FILE: libs/core/langchain_core/documents/transformers.py class BaseDocumentTransformer (line 16) | class BaseDocumentTransformer(ABC): method transform_documents (line 54) | def transform_documents( method atransform_documents (line 66) | async def atransform_documents( FILE: libs/core/langchain_core/embeddings/__init__.py function __getattr__ (line 23) | def __getattr__(attr_name: str) -> object: function __dir__ (line 30) | def __dir__() -> list[str]: FILE: libs/core/langchain_core/embeddings/embeddings.py class Embeddings (line 8) | class Embeddings(ABC): method embed_documents (line 37) | def embed_documents(self, texts: list[str]) -> list[list[float]]: method embed_query (line 48) | def embed_query(self, text: str) -> list[float]: method aembed_documents (line 58) | async def aembed_documents(self, texts: list[str]) -> list[list[float]]: method aembed_query (line 69) | async def aembed_query(self, text: str) -> list[float]: FILE: libs/core/langchain_core/embeddings/fake.py class FakeEmbeddings (line 16) | class FakeEmbeddings(Embeddings, BaseModel): method _get_embedding (line 58) | def _get_embedding(self) -> list[float]: method embed_documents (line 62) | def embed_documents(self, texts: list[str]) -> list[list[float]]: method embed_query (line 66) | def embed_query(self, text: str) -> list[float]: class DeterministicFakeEmbedding (line 70) | class DeterministicFakeEmbedding(Embeddings, BaseModel): method _get_embedding (line 113) | def _get_embedding(self, seed: int) -> list[float]: method _get_seed (line 119) | def _get_seed(text: str) -> int: method embed_documents (line 124) | def embed_documents(self, texts: list[str]) -> list[list[float]]: method embed_query (line 128) | def embed_query(self, text: str) -> list[float]: FILE: libs/core/langchain_core/env.py function get_runtime_environment (line 10) | def get_runtime_environment() -> dict: FILE: libs/core/langchain_core/example_selectors/__init__.py function __getattr__ (line 39) | def __getattr__(attr_name: str) -> object: function __dir__ (line 46) | def __dir__() -> list[str]: FILE: libs/core/langchain_core/example_selectors/base.py class BaseExampleSelector (line 9) | class BaseExampleSelector(ABC): method add_example (line 13) | def add_example(self, example: dict[str, str]) -> Any: method aadd_example (line 24) | async def aadd_example(self, example: dict[str, str]) -> Any: method select_examples (line 37) | def select_examples(self, input_variables: dict[str, str]) -> list[dict]: method aselect_examples (line 48) | async def aselect_examples(self, input_variables: dict[str, str]) -> l... FILE: libs/core/langchain_core/example_selectors/length_based.py function _get_length_based (line 13) | def _get_length_based(text: str) -> int: class LengthBasedExampleSelector (line 17) | class LengthBasedExampleSelector(BaseExampleSelector, BaseModel): method add_example (line 66) | def add_example(self, example: dict[str, str]) -> None: method aadd_example (line 77) | async def aadd_example(self, example: dict[str, str]) -> None: method post_init (line 87) | def post_init(self) -> Self: method select_examples (line 95) | def select_examples(self, input_variables: dict[str, str]) -> list[dict]: method aselect_examples (line 118) | async def aselect_examples(self, input_variables: dict[str, str]) -> l... FILE: libs/core/langchain_core/example_selectors/semantic_similarity.py function sorted_values (line 18) | def sorted_values(values: dict[str, str]) -> list[Any]: class _VectorStoreExampleSelector (line 31) | class _VectorStoreExampleSelector(BaseExampleSelector, BaseModel, ABC): method _example_to_text (line 52) | def _example_to_text(example: dict[str, str], input_keys: list[str] | ... method _documents_to_examples (line 57) | def _documents_to_examples(self, documents: list[Document]) -> list[di... method add_example (line 66) | def add_example(self, example: dict[str, str]) -> str: method aadd_example (line 81) | async def aadd_example(self, example: dict[str, str]) -> str: class SemanticSimilarityExampleSelector (line 97) | class SemanticSimilarityExampleSelector(_VectorStoreExampleSelector): method select_examples (line 100) | def select_examples(self, input_variables: dict[str, str]) -> list[dict]: method aselect_examples (line 118) | async def aselect_examples(self, input_variables: dict[str, str]) -> l... method from_examples (line 137) | def from_examples( method afrom_examples (line 181) | async def afrom_examples( class MaxMarginalRelevanceExampleSelector (line 225) | class MaxMarginalRelevanceExampleSelector(_VectorStoreExampleSelector): method select_examples (line 235) | def select_examples(self, input_variables: dict[str, str]) -> list[dict]: method aselect_examples (line 251) | async def aselect_examples(self, input_variables: dict[str, str]) -> l... method from_examples (line 268) | def from_examples( method afrom_examples (line 314) | async def afrom_examples( FILE: libs/core/langchain_core/exceptions.py class LangChainException (line 7) | class LangChainException(Exception): # noqa: N818 class TracerException (line 11) | class TracerException(LangChainException): class OutputParserException (line 15) | class OutputParserException(ValueError, LangChainException): # noqa: N818 method __init__ (line 25) | def __init__( class ContextOverflowError (line 68) | class ContextOverflowError(LangChainException): class ErrorCode (line 76) | class ErrorCode(Enum): function create_message (line 88) | def create_message(*, message: str, error_code: ErrorCode) -> str: FILE: libs/core/langchain_core/globals.py function set_verbose (line 18) | def set_verbose(value: bool) -> None: # noqa: FBT001 function get_verbose (line 28) | def get_verbose() -> bool: function set_debug (line 37) | def set_debug(value: bool) -> None: # noqa: FBT001 function get_debug (line 47) | def get_debug() -> bool: function set_llm_cache (line 56) | def set_llm_cache(value: Optional["BaseCache"]) -> None: function get_llm_cache (line 66) | def get_llm_cache() -> Optional["BaseCache"]: FILE: libs/core/langchain_core/indexing/__init__.py function __getattr__ (line 45) | def __getattr__(attr_name: str) -> object: function __dir__ (line 52) | def __dir__() -> list[str]: FILE: libs/core/langchain_core/indexing/api.py function _hash_string_to_uuid (line 44) | def _hash_string_to_uuid(input_string: str) -> str: function _warn_about_sha1 (line 55) | def _warn_about_sha1() -> None: function _hash_string (line 73) | def _hash_string( function _hash_nested_dict (line 83) | def _hash_nested_dict( function _batch (line 91) | def _batch(size: int, iterable: Iterable[T]) -> Iterator[list[T]]: function _abatch (line 101) | async def _abatch(size: int, iterable: AsyncIterable[T]) -> AsyncIterato... function _get_source_id_assigner (line 116) | def _get_source_id_assigner( function _deduplicate_in_order (line 133) | def _deduplicate_in_order( class IndexingException (line 147) | class IndexingException(LangChainException): function _calculate_hash (line 151) | def _calculate_hash( function _get_document_with_hash (line 169) | def _get_document_with_hash( class _HashedDocument (line 229) | class _HashedDocument: method __init__ (line 230) | def __init__(self, *args: Any, **kwargs: Any) -> None: function _delete (line 241) | def _delete( class IndexingResult (line 277) | class IndexingResult(TypedDict): function index (line 290) | def index( function _to_async_iterator (line 601) | async def _to_async_iterator(iterator: Iterable[T]) -> AsyncIterator[T]: function _adelete (line 607) | async def _adelete( function aindex (line 629) | async def aindex( FILE: libs/core/langchain_core/indexing/base.py class RecordManager (line 22) | class RecordManager(ABC): method __init__ (line 57) | def __init__( method create_schema (line 69) | def create_schema(self) -> None: method acreate_schema (line 73) | async def acreate_schema(self) -> None: method get_time (line 77) | def get_time(self) -> float: method aget_time (line 88) | async def aget_time(self) -> float: method update (line 99) | def update( method aupdate (line 127) | async def aupdate( method exists (line 155) | def exists(self, keys: Sequence[str]) -> list[bool]: method aexists (line 166) | async def aexists(self, keys: Sequence[str]) -> list[bool]: method list_keys (line 177) | def list_keys( method alist_keys (line 198) | async def alist_keys( method delete_keys (line 219) | def delete_keys(self, keys: Sequence[str]) -> None: method adelete_keys (line 227) | async def adelete_keys(self, keys: Sequence[str]) -> None: class _Record (line 235) | class _Record(TypedDict): class InMemoryRecordManager (line 240) | class InMemoryRecordManager(RecordManager): method __init__ (line 243) | def __init__(self, namespace: str) -> None: method create_schema (line 255) | def create_schema(self) -> None: method acreate_schema (line 258) | async def acreate_schema(self) -> None: method get_time (line 262) | def get_time(self) -> float: method aget_time (line 266) | async def aget_time(self) -> float: method update (line 269) | def update( method aupdate (line 306) | async def aupdate( method exists (line 330) | def exists(self, keys: Sequence[str]) -> list[bool]: method aexists (line 341) | async def aexists(self, keys: Sequence[str]) -> list[bool]: method list_keys (line 352) | def list_keys( method alist_keys (line 388) | async def alist_keys( method delete_keys (line 415) | def delete_keys(self, keys: Sequence[str]) -> None: method adelete_keys (line 425) | async def adelete_keys(self, keys: Sequence[str]) -> None: class UpsertResponse (line 434) | class UpsertResponse(TypedDict): class DeleteResponse (line 460) | class DeleteResponse(TypedDict, total=False): class DocumentIndex (line 497) | class DocumentIndex(BaseRetriever): method upsert (line 514) | def upsert(self, items: Sequence[Document], /, **kwargs: Any) -> Upser... method aupsert (line 535) | async def aupsert( method delete (line 565) | def delete(self, ids: list[str] | None = None, **kwargs: Any) -> Delet... method adelete (line 581) | async def adelete( method get (line 605) | def get( method aget (line 631) | async def aget( FILE: libs/core/langchain_core/indexing/in_memory.py class InMemoryDocumentIndex (line 19) | class InMemoryDocumentIndex(DocumentIndex): method upsert (line 32) | def upsert(self, items: Sequence[Document], /, **kwargs: Any) -> Upser... method delete (line 61) | def delete(self, ids: list[str] | None = None, **kwargs: Any) -> Delet... method get (line 90) | def get(self, ids: Sequence[str], /, **kwargs: Any) -> list[Document]: method _get_relevant_documents (line 94) | def _get_relevant_documents( FILE: libs/core/langchain_core/language_models/__init__.py function __getattr__ (line 108) | def __getattr__(attr_name: str) -> object: function __dir__ (line 115) | def __dir__() -> list[str]: FILE: libs/core/langchain_core/language_models/_utils.py function is_openai_data_block (line 17) | def is_openai_data_block( class ParsedDataUri (line 83) | class ParsedDataUri(TypedDict): function _parse_data_uri (line 89) | def _parse_data_uri(uri: str) -> ParsedDataUri | None: function _normalize_messages (line 124) | def _normalize_messages( function _ensure_message_copy (line 295) | def _ensure_message_copy(message: T, formatted_message: T) -> T: function _update_content_block (line 304) | def _update_content_block( function _update_message_content_to_blocks (line 318) | def _update_message_content_to_blocks(message: T, output_version: str) -... FILE: libs/core/langchain_core/language_models/base.py class LangSmithParams (line 49) | class LangSmithParams(TypedDict, total=False): function get_tokenizer (line 77) | def get_tokenizer() -> Any: function _get_token_ids_default_method (line 103) | def _get_token_ids_default_method(text: str) -> list[int]: function _get_verbosity (line 137) | def _get_verbosity() -> bool: class BaseLanguageModel (line 141) | class BaseLanguageModel( method set_verbose (line 183) | def set_verbose(cls, verbose: bool | None) -> bool: # noqa: FBT001 method InputType (line 201) | def InputType(self) -> TypeAlias: method generate_prompt (line 209) | def generate_prompt( method agenerate_prompt (line 253) | async def agenerate_prompt( method with_structured_output (line 296) | def with_structured_output( method _get_ls_params (line 304) | def _get_ls_params( method _get_ls_params_with_defaults (line 312) | def _get_ls_params_with_defaults( method _identifying_params (line 321) | def _identifying_params(self) -> Mapping[str, Any]: method get_token_ids (line 325) | def get_token_ids(self, text: str) -> list[int]: method get_num_tokens (line 339) | def get_num_tokens(self, text: str) -> int: method get_num_tokens_from_messages (line 356) | def get_num_tokens_from_messages( FILE: libs/core/langchain_core/language_models/chat_models.py function _generate_response_from_error (line 88) | def _generate_response_from_error(error: BaseException) -> list[ChatGene... function _format_for_tracing (line 118) | def _format_for_tracing(messages: list[BaseMessage]) -> list[BaseMessage]: function generate_from_stream (line 186) | def generate_from_stream(stream: Iterator[ChatGenerationChunk]) -> ChatR... function agenerate_from_stream (line 215) | async def agenerate_from_stream( function _format_ls_structured_output (line 231) | def _format_ls_structured_output(ls_structured_output_format: dict | Non... class BaseChatModel (line 250) | class BaseChatModel(BaseLanguageModel[AIMessage], ABC): method _resolve_model_profile (line 364) | def _resolve_model_profile(self) -> ModelProfile | None: method _set_model_profile (line 384) | def _set_model_profile(self) -> Self: method _check_profile_keys (line 404) | def _check_profile_keys(self) -> Self: method _serialized (line 413) | def _serialized(self) -> dict[str, Any]: method OutputType (line 423) | def OutputType(self) -> Any: method _convert_input (line 427) | def _convert_input(self, model_input: LanguageModelInput) -> PromptValue: method invoke (line 441) | def invoke( method ainvoke (line 468) | async def ainvoke( method _should_stream (line 491) | def _should_stream( method stream (line 532) | def stream( method astream (line 658) | async def astream( method _combine_llm_outputs (line 789) | def _combine_llm_outputs(self, _llm_outputs: list[dict | None], /) -> ... method _convert_cached_generations (line 792) | def _convert_cached_generations(self, cache_val: list) -> list[ChatGen... method _get_invocation_params (line 831) | def _get_invocation_params( method _get_ls_params (line 840) | def _get_ls_params( method _get_ls_params_with_defaults (line 882) | def _get_ls_params_with_defaults( method _get_llm_string (line 892) | def _get_llm_string(self, stop: list[str] | None = None, **kwargs: Any... method generate (line 906) | def generate( method agenerate (line 1029) | async def agenerate( method generate_prompt (line 1177) | def generate_prompt( method agenerate_prompt (line 1188) | async def agenerate_prompt( method _generate_with_cache (line 1200) | def _generate_with_cache( method _agenerate_with_cache (line 1326) | async def _agenerate_with_cache( method _generate (line 1453) | def _generate( method _agenerate (line 1472) | async def _agenerate( method _stream (line 1499) | def _stream( method _astream (line 1519) | async def _astream( method _call_async (line 1557) | async def _call_async( method _llm_type (line 1575) | def _llm_type(self) -> str: method dict (line 1579) | def dict(self, **kwargs: Any) -> dict: method bind_tools (line 1585) | def bind_tools( method with_structured_output (line 1604) | def with_structured_output( class SimpleChatModel (line 1788) | class SimpleChatModel(BaseChatModel): method _generate (line 1797) | def _generate( method _call (line 1810) | def _call( method _agenerate (line 1819) | async def _agenerate( function _gen_info_and_msg_metadata (line 1836) | def _gen_info_and_msg_metadata( function _cleanup_llm_representation (line 1848) | def _cleanup_llm_representation(serialized: Any, depth: int) -> None: FILE: libs/core/langchain_core/language_models/fake.py class FakeListLLM (line 19) | class FakeListLLM(LLM): method _llm_type (line 39) | def _llm_type(self) -> str: method _call (line 44) | def _call( method _acall (line 60) | async def _acall( method _identifying_params (line 77) | def _identifying_params(self) -> Mapping[str, Any]: class FakeListLLMError (line 81) | class FakeListLLMError(Exception): class FakeStreamingListLLM (line 85) | class FakeStreamingListLLM(FakeListLLM): method stream (line 98) | def stream( method astream (line 119) | async def astream( FILE: libs/core/langchain_core/language_models/fake_chat_models.py class FakeMessagesListChatModel (line 21) | class FakeMessagesListChatModel(BaseChatModel): method _generate (line 32) | def _generate( method _llm_type (line 51) | def _llm_type(self) -> str: class FakeListChatModelError (line 55) | class FakeListChatModelError(Exception): class FakeListChatModel (line 59) | class FakeListChatModel(SimpleChatModel): method _llm_type (line 72) | def _llm_type(self) -> str: method _call (line 76) | def _call( method _stream (line 95) | def _stream( method _astream (line 124) | async def _astream( method _identifying_params (line 153) | def _identifying_params(self) -> dict[str, Any]: method batch (line 158) | def batch( method abatch (line 174) | async def abatch( class FakeChatModel (line 192) | class FakeChatModel(SimpleChatModel): method _call (line 196) | def _call( method _agenerate (line 206) | async def _agenerate( method _llm_type (line 219) | def _llm_type(self) -> str: method _identifying_params (line 223) | def _identifying_params(self) -> dict[str, Any]: class GenericFakeChatModel (line 227) | class GenericFakeChatModel(BaseChatModel): method _generate (line 254) | def _generate( method _stream (line 266) | def _stream( method _llm_type (line 370) | def _llm_type(self) -> str: class ParrotFakeChatModel (line 374) | class ParrotFakeChatModel(BaseChatModel): method _generate (line 382) | def _generate( method _llm_type (line 395) | def _llm_type(self) -> str: FILE: libs/core/langchain_core/language_models/llms.py function _log_error_once (line 68) | def _log_error_once(msg: str) -> None: function create_base_retry_decorator (line 73) | def create_base_retry_decorator( function _resolve_cache (line 131) | def _resolve_cache(*, cache: BaseCache | bool | None) -> BaseCache | None: function get_prompts (line 155) | def get_prompts( function aget_prompts (line 191) | async def aget_prompts( function update_cache (line 226) | def update_cache( function aupdate_cache (line 259) | async def aupdate_cache( class BaseLLM (line 292) | class BaseLLM(BaseLanguageModel[str], ABC): method _serialized (line 303) | def _serialized(self) -> dict[str, Any]: method OutputType (line 313) | def OutputType(self) -> type[str]: method _convert_input (line 317) | def _convert_input(self, model_input: LanguageModelInput) -> PromptValue: method _get_ls_params (line 330) | def _get_ls_params( method invoke (line 370) | def invoke( method ainvoke (line 395) | async def ainvoke( method batch (line 417) | def batch( method abatch (line 464) | async def abatch( method stream (line 510) | def stream( method astream (line 577) | async def astream( method _generate (line 650) | def _generate( method _agenerate (line 673) | async def _agenerate( method _stream (line 704) | def _stream( method _astream (line 735) | async def _astream( method generate_prompt (line 783) | def generate_prompt( method agenerate_prompt (line 794) | async def agenerate_prompt( method _generate_helper (line 806) | def _generate_helper( method generate (line 842) | def generate( method _get_run_ids_list (line 1059) | def _get_run_ids_list( method _agenerate_helper (line 1074) | async def _agenerate_helper( method agenerate (line 1117) | async def agenerate( method _call_async (line 1331) | async def _call_async( method __str__ (line 1352) | def __str__(self) -> str: method _llm_type (line 1359) | def _llm_type(self) -> str: method dict (line 1363) | def dict(self, **kwargs: Any) -> dict: method save (line 1369) | def save(self, file_path: Path | str) -> None: class LLM (line 1403) | class LLM(BaseLLM): method _call (line 1429) | def _call( method _acall (line 1457) | async def _acall( method _generate (line 1495) | def _generate( method _agenerate (line 1514) | async def _agenerate( FILE: libs/core/langchain_core/language_models/model_profile.py class ModelProfile (line 13) | class ModelProfile(TypedDict, total=False): function _warn_unknown_profile_keys (line 128) | def _warn_unknown_profile_keys(profile: ModelProfile) -> None: FILE: libs/core/langchain_core/load/__init__.py function __getattr__ (line 36) | def __getattr__(attr_name: str) -> object: function __dir__ (line 43) | def __dir__() -> list[str]: FILE: libs/core/langchain_core/load/_validation.py function _needs_escaping (line 36) | def _needs_escaping(obj: dict[str, Any]) -> bool: function _escape_dict (line 47) | def _escape_dict(obj: dict[str, Any]) -> dict[str, Any]: function _is_escaped_dict (line 58) | def _is_escaped_dict(obj: dict[str, Any]) -> bool: function _serialize_value (line 69) | def _serialize_value(obj: Any) -> Any: function _is_lc_secret (line 105) | def _is_lc_secret(obj: Any) -> bool: function _serialize_lc_object (line 117) | def _serialize_lc_object(obj: Any) -> dict[str, Any]: function _unescape_value (line 148) | def _unescape_value(obj: Any) -> Any: FILE: libs/core/langchain_core/load/dump.py function default (line 29) | def default(obj: Any) -> Any: function _dump_pydantic_models (line 43) | def _dump_pydantic_models(obj: Any) -> Any: function dumps (line 70) | def dumps(obj: Any, *, pretty: bool = False, **kwargs: Any) -> str: function dumpd (line 105) | def dumpd(obj: Any) -> Any: FILE: libs/core/langchain_core/load/load.py function _get_default_allowed_class_paths (line 148) | def _get_default_allowed_class_paths( function _block_jinja2_templates (line 176) | def _block_jinja2_templates( function default_init_validator (line 207) | def default_init_validator( function _compute_allowed_class_paths (line 245) | def _compute_allowed_class_paths( class Reviver (line 292) | class Reviver: method __init__ (line 301) | def __init__( method __call__ (line 392) | def __call__(self, value: dict[str, Any]) -> Any: function loads (line 505) | def loads( function load (line 595) | def load( FILE: libs/core/langchain_core/load/serializable.py class BaseSerialized (line 20) | class BaseSerialized(TypedDict): class SerializedConstructor (line 33) | class SerializedConstructor(BaseSerialized): class SerializedSecret (line 42) | class SerializedSecret(BaseSerialized): class SerializedNotImplemented (line 49) | class SerializedNotImplemented(BaseSerialized): function try_neq_default (line 58) | def try_neq_default(value: Any, key: str, model: BaseModel) -> bool: function _try_neq_default (line 73) | def _try_neq_default(value: Any, field: FieldInfo) -> bool: class Serializable (line 88) | class Serializable(BaseModel, ABC): method __init__ (line 116) | def __init__(self, *args: Any, **kwargs: Any) -> None: method is_lc_serializable (line 121) | def is_lc_serializable(cls) -> bool: method get_lc_namespace (line 134) | def get_lc_namespace(cls) -> list[str]: method lc_secrets (line 160) | def lc_secrets(self) -> dict[str, str]: method lc_attributes (line 168) | def lc_attributes(self) -> dict: method lc_id (line 178) | def lc_id(cls) -> list[str]: method __repr_args__ (line 202) | def __repr_args__(self) -> Any: method to_json (line 209) | def to_json(self) -> SerializedConstructor | SerializedNotImplemented: method to_json_not_implemented (line 287) | def to_json_not_implemented(self) -> SerializedNotImplemented: function _is_field_useful (line 296) | def _is_field_useful(inst: Serializable, key: str, value: Any) -> bool: function _replace_secrets (line 341) | def _replace_secrets( function to_json_not_implemented (line 362) | def to_json_not_implemented(obj: object) -> SerializedNotImplemented: FILE: libs/core/langchain_core/messages/__init__.py function __getattr__ (line 190) | def __getattr__(attr_name: str) -> object: function __dir__ (line 197) | def __dir__() -> list[str]: FILE: libs/core/langchain_core/messages/ai.py class InputTokenDetails (line 38) | class InputTokenDetails(TypedDict, total=False): class OutputTokenDetails (line 74) | class OutputTokenDetails(TypedDict, total=False): class UsageMetadata (line 104) | class UsageMetadata(TypedDict): class AIMessage (line 160) | class AIMessage(BaseMessage): method __init__ (line 186) | def __init__( method __init__ (line 193) | def __init__( method __init__ (line 200) | def __init__( method lc_attributes (line 231) | def lc_attributes(self) -> dict: method content_blocks (line 243) | def content_blocks(self) -> list[types.ContentBlock]: method _backwards_compat_tool_calls (line 304) | def _backwards_compat_tool_calls(cls, values: dict) -> Any: method pretty_repr (line 349) | def pretty_repr(self, html: bool = False) -> str: class AIMessageChunk (line 413) | class AIMessageChunk(AIMessage, BaseMessageChunk): method lc_attributes (line 434) | def lc_attributes(self) -> dict: method content_blocks (line 441) | def content_blocks(self) -> list[types.ContentBlock]: method init_tool_calls (line 495) | def init_tool_calls(self) -> Self: method init_server_tool_calls (line 590) | def init_server_tool_calls(self) -> Self: method __add__ (line 619) | def __add__(self, other: "AIMessageChunk") -> "AIMessageChunk": ... method __add__ (line 622) | def __add__(self, other: Sequence["AIMessageChunk"]) -> "AIMessageChun... method __add__ (line 625) | def __add__(self, other: Any) -> BaseMessageChunk: ... method __add__ (line 628) | def __add__(self, other: Any) -> BaseMessageChunk: function add_ai_message_chunks (line 638) | def add_ai_message_chunks( function add_usage (line 721) | def add_usage(left: UsageMetadata | None, right: UsageMetadata | None) -... function subtract_usage (line 780) | def subtract_usage( FILE: libs/core/langchain_core/messages/base.py function _extract_reasoning_from_additional_kwargs (line 24) | def _extract_reasoning_from_additional_kwargs( class TextAccessor (line 47) | class TextAccessor(str): method __new__ (line 64) | def __new__(cls, value: str) -> Self: method __call__ (line 68) | def __call__(self) -> str: class BaseMessage (line 93) | class BaseMessage(Serializable): method __init__ (line 147) | def __init__( method __init__ (line 154) | def __init__( method __init__ (line 161) | def __init__( method is_lc_serializable (line 182) | def is_lc_serializable(cls) -> bool: method get_lc_namespace (line 191) | def get_lc_namespace(cls) -> list[str]: method content_blocks (line 200) | def content_blocks(self) -> list[types.ContentBlock]: method text (line 263) | def text(self) -> TextAccessor: method __add__ (line 294) | def __add__(self, other: Any) -> ChatPromptTemplate: method pretty_repr (line 309) | def pretty_repr( method pretty_print (line 344) | def pretty_print(self) -> None: function merge_content (line 366) | def merge_content( class BaseMessageChunk (line 409) | class BaseMessageChunk(BaseMessage): method __add__ (line 412) | def __add__(self, other: Any) -> BaseMessageChunk: # type: ignore[ove... function message_to_dict (line 474) | def message_to_dict(message: BaseMessage) -> dict: function messages_to_dict (line 488) | def messages_to_dict(messages: Sequence[BaseMessage]) -> list[dict]: function get_msg_title_repr (line 501) | def get_msg_title_repr(title: str, *, bold: bool = False) -> str: FILE: libs/core/langchain_core/messages/block_translators/__init__.py function register_translator (line 39) | def register_translator( function get_translator (line 57) | def get_translator( function _register_translators (line 73) | def _register_translators() -> None: FILE: libs/core/langchain_core/messages/block_translators/anthropic.py function _populate_extras (line 11) | def _populate_extras( function _convert_to_v1_from_anthropic_input (line 29) | def _convert_to_v1_from_anthropic_input( function _convert_citation_to_v1 (line 142) | def _convert_citation_to_v1(citation: dict[str, Any]) -> types.Annotation: function _convert_to_v1_from_anthropic (line 198) | def _convert_to_v1_from_anthropic(message: AIMessage) -> list[types.Cont... function translate_content (line 463) | def translate_content(message: AIMessage) -> list[types.ContentBlock]: function translate_content_chunk (line 475) | def translate_content_chunk(message: AIMessageChunk) -> list[types.Conte... function _register_anthropic_translator (line 487) | def _register_anthropic_translator() -> None: FILE: libs/core/langchain_core/messages/block_translators/bedrock.py function _convert_to_v1_from_bedrock (line 10) | def _convert_to_v1_from_bedrock(message: AIMessage) -> list[types.Conten... function _convert_to_v1_from_bedrock_chunk (line 35) | def _convert_to_v1_from_bedrock_chunk( function translate_content (line 67) | def translate_content(message: AIMessage) -> list[types.ContentBlock]: function translate_content_chunk (line 81) | def translate_content_chunk(message: AIMessageChunk) -> list[types.Conte... function _register_bedrock_translator (line 96) | def _register_bedrock_translator() -> None: FILE: libs/core/langchain_core/messages/block_translators/bedrock_converse.py function _bytes_to_b64_str (line 11) | def _bytes_to_b64_str(bytes_: bytes) -> str: function _populate_extras (line 15) | def _populate_extras( function _convert_to_v1_from_converse_input (line 33) | def _convert_to_v1_from_converse_input( function _convert_citation_to_v1 (line 128) | def _convert_citation_to_v1(citation: dict[str, Any]) -> types.Annotation: function _convert_to_v1_from_converse (line 152) | def _convert_to_v1_from_converse(message: AIMessage) -> list[types.Conte... function translate_content (line 283) | def translate_content(message: AIMessage) -> list[types.ContentBlock]: function translate_content_chunk (line 295) | def translate_content_chunk(message: AIMessageChunk) -> list[types.Conte... function _register_bedrock_converse_translator (line 307) | def _register_bedrock_converse_translator() -> None: FILE: libs/core/langchain_core/messages/block_translators/google_genai.py function _bytes_to_b64_str (line 20) | def _bytes_to_b64_str(bytes_: bytes) -> str: function translate_grounding_metadata_to_citations (line 25) | def translate_grounding_metadata_to_citations( function _convert_to_v1_from_genai_input (line 122) | def _convert_to_v1_from_genai_input( function _convert_to_v1_from_genai (line 299) | def _convert_to_v1_from_genai(message: AIMessage) -> list[types.ContentB... function translate_content (line 530) | def translate_content(message: AIMessage) -> list[types.ContentBlock]: function translate_content_chunk (line 542) | def translate_content_chunk(message: AIMessageChunk) -> list[types.Conte... function _register_google_genai_translator (line 554) | def _register_google_genai_translator() -> None: FILE: libs/core/langchain_core/messages/block_translators/google_vertexai.py function _register_google_vertexai_translator (line 9) | def _register_google_vertexai_translator() -> None: FILE: libs/core/langchain_core/messages/block_translators/groq.py function _populate_extras (line 12) | def _populate_extras( function _parse_code_json (line 30) | def _parse_code_json(s: str) -> dict: function _convert_to_v1_from_groq (line 51) | def _convert_to_v1_from_groq(message: AIMessage) -> list[types.ContentBl... function translate_content (line 121) | def translate_content(message: AIMessage) -> list[types.ContentBlock]: function translate_content_chunk (line 133) | def translate_content_chunk(message: AIMessageChunk) -> list[types.Conte... function _register_groq_translator (line 145) | def _register_groq_translator() -> None: FILE: libs/core/langchain_core/messages/block_translators/langchain_v0.py function _convert_v0_multimodal_input_to_v1 (line 8) | def _convert_v0_multimodal_input_to_v1( function _convert_legacy_v0_content_block_to_v1 (line 46) | def _convert_legacy_v0_content_block_to_v1( FILE: libs/core/langchain_core/messages/block_translators/openai.py function convert_to_openai_image_block (line 22) | def convert_to_openai_image_block(block: dict[str, Any]) -> dict: function convert_to_openai_data_block (line 58) | def convert_to_openai_data_block( function _convert_to_v1_from_chat_completions (line 154) | def _convert_to_v1_from_chat_completions( function _convert_to_v1_from_chat_completions_input (line 178) | def _convert_to_v1_from_chat_completions_input( function _convert_to_v1_from_chat_completions_chunk (line 226) | def _convert_to_v1_from_chat_completions_chunk( function _convert_from_v1_to_chat_completions (line 263) | def _convert_from_v1_to_chat_completions(message: AIMessage) -> AIMessage: function _convert_from_v03_ai_message (line 288) | def _convert_from_v03_ai_message(message: AIMessage) -> AIMessage: function _convert_openai_format_to_data_block (line 423) | def _convert_openai_format_to_data_block( function _convert_annotation_to_v1 (line 557) | def _convert_annotation_to_v1(annotation: dict[str, Any]) -> types.Annot... function _explode_reasoning (line 610) | def _explode_reasoning(block: dict[str, Any]) -> Iterator[types.Reasonin... function _convert_to_v1_from_responses (line 652) | def _convert_to_v1_from_responses(message: AIMessage) -> list[types.Cont... function translate_content (line 1043) | def translate_content(message: AIMessage) -> list[types.ContentBlock]: function translate_content_chunk (line 1058) | def translate_content_chunk(message: AIMessageChunk) -> list[types.Conte... function _register_openai_translator (line 1073) | def _register_openai_translator() -> None: FILE: libs/core/langchain_core/messages/chat.py class ChatMessage (line 15) | class ChatMessage(BaseMessage): class ChatMessageChunk (line 25) | class ChatMessageChunk(ChatMessage, BaseMessageChunk): method __add__ (line 35) | def __add__(self, other: Any) -> BaseMessageChunk: # type: ignore[ove... FILE: libs/core/langchain_core/messages/content.py class Citation (line 126) | class Citation(TypedDict): class NonStandardAnnotation (line 184) | class NonStandardAnnotation(TypedDict): class TextContentBlock (line 207) | class TextContentBlock(TypedDict): class ToolCall (line 247) | class ToolCall(TypedDict): class ToolCallChunk (line 291) | class ToolCallChunk(TypedDict): class InvalidToolCall (line 336) | class InvalidToolCall(TypedDict): class ServerToolCall (line 372) | class ServerToolCall(TypedDict): class ServerToolCallChunk (line 397) | class ServerToolCallChunk(TypedDict): class ServerToolResult (line 425) | class ServerToolResult(TypedDict): class ReasoningContentBlock (line 456) | class ReasoningContentBlock(TypedDict): class ImageContentBlock (line 498) | class ImageContentBlock(TypedDict): class VideoContentBlock (line 549) | class VideoContentBlock(TypedDict): class AudioContentBlock (line 600) | class AudioContentBlock(TypedDict): class PlainTextContentBlock (line 651) | class PlainTextContentBlock(TypedDict): class FileContentBlock (line 721) | class FileContentBlock(TypedDict): class NonStandardContentBlock (line 790) | class NonStandardContentBlock(TypedDict): function _get_data_content_block_types (line 884) | def _get_data_content_block_types() -> tuple[str, ...]: function is_data_content_block (line 908) | def is_data_content_block(block: dict) -> bool: function create_text_block (line 950) | def create_text_block( function create_image_block (line 995) | def create_image_block( function create_video_block (line 1057) | def create_video_block( function create_audio_block (line 1123) | def create_audio_block( function create_file_block (line 1189) | def create_file_block( function create_plaintext_block (line 1255) | def create_plaintext_block( function create_tool_call (line 1318) | def create_tool_call( function create_reasoning_block (line 1363) | def create_reasoning_block( function create_citation (line 1404) | def create_citation( function create_non_standard_block (line 1454) | def create_non_standard_block( FILE: libs/core/langchain_core/messages/function.py class FunctionMessage (line 15) | class FunctionMessage(BaseMessage): class FunctionMessageChunk (line 34) | class FunctionMessageChunk(FunctionMessage, BaseMessageChunk): method __add__ (line 44) | def __add__(self, other: Any) -> BaseMessageChunk: # type: ignore[ove... FILE: libs/core/langchain_core/messages/human.py class HumanMessage (line 9) | class HumanMessage(BaseMessage): method __init__ (line 33) | def __init__( method __init__ (line 40) | def __init__( method __init__ (line 47) | def __init__( class HumanMessageChunk (line 63) | class HumanMessageChunk(HumanMessage, BaseMessageChunk): FILE: libs/core/langchain_core/messages/modifier.py class RemoveMessage (line 8) | class RemoveMessage(BaseMessage): method __init__ (line 14) | def __init__( FILE: libs/core/langchain_core/messages/system.py class SystemMessage (line 9) | class SystemMessage(BaseMessage): method __init__ (line 33) | def __init__( method __init__ (line 40) | def __init__( method __init__ (line 47) | def __init__( class SystemMessageChunk (line 63) | class SystemMessageChunk(SystemMessage, BaseMessageChunk): FILE: libs/core/langchain_core/messages/tool.py class ToolOutputMixin (line 16) | class ToolOutputMixin: class ToolMessage (line 26) | class ToolMessage(BaseMessage, ToolOutputMixin): method coerce_args (line 92) | def coerce_args(cls, values: dict) -> dict: method __init__ (line 136) | def __init__( method __init__ (line 143) | def __init__( method __init__ (line 150) | def __init__( class ToolMessageChunk (line 174) | class ToolMessageChunk(ToolMessage, BaseMessageChunk): method __add__ (line 183) | def __add__(self, other: Any) -> BaseMessageChunk: # type: ignore[ove... class ToolCall (line 206) | class ToolCall(TypedDict): function tool_call (line 242) | def tool_call( class ToolCallChunk (line 261) | class ToolCallChunk(TypedDict): function tool_call_chunk (line 303) | def tool_call_chunk( function invalid_tool_call (line 326) | def invalid_tool_call( function default_tool_parser (line 349) | def default_tool_parser( function default_tool_chunk_parser (line 386) | def default_tool_chunk_parser(raw_tool_calls: list[dict]) -> list[ToolCa... function _merge_status (line 413) | def _merge_status( FILE: libs/core/langchain_core/messages/utils.py function _get_type (line 68) | def _get_type(v: Any) -> str: function _has_base64_data (line 104) | def _has_base64_data(block: dict) -> bool: function _truncate (line 135) | def _truncate(text: str, max_len: int = _XML_CONTENT_BLOCK_MAX_LEN) -> str: function _format_content_block_xml (line 142) | def _format_content_block_xml(block: dict) -> str | None: function _get_message_type_str (line 247) | def _get_message_type_str( function get_buffer_string (line 287) | def get_buffer_string( function _message_from_dict (line 510) | def _message_from_dict(message: dict) -> BaseMessage: function messages_from_dict (line 542) | def messages_from_dict(messages: Sequence[dict]) -> list[BaseMessage]: function message_chunk_to_message (line 555) | def message_chunk_to_message(chunk: BaseMessage) -> BaseMessage: function _create_message_from_message_type (line 584) | def _create_message_from_message_type( function _convert_to_message (line 675) | def _convert_to_message(message: MessageLikeRepresentation) -> BaseMessage: function convert_to_messages (line 735) | def convert_to_messages( class _RunnableSupportCallable (line 759) | class _RunnableSupportCallable(Protocol[_P, _R_co]): method __call__ (line 761) | def __call__( method __call__ (line 769) | def __call__( method __call__ (line 776) | def __call__( function _runnable_support (line 784) | def _runnable_support( function filter_messages (line 806) | def filter_messages( function merge_message_runs (line 951) | def merge_message_runs( function trim_messages (line 1082) | def trim_messages( function convert_to_openai_messages (line 1478) | def convert_to_openai_messages( function convert_to_openai_messages (line 1488) | def convert_to_openai_messages( function convert_to_openai_messages (line 1497) | def convert_to_openai_messages( function _first_max_tokens (line 1912) | def _first_max_tokens( function _last_max_tokens (line 2028) | def _last_max_tokens( function _msg_to_chunk (line 2094) | def _msg_to_chunk(message: BaseMessage) -> BaseMessageChunk: function _chunk_to_msg (line 2110) | def _chunk_to_msg(chunk: BaseMessageChunk) -> BaseMessage: function _default_text_splitter (line 2131) | def _default_text_splitter(text: str) -> list[str]: function _is_message_type (line 2136) | def _is_message_type( function _bytes_to_b64_str (line 2147) | def _bytes_to_b64_str(bytes_: bytes) -> str: function _get_message_openai_role (line 2151) | def _get_message_openai_role(message: BaseMessage) -> str: function _convert_to_openai_tool_calls (line 2172) | def _convert_to_openai_tool_calls(tool_calls: list[ToolCall]) -> list[di... function count_tokens_approximately (line 2186) | def count_tokens_approximately( function _approximate_token_counter (line 2346) | def _approximate_token_counter(messages: Sequence[BaseMessage]) -> int: FILE: libs/core/langchain_core/output_parsers/__init__.py function __getattr__ (line 93) | def __getattr__(attr_name: str) -> object: function __dir__ (line 100) | def __dir__() -> list[str]: FILE: libs/core/langchain_core/output_parsers/base.py class BaseLLMOutputParser (line 30) | class BaseLLMOutputParser(ABC, Generic[T]): method parse_result (line 34) | def parse_result(self, result: list[Generation], *, partial: bool = Fa... method aparse_result (line 50) | async def aparse_result( class BaseGenerationOutputParser (line 70) | class BaseGenerationOutputParser( method InputType (line 77) | def InputType(self) -> Any: method OutputType (line 83) | def OutputType(self) -> type[T]: method invoke (line 90) | def invoke( method ainvoke (line 113) | async def ainvoke( class BaseOutputParser (line 136) | class BaseOutputParser( method InputType (line 173) | def InputType(self) -> Any: method OutputType (line 179) | def OutputType(self) -> type[T]: method invoke (line 200) | def invoke( method ainvoke (line 223) | async def ainvoke( method parse_result (line 246) | def parse_result(self, result: list[Generation], *, partial: bool = Fa... method parse (line 267) | def parse(self, text: str) -> T: method aparse_result (line 277) | async def aparse_result( method aparse (line 299) | async def aparse(self, text: str) -> T: method parse_with_prompt (line 311) | def parse_with_prompt( method get_format_instructions (line 330) | def get_format_instructions(self) -> str: method _type (line 335) | def _type(self) -> str: method dict (line 343) | def dict(self, **kwargs: Any) -> dict: FILE: libs/core/langchain_core/output_parsers/json.py class JsonOutputParser (line 31) | class JsonOutputParser(BaseCumulativeTransformOutputParser[Any]): method _diff (line 51) | def _diff(self, prev: Any | None, next: Any) -> Any: method _get_schema (line 55) | def _get_schema(pydantic_object: type[TBaseModel]) -> dict[str, Any]: method parse_result (line 61) | def parse_result(self, result: list[Generation], *, partial: bool = Fa... method parse (line 93) | def parse(self, text: str) -> Any: method get_format_instructions (line 104) | def get_format_instructions(self) -> str: method _type (line 126) | def _type(self) -> str: FILE: libs/core/langchain_core/output_parsers/list.py function droplastn (line 23) | def droplastn( class ListOutputParser (line 43) | class ListOutputParser(BaseTransformOutputParser[list[str]]): method _type (line 47) | def _type(self) -> str: method parse (line 51) | def parse(self, text: str) -> list[str]: method parse_iter (line 61) | def parse_iter(self, text: str) -> Iterator[re.Match]: method _transform (line 73) | def _transform(self, input: Iterator[str | BaseMessage]) -> Iterator[l... method _atransform (line 105) | async def _atransform( class CommaSeparatedListOutputParser (line 139) | class CommaSeparatedListOutputParser(ListOutputParser): method is_lc_serializable (line 143) | def is_lc_serializable(cls) -> bool: method get_lc_namespace (line 148) | def get_lc_namespace(cls) -> list[str]: method get_format_instructions (line 157) | def get_format_instructions(self) -> str: method parse (line 165) | def parse(self, text: str) -> list[str]: method _type (line 184) | def _type(self) -> str: class NumberedListOutputParser (line 188) | class NumberedListOutputParser(ListOutputParser): method get_format_instructions (line 195) | def get_format_instructions(self) -> str: method parse (line 201) | def parse(self, text: str) -> list[str]: method parse_iter (line 213) | def parse_iter(self, text: str) -> Iterator[re.Match]: method _type (line 217) | def _type(self) -> str: class MarkdownListOutputParser (line 221) | class MarkdownListOutputParser(ListOutputParser): method get_format_instructions (line 228) | def get_format_instructions(self) -> str: method parse (line 232) | def parse(self, text: str) -> list[str]: method parse_iter (line 244) | def parse_iter(self, text: str) -> Iterator[re.Match]: method _type (line 248) | def _type(self) -> str: FILE: libs/core/langchain_core/output_parsers/openai_functions.py class OutputFunctionsParser (line 22) | class OutputFunctionsParser(BaseGenerationOutputParser[Any]): method parse_result (line 29) | def parse_result(self, result: list[Generation], *, partial: bool = Fa... class JsonOutputFunctionsParser (line 58) | class JsonOutputFunctionsParser(BaseCumulativeTransformOutputParser[Any]): method _type (line 73) | def _type(self) -> str: method _diff (line 77) | def _diff(self, prev: Any | None, next: Any) -> Any: method parse_result (line 80) | def parse_result(self, result: list[Generation], *, partial: bool = Fa... method parse (line 145) | def parse(self, text: str) -> Any: class JsonKeyOutputFunctionsParser (line 157) | class JsonKeyOutputFunctionsParser(JsonOutputFunctionsParser): method parse_result (line 163) | def parse_result(self, result: list[Generation], *, partial: bool = Fa... class PydanticOutputFunctionsParser (line 179) | class PydanticOutputFunctionsParser(OutputFunctionsParser): method validate_schema (line 231) | def validate_schema(cls, values: dict[str, Any]) -> Any: method parse_result (line 259) | def parse_result(self, result: list[Generation], *, partial: bool = Fa... class PydanticAttrOutputFunctionsParser (line 295) | class PydanticAttrOutputFunctionsParser(PydanticOutputFunctionsParser): method parse_result (line 302) | def parse_result(self, result: list[Generation], *, partial: bool = Fa... FILE: libs/core/langchain_core/output_parsers/openai_tools.py function parse_tool_call (line 27) | def parse_tool_call( function make_invalid_tool_call (line 81) | def make_invalid_tool_call( function parse_tool_calls (line 102) | def parse_tool_calls( class JsonOutputToolsParser (line 140) | class JsonOutputToolsParser(BaseCumulativeTransformOutputParser[Any]): method parse_result (line 166) | def parse_result(self, result: list[Generation], *, partial: bool = Fa... method parse (line 213) | def parse(self, text: str) -> Any: class JsonOutputKeyToolsParser (line 225) | class JsonOutputKeyToolsParser(JsonOutputToolsParser): method parse_result (line 231) | def parse_result(self, result: list[Generation], *, partial: bool = Fa... class PydanticToolsParser (line 306) | class PydanticToolsParser(JsonOutputToolsParser): method parse_result (line 314) | def parse_result(self, result: list[Generation], *, partial: bool = Fa... FILE: libs/core/langchain_core/output_parsers/pydantic.py class PydanticOutputParser (line 19) | class PydanticOutputParser(JsonOutputParser, Generic[TBaseModel]): method _parse_obj (line 25) | def _parse_obj(self, obj: dict) -> TBaseModel: method _parser_exception (line 37) | def _parser_exception( method parse_result (line 46) | def parse_result( method parse_result (line 51) | def parse_result( method parse_result (line 55) | def parse_result( method parse (line 82) | def parse(self, text: str) -> TBaseModel: method get_format_instructions (line 93) | def get_format_instructions(self) -> str: method _type (line 114) | def _type(self) -> str: method OutputType (line 119) | def OutputType(self) -> type[TBaseModel]: FILE: libs/core/langchain_core/output_parsers/string.py class StrOutputParser (line 8) | class StrOutputParser(BaseTransformOutputParser[str]): method is_lc_serializable (line 38) | def is_lc_serializable(cls) -> bool: method get_lc_namespace (line 47) | def get_lc_namespace(cls) -> list[str]: method _type (line 56) | def _type(self) -> str: method parse (line 61) | def parse(self, text: str) -> str: FILE: libs/core/langchain_core/output_parsers/transform.py class BaseTransformOutputParser (line 28) | class BaseTransformOutputParser(BaseOutputParser[T]): method _transform (line 31) | def _transform( method _atransform (line 41) | async def _atransform( method transform (line 56) | def transform( method atransform (line 77) | async def atransform( class BaseCumulativeTransformOutputParser (line 99) | class BaseCumulativeTransformOutputParser(BaseTransformOutputParser[T]): method _diff (line 107) | def _diff( method _transform (line 126) | def _transform(self, input: Iterator[str | BaseMessage]) -> Iterator[A... method _atransform (line 151) | async def _atransform( FILE: libs/core/langchain_core/output_parsers/xml.py class _StreamingParser (line 42) | class _StreamingParser: method __init__ (line 49) | def __init__(self, parser: Literal["defusedxml", "xml"]) -> None: method parse (line 80) | def parse(self, chunk: str | BaseMessage) -> Iterator[AddableDict]: method close (line 141) | def close(self) -> None: class XMLOutputParser (line 151) | class XMLOutputParser(BaseTransformOutputParser): method get_format_instructions (line 202) | def get_format_instructions(self) -> str: method parse (line 206) | def parse(self, text: str) -> dict[str, str | list[Any]]: method _transform (line 253) | def _transform(self, input: Iterator[str | BaseMessage]) -> Iterator[A... method _atransform (line 260) | async def _atransform( method _root_to_dict (line 269) | def _root_to_dict(self, root: ET.Element) -> dict[str, str | list[Any]]: method _type (line 284) | def _type(self) -> str: function nested_element (line 288) | def nested_element(path: list[str], elem: ET.Element) -> Any: FILE: libs/core/langchain_core/outputs/__init__.py function __getattr__ (line 58) | def __getattr__(attr_name: str) -> object: function __dir__ (line 65) | def __dir__() -> list[str]: FILE: libs/core/langchain_core/outputs/chat_generation.py class ChatGeneration (line 17) | class ChatGeneration(Generation): method set_text (line 45) | def set_text(self) -> Self: class ChatGenerationChunk (line 87) | class ChatGenerationChunk(ChatGeneration): method __add__ (line 100) | def __add__( function merge_chat_generation_chunks (line 140) | def merge_chat_generation_chunks( FILE: libs/core/langchain_core/outputs/chat_result.py class ChatResult (line 8) | class ChatResult(BaseModel): FILE: libs/core/langchain_core/outputs/generation.py class Generation (line 11) | class Generation(Serializable): method is_lc_serializable (line 41) | def is_lc_serializable(cls) -> bool: method get_lc_namespace (line 46) | def get_lc_namespace(cls) -> list[str]: class GenerationChunk (line 55) | class GenerationChunk(Generation): method __add__ (line 58) | def __add__(self, other: GenerationChunk) -> GenerationChunk: FILE: libs/core/langchain_core/outputs/llm_result.py class LLMResult (line 15) | class LLMResult(BaseModel): method flatten (line 60) | def flatten(self) -> list[LLMResult]: method __eq__ (line 96) | def __eq__(self, other: object) -> bool: FILE: libs/core/langchain_core/outputs/run_info.py class RunInfo (line 10) | class RunInfo(BaseModel): FILE: libs/core/langchain_core/prompt_values.py class PromptValue (line 24) | class PromptValue(Serializable, ABC): method is_lc_serializable (line 32) | def is_lc_serializable(cls) -> bool: method get_lc_namespace (line 37) | def get_lc_namespace(cls) -> list[str]: method to_string (line 46) | def to_string(self) -> str: method to_messages (line 50) | def to_messages(self) -> list[BaseMessage]: class StringPromptValue (line 54) | class StringPromptValue(PromptValue): method get_lc_namespace (line 63) | def get_lc_namespace(cls) -> list[str]: method to_string (line 71) | def to_string(self) -> str: method to_messages (line 75) | def to_messages(self) -> list[BaseMessage]: class ChatPromptValue (line 80) | class ChatPromptValue(PromptValue): method to_string (line 89) | def to_string(self) -> str: method to_messages (line 93) | def to_messages(self) -> list[BaseMessage]: method get_lc_namespace (line 98) | def get_lc_namespace(cls) -> list[str]: class ImageURL (line 107) | class ImageURL(TypedDict, total=False): class ImagePromptValue (line 135) | class ImagePromptValue(PromptValue): method to_string (line 143) | def to_string(self) -> str: method to_messages (line 147) | def to_messages(self) -> list[BaseMessage]: class ChatPromptValueConcrete (line 152) | class ChatPromptValueConcrete(ChatPromptValue): FILE: libs/core/langchain_core/prompts/__init__.py function __getattr__ (line 93) | def __getattr__(attr_name: str) -> object: function __dir__ (line 100) | def __dir__() -> list[str]: FILE: libs/core/langchain_core/prompts/base.py class BasePromptTemplate (line 40) | class BasePromptTemplate( method validate_variable_names (line 80) | def validate_variable_names(self) -> Self: method get_lc_namespace (line 108) | def get_lc_namespace(cls) -> list[str]: method is_lc_serializable (line 117) | def is_lc_serializable(cls) -> bool: method _serialized (line 126) | def _serialized(self) -> dict[str, Any]: method OutputType (line 134) | def OutputType(self) -> Any: method get_input_schema (line 139) | def get_input_schema(self, config: RunnableConfig | None = None) -> ty... method _validate_input (line 160) | def _validate_input(self, inner_input: Any) -> dict: method _format_prompt_with_error_handling (line 196) | def _format_prompt_with_error_handling(self, inner_input: dict) -> Pro... method _aformat_prompt_with_error_handling (line 200) | async def _aformat_prompt_with_error_handling( method invoke (line 207) | def invoke( method ainvoke (line 233) | async def ainvoke( method format_prompt (line 259) | def format_prompt(self, **kwargs: Any) -> PromptValue: method aformat_prompt (line 269) | async def aformat_prompt(self, **kwargs: Any) -> PromptValue: method partial (line 280) | def partial(self, **kwargs: str | Callable[[], str]) -> BasePromptTemp... method _merge_partial_and_user_variables (line 296) | def _merge_partial_and_user_variables(self, **kwargs: Any) -> dict[str... method format (line 304) | def format(self, **kwargs: Any) -> FormatOutputType: method aformat (line 319) | async def aformat(self, **kwargs: Any) -> FormatOutputType: method _prompt_type (line 336) | def _prompt_type(self) -> str: method dict (line 340) | def dict(self, **kwargs: Any) -> dict: method save (line 360) | def save(self, file_path: Path | str) -> None: function _get_document_info (line 403) | def _get_document_info(doc: Document, prompt: BasePromptTemplate[str]) -... function format_document (line 421) | def format_document(doc: Document, prompt: BasePromptTemplate[str]) -> str: function aformat_document (line 456) | async def aformat_document(doc: Document, prompt: BasePromptTemplate[str... FILE: libs/core/langchain_core/prompts/chat.py class MessagesPlaceholder (line 53) | class MessagesPlaceholder(BaseMessagePromptTemplate): method __init__ (line 145) | def __init__( method format_messages (line 164) | def format_messages(self, **kwargs: Any) -> list[BaseMessage]: method input_variables (line 193) | def input_variables(self) -> list[str]: method pretty_repr (line 202) | def pretty_repr(self, html: bool = False) -> str: class BaseStringMessagePromptTemplate (line 226) | class BaseStringMessagePromptTemplate(BaseMessagePromptTemplate, ABC): method from_template (line 236) | def from_template( method from_template_file (line 268) | def from_template_file( method format (line 286) | def format(self, **kwargs: Any) -> BaseMessage: method aformat (line 296) | async def aformat(self, **kwargs: Any) -> BaseMessage: method format_messages (line 307) | def format_messages(self, **kwargs: Any) -> list[BaseMessage]: method aformat_messages (line 318) | async def aformat_messages(self, **kwargs: Any) -> list[BaseMessage]: method input_variables (line 330) | def input_variables(self) -> list[str]: method pretty_repr (line 339) | def pretty_repr(self, html: bool = False) -> str: class ChatMessagePromptTemplate (line 354) | class ChatMessagePromptTemplate(BaseStringMessagePromptTemplate): method format (line 360) | def format(self, **kwargs: Any) -> BaseMessage: method aformat (line 374) | async def aformat(self, **kwargs: Any) -> BaseMessage: class _TextTemplateParam (line 389) | class _TextTemplateParam(TypedDict, total=False): class _ImageTemplateParam (line 393) | class _ImageTemplateParam(TypedDict, total=False): class _StringImageMessagePromptTemplate (line 397) | class _StringImageMessagePromptTemplate(BaseMessagePromptTemplate): method from_template (line 411) | def from_template( method from_template_file (line 533) | def from_template_file( method format_messages (line 552) | def format_messages(self, **kwargs: Any) -> list[BaseMessage]: method aformat_messages (line 563) | async def aformat_messages(self, **kwargs: Any) -> list[BaseMessage]: method input_variables (line 575) | def input_variables(self) -> list[str]: method format (line 584) | def format(self, **kwargs: Any) -> BaseMessage: method aformat (line 615) | async def aformat(self, **kwargs: Any) -> BaseMessage: method pretty_repr (line 647) | def pretty_repr(self, html: bool = False) -> str: class HumanMessagePromptTemplate (line 664) | class HumanMessagePromptTemplate(_StringImageMessagePromptTemplate): class AIMessagePromptTemplate (line 673) | class AIMessagePromptTemplate(_StringImageMessagePromptTemplate): class SystemMessagePromptTemplate (line 682) | class SystemMessagePromptTemplate(_StringImageMessagePromptTemplate): class BaseChatPromptTemplate (line 691) | class BaseChatPromptTemplate(BasePromptTemplate, ABC): method lc_attributes (line 696) | def lc_attributes(self) -> dict: method format (line 699) | def format(self, **kwargs: Any) -> str: method aformat (line 711) | async def aformat(self, **kwargs: Any) -> str: method format_prompt (line 723) | def format_prompt(self, **kwargs: Any) -> ChatPromptValue: method aformat_prompt (line 734) | async def aformat_prompt(self, **kwargs: Any) -> ChatPromptValue: method format_messages (line 746) | def format_messages(self, **kwargs: Any) -> list[BaseMessage]: method aformat_messages (line 753) | async def aformat_messages(self, **kwargs: Any) -> list[BaseMessage]: method pretty_repr (line 761) | def pretty_repr( method pretty_print (line 775) | def pretty_print(self) -> None: class ChatPromptTemplate (line 790) | class ChatPromptTemplate(BaseChatPromptTemplate): method __init__ (line 903) | def __init__( method get_lc_namespace (line 999) | def get_lc_namespace(cls) -> list[str]: method __add__ (line 1007) | def __add__(self, other: Any) -> ChatPromptTemplate: method validate_input_variables (line 1049) | def validate_input_variables(cls, values: dict) -> Any: method from_template (line 1102) | def from_template(cls, template: str, **kwargs: Any) -> ChatPromptTemp... method from_messages (line 1120) | def from_messages( method format_messages (line 1170) | def format_messages(self, **kwargs: Any) -> list[BaseMessage]: method aformat_messages (line 1198) | async def aformat_messages(self, **kwargs: Any) -> list[BaseMessage]: method partial (line 1226) | def partial(self, **kwargs: Any) -> ChatPromptTemplate: method append (line 1261) | def append(self, message: MessageLikeRepresentation) -> None: method extend (line 1269) | def extend(self, messages: Sequence[MessageLikeRepresentation]) -> None: method __getitem__ (line 1280) | def __getitem__(self, index: int) -> MessageLike: ... method __getitem__ (line 1283) | def __getitem__(self, index: slice) -> ChatPromptTemplate: ... method __getitem__ (line 1285) | def __getitem__(self, index: int | slice) -> MessageLike | ChatPromptT... method __len__ (line 1300) | def __len__(self) -> int: method _prompt_type (line 1305) | def _prompt_type(self) -> str: method save (line 1315) | def save(self, file_path: Path | str) -> None: method pretty_repr (line 1324) | def pretty_repr(self, html: bool = False) -> str: function _create_template_from_message_type (line 1337) | def _create_template_from_message_type( function _convert_to_message_template (line 1414) | def _convert_to_message_template( FILE: libs/core/langchain_core/prompts/dict.py class DictPromptTemplate (line 18) | class DictPromptTemplate(RunnableSerializable[dict, dict]): method input_variables (line 30) | def input_variables(self) -> list[str]: method format (line 34) | def format(self, **kwargs: Any) -> dict[str, Any]: method aformat (line 42) | async def aformat(self, **kwargs: Any) -> dict[str, Any]: method invoke (line 51) | def invoke( method _prompt_type (line 64) | def _prompt_type(self) -> str: method _serialized (line 68) | def _serialized(self) -> dict[str, Any]: method is_lc_serializable (line 75) | def is_lc_serializable(cls) -> bool: method get_lc_namespace (line 80) | def get_lc_namespace(cls) -> list[str]: method pretty_repr (line 88) | def pretty_repr(self, *, html: bool = False) -> str: function _get_input_variables (line 100) | def _get_input_variables( function _insert_input_variables (line 118) | def _insert_input_variables( FILE: libs/core/langchain_core/prompts/few_shot.py class _FewShotPromptTemplateMixin (line 34) | class _FewShotPromptTemplateMixin(BaseModel): method check_examples_and_selector (line 56) | def check_examples_and_selector(cls, values: dict) -> Any: method _get_examples (line 82) | def _get_examples(self, **kwargs: Any) -> list[dict]: method _aget_examples (line 101) | async def _aget_examples(self, **kwargs: Any) -> list[dict]: class FewShotPromptTemplate (line 121) | class FewShotPromptTemplate(_FewShotPromptTemplateMixin, StringPromptTem... method is_lc_serializable (line 125) | def is_lc_serializable(cls) -> bool: method __init__ (line 150) | def __init__(self, **kwargs: Any) -> None: method template_is_valid (line 157) | def template_is_valid(self) -> Self: method format (line 180) | def format(self, **kwargs: Any) -> str: method aformat (line 208) | async def aformat(self, **kwargs: Any) -> str: method _prompt_type (line 237) | def _prompt_type(self) -> str: method save (line 247) | def save(self, file_path: Path | str) -> None: class FewShotChatMessagePromptTemplate (line 262) | class FewShotChatMessagePromptTemplate( method is_lc_serializable (line 388) | def is_lc_serializable(cls) -> bool: method format_messages (line 397) | def format_messages(self, **kwargs: Any) -> list[BaseMessage]: method aformat_messages (line 418) | async def aformat_messages(self, **kwargs: Any) -> list[BaseMessage]: method format (line 439) | def format(self, **kwargs: Any) -> str: method aformat (line 456) | async def aformat(self, **kwargs: Any) -> str: method pretty_repr (line 474) | def pretty_repr(self, html: bool = False) -> str: FILE: libs/core/langchain_core/prompts/few_shot_with_templates.py class FewShotPromptWithTemplates (line 19) | class FewShotPromptWithTemplates(StringPromptTemplate): method get_lc_namespace (line 56) | def get_lc_namespace(cls) -> list[str]: method check_examples_and_selector (line 66) | def check_examples_and_selector(cls, values: dict) -> Any: method template_is_valid (line 81) | def template_is_valid(self) -> Self: method _get_examples (line 109) | def _get_examples(self, **kwargs: Any) -> list[dict]: method _aget_examples (line 116) | async def _aget_examples(self, **kwargs: Any) -> list[dict]: method format (line 123) | def format(self, **kwargs: Any) -> str: method aformat (line 170) | async def aformat(self, **kwargs: Any) -> str: method _prompt_type (line 215) | def _prompt_type(self) -> str: method save (line 225) | def save(self, file_path: Path | str) -> None: FILE: libs/core/langchain_core/prompts/image.py class ImagePromptTemplate (line 16) | class ImagePromptTemplate(BasePromptTemplate[ImageURL]): method __init__ (line 28) | def __init__(self, **kwargs: Any) -> None: method _prompt_type (line 49) | def _prompt_type(self) -> str: method get_lc_namespace (line 54) | def get_lc_namespace(cls) -> list[str]: method format_prompt (line 62) | def format_prompt(self, **kwargs: Any) -> PromptValue: method aformat_prompt (line 73) | async def aformat_prompt(self, **kwargs: Any) -> PromptValue: method format (line 84) | def format( method aformat (line 134) | async def aformat(self, **kwargs: Any) -> ImageURL: method pretty_repr (line 145) | def pretty_repr( FILE: libs/core/langchain_core/prompts/loading.py function _validate_path (line 21) | def _validate_path(path: Path) -> None: function load_prompt_from_config (line 54) | def load_prompt_from_config( function _load_template (line 85) | def _load_template( function _load_examples (line 109) | def _load_examples(config: dict, *, allow_dangerous_paths: bool = False)... function _load_output_parser (line 132) | def _load_output_parser(config: dict) -> dict: function _load_few_shot_prompt (line 142) | def _load_few_shot_prompt( function _load_prompt (line 177) | def _load_prompt( function load_prompt (line 207) | def load_prompt( function _load_prompt_from_file (line 242) | def _load_prompt_from_file( function _load_chat_prompt (line 265) | def _load_chat_prompt( FILE: libs/core/langchain_core/prompts/message.py class BaseMessagePromptTemplate (line 16) | class BaseMessagePromptTemplate(Serializable, ABC): method is_lc_serializable (line 20) | def is_lc_serializable(cls) -> bool: method get_lc_namespace (line 25) | def get_lc_namespace(cls) -> list[str]: method format_messages (line 34) | def format_messages(self, **kwargs: Any) -> list[BaseMessage]: method aformat_messages (line 46) | async def aformat_messages(self, **kwargs: Any) -> list[BaseMessage]: method input_variables (line 59) | def input_variables(self) -> list[str]: method pretty_repr (line 66) | def pretty_repr( method pretty_print (line 80) | def pretty_print(self) -> None: method __add__ (line 84) | def __add__(self, other: Any) -> ChatPromptTemplate: FILE: libs/core/langchain_core/prompts/prompt.py class PromptTemplate (line 24) | class PromptTemplate(StringPromptTemplate): method lc_attributes (line 62) | def lc_attributes(self) -> dict[str, Any]: method get_lc_namespace (line 69) | def get_lc_namespace(cls) -> list[str]: method pre_init_validation (line 91) | def pre_init_validation(cls, values: dict) -> Any: method get_input_schema (line 128) | def get_input_schema(self, config: RunnableConfig | None = None) -> ty... method __add__ (line 142) | def __add__(self, other: Any) -> PromptTemplate: method _prompt_type (line 187) | def _prompt_type(self) -> str: method format (line 191) | def format(self, **kwargs: Any) -> str: method from_examples (line 204) | def from_examples( method from_file (line 236) | def from_file( method from_template (line 257) | def from_template( FILE: libs/core/langchain_core/prompts/string.py function jinja2_formatter (line 33) | def jinja2_formatter(template: str, /, **kwargs: Any) -> str: function validate_jinja2 (line 75) | def validate_jinja2(template: str, input_variables: list[str]) -> None: function _get_jinja2_variables_from_template (line 100) | def _get_jinja2_variables_from_template(template: str) -> set[str]: function mustache_formatter (line 112) | def mustache_formatter(template: str, /, **kwargs: Any) -> str: function mustache_template_vars (line 125) | def mustache_template_vars( function mustache_schema (line 158) | def mustache_schema(template: str) -> type[BaseModel]: function _create_model_recursive (line 197) | def _create_model_recursive(name: str, defs: Defs) -> type[BaseModel]: function check_valid_template (line 222) | def check_valid_template( function get_template_variables (line 256) | def get_template_variables(template: str, template_format: str) -> list[... class StringPromptTemplate (line 311) | class StringPromptTemplate(BasePromptTemplate, ABC): method get_lc_namespace (line 315) | def get_lc_namespace(cls) -> list[str]: method format_prompt (line 323) | def format_prompt(self, **kwargs: Any) -> PromptValue: method aformat_prompt (line 334) | async def aformat_prompt(self, **kwargs: Any) -> PromptValue: method format (line 347) | def format(self, **kwargs: Any) -> str: ... method pretty_repr (line 349) | def pretty_repr( method pretty_print (line 371) | def pretty_print(self) -> None: function is_subsequence (line 376) | def is_subsequence(child: Sequence, parent: Sequence) -> bool: FILE: libs/core/langchain_core/prompts/structured.py class StructuredPrompt (line 28) | class StructuredPrompt(ChatPromptTemplate): method __init__ (line 36) | def __init__( method get_lc_namespace (line 75) | def get_lc_namespace(cls) -> list[str]: method from_messages_and_schema (line 87) | def from_messages_and_schema( method __or__ (line 139) | def __or__( method pipe (line 149) | def pipe( FILE: libs/core/langchain_core/rate_limiters.py class BaseRateLimiter (line 11) | class BaseRateLimiter(abc.ABC): method acquire (line 29) | def acquire(self, *, blocking: bool = True) -> bool: method aacquire (line 48) | async def aacquire(self, *, blocking: bool = True) -> bool: class InMemoryRateLimiter (line 67) | class InMemoryRateLimiter(BaseRateLimiter): method __init__ (line 120) | def __init__( method _consume (line 165) | def _consume(self) -> bool: method acquire (line 197) | def acquire(self, *, blocking: bool = True) -> bool: method aacquire (line 222) | async def aacquire(self, *, blocking: bool = True) -> bool: FILE: libs/core/langchain_core/retrievers.py class LangSmithRetrieverParams (line 39) | class LangSmithRetrieverParams(TypedDict, total=False): class BaseRetriever (line 55) | class BaseRetriever(RunnableSerializable[RetrieverInput, RetrieverOutput... method __init_subclass__ (line 146) | def __init_subclass__(cls, **kwargs: Any) -> None: method _get_ls_params (line 167) | def _get_ls_params(self, **_kwargs: Any) -> LangSmithRetrieverParams: method invoke (line 179) | def invoke( method ainvoke (line 237) | async def ainvoke( method _get_relevant_documents (line 298) | def _get_relevant_documents( method _aget_relevant_documents (line 311) | async def _aget_relevant_documents( FILE: libs/core/langchain_core/runnables/__init__.py function __getattr__ (line 128) | def __getattr__(attr_name: str) -> object: function __dir__ (line 135) | def __dir__() -> list[str]: FILE: libs/core/langchain_core/runnables/base.py class Runnable (line 124) | class Runnable(ABC, Generic[Input, Output]): method get_name (line 261) | def get_name(self, suffix: str | None = None, *, name: str | None = No... method InputType (line 300) | def InputType(self) -> type[Input]: # noqa: N802 method OutputType (line 335) | def OutputType(self) -> type[Output]: # noqa: N802 method input_schema (line 366) | def input_schema(self) -> type[BaseModel]: method get_input_schema (line 370) | def get_input_schema( method get_input_jsonschema (line 411) | def get_input_jsonschema( method output_schema (line 442) | def output_schema(self) -> type[BaseModel]: method get_output_schema (line 449) | def get_output_schema( method get_output_jsonschema (line 490) | def get_output_jsonschema( method config_specs (line 521) | def config_specs(self) -> list[ConfigurableFieldSpec]: method config_schema (line 525) | def config_schema(self, *, include: Sequence[str] | None = None) -> ty... method get_config_jsonschema (line 568) | def get_config_jsonschema( method get_graph (line 584) | def get_graph(self, config: RunnableConfig | None = None) -> Graph: method get_prompts (line 605) | def get_prompts( method __or__ (line 618) | def __or__( method __ror__ (line 639) | def __ror__( method pipe (line 660) | def pipe( method pick (line 709) | def pick(self, keys: str | list[str]) -> RunnableSerializable[Any, Any]: method assign (line 772) | def assign( method invoke (line 822) | def invoke( method ainvoke (line 844) | async def ainvoke( method batch (line 867) | def batch( method batch_as_completed (line 918) | def batch_as_completed( method batch_as_completed (line 928) | def batch_as_completed( method batch_as_completed (line 937) | def batch_as_completed( method abatch (line 1002) | async def abatch( method abatch_as_completed (line 1051) | def abatch_as_completed( method abatch_as_completed (line 1061) | def abatch_as_completed( method abatch_as_completed (line 1070) | async def abatch_as_completed( method stream (line 1130) | def stream( method astream (line 1151) | async def astream( method astream_log (line 1173) | def astream_log( method astream_log (line 1190) | def astream_log( method astream_log (line 1206) | async def astream_log( method astream_events (line 1273) | async def astream_events( method transform (line 1519) | def transform( method atransform (line 1564) | async def atransform( method bind (line 1610) | def bind(self, **kwargs: Any) -> Runnable[Input, Output]: method with_config (line 1644) | def with_config( method with_listeners (line 1669) | def with_listeners( method with_alisteners (line 1741) | def with_alisteners( method with_types (line 1838) | def with_types( method with_retry (line 1860) | def with_retry( method map (line 1924) | def map(self) -> Runnable[list[Input], list[Output]]: method with_fallbacks (line 1947) | def with_fallbacks( method _call_with_config (line 2027) | def _call_with_config( method _acall_with_config (line 2076) | async def _acall_with_config( method _batch_with_config (line 2119) | def _batch_with_config( method _abatch_with_config (line 2186) | async def _abatch_with_config( method _transform_stream_with_config (line 2261) | def _transform_stream_with_config( method _atransform_stream_with_config (line 2359) | async def _atransform_stream_with_config( method as_tool (line 2467) | def as_tool( class RunnableSerializable (line 2586) | class RunnableSerializable(Serializable, Runnable[Input, Output]): method to_json (line 2602) | def to_json(self) -> SerializedConstructor | SerializedNotImplemented: method configurable_fields (line 2614) | def configurable_fields( method configurable_alternatives (line 2672) | def configurable_alternatives( function _seq_input_schema (line 2733) | def _seq_input_schema( function _seq_output_schema (line 2763) | def _seq_output_schema( class RunnableSequence (line 2817) | class RunnableSequence(RunnableSerializable[Input, Output]): method __init__ (line 2911) | def __init__( method get_lc_namespace (line 2954) | def get_lc_namespace(cls) -> list[str]: method steps (line 2963) | def steps(self) -> list[Runnable[Any, Any]]: method is_lc_serializable (line 2973) | def is_lc_serializable(cls) -> bool: method InputType (line 2983) | def InputType(self) -> type[Input]: method OutputType (line 2989) | def OutputType(self) -> type[Output]: method get_input_schema (line 2994) | def get_input_schema(self, config: RunnableConfig | None = None) -> ty... method get_output_schema (line 3007) | def get_output_schema( method config_specs (line 3023) | def config_specs(self) -> list[ConfigurableFieldSpec]: method get_graph (line 3036) | def get_graph(self, config: RunnableConfig | None = None) -> Graph: method __repr__ (line 3070) | def __repr__(self) -> str: method __or__ (line 3077) | def __or__( method __ror__ (line 3104) | def __ror__( method invoke (line 3131) | def invoke( method ainvoke (line 3167) | async def ainvoke( method batch (line 3207) | def batch( method abatch (line 3335) | async def abatch( method _transform (line 3465) | def _transform( method _atransform (line 3488) | async def _atransform( method transform (line 3514) | def transform( method stream (line 3528) | def stream( method atransform (line 3537) | async def atransform( method astream (line 3552) | async def astream( class RunnableParallel (line 3565) | class RunnableParallel(RunnableSerializable[Input, dict[str, Any]]): method __init__ (line 3651) | def __init__( method is_lc_serializable (line 3679) | def is_lc_serializable(cls) -> bool: method get_lc_namespace (line 3685) | def get_lc_namespace(cls) -> list[str]: method get_name (line 3698) | def get_name(self, suffix: str | None = None, *, name: str | None = No... method InputType (line 3714) | def InputType(self) -> Any: method get_input_schema (line 3723) | def get_input_schema(self, config: RunnableConfig | None = None) -> ty... method get_output_schema (line 3758) | def get_output_schema( method config_specs (line 3775) | def config_specs(self) -> list[ConfigurableFieldSpec]: method get_graph (line 3787) | def get_graph(self, config: RunnableConfig | None = None) -> Graph: method __repr__ (line 3826) | def __repr__(self) -> str: method invoke (line 3834) | def invoke( method ainvoke (line 3894) | async def ainvoke( method _transform (line 3948) | def _transform( method transform (line 3996) | def transform( method stream (line 4007) | def stream( method _atransform (line 4015) | async def _atransform( method atransform (line 4067) | async def atransform( method astream (line 4079) | async def astream( class RunnableGenerator (line 4096) | class RunnableGenerator(Runnable[Input, Output]): method __init__ (line 4188) | def __init__( method InputType (line 4232) | def InputType(self) -> Any: method get_input_schema (line 4244) | def get_input_schema(self, config: RunnableConfig | None = None) -> ty... method OutputType (line 4271) | def OutputType(self) -> Any: method get_output_schema (line 4284) | def get_output_schema( method __eq__ (line 4311) | def __eq__(self, other: object) -> bool: method __repr__ (line 4323) | def __repr__(self) -> str: method transform (line 4327) | def transform( method stream (line 4345) | def stream( method invoke (line 4354) | def invoke( method atransform (line 4363) | def atransform( method astream (line 4378) | def astream( method ainvoke (line 4390) | async def ainvoke( class RunnableLambda (line 4399) | class RunnableLambda(Runnable[Input, Output]): method __init__ (line 4448) | def __init__( method __init__ (line 4456) | def __init__( method __init__ (line 4464) | def __init__( method __init__ (line 4472) | def __init__( method __init__ (line 4480) | def __init__( method __init__ (line 4490) | def __init__( method __init__ (line 4505) | def __init__( method __init__ (line 4520) | def __init__( method __init__ (line 4535) | def __init__( method __init__ (line 4550) | def __init__( method __init__ (line 4565) | def __init__( method __init__ (line 4579) | def __init__( method InputType (line 4656) | def InputType(self) -> Any: method get_input_schema (line 4669) | def get_input_schema(self, config: RunnableConfig | None = None) -> ty... method OutputType (line 4714) | def OutputType(self) -> Any: method get_output_schema (line 4737) | def get_output_schema( method deps (line 4764) | def deps(self) -> list[Runnable]: method config_specs (line 4789) | def config_specs(self) -> list[ConfigurableFieldSpec]: method get_graph (line 4795) | def get_graph(self, config: RunnableConfig | None = None) -> Graph: method __eq__ (line 4825) | def __eq__(self, other: object) -> bool: method __repr__ (line 4836) | def __repr__(self) -> str: method _invoke (line 4851) | def _invoke( method _ainvoke (line 4896) | async def _ainvoke( method invoke (line 4997) | def invoke( method ainvoke (line 5028) | async def ainvoke( method _transform (line 5052) | def _transform( method transform (line 5115) | def transform( method stream (line 5136) | def stream( method _atransform (line 5144) | async def _atransform( method atransform (line 5244) | async def atransform( method astream (line 5259) | async def astream( class RunnableEachBase (line 5272) | class RunnableEachBase(RunnableSerializable[list[Input], list[Output]]): method InputType (line 5292) | def InputType(self) -> Any: method get_input_schema (line 5296) | def get_input_schema(self, config: RunnableConfig | None = None) -> ty... method OutputType (line 5315) | def OutputType(self) -> type[list[Output]]: method get_output_schema (line 5319) | def get_output_schema( method config_specs (line 5338) | def config_specs(self) -> list[ConfigurableFieldSpec]: method get_graph (line 5342) | def get_graph(self, config: RunnableConfig | None = None) -> Graph: method is_lc_serializable (line 5347) | def is_lc_serializable(cls) -> bool: method get_lc_namespace (line 5353) | def get_lc_namespace(cls) -> list[str]: method _invoke (line 5361) | def _invoke( method invoke (line 5374) | def invoke( method _ainvoke (line 5379) | async def _ainvoke( method ainvoke (line 5392) | async def ainvoke( method astream_events (line 5398) | async def astream_events( class RunnableEach (line 5413) | class RunnableEach(RunnableEachBase[Input, Output]): method get_name (line 5444) | def get_name(self, suffix: str | None = None, *, name: str | None = No... method bind (line 5449) | def bind(self, **kwargs: Any) -> RunnableEach[Input, Output]: method with_config (line 5453) | def with_config( method with_listeners (line 5459) | def with_listeners( method with_alisteners (line 5496) | def with_alisteners( class RunnableBindingBase (line 5530) | class RunnableBindingBase(RunnableSerializable[Input, Output]): # type:... method __init__ (line 5577) | def __init__( method get_name (line 5624) | def get_name(self, suffix: str | None = None, *, name: str | None = No... method InputType (line 5629) | def InputType(self) -> type[Input]: method OutputType (line 5638) | def OutputType(self) -> type[Output]: method get_input_schema (line 5646) | def get_input_schema(self, config: RunnableConfig | None = None) -> ty... method get_output_schema (line 5652) | def get_output_schema( method config_specs (line 5661) | def config_specs(self) -> list[ConfigurableFieldSpec]: method get_graph (line 5665) | def get_graph(self, config: RunnableConfig | None = None) -> Graph: method is_lc_serializable (line 5670) | def is_lc_serializable(cls) -> bool: method get_lc_namespace (line 5676) | def get_lc_namespace(cls) -> list[str]: method _merge_configs (line 5684) | def _merge_configs(self, *configs: RunnableConfig | None) -> RunnableC... method invoke (line 5689) | def invoke( method ainvoke (line 5702) | async def ainvoke( method batch (line 5715) | def batch( method abatch (line 5738) | async def abatch( method batch_as_completed (line 5761) | def batch_as_completed( method batch_as_completed (line 5771) | def batch_as_completed( method batch_as_completed (line 5781) | def batch_as_completed( method abatch_as_completed (line 5813) | def abatch_as_completed( method abatch_as_completed (line 5823) | def abatch_as_completed( method abatch_as_completed (line 5833) | async def abatch_as_completed( method stream (line 5866) | def stream( method astream (line 5879) | async def astream( method astream_events (line 5893) | async def astream_events( method transform (line 5905) | def transform( method atransform (line 5918) | async def atransform( class RunnableBinding (line 5932) | class RunnableBinding(RunnableBindingBase[Input, Output]): # type: igno... method bind (line 5985) | def bind(self, **kwargs: Any) -> Runnable[Input, Output]: method with_config (line 6006) | def with_config( method with_listeners (line 6022) | def with_listeners( method with_types (line 6075) | def with_types( method with_retry (line 6094) | def with_retry(self, **kwargs: Any) -> Runnable[Input, Output]: method __getattr__ (line 6103) | def __getattr__(self, name: str) -> Any: # type: ignore[misc] class _RunnableCallableSync (line 6140) | class _RunnableCallableSync(Protocol[Input, Output]): method __call__ (line 6141) | def __call__(self, _in: Input, /, *, config: RunnableConfig) -> Output... class _RunnableCallableAsync (line 6144) | class _RunnableCallableAsync(Protocol[Input, Output]): method __call__ (line 6145) | def __call__( class _RunnableCallableIterator (line 6150) | class _RunnableCallableIterator(Protocol[Input, Output]): method __call__ (line 6151) | def __call__( class _RunnableCallableAsyncIterator (line 6156) | class _RunnableCallableAsyncIterator(Protocol[Input, Output]): method __call__ (line 6157) | def __call__( function coerce_to_runnable (line 6176) | def coerce_to_runnable(thing: RunnableLike) -> Runnable[Input, Output]: function chain (line 6204) | def chain( function chain (line 6210) | def chain( function chain (line 6216) | def chain( function chain (line 6222) | def chain( function chain (line 6227) | def chain( FILE: libs/core/langchain_core/runnables/branch.py class RunnableBranch (line 42) | class RunnableBranch(RunnableSerializable[Input, Output]): method __init__ (line 74) | def __init__( method is_lc_serializable (line 144) | def is_lc_serializable(cls) -> bool: method get_lc_namespace (line 150) | def get_lc_namespace(cls) -> list[str]: method get_input_schema (line 159) | def get_input_schema(self, config: RunnableConfig | None = None) -> ty... method config_specs (line 177) | def config_specs(self) -> list[ConfigurableFieldSpec]: method invoke (line 189) | def invoke( method ainvoke (line 248) | async def ainvoke( method stream (line 296) | def stream( method astream (line 380) | async def astream( FILE: libs/core/langchain_core/runnables/config.py class EmptyDict (line 45) | class EmptyDict(TypedDict, total=False): class RunnableConfig (line 49) | class RunnableConfig(TypedDict, total=False): function _set_config_context (line 150) | def _set_config_context( function set_config_context (line 194) | def set_config_context(config: RunnableConfig) -> Generator[Context, Non... function ensure_config (line 225) | def ensure_config(config: RunnableConfig | None = None) -> RunnableConfig: function get_config_list (line 278) | def get_config_list( function patch_config (line 324) | def patch_config( function merge_configs (line 366) | def merge_configs(*configs: RunnableConfig | None) -> RunnableConfig: function call_func_with_variable_args (line 432) | def call_func_with_variable_args( function acall_func_with_variable_args (line 464) | def acall_func_with_variable_args( function get_callback_manager_for_config (line 498) | def get_callback_manager_for_config(config: RunnableConfig) -> CallbackM... function get_async_callback_manager_for_config (line 514) | def get_async_callback_manager_for_config( class ContextThreadPoolExecutor (line 536) | class ContextThreadPoolExecutor(ThreadPoolExecutor): method submit (line 539) | def submit( # type: ignore[override] method map (line 559) | def map( function get_executor_for_config (line 589) | def get_executor_for_config( function run_in_executor (line 607) | async def run_in_executor( FILE: libs/core/langchain_core/runnables/configurable.py class DynamicRunnable (line 49) | class DynamicRunnable(RunnableSerializable[Input, Output]): method is_lc_serializable (line 68) | def is_lc_serializable(cls) -> bool: method get_lc_namespace (line 74) | def get_lc_namespace(cls) -> list[str]: method InputType (line 84) | def InputType(self) -> type[Input]: method OutputType (line 89) | def OutputType(self) -> type[Output]: method get_input_schema (line 93) | def get_input_schema(self, config: RunnableConfig | None = None) -> ty... method get_output_schema (line 98) | def get_output_schema( method get_graph (line 105) | def get_graph(self, config: RunnableConfig | None = None) -> Graph: method with_config (line 110) | def with_config( method prepare (line 120) | def prepare( method _prepare (line 137) | def _prepare( method invoke (line 142) | def invoke( method ainvoke (line 149) | async def ainvoke( method batch (line 156) | def batch( method abatch (line 199) | async def abatch( method stream (line 238) | def stream( method astream (line 248) | async def astream( method transform (line 259) | def transform( method atransform (line 269) | async def atransform( method __getattr__ (line 280) | def __getattr__(self, name: str) -> Any: # type: ignore[misc] class RunnableConfigurableFields (line 318) | class RunnableConfigurableFields(DynamicRunnable[Input, Output]): method config_specs (line 382) | def config_specs(self) -> list[ConfigurableFieldSpec]: method configurable_fields (line 415) | def configurable_fields( method _prepare (line 420) | def _prepare( class StrEnum (line 463) | class StrEnum(str, enum.Enum): class RunnableConfigurableAlternatives (line 475) | class RunnableConfigurableAlternatives(DynamicRunnable[Input, Output]): method config_specs (line 553) | def config_specs(self) -> list[ConfigurableFieldSpec]: method configurable_fields (line 601) | def configurable_fields( method _prepare (line 612) | def _prepare( function _strremoveprefix (line 641) | def _strremoveprefix(s: str, prefix: str) -> str: function prefix_config_spec (line 646) | def prefix_config_spec( function make_options_spec (line 675) | def make_options_spec( FILE: libs/core/langchain_core/runnables/fallbacks.py class RunnableWithFallbacks (line 36) | class RunnableWithFallbacks(RunnableSerializable[Input, Output]): method InputType (line 112) | def InputType(self) -> type[Input]: method OutputType (line 117) | def OutputType(self) -> type[Output]: method get_input_schema (line 121) | def get_input_schema(self, config: RunnableConfig | None = None) -> ty... method get_output_schema (line 125) | def get_output_schema( method config_specs (line 132) | def config_specs(self) -> list[ConfigurableFieldSpec]: method is_lc_serializable (line 141) | def is_lc_serializable(cls) -> bool: method get_lc_namespace (line 147) | def get_lc_namespace(cls) -> list[str]: method runnables (line 156) | def runnables(self) -> Iterator[Runnable[Input, Output]]: method invoke (line 166) | def invoke( method ainvoke (line 216) | async def ainvoke( method batch (line 266) | def batch( method abatch (line 362) | async def abatch( method stream (line 466) | def stream( method astream (line 530) | async def astream( method __getattr__ (line 593) | def __getattr__(self, name: str) -> Any: function _returns_runnable (line 649) | def _returns_runnable(attr: Any) -> bool: function _is_runnable_type (line 656) | def _is_runnable_type(type_: Any) -> bool: FILE: libs/core/langchain_core/runnables/graph.py class Stringifiable (line 31) | class Stringifiable(Protocol): method __str__ (line 34) | def __str__(self) -> str: class LabelsDict (line 38) | class LabelsDict(TypedDict): function is_uuid (line 47) | def is_uuid(value: str) -> bool: class Edge (line 63) | class Edge(NamedTuple): method copy (line 75) | def copy(self, *, source: str | None = None, target: str | None = None... class Node (line 93) | class Node(NamedTuple): method copy (line 105) | def copy( class Branch (line 128) | class Branch(NamedTuple): class CurveStyle (line 137) | class CurveStyle(Enum): class NodeStyles (line 155) | class NodeStyles: class MermaidDrawMethod (line 169) | class MermaidDrawMethod(Enum): function node_data_str (line 178) | def node_data_str( function node_data_json (line 197) | def node_data_json( class Graph (line 253) | class Graph: method to_json (line 264) | def to_json(self, *, with_schemas: bool = False) -> dict[str, list[dic... method __bool__ (line 301) | def __bool__(self) -> bool: method next_id (line 305) | def next_id(self) -> str: method add_node (line 312) | def add_node( method remove_node (line 340) | def remove_node(self, node: Node) -> None: method add_edge (line 351) | def add_edge( method extend (line 384) | def extend( method reid (line 422) | def reid(self) -> Graph: method first_node (line 457) | def first_node(self) -> Node | None: method last_node (line 469) | def last_node(self) -> Node | None: method trim_first_node (line 481) | def trim_first_node(self) -> None: method trim_last_node (line 494) | def trim_last_node(self) -> None: method draw_ascii (line 507) | def draw_ascii(self) -> str: method print_ascii (line 521) | def print_ascii(self) -> None: method draw_png (line 526) | def draw_png( method draw_png (line 534) | def draw_png( method draw_png (line 541) | def draw_png( method draw_mermaid (line 575) | def draw_mermaid( method draw_mermaid_png (line 630) | def draw_mermaid_png( function _first_node (line 706) | def _first_node(graph: Graph, exclude: Sequence[str] = ()) -> Node | None: function _last_node (line 724) | def _last_node(graph: Graph, exclude: Sequence[str] = ()) -> Node | None: FILE: libs/core/langchain_core/runnables/graph_ascii.py class VertexViewer (line 27) | class VertexViewer: method __init__ (line 37) | def __init__(self, name: str) -> None: method h (line 47) | def h(self) -> int: method w (line 52) | def w(self) -> int: class AsciiCanvas (line 57) | class AsciiCanvas: method __init__ (line 62) | def __init__(self, cols: int, lines: int) -> None: method draw (line 81) | def draw(self) -> str: method point (line 90) | def point(self, x: int, y: int, char: str) -> None: method line (line 117) | def line(self, x0: int, y0: int, x1: int, y1: int, char: str) -> None: method text (line 149) | def text(self, x: int, y: int, text: str) -> None: method box (line 160) | def box(self, x0: int, y0: int, width: int, height: int) -> None: class _EdgeViewer (line 193) | class _EdgeViewer: method __init__ (line 194) | def __init__(self) -> None: method setpath (line 197) | def setpath(self, pts: list[tuple[float]]) -> None: function _build_sugiyama_layout (line 201) | def _build_sugiyama_layout( function draw_ascii (line 247) | def draw_ascii(vertices: Mapping[str, str], edges: Sequence[LangEdge]) -... FILE: libs/core/langchain_core/runnables/graph_mermaid.py function draw_mermaid (line 45) | def draw_mermaid( function _to_safe_id (line 255) | def _to_safe_id(label: str) -> str: function _generate_mermaid_graph_styles (line 269) | def _generate_mermaid_graph_styles(node_colors: NodeStyles) -> str: function draw_mermaid_png (line 277) | def draw_mermaid_png( function _render_mermaid_using_pyppeteer (line 334) | async def _render_mermaid_using_pyppeteer( function _render_mermaid_using_api (line 405) | def _render_mermaid_using_api( FILE: libs/core/langchain_core/runnables/graph_png.py class PngDrawer (line 16) | class PngDrawer: method __init__ (line 28) | def __init__( method get_node_label (line 54) | def get_node_label(self, label: str) -> str: method get_edge_label (line 66) | def get_edge_label(self, label: str) -> str: method add_node (line 78) | def add_node(self, viz: Any, node: str) -> None: method add_edge (line 94) | def add_edge( method draw (line 120) | def draw(self, graph: Graph, output_path: str | None = None) -> bytes ... method add_nodes (line 156) | def add_nodes(self, viz: Any, graph: Graph) -> None: method add_subgraph (line 166) | def add_subgraph( method add_edges (line 192) | def add_edges(self, viz: Any, graph: Graph) -> None: method update_styles (line 205) | def update_styles(viz: Any, graph: Graph) -> None: FILE: libs/core/langchain_core/runnables/history.py class RunnableWithMessageHistory (line 38) | class RunnableWithMessageHistory(RunnableBindingBase): # type: ignore[n... method __init__ (line 249) | def __init__( method config_specs (line 377) | def config_specs(self) -> list[ConfigurableFieldSpec]: method get_input_schema (line 384) | def get_input_schema(self, config: RunnableConfig | None = None) -> ty... method OutputType (line 407) | def OutputType(self) -> type[Output]: method get_output_schema (line 411) | def get_output_schema( method _get_input_messages (line 443) | def _get_input_messages( method _get_output_messages (line 481) | def _get_output_messages( method _enter_history (line 512) | def _enter_history(self, value: Any, config: RunnableConfig) -> list[B... method _aenter_history (line 524) | async def _aenter_history( method _exit_history (line 538) | def _exit_history(self, run: Run, config: RunnableConfig) -> None: method _aexit_history (line 555) | async def _aexit_history(self, run: Run, config: RunnableConfig) -> None: method _merge_configs (line 572) | def _merge_configs(self, *configs: RunnableConfig | None) -> RunnableC... function _get_parameter_names (line 619) | def _get_parameter_names(callable_: GetSessionHistoryCallable) -> list[s... FILE: libs/core/langchain_core/runnables/passthrough.py function identity (line 50) | def identity(x: Other) -> Other: function aidentity (line 62) | async def aidentity(x: Other) -> Other: class RunnablePassthrough (line 74) | class RunnablePassthrough(RunnableSerializable[Other, Other]): method __repr_args__ (line 148) | def __repr_args__(self) -> Any: method __init__ (line 153) | def __init__( method is_lc_serializable (line 182) | def is_lc_serializable(cls) -> bool: method get_lc_namespace (line 187) | def get_lc_namespace(cls) -> list[str]: method InputType (line 197) | def InputType(self) -> Any: method OutputType (line 202) | def OutputType(self) -> Any: method assign (line 207) | def assign( method invoke (line 226) | def invoke( method ainvoke (line 236) | async def ainvoke( method transform (line 253) | def transform( method atransform (line 284) | async def atransform( method stream (line 327) | def stream( method astream (line 336) | async def astream( class RunnableAssign (line 352) | class RunnableAssign(RunnableSerializable[dict[str, Any], dict[str, Any]]): method __init__ (line 394) | def __init__(self, mapper: RunnableParallel[dict[str, Any]], **kwargs:... method is_lc_serializable (line 405) | def is_lc_serializable(cls) -> bool: method get_lc_namespace (line 411) | def get_lc_namespace(cls) -> list[str]: method get_name (line 420) | def get_name(self, suffix: str | None = None, *, name: str | None = No... method get_input_schema (line 429) | def get_input_schema(self, config: RunnableConfig | None = None) -> ty... method get_output_schema (line 438) | def get_output_schema( method config_specs (line 464) | def config_specs(self) -> list[ConfigurableFieldSpec]: method get_graph (line 468) | def get_graph(self, config: RunnableConfig | None = None) -> Graph: method _invoke (line 480) | def _invoke( method invoke (line 501) | def invoke( method _ainvoke (line 509) | async def _ainvoke( method ainvoke (line 530) | async def ainvoke( method _transform (line 538) | def _transform( method transform (line 585) | def transform( method _atransform (line 595) | async def _atransform( method atransform (line 637) | async def atransform( method stream (line 649) | def stream( method astream (line 658) | async def astream( class RunnablePick (line 671) | class RunnablePick(RunnableSerializable[dict[str, Any], Any]): method __init__ (line 710) | def __init__(self, keys: str | list[str], **kwargs: Any) -> None: method is_lc_serializable (line 720) | def is_lc_serializable(cls) -> bool: method get_lc_namespace (line 726) | def get_lc_namespace(cls) -> list[str]: method get_name (line 735) | def get_name(self, suffix: str | None = None, *, name: str | None = No... method _pick (line 744) | def _pick(self, value: dict[str, Any]) -> Any: method invoke (line 757) | def invoke( method _ainvoke (line 765) | async def _ainvoke( method ainvoke (line 772) | async def ainvoke( method _transform (line 780) | def _transform( method transform (line 790) | def transform( method _atransform (line 800) | async def _atransform( method atransform (line 810) | async def atransform( method stream (line 822) | def stream( method astream (line 831) | async def astream( FILE: libs/core/langchain_core/runnables/retry.py class ExponentialJitterParams (line 35) | class ExponentialJitterParams(TypedDict, total=False): class RunnableRetry (line 48) | class RunnableRetry(RunnableBindingBase[Input, Output]): # type: ignore... method _kwargs_retrying (line 136) | def _kwargs_retrying(self) -> dict[str, Any]: method _sync_retrying (line 152) | def _sync_retrying(self, **kwargs: Any) -> Retrying: method _async_retrying (line 155) | def _async_retrying(self, **kwargs: Any) -> AsyncRetrying: method _patch_config (line 159) | def _patch_config( method _patch_config_list (line 168) | def _patch_config_list( method _invoke (line 179) | def _invoke( method invoke (line 198) | def invoke( method _ainvoke (line 203) | async def _ainvoke( method ainvoke (line 222) | async def ainvoke( method _batch (line 227) | def _batch( method batch (line 291) | def batch( method _abatch (line 303) | async def _abatch( method abatch (line 366) | async def abatch( FILE: libs/core/langchain_core/runnables/router.py class RouterInput (line 37) | class RouterInput(TypedDict): class RouterRunnable (line 46) | class RouterRunnable(RunnableSerializable[RouterInput, Output]): method config_specs (line 68) | def config_specs(self) -> list[ConfigurableFieldSpec]: method __init__ (line 73) | def __init__( method is_lc_serializable (line 92) | def is_lc_serializable(cls) -> bool: method get_lc_namespace (line 98) | def get_lc_namespace(cls) -> list[str]: method invoke (line 107) | def invoke( method ainvoke (line 120) | async def ainvoke( method batch (line 136) | def batch( method abatch (line 173) | async def abatch( method stream (line 209) | def stream( method astream (line 225) | async def astream( FILE: libs/core/langchain_core/runnables/schema.py class EventData (line 13) | class EventData(TypedDict, total=False): class BaseStreamEvent (line 56) | class BaseStreamEvent(TypedDict): class StandardStreamEvent (line 164) | class StandardStreamEvent(BaseStreamEvent): class CustomStreamEvent (line 176) | class CustomStreamEvent(BaseStreamEvent): FILE: libs/core/langchain_core/runnables/utils.py function gated_coro (line 49) | async def gated_coro(semaphore: asyncio.Semaphore, coro: Coroutine) -> Any: function gather_with_concurrency (line 63) | async def gather_with_concurrency(n: int | None, *coros: Coroutine) -> l... function accepts_run_manager (line 81) | def accepts_run_manager(callable: Callable[..., Any]) -> bool: # noqa: ... function accepts_config (line 96) | def accepts_config(callable: Callable[..., Any]) -> bool: # noqa: A002 function accepts_context (line 111) | def accepts_context(callable: Callable[..., Any]) -> bool: # noqa: A002 function asyncio_accepts_context (line 126) | def asyncio_accepts_context() -> bool: function coro_with_context (line 138) | def coro_with_context( class IsLocalDict (line 158) | class IsLocalDict(ast.NodeVisitor): method __init__ (line 161) | def __init__(self, name: str, keys: set[str]) -> None: method visit_Subscript (line 172) | def visit_Subscript(self, node: ast.Subscript) -> None: method visit_Call (line 189) | def visit_Call(self, node: ast.Call) -> None: class IsFunctionArgDict (line 208) | class IsFunctionArgDict(ast.NodeVisitor): method __init__ (line 211) | def __init__(self) -> None: method visit_Lambda (line 216) | def visit_Lambda(self, node: ast.Lambda) -> None: method visit_FunctionDef (line 228) | def visit_FunctionDef(self, node: ast.FunctionDef) -> None: method visit_AsyncFunctionDef (line 240) | def visit_AsyncFunctionDef(self, node: ast.AsyncFunctionDef) -> None: class NonLocals (line 252) | class NonLocals(ast.NodeVisitor): method __init__ (line 255) | def __init__(self) -> None: method visit_Name (line 261) | def visit_Name(self, node: ast.Name) -> None: method visit_Attribute (line 273) | def visit_Attribute(self, node: ast.Attribute) -> None: class FunctionNonLocals (line 304) | class FunctionNonLocals(ast.NodeVisitor): method __init__ (line 307) | def __init__(self) -> None: method visit_FunctionDef (line 312) | def visit_FunctionDef(self, node: ast.FunctionDef) -> None: method visit_AsyncFunctionDef (line 323) | def visit_AsyncFunctionDef(self, node: ast.AsyncFunctionDef) -> None: method visit_Lambda (line 334) | def visit_Lambda(self, node: ast.Lambda) -> None: class GetLambdaSource (line 345) | class GetLambdaSource(ast.NodeVisitor): method __init__ (line 348) | def __init__(self) -> None: method visit_Lambda (line 354) | def visit_Lambda(self, node: ast.Lambda) -> None: function get_function_first_arg_dict_keys (line 365) | def get_function_first_arg_dict_keys(func: Callable) -> list[str] | None: function get_lambda_source (line 384) | def get_lambda_source(func: Callable) -> str | None: function get_function_nonlocals (line 408) | def get_function_nonlocals(func: Callable) -> list[Any]: function indent_lines_after_first (line 450) | def indent_lines_after_first(text: str, prefix: str) -> str: class AddableDict (line 466) | class AddableDict(dict[str, Any]): method __add__ (line 469) | def __add__(self, other: AddableDict) -> AddableDict: method __radd__ (line 490) | def __radd__(self, other: AddableDict) -> AddableDict: class SupportsAdd (line 516) | class SupportsAdd(Protocol[_T_contra, _T_co]): method __add__ (line 519) | def __add__(self, x: _T_contra, /) -> _T_co: function add (line 526) | def add(addables: Iterable[Addable]) -> Addable | None: function aadd (line 541) | async def aadd(addables: AsyncIterable[Addable]) -> Addable | None: class ConfigurableField (line 556) | class ConfigurableField(NamedTuple): method __hash__ (line 571) | def __hash__(self) -> int: class ConfigurableFieldSingleOption (line 575) | class ConfigurableFieldSingleOption(NamedTuple): method __hash__ (line 592) | def __hash__(self) -> int: class ConfigurableFieldMultiOption (line 596) | class ConfigurableFieldMultiOption(NamedTuple): method __hash__ (line 613) | def __hash__(self) -> int: class ConfigurableFieldSpec (line 622) | class ConfigurableFieldSpec(NamedTuple): function get_unique_config_specs (line 641) | def get_unique_config_specs( class _RootEventFilter (line 673) | class _RootEventFilter: method __init__ (line 674) | def __init__( method include_event (line 696) | def include_event(self, event: StreamEvent, root_type: str) -> bool: function is_async_generator (line 728) | def is_async_generator( function is_async_callable (line 745) | def is_async_callable( FILE: libs/core/langchain_core/stores.py class BaseStore (line 26) | class BaseStore(ABC, Generic[K, V]): method mget (line 81) | def mget(self, keys: Sequence[K]) -> list[V | None]: method amget (line 92) | async def amget(self, keys: Sequence[K]) -> list[V | None]: method mset (line 105) | def mset(self, key_value_pairs: Sequence[tuple[K, V]]) -> None: method amset (line 112) | async def amset(self, key_value_pairs: Sequence[tuple[K, V]]) -> None: method mdelete (line 121) | def mdelete(self, keys: Sequence[K]) -> None: method amdelete (line 128) | async def amdelete(self, keys: Sequence[K]) -> None: method yield_keys (line 137) | def yield_keys(self, *, prefix: str | None = None) -> Iterator[K] | It... method ayield_keys (line 150) | async def ayield_keys( class InMemoryBaseStore (line 176) | class InMemoryBaseStore(BaseStore[str, V], Generic[V]): method __init__ (line 179) | def __init__(self) -> None: method mget (line 184) | def mget(self, keys: Sequence[str]) -> list[V | None]: method amget (line 188) | async def amget(self, keys: Sequence[str]) -> list[V | None]: method mset (line 192) | def mset(self, key_value_pairs: Sequence[tuple[str, V]]) -> None: method amset (line 197) | async def amset(self, key_value_pairs: Sequence[tuple[str, V]]) -> None: method mdelete (line 201) | def mdelete(self, keys: Sequence[str]) -> None: method amdelete (line 207) | async def amdelete(self, keys: Sequence[str]) -> None: method yield_keys (line 210) | def yield_keys(self, *, prefix: str | None = None) -> Iterator[str]: method ayield_keys (line 226) | async def ayield_keys(self, *, prefix: str | None = None) -> AsyncIter... class InMemoryStore (line 244) | class InMemoryStore(InMemoryBaseStore[Any]): class InMemoryByteStore (line 267) | class InMemoryByteStore(InMemoryBaseStore[bytes]): class InvalidKeyException (line 290) | class InvalidKeyException(LangChainException): FILE: libs/core/langchain_core/structured_query.py class Visitor (line 15) | class Visitor(ABC): method _validate_func (line 24) | def _validate_func(self, func: Operator | Comparator) -> None: method visit_operation (line 47) | def visit_operation(self, operation: Operation) -> Any: method visit_comparison (line 55) | def visit_comparison(self, comparison: Comparison) -> Any: method visit_structured_query (line 63) | def visit_structured_query(self, structured_query: StructuredQuery) ->... function _to_snake_case (line 71) | def _to_snake_case(name: str) -> str: class Expr (line 82) | class Expr(BaseModel): method accept (line 85) | def accept(self, visitor: Visitor) -> Any: class Operator (line 99) | class Operator(str, Enum): class Comparator (line 107) | class Comparator(str, Enum): class FilterDirective (line 122) | class FilterDirective(Expr, ABC): class Comparison (line 126) | class Comparison(FilterDirective): method __init__ (line 138) | def __init__( class Operation (line 154) | class Operation(FilterDirective): method __init__ (line 163) | def __init__( class StructuredQuery (line 176) | class StructuredQuery(Expr): method __init__ (line 188) | def __init__( FILE: libs/core/langchain_core/sys_info.py function _get_sub_deps (line 11) | def _get_sub_deps(packages: Sequence[str]) -> list[str]: function print_sys_info (line 36) | def print_sys_info(*, additional_pkgs: Sequence[str] = ()) -> None: FILE: libs/core/langchain_core/tools/__init__.py function __getattr__ (line 87) | def __getattr__(attr_name: str) -> object: function __dir__ (line 94) | def __dir__() -> list[str]: FILE: libs/core/langchain_core/tools/base.py class SchemaAnnotationError (line 89) | class SchemaAnnotationError(TypeError): function _is_annotated_type (line 93) | def _is_annotated_type(typ: type[Any]) -> bool: function _get_annotation_description (line 105) | def _get_annotation_description(arg_type: type) -> str | None: function _get_filtered_args (line 126) | def _get_filtered_args( function _parse_python_function_docstring (line 155) | def _parse_python_function_docstring( function _validate_docstring_args_against_annotations (line 178) | def _validate_docstring_args_against_annotations( function _infer_arg_descriptions (line 196) | def _infer_arg_descriptions( function _is_pydantic_annotation (line 230) | def _is_pydantic_annotation(annotation: Any, pydantic_version: str = "v2... function _function_annotations_are_pydantic_v1 (line 247) | def _function_annotations_are_pydantic_v1( class _SchemaConfig (line 279) | class _SchemaConfig: function create_schema_from_function (line 289) | def create_schema_from_function( class ToolException (line 390) | class ToolException(Exception): # noqa: N818 class BaseTool (line 405) | class BaseTool(RunnableSerializable[str | dict | ToolCall, Any]): method __init_subclass__ (line 413) | def __init_subclass__(cls, **kwargs: Any) -> None: method __init__ (line 533) | def __init__(self, **kwargs: Any) -> None: method is_single_input (line 558) | def is_single_input(self) -> bool: method args (line 568) | def args(self) -> dict: method tool_call_schema (line 587) | def tool_call_schema(self) -> ArgsSchema: method _injected_args_keys (line 612) | def _injected_args_keys(self) -> frozenset[str]: method get_input_schema (line 619) | def get_input_schema(self, config: RunnableConfig | None = None) -> ty... method invoke (line 635) | def invoke( method ainvoke (line 645) | async def ainvoke( method _parse_input (line 656) | def _parse_input( method _run (line 778) | def _run(self, *args: Any, **kwargs: Any) -> Any: method _arun (line 788) | async def _arun(self, *args: Any, **kwargs: Any) -> Any: method _filter_injected_args (line 803) | def _filter_injected_args(self, tool_input: dict) -> dict: method _to_args_and_kwargs (line 839) | def _to_args_and_kwargs( method run (line 878) | def run( method arun (line 1006) | async def arun( function _is_tool_call (line 1138) | def _is_tool_call(x: Any) -> bool: function _handle_validation_error (line 1150) | def _handle_validation_error( function _handle_tool_error (line 1182) | def _handle_tool_error( function _prep_run_args (line 1214) | def _prep_run_args( function _format_output (line 1251) | def _format_output( function _is_message_content_type (line 1283) | def _is_message_content_type(obj: Any) -> bool: function _is_message_content_block (line 1299) | def _is_message_content_block(obj: Any) -> bool: function _stringify (line 1317) | def _stringify(content: Any) -> str: function _get_type_hints (line 1332) | def _get_type_hints(func: Callable) -> dict[str, type] | None: function _get_runnable_config_param (line 1349) | def _get_runnable_config_param(func: Callable) -> str | None: class InjectedToolArg (line 1367) | class InjectedToolArg: class _DirectlyInjectedToolArg (line 1375) | class _DirectlyInjectedToolArg: class InjectedToolCallId (line 1397) | class InjectedToolCallId(InjectedToolArg): function _is_directly_injected_arg_type (line 1423) | def _is_directly_injected_arg_type(type_: Any) -> bool: function _is_injected_arg_type (line 1443) | def _is_injected_arg_type( function get_all_basemodel_annotations (line 1471) | def get_all_basemodel_annotations( function _replace_type_vars (line 1541) | def _replace_type_vars( class BaseToolkit (line 1573) | class BaseToolkit(BaseModel, ABC): method get_tools (line 1581) | def get_tools(self) -> list[BaseTool]: FILE: libs/core/langchain_core/tools/convert.py function tool (line 17) | def tool( function tool (line 31) | def tool( function tool (line 47) | def tool( function tool (line 62) | def tool( function tool (line 76) | def tool( function _get_description_from_runnable (line 393) | def _get_description_from_runnable(runnable: Runnable) -> str: function _get_schema_from_runnable_and_arg_types (line 399) | def _get_schema_from_runnable_and_arg_types( function convert_runnable_to_tool (line 419) | def convert_runnable_to_tool( FILE: libs/core/langchain_core/tools/render.py function render_text_description (line 13) | def render_text_description(tools: list[BaseTool]) -> str: function render_text_description_and_args (line 41) | def render_text_description_and_args(tools: list[BaseTool]) -> str: FILE: libs/core/langchain_core/tools/retriever.py class RetrieverInput (line 25) | class RetrieverInput(BaseModel): function create_retriever_tool (line 31) | def create_retriever_tool( FILE: libs/core/langchain_core/tools/simple.py class Tool (line 31) | class Tool(BaseTool): method ainvoke (line 45) | async def ainvoke( method args (line 60) | def args(self) -> dict: method _to_args_and_kwargs (line 72) | def _to_args_and_kwargs( method _run (line 99) | def _run( method _arun (line 126) | async def _arun( method __init__ (line 158) | def __init__( method from_function (line 165) | def from_function( FILE: libs/core/langchain_core/tools/structured.py class StructuredTool (line 40) | class StructuredTool(BaseTool): method ainvoke (line 60) | async def ainvoke( method _run (line 74) | def _run( method _arun (line 101) | async def _arun( method from_function (line 133) | def from_function( method _injected_args_keys (line 255) | def _injected_args_keys(self) -> frozenset[str]: function _filter_schema_args (line 266) | def _filter_schema_args(func: Callable) -> list[str]: FILE: libs/core/langchain_core/tracers/__init__.py function __getattr__ (line 42) | def __getattr__(attr_name: str) -> object: function __dir__ (line 49) | def __dir__() -> list[str]: FILE: libs/core/langchain_core/tracers/_compat.py function run_to_dict (line 24) | def run_to_dict(run: Run, **kwargs: Any) -> dict[str, Any]: function run_copy (line 39) | def run_copy(run: Run, **kwargs: Any) -> Run: function run_construct (line 54) | def run_construct(**kwargs: Any) -> Run: function pydantic_to_dict (line 68) | def pydantic_to_dict(obj: Any, **kwargs: Any) -> dict[str, Any]: function pydantic_copy (line 83) | def pydantic_copy(obj: T, **kwargs: Any) -> T: FILE: libs/core/langchain_core/tracers/_streaming.py class _StreamingCallbackHandler (line 12) | class _StreamingCallbackHandler(typing.Protocol[T]): method tap_output_aiter (line 22) | def tap_output_aiter( method tap_output_iter (line 27) | def tap_output_iter(self, run_id: UUID, output: Iterator[T]) -> Iterat... FILE: libs/core/langchain_core/tracers/base.py class BaseTracer (line 33) | class BaseTracer(_TracerCore, BaseCallbackHandler, ABC): method _persist_run (line 37) | def _persist_run(self, run: Run) -> None: method _start_trace (line 40) | def _start_trace(self, run: Run) -> None: method _end_trace (line 45) | def _end_trace(self, run: Run) -> None: method on_chat_model_start (line 52) | def on_chat_model_start( method on_llm_start (line 99) | def on_llm_start( method on_llm_new_token (line 141) | def on_llm_new_token( method on_retry (line 176) | def on_retry( method on_llm_end (line 199) | def on_llm_end(self, response: LLMResult, *, run_id: UUID, **kwargs: A... method on_llm_error (line 225) | def on_llm_error( method on_chain_start (line 252) | def on_chain_start( method on_chain_end (line 297) | def on_chain_end( method on_chain_error (line 326) | def on_chain_error( method on_tool_start (line 354) | def on_tool_start( method on_tool_end (line 399) | def on_tool_end(self, output: Any, *, run_id: UUID, **kwargs: Any) -> ... method on_tool_error (line 419) | def on_tool_error( method on_retriever_start (line 444) | def on_retriever_start( method on_retriever_error (line 486) | def on_retriever_error( method on_retriever_end (line 512) | def on_retriever_end( method __deepcopy__ (line 533) | def __deepcopy__(self, memo: dict) -> BaseTracer: method __copy__ (line 537) | def __copy__(self) -> BaseTracer: class AsyncBaseTracer (line 542) | class AsyncBaseTracer(_TracerCore, AsyncCallbackHandler, ABC): method _persist_run (line 547) | async def _persist_run(self, run: Run) -> None: method _start_trace (line 551) | async def _start_trace(self, run: Run) -> None: method _end_trace (line 562) | async def _end_trace(self, run: Run) -> None: method on_chat_model_start (line 574) | async def on_chat_model_start( method on_llm_start (line 604) | async def on_llm_start( method on_llm_new_token (line 628) | async def on_llm_new_token( method on_retry (line 646) | async def on_retry( method on_llm_end (line 659) | async def on_llm_end( method on_llm_error (line 684) | async def on_llm_error( method on_chain_start (line 701) | async def on_chain_start( method on_chain_end (line 729) | async def on_chain_end( method on_chain_error (line 746) | async def on_chain_error( method on_tool_start (line 763) | async def on_tool_start( method on_tool_end (line 790) | async def on_tool_end( method on_tool_error (line 805) | async def on_tool_error( method on_retriever_start (line 822) | async def on_retriever_start( method on_retriever_error (line 850) | async def on_retriever_error( method on_retriever_end (line 870) | async def on_retriever_end( method _on_run_create (line 886) | async def _on_run_create(self, run: Run) -> None: method _on_run_update (line 889) | async def _on_run_update(self, run: Run) -> None: method _on_llm_start (line 892) | async def _on_llm_start(self, run: Run) -> None: method _on_llm_end (line 895) | async def _on_llm_end(self, run: Run) -> None: method _on_llm_error (line 898) | async def _on_llm_error(self, run: Run) -> None: method _on_llm_new_token (line 901) | async def _on_llm_new_token( method _on_chain_start (line 909) | async def _on_chain_start(self, run: Run) -> None: method _on_chain_end (line 912) | async def _on_chain_end(self, run: Run) -> None: method _on_chain_error (line 915) | async def _on_chain_error(self, run: Run) -> None: method _on_tool_start (line 918) | async def _on_tool_start(self, run: Run) -> None: method _on_tool_end (line 921) | async def _on_tool_end(self, run: Run) -> None: method _on_tool_error (line 924) | async def _on_tool_error(self, run: Run) -> None: method _on_chat_model_start (line 927) | async def _on_chat_model_start(self, run: Run) -> None: method _on_retriever_start (line 930) | async def _on_retriever_start(self, run: Run) -> None: method _on_retriever_end (line 933) | async def _on_retriever_end(self, run: Run) -> None: method _on_retriever_error (line 936) | async def _on_retriever_error(self, run: Run) -> None: FILE: libs/core/langchain_core/tracers/context.py function tracing_v2_enabled (line 40) | def tracing_v2_enabled( function collect_runs (line 86) | def collect_runs() -> Generator[RunCollectorCallbackHandler, None, None]: function _get_trace_callbacks (line 105) | def _get_trace_callbacks( function _tracing_v2_is_enabled (line 132) | def _tracing_v2_is_enabled() -> bool | Literal["local"]: function _get_tracer_project (line 138) | def _get_tracer_project() -> str: function register_configure_hook (line 171) | def register_configure_hook( FILE: libs/core/langchain_core/tracers/core.py class _TracerCore (line 40) | class _TracerCore(ABC): method __init__ (line 48) | def __init__( method _persist_run (line 87) | def _persist_run(self, run: Run) -> Coroutine[Any, Any, None] | None: method _add_child_run (line 91) | def _add_child_run( method _get_stacktrace (line 99) | def _get_stacktrace(error: BaseException) -> str: method _start_trace (line 108) | def _start_trace(self, run: Run) -> Coroutine[Any, Any, None] | None: ... method _get_run (line 132) | def _get_run(self, run_id: UUID, run_type: str | set[str] | None = Non... method _create_chat_model_run (line 151) | def _create_chat_model_run( method _create_llm_run (line 195) | def _create_llm_run( method _llm_run_with_token_event (line 224) | def _llm_run_with_token_event( method _llm_run_with_retry_event (line 246) | def _llm_run_with_retry_event( method _complete_llm_run (line 275) | def _complete_llm_run(self, response: LLMResult, run_id: UUID) -> Run: method _errored_llm_run (line 305) | def _errored_llm_run( method _create_chain_run (line 329) | def _create_chain_run( method _get_chain_inputs (line 359) | def _get_chain_inputs(self, inputs: Any) -> Any: method _get_chain_outputs (line 370) | def _get_chain_outputs(self, outputs: Any) -> Any: method _complete_chain_run (line 381) | def _complete_chain_run( method _errored_chain_run (line 401) | def _errored_chain_run( method _create_tool_run (line 415) | def _create_tool_run( method _complete_tool_run (line 455) | def _complete_tool_run( method _errored_tool_run (line 470) | def _errored_tool_run( method _create_retrieval_run (line 482) | def _create_retrieval_run( method _complete_retrieval_run (line 511) | def _complete_retrieval_run( method _errored_retrieval_run (line 528) | def _errored_retrieval_run( method __deepcopy__ (line 539) | def __deepcopy__(self, memo: dict) -> _TracerCore: method __copy__ (line 543) | def __copy__(self) -> _TracerCore: method _end_trace (line 547) | def _end_trace(self, run: Run) -> Coroutine[Any, Any, None] | None: method _on_run_create (line 556) | def _on_run_create(self, run: Run) -> Coroutine[Any, Any, None] | None: method _on_run_update (line 565) | def _on_run_update(self, run: Run) -> Coroutine[Any, Any, None] | None: method _on_llm_start (line 574) | def _on_llm_start(self, run: Run) -> Coroutine[Any, Any, None] | None: method _on_llm_new_token (line 583) | def _on_llm_new_token( method _on_llm_end (line 599) | def _on_llm_end(self, run: Run) -> Coroutine[Any, Any, None] | None: method _on_llm_error (line 608) | def _on_llm_error(self, run: Run) -> Coroutine[Any, Any, None] | None: method _on_chain_start (line 617) | def _on_chain_start(self, run: Run) -> Coroutine[Any, Any, None] | None: method _on_chain_end (line 626) | def _on_chain_end(self, run: Run) -> Coroutine[Any, Any, None] | None: method _on_chain_error (line 635) | def _on_chain_error(self, run: Run) -> Coroutine[Any, Any, None] | None: method _on_tool_start (line 644) | def _on_tool_start(self, run: Run) -> Coroutine[Any, Any, None] | None: method _on_tool_end (line 653) | def _on_tool_end(self, run: Run) -> Coroutine[Any, Any, None] | None: method _on_tool_error (line 662) | def _on_tool_error(self, run: Run) -> Coroutine[Any, Any, None] | None: method _on_chat_model_start (line 671) | def _on_chat_model_start(self, run: Run) -> Coroutine[Any, Any, None] ... method _on_retriever_start (line 680) | def _on_retriever_start(self, run: Run) -> Coroutine[Any, Any, None] |... method _on_retriever_end (line 689) | def _on_retriever_end(self, run: Run) -> Coroutine[Any, Any, None] | N... method _on_retriever_error (line 698) | def _on_retriever_error(self, run: Run) -> Coroutine[Any, Any, None] |... FILE: libs/core/langchain_core/tracers/evaluation.py function wait_for_all_evaluators (line 31) | def wait_for_all_evaluators() -> None: class EvaluatorCallbackHandler (line 38) | class EvaluatorCallbackHandler(BaseTracer): method __init__ (line 72) | def __init__( method _evaluate_in_project (line 118) | def _evaluate_in_project(self, run: Run, evaluator: langsmith.RunEvalu... method _select_eval_results (line 163) | def _select_eval_results( method _log_evaluation_feedback (line 178) | def _log_evaluation_feedback( method _persist_run (line 205) | def _persist_run(self, run: Run) -> None: method wait_for_futures (line 224) | def wait_for_futures(self) -> None: FILE: libs/core/langchain_core/tracers/event_stream.py class RunInfo (line 58) | class RunInfo(TypedDict): function _assign_name (line 86) | def _assign_name(name: str | None, serialized: dict[str, Any] | None) ->... class _AstreamEventsCallbackHandler (line 101) | class _AstreamEventsCallbackHandler(AsyncCallbackHandler, _StreamingCall... method __init__ (line 104) | def __init__( method _get_parent_ids (line 148) | def _get_parent_ids(self, run_id: UUID) -> list[str]: method _send (line 167) | def _send(self, event: StreamEvent, event_type: str) -> None: method __aiter__ (line 172) | def __aiter__(self) -> AsyncIterator[Any]: method tap_output_aiter (line 180) | async def tap_output_aiter( method tap_output_iter (line 235) | def tap_output_iter(self, run_id: UUID, output: Iterator[T]) -> Iterat... method _write_run_start_info (line 285) | def _write_run_start_info( method on_chat_model_start (line 319) | async def on_chat_model_start( method on_llm_start (line 361) | async def on_llm_start( method on_custom_event (line 405) | async def on_custom_event( method on_llm_new_token (line 428) | async def on_llm_new_token( method on_llm_end (line 489) | async def on_llm_end( method on_chain_start (line 549) | async def on_chain_start( method on_chain_end (line 598) | async def on_chain_end( method _get_tool_run_info_with_inputs (line 632) | def _get_tool_run_info_with_inputs(self, run_id: UUID) -> tuple[RunInf... method on_tool_start (line 655) | async def on_tool_start( method on_tool_error (line 698) | async def on_tool_error( method on_tool_end (line 731) | async def on_tool_end(self, output: Any, *, run_id: UUID, **kwargs: An... method on_retriever_start (line 752) | async def on_retriever_start( method on_retriever_end (line 796) | async def on_retriever_end( method __deepcopy__ (line 818) | def __deepcopy__(self, memo: dict) -> _AstreamEventsCallbackHandler: method __copy__ (line 822) | def __copy__(self) -> _AstreamEventsCallbackHandler: function _astream_events_implementation_v1 (line 827) | async def _astream_events_implementation_v1( function _astream_events_implementation_v2 (line 1003) | async def _astream_events_implementation_v2( FILE: libs/core/langchain_core/tracers/langchain.py function log_error_once (line 38) | def log_error_once(method: str, exception: Exception) -> None: function wait_for_all_tracers (line 51) | def wait_for_all_tracers() -> None: function get_client (line 57) | def get_client() -> Client: function _get_executor (line 66) | def _get_executor() -> ThreadPoolExecutor: function _get_usage_metadata_from_generations (line 74) | def _get_usage_metadata_from_generations( function _get_usage_metadata_from_message (line 104) | def _get_usage_metadata_from_message(message: Any) -> UsageMetadata | None: class LangChainTracer (line 116) | class LangChainTracer(BaseTracer): method __init__ (line 121) | def __init__( method _start_trace (line 154) | def _start_trace(self, run: Run) -> None: method on_chat_model_start (line 169) | def on_chat_model_start( method _persist_run (line 215) | def _persist_run(self, run: Run) -> None: method get_run_url (line 225) | def get_run_url(self) -> str: method _get_tags (line 253) | def _get_tags(self, run: Run) -> list[str]: method _persist_run_single (line 259) | def _persist_run_single(self, run: Run) -> None: method _update_run_single (line 275) | def _update_run_single(run: Run) -> None: method _on_llm_start (line 286) | def _on_llm_start(self, run: Run) -> None: method _llm_run_with_token_event (line 293) | def _llm_run_with_token_event( method _on_chat_model_start (line 313) | def _on_chat_model_start(self, run: Run) -> None: method _on_llm_end (line 325) | def _on_llm_end(self, run: Run) -> None: method _on_llm_error (line 338) | def _on_llm_error(self, run: Run) -> None: method _on_chain_start (line 342) | def _on_chain_start(self, run: Run) -> None: method _on_chain_end (line 351) | def _on_chain_end(self, run: Run) -> None: method _on_chain_error (line 360) | def _on_chain_error(self, run: Run) -> None: method _on_tool_start (line 369) | def _on_tool_start(self, run: Run) -> None: method _on_tool_end (line 375) | def _on_tool_end(self, run: Run) -> None: method _on_tool_error (line 379) | def _on_tool_error(self, run: Run) -> None: method _on_retriever_start (line 383) | def _on_retriever_start(self, run: Run) -> None: method _on_retriever_end (line 389) | def _on_retriever_end(self, run: Run) -> None: method _on_retriever_error (line 393) | def _on_retriever_error(self, run: Run) -> None: method wait_for_futures (line 397) | def wait_for_futures(self) -> None: FILE: libs/core/langchain_core/tracers/log_stream.py class LogEntry (line 40) | class LogEntry(TypedDict): class RunState (line 83) | class RunState(TypedDict): class RunLogPatch (line 115) | class RunLogPatch: method __init__ (line 128) | def __init__(self, *ops: dict[str, Any]) -> None: method __add__ (line 136) | def __add__(self, other: RunLogPatch | Any) -> RunLog: method __repr__ (line 157) | def __repr__(self) -> str: method __eq__ (line 162) | def __eq__(self, other: object) -> bool: class RunLog (line 168) | class RunLog(RunLogPatch): method __init__ (line 174) | def __init__(self, *ops: dict[str, Any], state: RunState) -> None: method __add__ (line 184) | def __add__(self, other: RunLogPatch | Any) -> RunLog: method __repr__ (line 205) | def __repr__(self) -> str: method __eq__ (line 209) | def __eq__(self, other: object) -> bool: class LogStreamCallbackHandler (line 232) | class LogStreamCallbackHandler(BaseTracer, _StreamingCallbackHandler): method __init__ (line 235) | def __init__( method __aiter__ (line 302) | def __aiter__(self) -> AsyncIterator[RunLogPatch]: method send (line 310) | def send(self, *ops: dict[str, Any]) -> bool: method tap_output_aiter (line 326) | async def tap_output_aiter( method tap_output_iter (line 359) | def tap_output_iter(self, run_id: UUID, output: Iterator[T]) -> Iterat... method include_run (line 390) | def include_run(self, run: Run) -> bool: method _persist_run (line 429) | def _persist_run(self, run: Run) -> None: method _on_run_create (line 434) | def _on_run_create(self, run: Run) -> None: method _on_run_update (line 491) | def _on_run_update(self, run: Run) -> None: method _on_llm_new_token (line 537) | def _on_llm_new_token( function _get_standardized_inputs (line 565) | def _get_standardized_inputs( function _get_standardized_outputs (line 606) | def _get_standardized_outputs( function _astream_log_implementation (line 639) | def _astream_log_implementation( function _astream_log_implementation (line 652) | def _astream_log_implementation( function _astream_log_implementation (line 664) | async def _astream_log_implementation( FILE: libs/core/langchain_core/tracers/memory_stream.py class _SendStream (line 19) | class _SendStream(Generic[T]): method __init__ (line 20) | def __init__( method send (line 38) | async def send(self, item: T) -> None: method send_nowait (line 48) | def send_nowait(self, item: T) -> None: method aclose (line 66) | async def aclose(self) -> None: method close (line 70) | def close(self) -> None: class _ReceiveStream (line 86) | class _ReceiveStream(Generic[T]): method __init__ (line 87) | def __init__(self, queue: Queue, done: object) -> None: method __aiter__ (line 97) | async def __aiter__(self) -> AsyncIterator[T]: class _MemoryStream (line 106) | class _MemoryStream(Generic[T]): method __init__ (line 119) | def __init__(self, loop: AbstractEventLoop) -> None: method get_send_stream (line 132) | def get_send_stream(self) -> _SendStream[T]: method get_receive_stream (line 142) | def get_receive_stream(self) -> _ReceiveStream[T]: FILE: libs/core/langchain_core/tracers/root_listeners.py class RootListenersTracer (line 23) | class RootListenersTracer(BaseTracer): method __init__ (line 29) | def __init__( method _persist_run (line 53) | def _persist_run(self, run: Run) -> None: method _on_run_create (line 58) | def _on_run_create(self, run: Run) -> None: method _on_run_update (line 67) | def _on_run_update(self, run: Run) -> None: class AsyncRootListenersTracer (line 78) | class AsyncRootListenersTracer(AsyncBaseTracer): method __init__ (line 84) | def __init__( method _persist_run (line 108) | async def _persist_run(self, run: Run) -> None: method _on_run_create (line 113) | async def _on_run_create(self, run: Run) -> None: method _on_run_update (line 122) | async def _on_run_update(self, run: Run) -> None: FILE: libs/core/langchain_core/tracers/run_collector.py class RunCollectorCallbackHandler (line 11) | class RunCollectorCallbackHandler(BaseTracer): method __init__ (line 19) | def __init__(self, example_id: UUID | str | None = None, **kwargs: Any... method _persist_run (line 32) | def _persist_run(self, run: Run) -> None: FILE: libs/core/langchain_core/tracers/stdout.py function try_json_stringify (line 14) | def try_json_stringify(obj: Any, fallback: str) -> str: function elapsed (line 30) | def elapsed(run: Any) -> str: class FunctionCallbackHandler (line 48) | class FunctionCallbackHandler(BaseTracer): method __init__ (line 57) | def __init__(self, function: Callable[[str], None], **kwargs: Any) -> ... method _persist_run (line 66) | def _persist_run(self, run: Run) -> None: method get_parents (line 69) | def get_parents(self, run: Run) -> list[Run]: method get_breadcrumbs (line 89) | def get_breadcrumbs(self, run: Run) -> str: method _on_chain_start (line 105) | def _on_chain_start(self, run: Run) -> None: method _on_chain_end (line 114) | def _on_chain_end(self, run: Run) -> None: method _on_chain_error (line 125) | def _on_chain_error(self, run: Run) -> None: method _on_llm_start (line 136) | def _on_llm_start(self, run: Run) -> None: method _on_llm_end (line 149) | def _on_llm_end(self, run: Run) -> None: method _on_llm_error (line 159) | def _on_llm_error(self, run: Run) -> None: method _on_tool_start (line 169) | def _on_tool_start(self, run: Run) -> None: method _on_tool_end (line 177) | def _on_tool_end(self, run: Run) -> None: method _on_tool_error (line 188) | def _on_tool_error(self, run: Run) -> None: class ConsoleCallbackHandler (line 198) | class ConsoleCallbackHandler(FunctionCallbackHandler): method __init__ (line 203) | def __init__(self, **kwargs: Any) -> None: FILE: libs/core/langchain_core/utils/__init__.py function __getattr__ (line 103) | def __getattr__(attr_name: str) -> object: function __dir__ (line 110) | def __dir__() -> list[str]: FILE: libs/core/langchain_core/utils/_merge.py function merge_dicts (line 6) | def merge_dicts(left: dict[str, Any], *others: dict[str, Any]) -> dict[s... function merge_lists (line 89) | def merge_lists(left: list | None, *others: list | None) -> list | None: function merge_obj (line 170) | def merge_obj(left: Any, right: Any) -> Any: FILE: libs/core/langchain_core/utils/aiter.py function py_anext (line 38) | def py_anext( class NoLock (line 87) | class NoLock: method __aenter__ (line 90) | async def __aenter__(self) -> None: method __aexit__ (line 93) | async def __aexit__( function tee_peer (line 103) | async def tee_peer( class Tee (line 161) | class Tee(Generic[T]): method __init__ (line 202) | def __init__( method __len__ (line 229) | def __len__(self) -> int: method __getitem__ (line 234) | def __getitem__(self, item: int) -> AsyncIterator[T]: ... method __getitem__ (line 237) | def __getitem__(self, item: slice) -> tuple[AsyncIterator[T], ...]: ... method __getitem__ (line 239) | def __getitem__( method __iter__ (line 245) | def __iter__(self) -> Iterator[AsyncIterator[T]]: method __aenter__ (line 253) | async def __aenter__(self) -> "Tee[T]": method __aexit__ (line 257) | async def __aexit__( method aclose (line 271) | async def aclose(self) -> None: class aclosing (line 280) | class aclosing(AbstractAsyncContextManager): # noqa: N801 method __init__ (line 302) | def __init__(self, thing: AsyncGenerator[Any, Any] | AsyncIterator[Any... method __aenter__ (line 311) | async def __aenter__(self) -> AsyncGenerator[Any, Any] | AsyncIterator... method __aexit__ (line 315) | async def __aexit__( function abatch_iterate (line 325) | async def abatch_iterate( FILE: libs/core/langchain_core/utils/env.py function env_var_is_set (line 9) | def env_var_is_set(env_var: str) -> bool: function get_from_dict_or_env (line 26) | def get_from_dict_or_env( function get_from_env (line 60) | def get_from_env(key: str, env_key: str, default: str | None = None) -> ... FILE: libs/core/langchain_core/utils/formatting.py class StrictFormatter (line 8) | class StrictFormatter(Formatter): method vformat (line 23) | def vformat( method validate_input_variables (line 50) | def validate_input_variables( FILE: libs/core/langchain_core/utils/function_calling.py class FunctionDescription (line 66) | class FunctionDescription(TypedDict): class ToolDescription (line 79) | class ToolDescription(TypedDict): function _rm_titles (line 89) | def _rm_titles(kv: dict, prev_key: str = "") -> dict: function _convert_json_schema_to_openai_function (line 123) | def _convert_json_schema_to_openai_function( function _convert_pydantic_to_openai_function (line 159) | def _convert_pydantic_to_openai_function( function _get_python_function_name (line 209) | def _get_python_function_name(function: Callable) -> str: function _convert_python_function_to_openai_function (line 214) | def _convert_python_function_to_openai_function( function _convert_typed_dict_to_openai_function (line 245) | def _convert_typed_dict_to_openai_function(typed_dict: type) -> Function... function _convert_any_typed_dicts_to_pydantic (line 258) | def _convert_any_typed_dicts_to_pydantic( function _format_tool_to_openai_function (line 328) | def _format_tool_to_openai_function(tool: BaseTool) -> FunctionDescription: function convert_to_openai_function (line 375) | def convert_to_openai_function( function convert_to_openai_tool (line 515) | def convert_to_openai_tool( function convert_to_json_schema (line 577) | def convert_to_json_schema( function tool_example_to_messages (line 621) | def tool_example_to_messages( function _parse_google_docstring (line 728) | def _parse_google_docstring( function _py_38_safe_origin (line 798) | def _py_38_safe_origin(origin: type) -> type: function _recursive_set_additional_properties_false (line 802) | def _recursive_set_additional_properties_false( FILE: libs/core/langchain_core/utils/html.py function find_all_links (line 46) | def find_all_links( function extract_sub_links (line 62) | def extract_sub_links( FILE: libs/core/langchain_core/utils/image.py function __getattr__ (line 6) | def __getattr__(name: str) -> Any: FILE: libs/core/langchain_core/utils/input.py function get_color_mapping (line 14) | def get_color_mapping( function get_colored_text (line 38) | def get_colored_text(text: str, color: str) -> str: function get_bolded_text (line 52) | def get_bolded_text(text: str) -> str: function print_text (line 64) | def print_text( FILE: libs/core/langchain_core/utils/interactive_env.py function is_interactive_env (line 6) | def is_interactive_env() -> bool: FILE: libs/core/langchain_core/utils/iter.py class NoLock (line 19) | class NoLock: method __enter__ (line 22) | def __enter__(self) -> None: method __exit__ (line 25) | def __exit__( function tee_peer (line 35) | def tee_peer( class Tee (line 91) | class Tee(Generic[T]): method __init__ (line 129) | def __init__( method __len__ (line 156) | def __len__(self) -> int: method __getitem__ (line 161) | def __getitem__(self, item: int) -> Iterator[T]: ... method __getitem__ (line 164) | def __getitem__(self, item: slice) -> tuple[Iterator[T], ...]: ... method __getitem__ (line 166) | def __getitem__(self, item: int | slice) -> Iterator[T] | tuple[Iterat... method __iter__ (line 170) | def __iter__(self) -> Iterator[Iterator[T]]: method __enter__ (line 178) | def __enter__(self) -> "Tee[T]": method __exit__ (line 182) | def __exit__( method close (line 196) | def close(self) -> None: function batch_iterate (line 206) | def batch_iterate(size: int | None, iterable: Iterable[T]) -> Iterator[l... FILE: libs/core/langchain_core/utils/json.py function _replace_new_line (line 15) | def _replace_new_line(match: re.Match[str]) -> str: function _custom_parser (line 33) | def _custom_parser(multiline_string: str | bytes | bytearray) -> str: function parse_partial_json (line 58) | def parse_partial_json(s: str, *, strict: bool = False) -> Any: function parse_json_markdown (line 142) | def parse_json_markdown( function _parse_json (line 169) | def _parse_json( function parse_and_check_json_markdown (line 194) | def parse_and_check_json_markdown(text: str, expected_keys: list[str]) -... FILE: libs/core/langchain_core/utils/json_schema.py function _retrieve_ref (line 12) | def _retrieve_ref(path: str, schema: dict) -> list | dict: function _process_dict_properties (line 58) | def _process_dict_properties( function _dereference_refs_helper (line 83) | def _dereference_refs_helper( function dereference_refs (line 188) | def dereference_refs( FILE: libs/core/langchain_core/utils/mustache.py class ChevronError (line 32) | class ChevronError(SyntaxError): function grab_literal (line 41) | def grab_literal(template: str, l_del: str) -> tuple[str, str]: function l_sa_check (line 66) | def l_sa_check( function r_sa_check (line 92) | def r_sa_check( function parse_tag (line 118) | def parse_tag(template: str, l_del: str, r_del: str) -> tuple[tuple[str,... function tokenize (line 199) | def tokenize( function _html_escape (line 330) | def _html_escape(string: str) -> str: function _get_key (line 345) | def _get_key( function _get_partial (line 445) | def _get_partial(name: str, partials_dict: Mapping[str, str]) -> str: function render (line 466) | def render( FILE: libs/core/langchain_core/utils/pydantic.py function get_pydantic_major_version (line 55) | def get_pydantic_major_version() -> int: function is_pydantic_v1_subclass (line 78) | def is_pydantic_v1_subclass(cls: type) -> bool: function is_pydantic_v2_subclass (line 87) | def is_pydantic_v2_subclass(cls: type) -> bool: function is_basemodel_subclass (line 96) | def is_basemodel_subclass(cls: type) -> bool: function is_basemodel_instance (line 114) | def is_basemodel_instance(obj: Any) -> bool: function pre_init (line 129) | def pre_init(func: Callable) -> Any: class _IgnoreUnserializable (line 189) | class _IgnoreUnserializable(GenerateJsonSchema): method handle_invalid_for_json_schema (line 196) | def handle_invalid_for_json_schema( function _create_subset_model_v1 (line 202) | def _create_subset_model_v1( function _create_subset_model_v2 (line 231) | def _create_subset_model_v2( function _create_subset_model (line 281) | def _create_subset_model( function get_fields (line 312) | def get_fields(model: type[BaseModel]) -> dict[str, FieldInfoV2]: ... function get_fields (line 316) | def get_fields(model: BaseModel) -> dict[str, FieldInfoV2]: ... function get_fields (line 320) | def get_fields(model: type[BaseModelV1]) -> dict[str, ModelField]: ... function get_fields (line 324) | def get_fields(model: BaseModelV1) -> dict[str, ModelField]: ... function get_fields (line 327) | def get_fields( function _create_root_model (line 355) | def _create_root_model( function _create_root_model_cached (line 417) | def _create_root_model_cached( function _create_model_cached (line 430) | def _create_model_cached( function create_model (line 442) | def create_model( function _remap_field_definitions (line 487) | def _remap_field_definitions(field_definitions: dict[str, Any]) -> dict[... function create_model_v2 (line 515) | def create_model_v2( FILE: libs/core/langchain_core/utils/strings.py function stringify_value (line 7) | def stringify_value(val: Any) -> str: function stringify_dict (line 25) | def stringify_dict(data: dict) -> str: function comma_list (line 37) | def comma_list(items: Iterable[Any]) -> str: function sanitize_for_postgres (line 49) | def sanitize_for_postgres(text: str, replacement: str = "") -> str: FILE: libs/core/langchain_core/utils/usage.py function _dict_int_op (line 6) | def _dict_int_op( FILE: libs/core/langchain_core/utils/utils.py function xor_args (line 24) | def xor_args(*arg_groups: tuple[str, ...]) -> Callable: function raise_for_status_with_text (line 58) | def raise_for_status_with_text(response: Response) -> None: function mock_now (line 74) | def mock_now(dt_value: datetime.datetime) -> Iterator[type]: function guard_import (line 116) | def guard_import( function check_package_version (line 146) | def check_package_version( function get_pydantic_field_names (line 193) | def get_pydantic_field_names(pydantic_cls: Any) -> set[str]: function _build_model_kwargs (line 216) | def _build_model_kwargs( function build_extra_kwargs (line 262) | def build_extra_kwargs( function convert_to_secret_str (line 313) | def convert_to_secret_str(value: SecretStr | str) -> SecretStr: class _NoDefaultType (line 327) | class _NoDefaultType: function from_env (line 335) | def from_env(key: str, /) -> Callable[[], str]: ... function from_env (line 339) | def from_env(key: str, /, *, default: str) -> Callable[[], str]: ... function from_env (line 343) | def from_env(key: Sequence[str], /, *, default: str) -> Callable[[], str... function from_env (line 347) | def from_env(key: str, /, *, error_message: str) -> Callable[[], str]: ... function from_env (line 351) | def from_env( function from_env (line 357) | def from_env( function from_env (line 363) | def from_env( function from_env (line 368) | def from_env( function secret_from_env (line 425) | def secret_from_env(key: str | Sequence[str], /) -> Callable[[], SecretS... function secret_from_env (line 429) | def secret_from_env(key: str, /, *, default: str) -> Callable[[], Secret... function secret_from_env (line 433) | def secret_from_env( function secret_from_env (line 439) | def secret_from_env(key: str, /, *, error_message: str) -> Callable[[], ... function secret_from_env (line 442) | def secret_from_env( function ensure_id (line 509) | def ensure_id(id_val: str | None) -> str: FILE: libs/core/langchain_core/utils/uuid.py function _to_timestamp_and_nanos (line 20) | def _to_timestamp_and_nanos(nanoseconds: int) -> tuple[int, int]: function uuid7 (line 26) | def uuid7(nanoseconds: int | None = None) -> UUID: FILE: libs/core/langchain_core/vectorstores/__init__.py function __getattr__ (line 26) | def __getattr__(attr_name: str) -> object: function __dir__ (line 47) | def __dir__() -> list[str]: FILE: libs/core/langchain_core/vectorstores/base.py class VectorStore (line 43) | class VectorStore(ABC): method add_texts (line 46) | def add_texts( method embeddings (line 100) | def embeddings(self) -> Embeddings | None: method delete (line 108) | def delete(self, ids: list[str] | None = None, **kwargs: Any) -> bool ... method get_by_ids (line 122) | def get_by_ids(self, ids: Sequence[str], /) -> list[Document]: method aget_by_ids (line 148) | async def aget_by_ids(self, ids: Sequence[str], /) -> list[Document]: method adelete (line 172) | async def adelete(self, ids: list[str] | None = None, **kwargs: Any) -... method aadd_texts (line 185) | async def aadd_texts( method add_documents (line 234) | def add_documents(self, documents: list[Document], **kwargs: Any) -> l... method aadd_documents (line 265) | async def aadd_documents( method search (line 293) | def search(self, query: str, search_type: str, **kwargs: Any) -> list[... method asearch (line 326) | async def asearch( method similarity_search (line 361) | def similarity_search( method _euclidean_relevance_score_fn (line 376) | def _euclidean_relevance_score_fn(distance: float) -> float: method _cosine_relevance_score_fn (line 391) | def _cosine_relevance_score_fn(distance: float) -> float: method _max_inner_product_relevance_score_fn (line 396) | def _max_inner_product_relevance_score_fn(distance: float) -> float: method _select_relevance_score_fn (line 403) | def _select_relevance_score_fn(self) -> Callable[[float], float]: method similarity_search_with_score (line 417) | def similarity_search_with_score( method asimilarity_search_with_score (line 431) | async def asimilarity_search_with_score( method _similarity_search_with_relevance_scores (line 450) | def _similarity_search_with_relevance_scores( method _asimilarity_search_with_relevance_scores (line 478) | async def _asimilarity_search_with_relevance_scores( method similarity_search_with_relevance_scores (line 506) | def similarity_search_with_relevance_scores( method asimilarity_search_with_relevance_scores (line 556) | async def asimilarity_search_with_relevance_scores( method asimilarity_search (line 606) | async def asimilarity_search( method similarity_search_by_vector (line 624) | def similarity_search_by_vector( method asimilarity_search_by_vector (line 639) | async def asimilarity_search_by_vector( method max_marginal_relevance_search (line 659) | def max_marginal_relevance_search( method amax_marginal_relevance_search (line 686) | async def amax_marginal_relevance_search( method max_marginal_relevance_search_by_vector (line 724) | def max_marginal_relevance_search_by_vector( method amax_marginal_relevance_search_by_vector (line 751) | async def amax_marginal_relevance_search_by_vector( method from_documents (line 787) | def from_documents( method afrom_documents (line 817) | async def afrom_documents( method from_texts (line 848) | def from_texts( method afrom_texts (line 871) | async def afrom_texts( method _get_retriever_tags (line 898) | def _get_retriever_tags(self) -> list[str]: method as_retriever (line 905) | def as_retriever(self, **kwargs: Any) -> VectorStoreRetriever: class VectorStoreRetriever (line 964) | class VectorStoreRetriever(BaseRetriever): method validate_search_type (line 988) | def validate_search_type(cls, values: dict) -> Any: method _get_ls_params (line 1018) | def _get_ls_params(self, **kwargs: Any) -> LangSmithRetrieverParams: method _get_relevant_documents (line 1040) | def _get_relevant_documents( method _aget_relevant_documents (line 1061) | async def _aget_relevant_documents( method add_documents (line 1087) | def add_documents(self, documents: list[Document], **kwargs: Any) -> l... method aadd_documents (line 1099) | async def aadd_documents( FILE: libs/core/langchain_core/vectorstores/in_memory.py class InMemoryVectorStore (line 34) | class InMemoryVectorStore(VectorStore): method __init__ (line 161) | def __init__(self, embedding: Embeddings) -> None: method embeddings (line 174) | def embeddings(self) -> Embeddings: method delete (line 178) | def delete(self, ids: Sequence[str] | None = None, **kwargs: Any) -> N... method adelete (line 184) | async def adelete(self, ids: Sequence[str] | None = None, **kwargs: An... method add_documents (line 188) | def add_documents( method aadd_documents (line 224) | async def aadd_documents( method get_by_ids (line 256) | def get_by_ids(self, ids: Sequence[str], /) -> list[Document]: method aget_by_ids (line 280) | async def aget_by_ids(self, ids: Sequence[str], /) -> list[Document]: method _similarity_search_with_score_by_vector (line 291) | def _similarity_search_with_score_by_vector( method similarity_search_with_score_by_vector (line 334) | def similarity_search_with_score_by_vector( method similarity_search_with_score (line 359) | def similarity_search_with_score( method asimilarity_search_with_score (line 373) | async def asimilarity_search_with_score( method similarity_search_by_vector (line 384) | def similarity_search_by_vector( method asimilarity_search_by_vector (line 398) | async def asimilarity_search_by_vector( method similarity_search (line 404) | def similarity_search( method asimilarity_search (line 410) | async def asimilarity_search( method max_marginal_relevance_search_by_vector (line 419) | def max_marginal_relevance_search_by_vector( method max_marginal_relevance_search (line 451) | def max_marginal_relevance_search( method amax_marginal_relevance_search (line 469) | async def amax_marginal_relevance_search( method from_texts (line 488) | def from_texts( method afrom_texts (line 503) | async def afrom_texts( method load (line 517) | def load( method dump (line 537) | def dump(self, path: str) -> None: FILE: libs/core/langchain_core/vectorstores/utils.py function _cosine_similarity (line 35) | def _cosine_similarity(x: Matrix, y: Matrix) -> np.ndarray: function maximal_marginal_relevance (line 106) | def maximal_marginal_relevance( FILE: libs/core/scripts/check_version.py function get_pyproject_version (line 13) | def get_pyproject_version(pyproject_path: Path) -> str | None: function get_version_py_version (line 20) | def get_version_py_version(version_path: Path) -> str | None: function main (line 27) | def main() -> int: FILE: libs/core/tests/benchmarks/test_async_callbacks.py class MyCustomAsyncHandler (line 16) | class MyCustomAsyncHandler(AsyncCallbackHandler): method on_chat_model_start (line 18) | async def on_chat_model_start( method on_llm_new_token (line 34) | async def on_llm_new_token( function test_async_callbacks_in_sync (line 48) | async def test_async_callbacks_in_sync(benchmark: BenchmarkFixture) -> N... FILE: libs/core/tests/benchmarks/test_imports.py function test_import_time (line 51) | def test_import_time(benchmark: BenchmarkFixture, import_path: str) -> N... FILE: libs/core/tests/integration_tests/test_compile.py function test_placeholder (line 5) | def test_placeholder() -> None: FILE: libs/core/tests/unit_tests/_api/test_beta_decorator.py function test_warn_beta (line 48) | def test_warn_beta(kwargs: dict[str, Any], expected_message: str) -> None: function beta_function (line 61) | def beta_function() -> str: function beta_async_function (line 67) | async def beta_async_function() -> str: class ClassWithBetaMethods (line 72) | class ClassWithBetaMethods: method __init__ (line 73) | def __init__(self) -> None: method beta_method (line 77) | def beta_method(self) -> str: method beta_async_method (line 82) | async def beta_async_method(self) -> str: method beta_classmethod (line 88) | def beta_classmethod(cls) -> str: method beta_staticmethod (line 94) | def beta_staticmethod() -> str: method beta_property (line 99) | def beta_property(self) -> str: method beta_property (line 104) | def beta_property(self, _value: str) -> None: method beta_property (line 109) | def beta_property(self) -> None: function test_beta_function (line 113) | def test_beta_function() -> None: function test_beta_async_function (line 133) | async def test_beta_async_function() -> None: function test_beta_method (line 152) | def test_beta_method() -> None: function test_beta_async_method (line 173) | async def test_beta_async_method() -> None: function test_beta_classmethod (line 193) | def test_beta_classmethod() -> None: function test_beta_staticmethod (line 210) | def test_beta_staticmethod() -> None: function test_beta_property (line 229) | def test_beta_property() -> None: function test_whole_class_beta (line 252) | def test_whole_class_beta() -> None: function test_whole_class_inherited_beta (line 287) | def test_whole_class_inherited_beta() -> None: class MyModel (line 359) | class MyModel(BaseModel): method beta_method (line 361) | def beta_method(self) -> str: function test_beta_method_pydantic (line 366) | def test_beta_method_pydantic() -> None: FILE: libs/core/tests/unit_tests/_api/test_deprecation.py function test_warn_deprecated (line 62) | def test_warn_deprecated(kwargs: dict[str, Any], expected_message: str) ... function test_undefined_deprecation_schedule (line 74) | def test_undefined_deprecation_schedule() -> None: function deprecated_function (line 81) | def deprecated_function() -> str: function deprecated_async_function (line 87) | async def deprecated_async_function() -> str: class ClassWithDeprecatedMethods (line 92) | class ClassWithDeprecatedMethods: method __init__ (line 93) | def __init__(self) -> None: method deprecated_method (line 97) | def deprecated_method(self) -> str: method deprecated_async_method (line 102) | async def deprecated_async_method(self) -> str: method deprecated_classmethod (line 108) | def deprecated_classmethod(cls) -> str: method deprecated_staticmethod (line 114) | def deprecated_staticmethod() -> str: method deprecated_property (line 120) | def deprecated_property(self) -> str: function test_deprecated_function (line 125) | def test_deprecated_function() -> None: function test_deprecated_async_function (line 144) | async def test_deprecated_async_function() -> None: function test_deprecated_method (line 165) | def test_deprecated_method() -> None: function test_deprecated_async_method (line 185) | async def test_deprecated_async_method() -> None: function test_deprecated_classmethod (line 207) | def test_deprecated_classmethod() -> None: function test_deprecated_staticmethod (line 224) | def test_deprecated_staticmethod() -> None: function test_deprecated_property (line 244) | def test_deprecated_property() -> None: function test_whole_class_deprecation (line 264) | def test_whole_class_deprecation() -> None: function test_whole_class_inherited_deprecation (line 302) | def test_whole_class_inherited_deprecation() -> None: class MyModel (line 383) | class MyModel(BaseModel): method deprecated_method (line 385) | def deprecated_method(self) -> str: function test_deprecated_method_pydantic (line 390) | def test_deprecated_method_pydantic() -> None: function test_raise_error_for_bad_decorator (line 408) | def test_raise_error_for_bad_decorator() -> None: function test_rename_parameter (line 421) | def test_rename_parameter() -> None: function test_rename_parameter_for_async_func (line 446) | async def test_rename_parameter_for_async_func() -> None: function test_rename_parameter_method (line 470) | def test_rename_parameter_method() -> None: function test_deprecated_function_has_pep702_attribute (line 505) | def test_deprecated_function_has_pep702_attribute() -> None: function test_deprecated_function_with_alternative_import_has_pep702_attribute (line 517) | def test_deprecated_function_with_alternative_import_has_pep702_attribut... function test_deprecated_function_without_alternative_has_pep702_attribute (line 531) | def test_deprecated_function_without_alternative_has_pep702_attribute() ... function test_deprecated_class_has_pep702_attribute (line 543) | def test_deprecated_class_has_pep702_attribute() -> None: function test_deprecated_class_without_alternative_has_pep702_attribute (line 555) | def test_deprecated_class_without_alternative_has_pep702_attribute() -> ... function test_deprecated_property_has_pep702_attribute (line 567) | def test_deprecated_property_has_pep702_attribute() -> None: FILE: libs/core/tests/unit_tests/_api/test_imports.py function test_all_imports (line 18) | def test_all_imports() -> None: FILE: libs/core/tests/unit_tests/_api/test_path.py function test_as_import_path (line 10) | def test_as_import_path() -> None: FILE: libs/core/tests/unit_tests/caches/test_in_memory_cache.py function cache (line 8) | def cache() -> InMemoryCache: function cache_item (line 13) | def cache_item(item_id: int) -> tuple[str, str, RETURN_VAL_TYPE]: function test_initialization (line 21) | def test_initialization() -> None: function test_lookup (line 35) | def test_lookup( function test_update_with_no_maxsize (line 45) | def test_update_with_no_maxsize(cache: InMemoryCache) -> None: function test_update_with_maxsize (line 52) | def test_update_with_maxsize() -> None: function test_clear (line 72) | def test_clear(cache: InMemoryCache) -> None: function test_alookup (line 80) | async def test_alookup(cache: InMemoryCache) -> None: function test_aupdate_with_no_maxsize (line 88) | async def test_aupdate_with_no_maxsize(cache: InMemoryCache) -> None: function test_aupdate_with_maxsize (line 95) | async def test_aupdate_with_maxsize() -> None: function test_aclear (line 114) | async def test_aclear(cache: InMemoryCache) -> None: FILE: libs/core/tests/unit_tests/callbacks/test_async_callback_manager.py function test_inline_handlers_share_parent_context (line 22) | async def test_inline_handlers_share_parent_context() -> None: function test_inline_handlers_share_parent_context_multiple (line 78) | async def test_inline_handlers_share_parent_context_multiple() -> None: function test_shielded_callback_context_preservation (line 154) | async def test_shielded_callback_context_preservation() -> None: FILE: libs/core/tests/unit_tests/callbacks/test_dispatch_custom_event.py class AsyncCustomCallbackHandler (line 17) | class AsyncCustomCallbackHandler(AsyncCallbackHandler): method __init__ (line 18) | def __init__(self) -> None: method on_custom_event (line 21) | async def on_custom_event( function test_custom_event_root_dispatch (line 43) | def test_custom_event_root_dispatch() -> None: function test_async_custom_event_root_dispatch (line 53) | async def test_async_custom_event_root_dispatch() -> None: function test_async_custom_event_implicit_config (line 67) | async def test_async_custom_event_implicit_config() -> None: function test_async_callback_manager (line 91) | async def test_async_callback_manager() -> None: function test_sync_callback_manager (line 114) | def test_sync_callback_manager() -> None: FILE: libs/core/tests/unit_tests/callbacks/test_handle_event.py class _FallbackChatHandler (line 23) | class _FallbackChatHandler(BaseCallbackHandler): method on_chat_model_start (line 29) | def on_chat_model_start( method on_llm_start (line 37) | def on_llm_start(self, *args: Any, **kwargs: Any) -> None: class _FallbackChatHandlerAsync (line 41) | class _FallbackChatHandlerAsync(BaseCallbackHandler): method on_chat_model_start (line 46) | def on_chat_model_start( method on_llm_start (line 54) | def on_llm_start(self, *args: Any, **kwargs: Any) -> None: function test_handle_event_chat_model_start_fallback_to_llm_start (line 58) | def test_handle_event_chat_model_start_fallback_to_llm_start() -> None: function test_handle_event_other_event_not_implemented_logs_warning (line 77) | def test_handle_event_other_event_not_implemented_logs_warning() -> None: function test_ahandle_event_chat_model_start_fallback_to_llm_start (line 97) | async def test_ahandle_event_chat_model_start_fallback_to_llm_start() ->... function test_ahandle_event_other_event_not_implemented_logs_warning (line 117) | async def test_ahandle_event_other_event_not_implemented_logs_warning() ... FILE: libs/core/tests/unit_tests/callbacks/test_imports.py function test_all_imports (line 41) | def test_all_imports() -> None: FILE: libs/core/tests/unit_tests/callbacks/test_sync_callback_manager.py function test_remove_handler (line 4) | def test_remove_handler() -> None: function test_merge_preserves_handler_distinction (line 18) | def test_merge_preserves_handler_distinction() -> None: FILE: libs/core/tests/unit_tests/callbacks/test_usage_callback.py class FakeChatModelWithResponseMetadata (line 49) | class FakeChatModelWithResponseMetadata(GenericFakeChatModel): method _generate (line 52) | def _generate(self, *args: Any, **kwargs: Any) -> ChatResult: function test_usage_callback (line 60) | def test_usage_callback() -> None: function test_usage_callback_async (line 100) | async def test_usage_callback_async() -> None: FILE: libs/core/tests/unit_tests/chat_history/test_chat_history.py function test_add_message_implementation_only (line 7) | def test_add_message_implementation_only() -> None: function test_bulk_message_implementation_only (line 42) | def test_bulk_message_implementation_only() -> None: function test_async_interface (line 77) | async def test_async_interface() -> None: FILE: libs/core/tests/unit_tests/conftest.py function blockbuster (line 13) | def blockbuster() -> Iterator[BlockBuster]: function pytest_addoption (line 35) | def pytest_addoption(parser: pytest.Parser) -> None: function pytest_collection_modifyitems (line 49) | def pytest_collection_modifyitems( function deterministic_uuids (line 116) | def deterministic_uuids(mocker: MockerFixture) -> MockerFixture: FILE: libs/core/tests/unit_tests/document_loaders/test_base.py function test_base_blob_parser (line 13) | def test_base_blob_parser() -> None: function test_default_lazy_load (line 36) | def test_default_lazy_load() -> None: function test_lazy_load_not_implemented (line 50) | def test_lazy_load_not_implemented() -> None: function test_default_aload (line 59) | async def test_default_aload() -> None: FILE: libs/core/tests/unit_tests/document_loaders/test_langsmith.py function test_init (line 12) | def test_init() -> None: function test_lazy_load (line 42) | def test_lazy_load() -> None: FILE: libs/core/tests/unit_tests/documents/test_document.py function test_init (line 4) | def test_init() -> None: FILE: libs/core/tests/unit_tests/documents/test_imports.py function test_all_imports (line 6) | def test_all_imports() -> None: FILE: libs/core/tests/unit_tests/documents/test_str.py function test_str (line 4) | def test_str() -> None: function test_repr (line 12) | def test_repr() -> None: FILE: libs/core/tests/unit_tests/embeddings/test_deterministic_embedding.py function test_deterministic_fake_embeddings (line 4) | def test_deterministic_fake_embeddings() -> None: FILE: libs/core/tests/unit_tests/example_selectors/test_base.py class DummyExampleSelector (line 6) | class DummyExampleSelector(BaseExampleSelector): method __init__ (line 7) | def __init__(self) -> None: method add_example (line 10) | def add_example(self, example: dict[str, str]) -> None: method select_examples (line 14) | def select_examples(self, input_variables: dict[str, str]) -> list[dic... function test_aadd_example (line 18) | async def test_aadd_example() -> None: function test_aselect_examples (line 24) | async def test_aselect_examples() -> None: FILE: libs/core/tests/unit_tests/example_selectors/test_imports.py function test_all_imports (line 12) | def test_all_imports() -> None: FILE: libs/core/tests/unit_tests/example_selectors/test_length_based_example_selector.py function selector (line 17) | def selector() -> LengthBasedExampleSelector: function test_selector_valid (line 27) | def test_selector_valid(selector: LengthBasedExampleSelector) -> None: function test_selector_add_example (line 34) | def test_selector_add_example(selector: LengthBasedExampleSelector) -> N... function test_selector_trims_one_example (line 43) | def test_selector_trims_one_example(selector: LengthBasedExampleSelector... function test_selector_trims_all_examples (line 51) | def test_selector_trims_all_examples( function test_selector_empty_example (line 63) | def test_selector_empty_example( FILE: libs/core/tests/unit_tests/example_selectors/test_similarity.py class DummyVectorStore (line 15) | class DummyVectorStore(VectorStore): method __init__ (line 16) | def __init__(self, init_arg: str | None = None): method embeddings (line 23) | def embeddings(self) -> Embeddings | None: method add_texts (line 27) | def add_texts( method similarity_search (line 39) | def similarity_search( method max_marginal_relevance_search (line 49) | def max_marginal_relevance_search( method from_texts (line 65) | def from_texts( function test_add_example (line 78) | def test_add_example() -> None: function test_aadd_example (line 88) | async def test_aadd_example() -> None: function test_select_examples (line 98) | def test_select_examples() -> None: function test_aselect_examples (line 107) | async def test_aselect_examples() -> None: function test_from_examples (line 116) | def test_from_examples() -> None: function test_afrom_examples (line 142) | async def test_afrom_examples() -> None: function test_mmr_select_examples (line 168) | def test_mmr_select_examples() -> None: function test_mmr_aselect_examples (line 181) | async def test_mmr_aselect_examples() -> None: function test_mmr_from_examples (line 194) | def test_mmr_from_examples() -> None: function test_mmr_afrom_examples (line 222) | async def test_mmr_afrom_examples() -> None: FILE: libs/core/tests/unit_tests/fake/callbacks.py class BaseFakeCallbackHandler (line 14) | class BaseFakeCallbackHandler(BaseModel): class BaseFakeCallbackHandlerMixin (line 48) | class BaseFakeCallbackHandlerMixin(BaseFakeCallbackHandler): method on_llm_start_common (line 51) | def on_llm_start_common(self) -> None: method on_llm_end_common (line 55) | def on_llm_end_common(self) -> None: method on_llm_error_common (line 59) | def on_llm_error_common(self, *args: Any, **kwargs: Any) -> None: method on_llm_new_token_common (line 63) | def on_llm_new_token_common(self) -> None: method on_retry_common (line 66) | def on_retry_common(self) -> None: method on_chain_start_common (line 69) | def on_chain_start_common(self) -> None: method on_chain_end_common (line 73) | def on_chain_end_common(self) -> None: method on_chain_error_common (line 77) | def on_chain_error_common(self) -> None: method on_tool_start_common (line 80) | def on_tool_start_common(self) -> None: method on_tool_end_common (line 84) | def on_tool_end_common(self) -> None: method on_tool_error_common (line 88) | def on_tool_error_common(self) -> None: method on_agent_action_common (line 91) | def on_agent_action_common(self) -> None: method on_agent_finish_common (line 95) | def on_agent_finish_common(self) -> None: method on_chat_model_start_common (line 99) | def on_chat_model_start_common(self) -> None: method on_text_common (line 103) | def on_text_common(self) -> None: method on_retriever_start_common (line 106) | def on_retriever_start_common(self) -> None: method on_retriever_end_common (line 110) | def on_retriever_end_common(self) -> None: method on_retriever_error_common (line 114) | def on_retriever_error_common(self) -> None: class FakeCallbackHandler (line 119) | class FakeCallbackHandler(BaseCallbackHandler, BaseFakeCallbackHandlerMi... method ignore_llm (line 123) | def ignore_llm(self) -> bool: method ignore_chain (line 128) | def ignore_chain(self) -> bool: method ignore_agent (line 133) | def ignore_agent(self) -> bool: method ignore_retriever (line 138) | def ignore_retriever(self) -> bool: method on_llm_start (line 143) | def on_llm_start( method on_llm_new_token (line 151) | def on_llm_new_token( method on_llm_end (line 159) | def on_llm_end( method on_llm_error (line 167) | def on_llm_error( method on_retry (line 175) | def on_retry( method on_chain_start (line 183) | def on_chain_start( method on_chain_end (line 191) | def on_chain_end( method on_chain_error (line 199) | def on_chain_error( method on_tool_start (line 207) | def on_tool_start( method on_tool_end (line 215) | def on_tool_end( method on_tool_error (line 223) | def on_tool_error( method on_agent_action (line 231) | def on_agent_action( method on_agent_finish (line 239) | def on_agent_finish( method on_text (line 247) | def on_text( method on_retriever_start (line 255) | def on_retriever_start( method on_retriever_end (line 263) | def on_retriever_end( method on_retriever_error (line 271) | def on_retriever_error( method __deepcopy__ (line 279) | def __deepcopy__(self, memo: dict[int, Any] | None = None) -> "FakeCal... class FakeCallbackHandlerWithChatStart (line 283) | class FakeCallbackHandlerWithChatStart(FakeCallbackHandler): method on_chat_model_start (line 285) | def on_chat_model_start( class FakeAsyncCallbackHandler (line 298) | class FakeAsyncCallbackHandler(AsyncCallbackHandler, BaseFakeCallbackHan... method ignore_llm (line 302) | def ignore_llm(self) -> bool: method ignore_chain (line 307) | def ignore_chain(self) -> bool: method ignore_agent (line 312) | def ignore_agent(self) -> bool: method on_retry (line 317) | async def on_retry( method on_llm_start (line 325) | async def on_llm_start( method on_llm_new_token (line 333) | async def on_llm_new_token( method on_llm_end (line 341) | async def on_llm_end( method on_llm_error (line 349) | async def on_llm_error( method on_chain_start (line 357) | async def on_chain_start( method on_chain_end (line 365) | async def on_chain_end( method on_chain_error (line 373) | async def on_chain_error( method on_tool_start (line 381) | async def on_tool_start( method on_tool_end (line 389) | async def on_tool_end( method on_tool_error (line 397) | async def on_tool_error( method on_agent_action (line 405) | async def on_agent_action( method on_agent_finish (line 413) | async def on_agent_finish( method on_text (line 421) | async def on_text( method __deepcopy__ (line 429) | def __deepcopy__( FILE: libs/core/tests/unit_tests/fake/test_fake_chat_model.py function test_generic_fake_chat_model_invoke (line 26) | def test_generic_fake_chat_model_invoke() -> None: function test_generic_fake_chat_model_ainvoke (line 38) | async def test_generic_fake_chat_model_ainvoke() -> None: function test_generic_fake_chat_model_stream (line 50) | async def test_generic_fake_chat_model_stream() -> None: function test_generic_fake_chat_model_astream_log (line 144) | async def test_generic_fake_chat_model_astream_log() -> None: function test_callback_handlers (line 160) | async def test_callback_handlers() -> None: function test_chat_model_inputs (line 218) | def test_chat_model_inputs() -> None: function test_fake_list_chat_model_batch (line 230) | def test_fake_list_chat_model_batch() -> None: function test_fake_messages_list_chat_model_sleep_delay (line 243) | def test_fake_messages_list_chat_model_sleep_delay() -> None: FILE: libs/core/tests/unit_tests/indexing/test_hashed_document.py function test_hashed_document_hashing (line 7) | def test_hashed_document_hashing() -> None: function test_to_document (line 15) | def test_to_document() -> None: function test_hashing (line 27) | def test_hashing() -> None: function test_hashing_custom_key_encoder (line 54) | def test_hashing_custom_key_encoder() -> None: FILE: libs/core/tests/unit_tests/indexing/test_in_memory_indexer.py class TestDocumentIndexerTestSuite (line 16) | class TestDocumentIndexerTestSuite(DocumentIndexerTestSuite): method index (line 19) | def index(self) -> InMemoryDocumentIndex: class TestAsyncDocumentIndexerTestSuite (line 23) | class TestAsyncDocumentIndexerTestSuite(AsyncDocumentIndexTestSuite): method index (line 27) | async def index(self) -> InMemoryDocumentIndex: function test_sync_retriever (line 31) | def test_sync_retriever() -> None: function test_async_retriever (line 42) | async def test_async_retriever() -> None: FILE: libs/core/tests/unit_tests/indexing/test_in_memory_record_manager.py function manager (line 11) | def manager() -> InMemoryRecordManager: function amanager (line 20) | async def amanager() -> InMemoryRecordManager: function test_update (line 28) | def test_update(manager: InMemoryRecordManager) -> None: function test_aupdate (line 41) | async def test_aupdate(amanager: InMemoryRecordManager) -> None: function test_update_timestamp (line 54) | def test_update_timestamp(manager: InMemoryRecordManager) -> None: function test_aupdate_timestamp (line 98) | async def test_aupdate_timestamp(manager: InMemoryRecordManager) -> None: function test_exists (line 148) | def test_exists(manager: InMemoryRecordManager) -> None: function test_aexists (line 163) | async def test_aexists(amanager: InMemoryRecordManager) -> None: function test_list_keys (line 178) | async def test_list_keys(manager: InMemoryRecordManager) -> None: function test_delete_keys (line 252) | def test_delete_keys(manager: InMemoryRecordManager) -> None: function test_adelete_keys (line 267) | async def test_adelete_keys(amanager: InMemoryRecordManager) -> None: FILE: libs/core/tests/unit_tests/indexing/test_indexing.py class ToyLoader (line 25) | class ToyLoader(BaseLoader): method __init__ (line 28) | def __init__(self, documents: Sequence[Document]) -> None: method lazy_load (line 32) | def lazy_load( method alazy_load (line 37) | async def alazy_load( function record_manager (line 45) | def record_manager() -> InMemoryRecordManager: function arecord_manager (line 53) | async def arecord_manager() -> InMemoryRecordManager: function vector_store (line 61) | def vector_store() -> InMemoryVectorStore: function upserting_vector_store (line 68) | def upserting_vector_store() -> InMemoryVectorStore: function test_indexing_same_content (line 74) | def test_indexing_same_content( function test_aindexing_same_content (line 108) | async def test_aindexing_same_content( function test_index_simple_delete_full (line 152) | def test_index_simple_delete_full( function test_aindex_simple_delete_full (line 261) | async def test_aindex_simple_delete_full( function test_index_delete_full_recovery_after_deletion_failure (line 368) | def test_index_delete_full_recovery_after_deletion_failure( function test_aindex_delete_full_recovery_after_deletion_failure (line 469) | async def test_aindex_delete_full_recovery_after_deletion_failure( function test_incremental_fails_with_bad_source_ids (line 570) | def test_incremental_fails_with_bad_source_ids( function test_aincremental_fails_with_bad_source_ids (line 620) | async def test_aincremental_fails_with_bad_source_ids( function test_index_simple_delete_scoped_full (line 670) | def test_index_simple_delete_scoped_full( function test_aindex_simple_delete_scoped_full (line 796) | async def test_aindex_simple_delete_scoped_full( function test_scoped_full_fails_with_bad_source_ids (line 922) | def test_scoped_full_fails_with_bad_source_ids( function test_ascoped_full_fails_with_bad_source_ids (line 972) | async def test_ascoped_full_fails_with_bad_source_ids( function test_index_empty_doc_scoped_full (line 1022) | def test_index_empty_doc_scoped_full( function test_aindex_empty_doc_scoped_full (line 1107) | async def test_aindex_empty_doc_scoped_full( function test_no_delete (line 1192) | def test_no_delete( function test_ano_delete (line 1282) | async def test_ano_delete( function test_incremental_delete (line 1372) | def test_incremental_delete( function test_incremental_delete_with_same_source (line 1485) | def test_incremental_delete_with_same_source( function test_incremental_indexing_with_batch_size (line 1567) | def test_incremental_indexing_with_batch_size( function test_incremental_delete_with_batch_size (line 1647) | def test_incremental_delete_with_batch_size( function test_aincremental_delete (line 1844) | async def test_aincremental_delete( function test_indexing_with_no_docs (line 1957) | def test_indexing_with_no_docs( function test_aindexing_with_no_docs (line 1977) | async def test_aindexing_with_no_docs( function test_deduplication (line 1997) | def test_deduplication( function test_adeduplication (line 2027) | async def test_adeduplication( function test_within_batch_deduplication_counting (line 2057) | def test_within_batch_deduplication_counting( function test_awithin_batch_deduplication_counting (line 2113) | async def test_awithin_batch_deduplication_counting( function test_full_cleanup_with_different_batchsize (line 2169) | def test_full_cleanup_with_different_batchsize( function test_incremental_cleanup_with_different_batchsize (line 2217) | def test_incremental_cleanup_with_different_batchsize( function test_afull_cleanup_with_different_batchsize (line 2267) | async def test_afull_cleanup_with_different_batchsize( function test_aincremental_cleanup_with_different_batchsize (line 2315) | async def test_aincremental_cleanup_with_different_batchsize( function test_deduplication_v2 (line 2365) | def test_deduplication_v2( function _to_async_iter (line 2411) | async def _to_async_iter(it: Iterable[Any]) -> AsyncIterator[Any]: function test_abatch (line 2417) | async def test_abatch() -> None: function test_indexing_force_update (line 2436) | def test_indexing_force_update( function test_aindexing_force_update (line 2496) | async def test_aindexing_force_update( function test_indexing_custom_batch_size (line 2556) | def test_indexing_custom_batch_size( function test_aindexing_custom_batch_size (line 2593) | async def test_aindexing_custom_batch_size( function test_index_into_document_index (line 2623) | def test_index_into_document_index(record_manager: InMemoryRecordManager... function test_aindex_into_document_index (line 2691) | async def test_aindex_into_document_index( function test_index_with_upsert_kwargs (line 2761) | def test_index_with_upsert_kwargs( function test_index_with_upsert_kwargs_for_document_indexer (line 2814) | def test_index_with_upsert_kwargs_for_document_indexer( function test_aindex_with_upsert_kwargs_for_document_indexer (line 2853) | async def test_aindex_with_upsert_kwargs_for_document_indexer( function test_aindex_with_upsert_kwargs (line 2892) | async def test_aindex_with_upsert_kwargs( FILE: libs/core/tests/unit_tests/indexing/test_public_api.py function test_all (line 4) | def test_all() -> None: FILE: libs/core/tests/unit_tests/language_models/chat_models/test_base.py function _content_blocks_equal_ignore_id (line 52) | def _content_blocks_equal_ignore_id( function messages (line 84) | def messages() -> list[BaseMessage]: function messages_2 (line 92) | def messages_2() -> list[BaseMessage]: function test_batch_size (line 99) | def test_batch_size(messages: list[BaseMessage], messages_2: list[BaseMe... function test_async_batch_size (line 123) | async def test_async_batch_size( function test_stream_error_callback (line 151) | async def test_stream_error_callback() -> None: function test_astream_fallback_to_ainvoke (line 185) | async def test_astream_fallback_to_ainvoke() -> None: function test_astream_implementation_fallback_to_stream (line 219) | async def test_astream_implementation_fallback_to_stream() -> None: function test_astream_implementation_uses_astream (line 271) | async def test_astream_implementation_uses_astream() -> None: class FakeTracer (line 314) | class FakeTracer(BaseTracer): method __init__ (line 315) | def __init__(self) -> None: method _persist_run (line 319) | def _persist_run(self, run: Run) -> None: function test_pass_run_id (line 324) | def test_pass_run_id() -> None: function test_async_pass_run_id (line 338) | async def test_async_pass_run_id() -> None: class NoStreamingModel (line 354) | class NoStreamingModel(BaseChatModel): method _generate (line 356) | def _generate( method _llm_type (line 366) | def _llm_type(self) -> str: class StreamingModel (line 370) | class StreamingModel(NoStreamingModel): method _stream (line 374) | def _stream( function test_disable_streaming (line 385) | def test_disable_streaming( function test_disable_streaming_async (line 410) | async def test_disable_streaming_async( function test_streaming_attribute_overrides_streaming_callback (line 436) | async def test_streaming_attribute_overrides_streaming_callback() -> None: function test_disable_streaming_no_streaming_model (line 444) | def test_disable_streaming_no_streaming_model( function test_disable_streaming_no_streaming_model_async (line 459) | async def test_disable_streaming_no_streaming_model_async( class FakeChatModelStartTracer (line 476) | class FakeChatModelStartTracer(FakeTracer): method __init__ (line 477) | def __init__(self) -> None: method on_chat_model_start (line 481) | def on_chat_model_start(self, *args: Any, **kwargs: Any) -> Run: function test_trace_images_in_openai_format (line 490) | def test_trace_images_in_openai_format() -> None: function test_trace_pdfs (line 524) | def test_trace_pdfs() -> None: function test_content_block_transformation_v0_to_v1_image (line 563) | def test_content_block_transformation_v0_to_v1_image() -> None: function test_trace_content_blocks_with_no_type_key (line 599) | def test_trace_content_blocks_with_no_type_key(output_version: str) -> N... function test_extend_support_to_openai_multimodal_formats (line 679) | def test_extend_support_to_openai_multimodal_formats() -> None: function test_normalize_messages_edge_cases (line 811) | def test_normalize_messages_edge_cases() -> None: function test_normalize_messages_v1_content_blocks_unchanged (line 842) | def test_normalize_messages_v1_content_blocks_unchanged() -> None: function test_output_version_invoke (line 881) | def test_output_version_invoke(monkeypatch: Any) -> None: function test_output_version_ainvoke (line 903) | async def test_output_version_ainvoke(monkeypatch: Any) -> None: class _AnotherFakeChatModel (line 925) | class _AnotherFakeChatModel(BaseChatModel): method _llm_type (line 933) | def _llm_type(self) -> str: method _generate (line 936) | def _generate( method _agenerate (line 943) | async def _agenerate( method _stream (line 950) | def _stream( method _astream (line 958) | async def _astream( function test_output_version_stream (line 967) | def test_output_version_stream(monkeypatch: Any) -> None: function test_output_version_astream (line 1065) | async def test_output_version_astream(monkeypatch: Any) -> None: function test_get_ls_params (line 1164) | def test_get_ls_params() -> None: function test_model_profiles (line 1225) | def test_model_profiles() -> None: function test_resolve_model_profile_hook_populates_profile (line 1235) | def test_resolve_model_profile_hook_populates_profile() -> None: function test_resolve_model_profile_hook_skipped_when_explicit (line 1246) | def test_resolve_model_profile_hook_skipped_when_explicit() -> None: function test_resolve_model_profile_hook_exception_is_caught (line 1258) | def test_resolve_model_profile_hook_exception_is_caught() -> None: function test_check_profile_keys_runs_despite_partner_override (line 1273) | def test_check_profile_keys_runs_despite_partner_override() -> None: class MockResponse (line 1305) | class MockResponse: method __init__ (line 1308) | def __init__( method json (line 1322) | def json(self) -> dict[str, Any]: method text (line 1329) | def text(self) -> str: class MockAPIError (line 1336) | class MockAPIError(Exception): method __init__ (line 1339) | def __init__(self, message: str, response: MockResponse | None = None): function test_generate_response_from_error_with_valid_json (line 1346) | def test_generate_response_from_error_with_valid_json() -> None: function test_generate_response_from_error_handles_streaming_response_failure (line 1371) | def test_generate_response_from_error_handles_streaming_response_failure... FILE: libs/core/tests/unit_tests/language_models/chat_models/test_benchmark.py function test_benchmark_model (line 7) | def test_benchmark_model() -> None: FILE: libs/core/tests/unit_tests/language_models/chat_models/test_cache.py class InMemoryCache (line 21) | class InMemoryCache(BaseCache): method __init__ (line 24) | def __init__(self) -> None: method lookup (line 28) | def lookup(self, prompt: str, llm_string: str) -> RETURN_VAL_TYPE | None: method update (line 32) | def update(self, prompt: str, llm_string: str, return_val: RETURN_VAL_... method clear (line 37) | def clear(self, **kwargs: Any) -> None: function test_local_cache_sync (line 42) | def test_local_cache_sync() -> None: function test_local_cache_async (line 73) | async def test_local_cache_async() -> None: function test_global_cache_sync (line 104) | def test_global_cache_sync() -> None: function test_global_cache_async (line 130) | async def test_global_cache_async() -> None: function test_no_cache_sync (line 156) | def test_no_cache_sync() -> None: function test_no_cache_async (line 173) | async def test_no_cache_async() -> None: function test_global_cache_abatch (line 190) | async def test_global_cache_abatch() -> None: function test_global_cache_batch (line 217) | def test_global_cache_batch() -> None: function test_global_cache_stream (line 253) | def test_global_cache_stream() -> None: class CustomChat (line 271) | class CustomChat(GenericFakeChatModel): method is_lc_serializable (line 273) | def is_lc_serializable(cls) -> bool: function test_can_swap_caches (line 277) | async def test_can_swap_caches() -> None: function test_llm_representation_for_serializable (line 298) | def test_llm_representation_for_serializable() -> None: function test_cache_with_generation_objects (line 310) | def test_cache_with_generation_objects() -> None: function test_cleanup_serialized (line 393) | def test_cleanup_serialized() -> None: function test_token_costs_are_zeroed_out (line 460) | def test_token_costs_are_zeroed_out() -> None: function test_cache_key_ignores_message_id_sync (line 480) | def test_cache_key_ignores_message_id_sync() -> None: function test_cache_key_ignores_message_id_async (line 509) | async def test_cache_key_ignores_message_id_async() -> None: FILE: libs/core/tests/unit_tests/language_models/chat_models/test_rate_limiting.py function deactivate_blockbuster (line 13) | def deactivate_blockbuster(blockbuster: BlockBuster) -> None: function test_rate_limit_invoke (line 18) | def test_rate_limit_invoke() -> None: function test_rate_limit_ainvoke (line 44) | async def test_rate_limit_ainvoke() -> None: function test_rate_limit_batch (line 78) | def test_rate_limit_batch() -> None: function test_rate_limit_abatch (line 95) | async def test_rate_limit_abatch() -> None: function test_rate_limit_stream (line 112) | def test_rate_limit_stream() -> None: function test_rate_limit_astream (line 147) | async def test_rate_limit_astream() -> None: function test_rate_limit_skips_cache (line 182) | def test_rate_limit_skips_cache() -> None: class SerializableModel (line 227) | class SerializableModel(GenericFakeChatModel): method is_lc_serializable (line 229) | def is_lc_serializable(cls) -> bool: function test_serialization_with_rate_limiter (line 233) | def test_serialization_with_rate_limiter() -> None: function test_rate_limit_skips_cache_async (line 246) | async def test_rate_limit_skips_cache_async(output_version: str) -> None: FILE: libs/core/tests/unit_tests/language_models/llms/test_base.py function test_batch (line 25) | def test_batch() -> None: function test_abatch (line 34) | async def test_abatch() -> None: function test_batch_size (line 43) | def test_batch_size() -> None: function test_async_batch_size (line 74) | async def test_async_batch_size() -> None: function test_error_callback (line 100) | async def test_error_callback() -> None: function test_astream_fallback_to_ainvoke (line 137) | async def test_astream_fallback_to_ainvoke() -> None: function test_astream_implementation_fallback_to_stream (line 164) | async def test_astream_implementation_fallback_to_stream() -> None: function test_astream_implementation_uses_astream (line 202) | async def test_astream_implementation_uses_astream() -> None: function test_get_ls_params (line 237) | def test_get_ls_params() -> None: FILE: libs/core/tests/unit_tests/language_models/llms/test_cache.py class InMemoryCache (line 10) | class InMemoryCache(BaseCache): method __init__ (line 13) | def __init__(self) -> None: method lookup (line 17) | def lookup(self, prompt: str, llm_string: str) -> RETURN_VAL_TYPE | None: method update (line 21) | def update(self, prompt: str, llm_string: str, return_val: RETURN_VAL_... method clear (line 26) | def clear(self, **kwargs: Any) -> None: function test_local_cache_generate_async (line 31) | async def test_local_cache_generate_async() -> None: function test_local_cache_generate_sync (line 47) | def test_local_cache_generate_sync() -> None: class InMemoryCacheBad (line 63) | class InMemoryCacheBad(BaseCache): method __init__ (line 66) | def __init__(self) -> None: method lookup (line 70) | def lookup(self, prompt: str, llm_string: str) -> RETURN_VAL_TYPE | None: method update (line 75) | def update(self, prompt: str, llm_string: str, return_val: RETURN_VAL_... method clear (line 81) | def clear(self, **kwargs: Any) -> None: function test_no_cache_generate_sync (line 86) | def test_no_cache_generate_sync() -> None: function test_no_cache_generate_async (line 100) | async def test_no_cache_generate_async() -> None: FILE: libs/core/tests/unit_tests/language_models/test_imports.py function test_all_imports (line 27) | def test_all_imports() -> None: FILE: libs/core/tests/unit_tests/language_models/test_model_profile.py class TestModelProfileExtraAllow (line 15) | class TestModelProfileExtraAllow: method test_accepts_declared_keys (line 18) | def test_accepts_declared_keys(self) -> None: method test_extra_keys_accepted_via_typed_dict (line 22) | def test_extra_keys_accepted_via_typed_dict(self) -> None: method test_extra_keys_survive_pydantic_validation (line 30) | def test_extra_keys_survive_pydantic_validation(self) -> None: class TestWarnUnknownProfileKeys (line 47) | class TestWarnUnknownProfileKeys: method test_warns_on_extra_keys (line 50) | def test_warns_on_extra_keys(self) -> None: method test_silent_on_declared_keys_only (line 65) | def test_silent_on_declared_keys_only(self) -> None: method test_silent_on_empty_profile (line 73) | def test_silent_on_empty_profile(self) -> None: method test_survives_get_type_hints_failure (line 80) | def test_survives_get_type_hints_failure(self) -> None: FILE: libs/core/tests/unit_tests/load/test_imports.py function test_all_imports (line 13) | def test_all_imports() -> None: FILE: libs/core/tests/unit_tests/load/test_secret_injection.py function _set_sentinel_env_var (line 36) | def _set_sentinel_env_var() -> Any: function _assert_no_secret_leak (line 42) | def _assert_no_secret_leak(payload: Any) -> None: class TestSerializableTopLevel (line 65) | class TestSerializableTopLevel: method test_human_message_with_secret_in_content (line 68) | def test_human_message_with_secret_in_content(self) -> None: method test_human_message_with_secret_in_additional_kwargs (line 78) | def test_human_message_with_secret_in_additional_kwargs(self) -> None: method test_human_message_with_secret_in_nested_additional_kwargs (line 86) | def test_human_message_with_secret_in_nested_additional_kwargs(self) -... method test_human_message_with_secret_in_list_in_additional_kwargs (line 94) | def test_human_message_with_secret_in_list_in_additional_kwargs(self) ... method test_ai_message_with_secret_in_response_metadata (line 102) | def test_ai_message_with_secret_in_response_metadata(self) -> None: method test_document_with_secret_in_metadata (line 110) | def test_document_with_secret_in_metadata(self) -> None: method test_nested_serializable_with_secret (line 118) | def test_nested_serializable_with_secret(self) -> None: class TestDictTopLevel (line 131) | class TestDictTopLevel: method test_dict_with_serializable_containing_secret (line 134) | def test_dict_with_serializable_containing_secret(self) -> None: method test_dict_with_secret_no_serializable (line 143) | def test_dict_with_secret_no_serializable(self) -> None: method test_dict_with_nested_secret_no_serializable (line 148) | def test_dict_with_nested_secret_no_serializable(self) -> None: method test_dict_with_secret_in_list (line 153) | def test_dict_with_secret_in_list(self) -> None: method test_dict_mimicking_lc_constructor_with_secret (line 158) | def test_dict_mimicking_lc_constructor_with_secret(self) -> None: class TestPydanticModelTopLevel (line 172) | class TestPydanticModelTopLevel: method test_pydantic_model_with_serializable_containing_secret (line 175) | def test_pydantic_model_with_serializable_containing_secret(self) -> N... method test_pydantic_model_with_secret_dict (line 188) | def test_pydantic_model_with_secret_dict(self) -> None: method test_pydantic_model_with_nested_secret (line 204) | def test_pydantic_model_with_nested_secret(self) -> None: class TestNonSerializableClassTopLevel (line 214) | class TestNonSerializableClassTopLevel: method test_custom_class_with_serializable_containing_secret (line 217) | def test_custom_class_with_serializable_containing_secret(self) -> None: method test_custom_class_with_secret_dict (line 232) | def test_custom_class_with_secret_dict(self) -> None: class TestDumpdInKwargs (line 243) | class TestDumpdInKwargs: method test_dumpd_human_message_in_ai_message_kwargs (line 246) | def test_dumpd_human_message_in_ai_message_kwargs(self) -> None: method test_dumpd_human_message_with_secret_in_ai_message_kwargs (line 252) | def test_dumpd_human_message_with_secret_in_ai_message_kwargs(self) ->... method test_double_dumpd_nesting (line 261) | def test_double_dumpd_nesting(self) -> None: class TestRoundTrip (line 272) | class TestRoundTrip: method test_human_message_with_secret_round_trip (line 275) | def test_human_message_with_secret_round_trip(self) -> None: method test_document_with_secret_round_trip (line 289) | def test_document_with_secret_round_trip(self) -> None: method test_plain_dict_with_secret_round_trip (line 305) | def test_plain_dict_with_secret_round_trip(self) -> None: class TestEscapingEfficiency (line 317) | class TestEscapingEfficiency: method test_no_triple_escaping (line 320) | def test_no_triple_escaping(self) -> None: method test_double_nesting_no_quadruple_escape (line 342) | def test_double_nesting_no_quadruple_escape(self) -> None: class TestConstructorInjection (line 366) | class TestConstructorInjection: method test_constructor_in_metadata_not_instantiated (line 369) | def test_constructor_in_metadata_not_instantiated(self) -> None: method test_constructor_in_content_not_instantiated (line 394) | def test_constructor_in_content_not_instantiated(self) -> None: function test_allowed_objects (line 420) | def test_allowed_objects() -> None: FILE: libs/core/tests/unit_tests/load/test_serializable.py class NonBoolObj (line 19) | class NonBoolObj: method __bool__ (line 20) | def __bool__(self) -> bool: method __eq__ (line 24) | def __eq__(self, other: object) -> bool: method __str__ (line 28) | def __str__(self) -> str: method __repr__ (line 31) | def __repr__(self) -> str: function test_simple_serialization (line 37) | def test_simple_serialization() -> None: function test_simple_serialization_is_serializable (line 51) | def test_simple_serialization_is_serializable() -> None: function test_simple_serialization_secret (line 70) | def test_simple_serialization_secret() -> None: function test__is_field_useful (line 103) | def test__is_field_useful() -> None: class Foo (line 136) | class Foo(Serializable): method is_lc_serializable (line 141) | def is_lc_serializable(cls) -> bool: function test_simple_deserialization (line 145) | def test_simple_deserialization() -> None: function test_disallowed_deserialization (line 159) | def test_disallowed_deserialization() -> None: class Foo2 (line 166) | class Foo2(Serializable): method is_lc_serializable (line 171) | def is_lc_serializable(cls) -> bool: function test_simple_deserialization_with_additional_imports (line 175) | def test_simple_deserialization_with_additional_imports() -> None: class Foo3 (line 202) | class Foo3(Serializable): method is_lc_serializable (line 209) | def is_lc_serializable(cls) -> bool: function test_repr (line 213) | def test_repr() -> None: function test_str (line 221) | def test_str() -> None: function test_serialization_with_pydantic (line 229) | def test_serialization_with_pydantic() -> None: function test_serialization_with_generation (line 247) | def test_serialization_with_generation() -> None: function test_serialization_with_ignore_unserializable_fields (line 252) | def test_serialization_with_ignore_unserializable_fields() -> None: function test_dumps_basic_serialization (line 297) | def test_dumps_basic_serialization() -> None: function test_dumps_pretty_formatting (line 312) | def test_dumps_pretty_formatting() -> None: function test_dumps_invalid_default_kwarg (line 329) | def test_dumps_invalid_default_kwarg() -> None: function test_dumps_additional_json_kwargs (line 337) | def test_dumps_additional_json_kwargs() -> None: function test_dumps_non_serializable_object (line 350) | def test_dumps_non_serializable_object() -> None: function test_dumps_mixed_data_structure (line 367) | def test_dumps_mixed_data_structure() -> None: function test_document_normal_metadata_allowed (line 385) | def test_document_normal_metadata_allowed() -> None: class TestEscaping (line 400) | class TestEscaping: method test_document_metadata_with_lc_key_escaped (line 409) | def test_document_metadata_with_lc_key_escaped(self) -> None: method test_document_metadata_with_nested_lc_key_escaped (line 425) | def test_document_metadata_with_nested_lc_key_escaped(self) -> None: method test_document_metadata_with_lc_key_in_list_escaped (line 439) | def test_document_metadata_with_lc_key_in_list_escaped(self) -> None: method test_malicious_payload_not_instantiated (line 452) | def test_malicious_payload_not_instantiated(self) -> None: method test_message_additional_kwargs_with_lc_key_escaped (line 485) | def test_message_additional_kwargs_with_lc_key_escaped(self) -> None: method test_message_response_metadata_with_lc_key_escaped (line 501) | def test_message_response_metadata_with_lc_key_escaped(self) -> None: method test_double_escape_handling (line 514) | def test_double_escape_handling(self) -> None: class TestDumpdEscapesLcKeyInPlainDicts (line 530) | class TestDumpdEscapesLcKeyInPlainDicts: method test_normal_message_not_escaped (line 533) | def test_normal_message_not_escaped(self) -> None: method test_document_metadata_with_lc_key_escaped (line 545) | def test_document_metadata_with_lc_key_escaped(self) -> None: method test_document_metadata_with_nested_lc_key_escaped (line 558) | def test_document_metadata_with_nested_lc_key_escaped(self) -> None: method test_message_additional_kwargs_with_lc_key_escaped (line 570) | def test_message_additional_kwargs_with_lc_key_escaped(self) -> None: method test_message_response_metadata_with_lc_key_escaped (line 582) | def test_message_response_metadata_with_lc_key_escaped(self) -> None: class TestInitValidator (line 595) | class TestInitValidator: method test_init_validator_allows_valid_kwargs (line 598) | def test_init_validator_allows_valid_kwargs(self) -> None: method test_init_validator_blocks_deserialization (line 609) | def test_init_validator_blocks_deserialization(self) -> None: method test_init_validator_receives_correct_class_path (line 624) | def test_init_validator_receives_correct_class_path(self) -> None: method test_init_validator_receives_correct_kwargs (line 646) | def test_init_validator_receives_correct_kwargs(self) -> None: method test_init_validator_with_loads (line 666) | def test_init_validator_with_loads(self) -> None: method test_init_validator_none_allows_all (line 681) | def test_init_validator_none_allows_all(self) -> None: method test_init_validator_type_alias_exists (line 690) | def test_init_validator_type_alias_exists(self) -> None: method test_init_validator_blocks_specific_class (line 699) | def test_init_validator_blocks_specific_class(self) -> None: class TestJinja2SecurityBlocking (line 715) | class TestJinja2SecurityBlocking: method test_fstring_template_allowed (line 718) | def test_fstring_template_allowed(self) -> None: method test_jinja2_template_blocked (line 771) | def test_jinja2_template_blocked(self) -> None: method test_jinja2_blocked_standalone_prompt_template (line 823) | def test_jinja2_blocked_standalone_prompt_template(self) -> None: method test_jinja2_blocked_by_default (line 862) | def test_jinja2_blocked_by_default(self) -> None: FILE: libs/core/tests/unit_tests/messages/block_translators/test_anthropic.py function test_convert_to_v1_from_anthropic (line 5) | def test_convert_to_v1_from_anthropic() -> None: function test_convert_to_v1_from_anthropic_chunk (line 193) | def test_convert_to_v1_from_anthropic_chunk() -> None: function test_convert_to_v1_from_anthropic_input (line 393) | def test_convert_to_v1_from_anthropic_input() -> None: FILE: libs/core/tests/unit_tests/messages/block_translators/test_bedrock.py function test_convert_to_v1_from_bedrock (line 5) | def test_convert_to_v1_from_bedrock() -> None: function test_convert_to_v1_from_bedrock_chunk (line 132) | def test_convert_to_v1_from_bedrock_chunk() -> None: function test_convert_to_v1_from_bedrock_input (line 289) | def test_convert_to_v1_from_bedrock_input() -> None: FILE: libs/core/tests/unit_tests/messages/block_translators/test_bedrock_converse.py function test_convert_to_v1_from_bedrock_converse (line 5) | def test_convert_to_v1_from_bedrock_converse() -> None: function test_convert_to_v1_from_converse_chunk (line 128) | def test_convert_to_v1_from_converse_chunk() -> None: function test_convert_to_v1_from_converse_input (line 285) | def test_convert_to_v1_from_converse_input() -> None: FILE: libs/core/tests/unit_tests/messages/block_translators/test_google_genai.py function test_translate_grounding_metadata_web (line 8) | def test_translate_grounding_metadata_web() -> None: function test_translate_grounding_metadata_maps (line 51) | def test_translate_grounding_metadata_maps() -> None: function test_translate_grounding_metadata_none (line 96) | def test_translate_grounding_metadata_none() -> None: function test_translate_grounding_metadata_confidence_scores_none (line 133) | def test_translate_grounding_metadata_confidence_scores_none() -> None: function test_translate_grounding_metadata_multiple_chunks (line 169) | def test_translate_grounding_metadata_multiple_chunks() -> None: FILE: libs/core/tests/unit_tests/messages/block_translators/test_groq.py function test_groq_translator_registered (line 17) | def test_groq_translator_registered() -> None: function test_extract_reasoning_from_additional_kwargs_exists (line 24) | def test_extract_reasoning_from_additional_kwargs_exists() -> None: function test_groq_translate_content_basic (line 30) | def test_groq_translate_content_basic() -> None: function test_groq_translate_content_with_reasoning (line 42) | def test_groq_translate_content_with_reasoning() -> None: function test_groq_translate_content_with_tool_calls (line 63) | def test_groq_translate_content_with_tool_calls() -> None: function test_groq_translate_content_with_executed_tools (line 86) | def test_groq_translate_content_with_executed_tools() -> None: function test_parse_code_json (line 128) | def test_parse_code_json() -> None: FILE: libs/core/tests/unit_tests/messages/block_translators/test_langchain_v0.py function test_convert_to_v1_from_openai_input (line 11) | def test_convert_to_v1_from_openai_input() -> None: function test_convert_with_extras_on_v0_block (line 85) | def test_convert_with_extras_on_v0_block() -> None: FILE: libs/core/tests/unit_tests/messages/block_translators/test_openai.py function test_convert_to_v1_from_responses (line 13) | def test_convert_to_v1_from_responses() -> None: function test_convert_to_v1_from_responses_chunk (line 134) | def test_convert_to_v1_from_responses_chunk() -> None: function test_convert_to_v1_from_openai_input (line 259) | def test_convert_to_v1_from_openai_input() -> None: function test_compat_responses_v03 (line 320) | def test_compat_responses_v03() -> None: function test_convert_to_openai_data_block (line 479) | def test_convert_to_openai_data_block() -> None: FILE: libs/core/tests/unit_tests/messages/block_translators/test_registration.py function test_all_providers_registered (line 9) | def test_all_providers_registered() -> None: FILE: libs/core/tests/unit_tests/messages/test_ai.py function test_serdes_message (line 19) | def test_serdes_message() -> None: function test_serdes_message_chunk (line 53) | def test_serdes_message_chunk() -> None: function test_add_usage_both_none (line 108) | def test_add_usage_both_none() -> None: function test_add_usage_one_none (line 113) | def test_add_usage_one_none() -> None: function test_add_usage_both_present (line 119) | def test_add_usage_both_present() -> None: function test_add_usage_with_details (line 126) | def test_add_usage_with_details() -> None: function test_subtract_usage_both_none (line 146) | def test_subtract_usage_both_none() -> None: function test_subtract_usage_one_none (line 151) | def test_subtract_usage_one_none() -> None: function test_subtract_usage_both_present (line 157) | def test_subtract_usage_both_present() -> None: function test_subtract_usage_with_negative_result (line 164) | def test_subtract_usage_with_negative_result() -> None: function test_add_ai_message_chunks_usage (line 171) | def test_add_ai_message_chunks_usage() -> None: function test_init_tool_calls (line 204) | def test_init_tool_calls() -> None: function test_content_blocks (line 214) | def test_content_blocks() -> None: function test_content_blocks_reasoning_extraction (line 485) | def test_content_blocks_reasoning_extraction() -> None: FILE: libs/core/tests/unit_tests/messages/test_imports.py function test_all_imports (line 64) | def test_all_imports() -> None: FILE: libs/core/tests/unit_tests/messages/test_utils.py function test_merge_message_runs_str (line 36) | def test_merge_message_runs_str(msg_cls: type[BaseMessage]) -> None: function test_merge_message_runs_str_with_specified_separator (line 46) | def test_merge_message_runs_str_with_specified_separator( function test_merge_message_runs_str_without_separator (line 58) | def test_merge_message_runs_str_without_separator( function test_merge_message_runs_response_metadata (line 69) | def test_merge_message_runs_response_metadata() -> None: function test_merge_message_runs_content (line 87) | def test_merge_message_runs_content() -> None: function test_merge_messages_tool_messages (line 131) | def test_merge_messages_tool_messages() -> None: class FilterFields (line 142) | class FilterFields(TypedDict): function test_filter_message (line 170) | def test_filter_message(filters: FilterFields) -> None: function test_filter_message_exclude_tool_calls (line 184) | def test_filter_message_exclude_tool_calls() -> None: function test_filter_message_exclude_tool_calls_content_blocks (line 222) | def test_filter_message_exclude_tool_calls_content_blocks() -> None: function test_trim_messages_first_30 (line 288) | def test_trim_messages_first_30() -> None: function test_trim_messages_first_30_allow_partial (line 303) | def test_trim_messages_first_30_allow_partial() -> None: function test_trim_messages_first_30_allow_partial_end_on_human (line 322) | def test_trim_messages_first_30_allow_partial_end_on_human() -> None: function test_trim_messages_last_30_include_system (line 340) | def test_trim_messages_last_30_include_system() -> None: function test_trim_messages_last_40_include_system_allow_partial (line 358) | def test_trim_messages_last_40_include_system_allow_partial() -> None: function test_trim_messages_last_30_include_system_allow_partial_end_on_human (line 384) | def test_trim_messages_last_30_include_system_allow_partial_end_on_human... function test_trim_messages_last_40_include_system_allow_partial_start_on_human (line 410) | def test_trim_messages_last_40_include_system_allow_partial_start_on_hum... function test_trim_messages_allow_partial_one_message (line 431) | def test_trim_messages_allow_partial_one_message() -> None: function test_trim_messages_last_allow_partial_one_message (line 449) | def test_trim_messages_last_allow_partial_one_message() -> None: function test_trim_messages_allow_partial_text_splitter (line 467) | def test_trim_messages_allow_partial_text_splitter() -> None: function test_trim_messages_include_system_strategy_last_empty_messages (line 500) | def test_trim_messages_include_system_strategy_last_empty_messages() -> ... function test_trim_messages_invoke (line 513) | def test_trim_messages_invoke() -> None: function test_trim_messages_bound_model_token_counter (line 523) | def test_trim_messages_bound_model_token_counter() -> None: function test_trim_messages_bad_token_counter (line 531) | def test_trim_messages_bad_token_counter() -> None: function dummy_token_counter (line 544) | def dummy_token_counter(messages: list[BaseMessage]) -> int: function test_trim_messages_partial_text_splitting (line 568) | def test_trim_messages_partial_text_splitting() -> None: function test_trim_messages_mixed_content_with_partial (line 593) | def test_trim_messages_mixed_content_with_partial() -> None: function test_trim_messages_exact_token_boundary (line 632) | def test_trim_messages_exact_token_boundary() -> None: function test_trim_messages_start_on_with_allow_partial (line 659) | def test_trim_messages_start_on_with_allow_partial() -> None: function test_trim_messages_token_counter_shortcut_approximate (line 680) | def test_trim_messages_token_counter_shortcut_approximate() -> None: function test_trim_messages_token_counter_shortcut_invalid (line 710) | def test_trim_messages_token_counter_shortcut_invalid() -> None: function test_trim_messages_token_counter_shortcut_with_options (line 728) | def test_trim_messages_token_counter_shortcut_with_options() -> None: class FakeTokenCountingModel (line 756) | class FakeTokenCountingModel(FakeChatModel): method get_num_tokens_from_messages (line 758) | def get_num_tokens_from_messages( function test_convert_to_messages (line 766) | def test_convert_to_messages() -> None: function test_convert_to_messages_openai_refusal (line 946) | def test_convert_to_messages_openai_refusal() -> None: function create_image_data (line 960) | def create_image_data() -> str: function create_base64_image (line 964) | def create_base64_image(image_format: str = "jpeg") -> str: function test_convert_to_openai_messages_string (line 969) | def test_convert_to_openai_messages_string() -> None: function test_convert_to_openai_messages_single_message (line 975) | def test_convert_to_openai_messages_single_message() -> None: function test_convert_to_openai_messages_multiple_messages (line 992) | def test_convert_to_openai_messages_multiple_messages() -> None: function test_convert_to_openai_messages_openai_string (line 1007) | def test_convert_to_openai_messages_openai_string() -> None: function test_convert_to_openai_messages_openai_block (line 1027) | def test_convert_to_openai_messages_openai_block() -> None: function test_convert_to_openai_messages_invalid_format (line 1037) | def test_convert_to_openai_messages_invalid_format() -> None: function test_convert_to_openai_messages_openai_image (line 1045) | def test_convert_to_openai_messages_openai_image() -> None: function test_convert_to_openai_messages_anthropic (line 1068) | def test_convert_to_openai_messages_anthropic() -> None: function test_convert_to_openai_messages_bedrock_converse_image (line 1159) | def test_convert_to_openai_messages_bedrock_converse_image() -> None: function test_convert_to_openai_messages_vertexai_image (line 1179) | def test_convert_to_openai_messages_vertexai_image() -> None: function test_convert_to_openai_messages_tool_message (line 1198) | def test_convert_to_openai_messages_tool_message() -> None: function test_convert_to_openai_messages_tool_use (line 1206) | def test_convert_to_openai_messages_tool_use() -> None: function test_convert_to_openai_messages_tool_use_unicode (line 1226) | def test_convert_to_openai_messages_tool_use_unicode() -> None: function test_convert_to_openai_messages_json (line 1253) | def test_convert_to_openai_messages_json() -> None: function test_convert_to_openai_messages_guard_content (line 1261) | def test_convert_to_openai_messages_guard_content() -> None: function test_convert_to_openai_messages_invalid_block (line 1277) | def test_convert_to_openai_messages_invalid_block() -> None: function test_handle_openai_responses_blocks (line 1290) | def test_handle_openai_responses_blocks() -> None: function test_convert_to_openai_messages_empty_message (line 1323) | def test_convert_to_openai_messages_empty_message() -> None: function test_convert_to_openai_messages_empty_list (line 1328) | def test_convert_to_openai_messages_empty_list() -> None: function test_convert_to_openai_messages_mixed_content_types (line 1333) | def test_convert_to_openai_messages_mixed_content_types() -> None: function test_convert_to_openai_messages_developer (line 1350) | def test_convert_to_openai_messages_developer() -> None: function test_convert_to_openai_messages_multimodal (line 1359) | def test_convert_to_openai_messages_multimodal() -> None: function test_count_tokens_approximately_empty_messages (line 1471) | def test_count_tokens_approximately_empty_messages() -> None: function test_count_tokens_approximately_with_names (line 1481) | def test_count_tokens_approximately_with_names() -> None: function test_count_tokens_approximately_openai_format (line 1498) | def test_count_tokens_approximately_openai_format() -> None: function test_count_tokens_approximately_string_content (line 1512) | def test_count_tokens_approximately_string_content() -> None: function test_count_tokens_approximately_list_content (line 1524) | def test_count_tokens_approximately_list_content() -> None: function test_count_tokens_approximately_tool_calls (line 1534) | def test_count_tokens_approximately_tool_calls() -> None: function test_count_tokens_approximately_custom_token_length (line 1551) | def test_count_tokens_approximately_custom_token_length() -> None: function test_count_tokens_approximately_large_message_content (line 1562) | def test_count_tokens_approximately_large_message_content() -> None: function test_count_tokens_approximately_large_number_of_messages (line 1570) | def test_count_tokens_approximately_large_number_of_messages() -> None: function test_count_tokens_approximately_mixed_content_types (line 1577) | def test_count_tokens_approximately_mixed_content_types() -> None: function test_count_tokens_approximately_usage_metadata_scaling (line 1598) | def test_count_tokens_approximately_usage_metadata_scaling() -> None: function test_count_tokens_approximately_usage_metadata_scaling_model_provider (line 1637) | def test_count_tokens_approximately_usage_metadata_scaling_model_provide... function test_count_tokens_approximately_usage_metadata_scaling_total_tokens (line 1658) | def test_count_tokens_approximately_usage_metadata_scaling_total_tokens(... function test_count_tokens_approximately_usage_metadata_scaling_floor_at_one (line 1676) | def test_count_tokens_approximately_usage_metadata_scaling_floor_at_one(... function test_get_buffer_string_with_structured_content (line 1695) | def test_get_buffer_string_with_structured_content() -> None: function test_get_buffer_string_with_mixed_content (line 1707) | def test_get_buffer_string_with_mixed_content() -> None: function test_get_buffer_string_with_function_call (line 1721) | def test_get_buffer_string_with_function_call() -> None: function test_get_buffer_string_with_empty_content (line 1744) | def test_get_buffer_string_with_empty_content() -> None: function test_get_buffer_string_with_tool_calls (line 1756) | def test_get_buffer_string_with_tool_calls() -> None: function test_get_buffer_string_with_tool_calls_empty_content (line 1779) | def test_get_buffer_string_with_tool_calls_empty_content() -> None: function test_get_buffer_string_tool_calls_preferred_over_function_call (line 1799) | def test_get_buffer_string_tool_calls_preferred_over_function_call() -> ... function test_convert_to_openai_messages_reasoning_content (line 1822) | def test_convert_to_openai_messages_reasoning_content() -> None: function test_get_buffer_string_xml_empty_messages_list (line 1886) | def test_get_buffer_string_xml_empty_messages_list() -> None: function test_get_buffer_string_xml_basic (line 1894) | def test_get_buffer_string_xml_basic() -> None: function test_get_buffer_string_xml_custom_prefixes (line 1914) | def test_get_buffer_string_xml_custom_prefixes() -> None: function test_get_buffer_string_xml_custom_separator (line 1930) | def test_get_buffer_string_xml_custom_separator() -> None: function test_get_buffer_string_prefix_custom_separator (line 1943) | def test_get_buffer_string_prefix_custom_separator() -> None: function test_get_buffer_string_xml_escaping (line 1954) | def test_get_buffer_string_xml_escaping() -> None: function test_get_buffer_string_xml_unicode_content (line 1969) | def test_get_buffer_string_xml_unicode_content() -> None: function test_get_buffer_string_xml_chat_message_valid_role (line 1983) | def test_get_buffer_string_xml_chat_message_valid_role() -> None: function test_get_buffer_string_xml_empty_content (line 2013) | def test_get_buffer_string_xml_empty_content() -> None: function test_get_buffer_string_xml_tool_calls_with_content (line 2024) | def test_get_buffer_string_xml_tool_calls_with_content() -> None: function test_get_buffer_string_xml_tool_calls_empty_content (line 2050) | def test_get_buffer_string_xml_tool_calls_empty_content() -> None: function test_get_buffer_string_xml_tool_calls_escaping (line 2075) | def test_get_buffer_string_xml_tool_calls_escaping() -> None: function test_get_buffer_string_xml_function_call_legacy (line 2100) | def test_get_buffer_string_xml_function_call_legacy() -> None: function test_get_buffer_string_xml_structured_content (line 2122) | def test_get_buffer_string_xml_structured_content() -> None: function test_get_buffer_string_xml_multiline_content (line 2137) | def test_get_buffer_string_xml_multiline_content() -> None: function test_get_buffer_string_xml_tool_calls_preferred_over_function_call (line 2147) | def test_get_buffer_string_xml_tool_calls_preferred_over_function_call()... function test_get_buffer_string_xml_multiple_tool_calls (line 2173) | def test_get_buffer_string_xml_multiple_tool_calls() -> None: function test_get_buffer_string_xml_tool_call_special_chars_in_attrs (line 2206) | def test_get_buffer_string_xml_tool_call_special_chars_in_attrs() -> None: function test_get_buffer_string_xml_tool_call_none_id (line 2227) | def test_get_buffer_string_xml_tool_call_none_id() -> None: function test_get_buffer_string_xml_function_call_special_chars_in_name (line 2247) | def test_get_buffer_string_xml_function_call_special_chars_in_name() -> ... function test_get_buffer_string_invalid_format (line 2265) | def test_get_buffer_string_invalid_format() -> None: function test_get_buffer_string_xml_image_url_block (line 2276) | def test_get_buffer_string_xml_image_url_block() -> None: function test_get_buffer_string_xml_image_file_id_block (line 2292) | def test_get_buffer_string_xml_image_file_id_block() -> None: function test_get_buffer_string_xml_image_base64_skipped (line 2306) | def test_get_buffer_string_xml_image_base64_skipped() -> None: function test_get_buffer_string_xml_image_data_url_skipped (line 2322) | def test_get_buffer_string_xml_image_data_url_skipped() -> None: function test_get_buffer_string_xml_openai_image_url_block (line 2337) | def test_get_buffer_string_xml_openai_image_url_block() -> None: function test_get_buffer_string_xml_openai_image_url_data_skipped (line 2355) | def test_get_buffer_string_xml_openai_image_url_data_skipped() -> None: function test_get_buffer_string_xml_audio_url_block (line 2374) | def test_get_buffer_string_xml_audio_url_block() -> None: function test_get_buffer_string_xml_audio_base64_skipped (line 2389) | def test_get_buffer_string_xml_audio_base64_skipped() -> None: function test_get_buffer_string_xml_video_url_block (line 2404) | def test_get_buffer_string_xml_video_url_block() -> None: function test_get_buffer_string_xml_video_base64_skipped (line 2419) | def test_get_buffer_string_xml_video_base64_skipped() -> None: function test_get_buffer_string_xml_reasoning_block (line 2434) | def test_get_buffer_string_xml_reasoning_block() -> None: function test_get_buffer_string_xml_text_plain_block (line 2449) | def test_get_buffer_string_xml_text_plain_block() -> None: function test_get_buffer_string_xml_server_tool_call_block (line 2468) | def test_get_buffer_string_xml_server_tool_call_block() -> None: function test_get_buffer_string_xml_server_tool_result_block (line 2490) | def test_get_buffer_string_xml_server_tool_result_block() -> None: function test_get_buffer_string_xml_unknown_block_type_skipped (line 2510) | def test_get_buffer_string_xml_unknown_block_type_skipped() -> None: function test_get_buffer_string_xml_mixed_content_blocks (line 2526) | def test_get_buffer_string_xml_mixed_content_blocks() -> None: function test_get_buffer_string_xml_escaping_in_content_blocks (line 2550) | def test_get_buffer_string_xml_escaping_in_content_blocks() -> None: function test_get_buffer_string_xml_url_with_special_chars (line 2565) | def test_get_buffer_string_xml_url_with_special_chars() -> None: function test_get_buffer_string_xml_text_plain_truncation (line 2579) | def test_get_buffer_string_xml_text_plain_truncation() -> None: function test_get_buffer_string_xml_server_tool_call_args_truncation (line 2595) | def test_get_buffer_string_xml_server_tool_call_args_truncation() -> None: function test_get_buffer_string_xml_server_tool_result_output_truncation (line 2616) | def test_get_buffer_string_xml_server_tool_result_output_truncation() ->... function test_get_buffer_string_xml_no_truncation_under_limit (line 2637) | def test_get_buffer_string_xml_no_truncation_under_limit() -> None: function test_get_buffer_string_custom_system_prefix (line 2652) | def test_get_buffer_string_custom_system_prefix() -> None: function test_get_buffer_string_custom_function_prefix (line 2662) | def test_get_buffer_string_custom_function_prefix() -> None: function test_get_buffer_string_custom_tool_prefix (line 2672) | def test_get_buffer_string_custom_tool_prefix() -> None: function test_get_buffer_string_all_custom_prefixes (line 2682) | def test_get_buffer_string_all_custom_prefixes() -> None: function test_get_buffer_string_xml_custom_system_prefix (line 2709) | def test_get_buffer_string_xml_custom_system_prefix() -> None: function test_get_buffer_string_xml_custom_function_prefix (line 2720) | def test_get_buffer_string_xml_custom_function_prefix() -> None: function test_get_buffer_string_xml_custom_tool_prefix (line 2729) | def test_get_buffer_string_xml_custom_tool_prefix() -> None: function test_get_buffer_string_xml_all_custom_prefixes (line 2738) | def test_get_buffer_string_xml_all_custom_prefixes() -> None: function test_count_tokens_approximately_with_image_content (line 2764) | def test_count_tokens_approximately_with_image_content() -> None: function test_count_tokens_approximately_with_multiple_images (line 2783) | def test_count_tokens_approximately_with_multiple_images() -> None: function test_count_tokens_approximately_text_only_backward_compatible (line 2799) | def test_count_tokens_approximately_text_only_backward_compatible() -> N... function test_count_tokens_approximately_with_custom_image_penalty (line 2813) | def test_count_tokens_approximately_with_custom_image_penalty() -> None: function test_count_tokens_approximately_with_image_only_message (line 2829) | def test_count_tokens_approximately_with_image_only_message() -> None: function test_count_tokens_approximately_with_unknown_block_type (line 2848) | def test_count_tokens_approximately_with_unknown_block_type() -> None: function test_count_tokens_approximately_ai_tool_calls_skipped_for_list_content (line 2866) | def test_count_tokens_approximately_ai_tool_calls_skipped_for_list_conte... function test_count_tokens_approximately_respects_count_name_flag (line 2902) | def test_count_tokens_approximately_respects_count_name_flag() -> None: function test_count_tokens_approximately_with_tools (line 2913) | def test_count_tokens_approximately_with_tools() -> None: FILE: libs/core/tests/unit_tests/output_parsers/test_base_parsers.py function test_base_generation_parser (line 15) | def test_base_generation_parser() -> None: function test_base_transform_output_parser (line 53) | def test_base_transform_output_parser() -> None: FILE: libs/core/tests/unit_tests/output_parsers/test_imports.py function test_all_imports (line 24) | def test_all_imports() -> None: FILE: libs/core/tests/unit_tests/output_parsers/test_json.py function test_parse_json (line 194) | def test_parse_json(json_string: str) -> None: function test_parse_json_with_code_blocks (line 199) | def test_parse_json_with_code_blocks() -> None: function test_parse_json_with_part_code_blocks (line 204) | def test_parse_json_with_part_code_blocks() -> None: function test_parse_json_with_code_blocks_and_newlines (line 209) | def test_parse_json_with_code_blocks_and_newlines() -> None: function test_parse_non_dict_json_output (line 217) | def test_parse_non_dict_json_output() -> None: function test_parse_nested_json_with_escaped_quotes (line 231) | def test_parse_nested_json_with_escaped_quotes(json_string: str) -> None: function test_parse_json_with_python_dict (line 239) | def test_parse_json_with_python_dict() -> None: function test_parse_partial_json (line 261) | def test_parse_partial_json(json_strings: tuple[str, str]) -> None: function test_partial_text_json_output_parser (line 508) | def test_partial_text_json_output_parser() -> None: function test_partial_text_json_output_parser_diff (line 517) | def test_partial_text_json_output_parser_diff() -> None: function test_partial_text_json_output_parser_async (line 526) | async def test_partial_text_json_output_parser_async() -> None: function test_partial_text_json_output_parser_diff_async (line 536) | async def test_partial_text_json_output_parser_diff_async() -> None: function test_raises_error (line 546) | def test_raises_error() -> None: function test_partial_text_json_output_parser_with_json_code_block (line 587) | def test_partial_text_json_output_parser_with_json_code_block() -> None: function test_base_model_schema_consistency (line 606) | def test_base_model_schema_consistency() -> None: function test_unicode_handling (line 620) | def test_unicode_handling() -> None: FILE: libs/core/tests/unit_tests/output_parsers/test_list_parser.py function test_single_item (line 12) | def test_single_item() -> None: function test_multiple_items_with_spaces (line 30) | def test_multiple_items_with_spaces() -> None: function test_multiple_items (line 52) | def test_multiple_items() -> None: function test_multiple_items_with_comma (line 70) | def test_multiple_items_with_comma() -> None: function test_numbered_list (line 92) | def test_numbered_list() -> None: function test_markdown_list (line 127) | def test_markdown_list() -> None: function aiter_from_iter (line 166) | async def aiter_from_iter(iterable: Iterable[T]) -> AsyncIterator[T]: function test_single_item_async (line 171) | async def test_single_item_async() -> None: function test_multiple_items_async (line 201) | async def test_multiple_items_async() -> None: function test_numbered_list_async (line 231) | async def test_numbered_list_async() -> None: function test_markdown_list_async (line 274) | async def test_markdown_list_async() -> None: FILE: libs/core/tests/unit_tests/output_parsers/test_openai_functions.py function test_json_output_function_parser (line 16) | def test_json_output_function_parser() -> None: function test_json_output_function_parser_strictness (line 88) | def test_json_output_function_parser_strictness(config: dict[str, Any]) ... function test_exceptions_raised_while_parsing (line 134) | def test_exceptions_raised_while_parsing(bad_message: BaseMessage) -> None: function test_pydantic_output_functions_parser (line 142) | def test_pydantic_output_functions_parser() -> None: function test_pydantic_output_functions_parser_multiple_schemas (line 167) | def test_pydantic_output_functions_parser_multiple_schemas() -> None: FILE: libs/core/tests/unit_tests/output_parsers/test_openai_tools.py function _get_iter (line 368) | def _get_iter(*, use_tool_calls: bool = False) -> Any: function _get_aiter (line 380) | def _get_aiter(*, use_tool_calls: bool = False) -> Any: function test_partial_json_output_parser (line 394) | def test_partial_json_output_parser(*, use_tool_calls: bool) -> None: function test_partial_json_output_parser_async (line 406) | async def test_partial_json_output_parser_async(*, use_tool_calls: bool)... function test_partial_json_output_parser_return_id (line 418) | def test_partial_json_output_parser_return_id(*, use_tool_calls: bool) -... function test_partial_json_output_key_parser (line 437) | def test_partial_json_output_key_parser(*, use_tool_calls: bool) -> None: function test_partial_json_output_parser_key_async (line 449) | async def test_partial_json_output_parser_key_async(*, use_tool_calls: b... function test_partial_json_output_key_parser_first_only (line 462) | def test_partial_json_output_key_parser_first_only(*, use_tool_calls: bo... function test_partial_json_output_parser_key_async_first_only (line 473) | async def test_partial_json_output_parser_key_async_first_only( function test_json_output_key_tools_parser_multiple_tools_first_only (line 487) | def test_json_output_key_tools_parser_multiple_tools_first_only( function test_json_output_key_tools_parser_multiple_tools_no_match (line 543) | def test_json_output_key_tools_parser_multiple_tools_no_match( function test_json_output_key_tools_parser_multiple_matching_tools (line 595) | def test_json_output_key_tools_parser_multiple_matching_tools( function test_json_output_key_tools_parser_empty_results (line 655) | def test_json_output_key_tools_parser_empty_results(*, use_tool_calls: b... function test_json_output_key_tools_parser_parameter_combinations (line 683) | def test_json_output_key_tools_parser_parameter_combinations( class Person (line 757) | class Person(BaseModel): class NameCollector (line 763) | class NameCollector(BaseModel): function test_partial_pydantic_output_parser (line 787) | def test_partial_pydantic_output_parser() -> None: function test_partial_pydantic_output_parser_async (line 799) | async def test_partial_pydantic_output_parser_async() -> None: function test_parse_with_different_pydantic_2_v1 (line 811) | def test_parse_with_different_pydantic_2_v1() -> None: function test_parse_with_different_pydantic_2_proper (line 844) | def test_parse_with_different_pydantic_2_proper() -> None: function test_max_tokens_error (line 877) | def test_max_tokens_error(caplog: Any) -> None: function test_pydantic_tools_parser_with_mixed_pydantic_versions (line 898) | def test_pydantic_tools_parser_with_mixed_pydantic_versions() -> None: function test_pydantic_tools_parser_with_custom_title (line 989) | def test_pydantic_tools_parser_with_custom_title() -> None: function test_pydantic_tools_parser_name_dict_fallback (line 1021) | def test_pydantic_tools_parser_name_dict_fallback() -> None: function test_pydantic_tools_parser_with_nested_models (line 1050) | def test_pydantic_tools_parser_with_nested_models() -> None: function test_pydantic_tools_parser_with_optional_fields (line 1193) | def test_pydantic_tools_parser_with_optional_fields() -> None: function test_parse_tool_call_with_none_arguments (line 1356) | def test_parse_tool_call_with_none_arguments() -> None: function test_parse_tool_call_with_empty_string_arguments (line 1381) | def test_parse_tool_call_with_empty_string_arguments() -> None: function test_parse_tool_call_with_valid_arguments (line 1398) | def test_parse_tool_call_with_valid_arguments() -> None: function test_parse_tool_call_partial_mode_with_none_arguments (line 1414) | def test_parse_tool_call_partial_mode_with_none_arguments() -> None: function test_pydantic_tools_parser_unknown_tool_raises_output_parser_exception (line 1430) | def test_pydantic_tools_parser_unknown_tool_raises_output_parser_exception( FILE: libs/core/tests/unit_tests/output_parsers/test_pydantic_parser.py class ForecastV2 (line 20) | class ForecastV2(pydantic.BaseModel): class ForecastV1 (line 31) | class ForecastV1(V1BaseModel): function test_pydantic_parser_chaining (line 41) | def test_pydantic_parser_chaining( function test_pydantic_parser_validation (line 66) | def test_pydantic_parser_validation(pydantic_object: TypeBaseModel) -> N... function test_json_parser_chaining (line 86) | def test_json_parser_chaining( class Actions (line 109) | class Actions(Enum): class TestModel (line 116) | class TestModel(BaseModel): function test_pydantic_output_parser (line 149) | def test_pydantic_output_parser() -> None: function test_pydantic_output_parser_fail (line 158) | def test_pydantic_output_parser_fail() -> None: function test_pydantic_output_parser_type_inference (line 168) | def test_pydantic_output_parser_type_inference() -> None: function test_format_instructions (line 192) | def test_format_instructions(pydantic_object: TypeBaseModel) -> None: function test_format_instructions_preserves_language (line 199) | def test_format_instructions_preserves_language() -> None: FILE: libs/core/tests/unit_tests/output_parsers/test_xml_parser.py function _test_parser (line 47) | async def _test_parser(parser: XMLOutputParser, content: str) -> None: function _as_iter (line 74) | async def _as_iter(iterable: Iterable[str]) -> AsyncIterator[str]: function test_root_only_xml_output_parser (line 79) | async def test_root_only_xml_output_parser() -> None: function test_xml_output_parser (line 100) | async def test_xml_output_parser(content: str) -> None: function test_xml_output_parser_defused (line 119) | async def test_xml_output_parser_defused(content: str) -> None: function test_xml_output_parser_fail (line 126) | def test_xml_output_parser_fail(result: str) -> None: function tests_billion_laughs_attack (line 150) | async def tests_billion_laughs_attack() -> None: FILE: libs/core/tests/unit_tests/outputs/test_chat_generation.py function test_msg_with_text (line 28) | def test_msg_with_text( function test_msg_no_text (line 36) | def test_msg_no_text(content: str | list[str | dict[str, Any]]) -> None: FILE: libs/core/tests/unit_tests/outputs/test_imports.py function test_all_imports (line 14) | def test_all_imports() -> None: FILE: libs/core/tests/unit_tests/prompts/test_chat.py function messages (line 40) | def messages() -> list[BaseMessagePromptTemplate]: function chat_prompt_template (line 76) | def chat_prompt_template( function test_create_chat_prompt_template_from_template (line 86) | def test_create_chat_prompt_template_from_template() -> None: function test_create_chat_prompt_template_from_template_partial (line 94) | def test_create_chat_prompt_template_from_template_partial() -> None: function test_create_system_message_prompt_template_from_template_partial (line 110) | def test_create_system_message_prompt_template_from_template_partial() -... function test_create_system_message_prompt_list_template (line 128) | def test_create_system_message_prompt_list_template() -> None: function test_create_system_message_prompt_list_template_partial_variables_not_null (line 156) | def test_create_system_message_prompt_list_template_partial_variables_no... function test_message_prompt_template_from_template_file (line 178) | def test_message_prompt_template_from_template_file() -> None: function test_chat_prompt_template (line 192) | async def test_chat_prompt_template(chat_prompt_template: ChatPromptTemp... function test_chat_prompt_template_from_messages (line 225) | def test_chat_prompt_template_from_messages( function test_chat_prompt_template_from_messages_using_role_strings (line 240) | async def test_chat_prompt_template_from_messages_using_role_strings() -... function test_chat_prompt_template_from_messages_mustache (line 269) | def test_chat_prompt_template_from_messages_mustache() -> None: function test_chat_prompt_template_from_messages_jinja2 (line 294) | def test_chat_prompt_template_from_messages_jinja2() -> None: function test_chat_prompt_template_from_messages_using_message_classes (line 317) | def test_chat_prompt_template_from_messages_using_message_classes() -> N... function test_chat_prompt_template_message_class_tuples_with_invoke (line 341) | def test_chat_prompt_template_message_class_tuples_with_invoke() -> None: function test_chat_prompt_template_message_class_tuples_mixed_syntax (line 360) | def test_chat_prompt_template_message_class_tuples_mixed_syntax() -> None: function test_chat_prompt_template_message_class_tuples_multiple_variables (line 381) | def test_chat_prompt_template_message_class_tuples_multiple_variables() ... function test_chat_prompt_template_message_class_tuples_empty_template (line 399) | def test_chat_prompt_template_message_class_tuples_empty_template() -> N... function test_chat_prompt_template_message_class_tuples_static_text (line 414) | def test_chat_prompt_template_message_class_tuples_static_text() -> None: function test_chat_prompt_template_message_class_tuples_input_variables (line 432) | def test_chat_prompt_template_message_class_tuples_input_variables() -> ... function test_chat_prompt_template_message_class_tuples_partial_variables (line 444) | def test_chat_prompt_template_message_class_tuples_partial_variables() -... function test_chat_prompt_template_message_class_tuples_with_placeholder (line 461) | def test_chat_prompt_template_message_class_tuples_with_placeholder() ->... function test_chat_prompt_template_message_class_tuples_mustache_format (line 484) | def test_chat_prompt_template_message_class_tuples_mustache_format() -> ... function test_chat_prompt_template_message_class_tuples_append (line 501) | def test_chat_prompt_template_message_class_tuples_append() -> None: function test_chat_prompt_template_message_class_tuples_extend (line 519) | def test_chat_prompt_template_message_class_tuples_extend() -> None: function test_chat_prompt_template_message_class_tuples_concatenation (line 542) | def test_chat_prompt_template_message_class_tuples_concatenation() -> None: function test_chat_prompt_template_message_class_tuples_slicing (line 564) | def test_chat_prompt_template_message_class_tuples_slicing() -> None: function test_chat_prompt_template_message_class_tuples_special_characters (line 583) | def test_chat_prompt_template_message_class_tuples_special_characters() ... function test_chat_prompt_template_image_prompt_from_message (line 608) | def test_chat_prompt_template_image_prompt_from_message( function test_chat_prompt_template_with_messages (line 641) | def test_chat_prompt_template_with_messages( function test_chat_invalid_input_variables_extra (line 665) | def test_chat_invalid_input_variables_extra() -> None: function test_chat_invalid_input_variables_missing (line 684) | def test_chat_invalid_input_variables_missing() -> None: function test_infer_variables (line 701) | def test_infer_variables() -> None: function test_chat_valid_with_partial_variables (line 707) | def test_chat_valid_with_partial_variables() -> None: function test_chat_valid_infer_variables (line 722) | def test_chat_valid_infer_variables() -> None: function test_convert_to_message (line 762) | def test_convert_to_message( function test_chat_prompt_template_indexing (line 769) | def test_chat_prompt_template_indexing() -> None: function test_chat_prompt_template_append_and_extend (line 783) | def test_chat_prompt_template_append_and_extend() -> None: function test_convert_to_message_is_strict (line 805) | def test_convert_to_message_is_strict() -> None: function test_chat_message_partial (line 814) | def test_chat_message_partial() -> None: function test_chat_message_partial_composition (line 838) | def test_chat_message_partial_composition() -> None: function test_chat_tmpl_from_messages_multipart_text (line 855) | async def test_chat_tmpl_from_messages_multipart_text() -> None: function test_chat_tmpl_from_messages_multipart_text_with_template (line 884) | async def test_chat_tmpl_from_messages_multipart_text_with_template() ->... function test_chat_tmpl_from_messages_multipart_image (line 913) | async def test_chat_tmpl_from_messages_multipart_image() -> None: function test_chat_tmpl_from_messages_multipart_formatting_with_path (line 995) | async def test_chat_tmpl_from_messages_multipart_formatting_with_path() ... function test_messages_placeholder (line 1045) | def test_messages_placeholder() -> None: function test_messages_placeholder_with_max (line 1059) | def test_messages_placeholder_with_max() -> None: function test_chat_prompt_message_placeholder_partial (line 1074) | def test_chat_prompt_message_placeholder_partial() -> None: function test_chat_prompt_message_placeholder_tuple (line 1092) | def test_chat_prompt_message_placeholder_tuple() -> None: function test_chat_prompt_message_placeholder_dict (line 1109) | def test_chat_prompt_message_placeholder_dict() -> None: function test_chat_prompt_message_dict (line 1128) | def test_chat_prompt_message_dict() -> None: function test_messages_prompt_accepts_list (line 1147) | async def test_messages_prompt_accepts_list() -> None: function test_chat_input_schema (line 1169) | def test_chat_input_schema(snapshot: SnapshotAssertion) -> None: function test_chat_prompt_w_msgs_placeholder_ser_des (line 1195) | def test_chat_prompt_w_msgs_placeholder_ser_des(snapshot: SnapshotAssert... function test_chat_tmpl_serdes (line 1209) | def test_chat_tmpl_serdes(snapshot: SnapshotAssertion) -> None: function test_chat_tmpl_dict_msg (line 1270) | def test_chat_tmpl_dict_msg() -> None: function test_chat_prompt_template_variable_names (line 1345) | def test_chat_prompt_template_variable_names() -> None: function test_data_prompt_template_deserializable (line 1390) | def test_data_prompt_template_deserializable() -> None: function test_chat_prompt_template_data_prompt_from_message (line 1414) | def test_chat_prompt_template_data_prompt_from_message( function test_dict_message_prompt_template_errors_on_jinja2 (line 1461) | def test_dict_message_prompt_template_errors_on_jinja2() -> None: function test_rendering_prompt_with_conditionals_no_empty_text_blocks (line 1474) | def test_rendering_prompt_with_conditionals_no_empty_text_blocks() -> None: function test_fstring_rejects_invalid_identifier_variable_names (line 1892) | def test_fstring_rejects_invalid_identifier_variable_names() -> None: function test_mustache_template_attribute_access_vulnerability (line 1954) | def test_mustache_template_attribute_access_vulnerability() -> None: FILE: libs/core/tests/unit_tests/prompts/test_dict.py function test__dict_message_prompt_template_fstring (line 5) | def test__dict_message_prompt_template_fstring() -> None: function test_deserialize_legacy (line 21) | def test_deserialize_legacy() -> None: FILE: libs/core/tests/unit_tests/prompts/test_few_shot.py function example_jinja2_prompt (line 30) | def example_jinja2_prompt() -> tuple[PromptTemplate, list[dict[str, str]]]: function test_suffix_only (line 48) | def test_suffix_only() -> None: function test_auto_infer_input_variables (line 63) | def test_auto_infer_input_variables() -> None: function test_prompt_missing_input_variables (line 74) | def test_prompt_missing_input_variables() -> None: function test_few_shot_functionality (line 119) | async def test_few_shot_functionality() -> None: function test_partial_init_string (line 147) | def test_partial_init_string() -> None: function test_partial_init_func (line 174) | def test_partial_init_func() -> None: function test_partial (line 201) | def test_partial() -> None: function test_prompt_jinja2_functionality (line 237) | def test_prompt_jinja2_functionality( function test_prompt_jinja2_missing_input_variables (line 260) | def test_prompt_jinja2_missing_input_variables( function test_prompt_jinja2_extra_input_variables (line 307) | def test_prompt_jinja2_extra_input_variables( function test_few_shot_chat_message_prompt_template (line 333) | async def test_few_shot_chat_message_prompt_template() -> None: class AsIsSelector (line 373) | class AsIsSelector(BaseExampleSelector): method __init__ (line 379) | def __init__(self, examples: Sequence[dict[str, str]]) -> None: method add_example (line 383) | def add_example(self, example: dict[str, str]) -> Any: method select_examples (line 387) | def select_examples(self, input_variables: dict[str, str]) -> list[dic... function test_few_shot_prompt_template_with_selector (line 391) | def test_few_shot_prompt_template_with_selector() -> None: function test_few_shot_chat_message_prompt_template_with_selector (line 409) | def test_few_shot_chat_message_prompt_template_with_selector() -> None: function test_few_shot_chat_message_prompt_template_infer_input_variables (line 445) | def test_few_shot_chat_message_prompt_template_infer_input_variables() -... class AsyncAsIsSelector (line 469) | class AsyncAsIsSelector(BaseExampleSelector): method __init__ (line 475) | def __init__(self, examples: Sequence[dict[str, str]]) -> None: method add_example (line 479) | def add_example(self, example: dict[str, str]) -> Any: method select_examples (line 482) | def select_examples(self, input_variables: dict[str, str]) -> list[dic... method aselect_examples (line 486) | async def aselect_examples( function test_few_shot_prompt_template_with_selector_async (line 492) | async def test_few_shot_prompt_template_with_selector_async() -> None: function test_few_shot_chat_message_prompt_template_with_selector_async (line 510) | async def test_few_shot_chat_message_prompt_template_with_selector_async... FILE: libs/core/tests/unit_tests/prompts/test_few_shot_with_templates.py function test_prompttemplate_prefix_suffix (line 15) | async def test_prompttemplate_prefix_suffix() -> None: function test_prompttemplate_validation (line 49) | def test_prompttemplate_validation() -> None: FILE: libs/core/tests/unit_tests/prompts/test_image.py function test_image_prompt_template_deserializable (line 7) | def test_image_prompt_template_deserializable() -> None: function test_image_prompt_template_deserializable_old (line 18) | def test_image_prompt_template_deserializable_old() -> None: FILE: libs/core/tests/unit_tests/prompts/test_imports.py function test_all_imports (line 28) | def test_all_imports() -> None: FILE: libs/core/tests/unit_tests/prompts/test_loading.py function change_directory (line 25) | def change_directory(dir_path: Path) -> Iterator[None]: function test_loading_from_yaml (line 35) | def test_loading_from_yaml() -> None: function test_loading_from_json (line 47) | def test_loading_from_json() -> None: function test_loading_jinja_from_json (line 58) | def test_loading_jinja_from_json() -> None: function test_loading_jinja_from_yaml (line 68) | def test_loading_jinja_from_yaml() -> None: function test_saving_loading_round_trip (line 78) | def test_saving_loading_round_trip(tmp_path: Path) -> None: function test_loading_with_template_as_file (line 108) | def test_loading_with_template_as_file() -> None: function test_load_template_rejects_absolute_path (line 121) | def test_load_template_rejects_absolute_path(tmp_path: Path) -> None: function test_load_template_rejects_traversal (line 129) | def test_load_template_rejects_traversal() -> None: function test_load_template_allows_dangerous_paths_when_opted_in (line 135) | def test_load_template_allows_dangerous_paths_when_opted_in(tmp_path: Pa... function test_load_examples_rejects_absolute_path (line 143) | def test_load_examples_rejects_absolute_path(tmp_path: Path) -> None: function test_load_examples_rejects_traversal (line 151) | def test_load_examples_rejects_traversal() -> None: function test_load_examples_allows_dangerous_paths_when_opted_in (line 157) | def test_load_examples_allows_dangerous_paths_when_opted_in(tmp_path: Pa... function test_load_prompt_from_config_rejects_absolute_template_path (line 165) | def test_load_prompt_from_config_rejects_absolute_template_path( function test_load_prompt_from_config_rejects_traversal_template_path (line 182) | def test_load_prompt_from_config_rejects_traversal_template_path() -> None: function test_load_prompt_from_config_allows_dangerous_paths (line 195) | def test_load_prompt_from_config_allows_dangerous_paths(tmp_path: Path) ... function test_load_prompt_from_config_few_shot_rejects_traversal_examples (line 209) | def test_load_prompt_from_config_few_shot_rejects_traversal_examples() -... function test_load_prompt_from_config_few_shot_rejects_absolute_examples (line 229) | def test_load_prompt_from_config_few_shot_rejects_absolute_examples( function test_load_prompt_from_config_few_shot_rejects_absolute_example_prompt_path (line 253) | def test_load_prompt_from_config_few_shot_rejects_absolute_example_promp... function test_loading_few_shot_prompt_from_yaml (line 281) | def test_loading_few_shot_prompt_from_yaml() -> None: function test_loading_few_shot_prompt_from_json (line 301) | def test_loading_few_shot_prompt_from_json() -> None: function test_loading_few_shot_prompt_when_examples_in_config (line 321) | def test_loading_few_shot_prompt_when_examples_in_config() -> None: function test_loading_few_shot_prompt_example_prompt (line 343) | def test_loading_few_shot_prompt_example_prompt() -> None: FILE: libs/core/tests/unit_tests/prompts/test_prompt.py function test_prompt_valid (line 21) | def test_prompt_valid() -> None: function test_from_file_encoding (line 30) | def test_from_file_encoding() -> None: function test_prompt_from_template (line 51) | def test_prompt_from_template() -> None: function test_mustache_prompt_from_template (line 72) | def test_mustache_prompt_from_template(snapshot: SnapshotAssertion) -> N... function test_prompt_from_template_with_partial_variables (line 248) | def test_prompt_from_template_with_partial_variables() -> None: function test_prompt_missing_input_variables (line 264) | def test_prompt_missing_input_variables() -> None: function test_prompt_empty_input_variable (line 280) | def test_prompt_empty_input_variable() -> None: function test_prompt_wrong_input_variables (line 289) | def test_prompt_wrong_input_variables() -> None: function test_prompt_from_examples_valid (line 308) | def test_prompt_from_examples_valid() -> None: function test_prompt_invalid_template_format (line 342) | def test_prompt_invalid_template_format() -> None: function test_prompt_from_file (line 354) | def test_prompt_from_file() -> None: function test_prompt_from_file_with_partial_variables (line 361) | def test_prompt_from_file_with_partial_variables() -> None: function test_partial_init_string (line 383) | def test_partial_init_string() -> None: function test_partial_init_func (line 395) | def test_partial_init_func() -> None: function test_partial (line 407) | def test_partial() -> None: function test_prompt_from_jinja2_template (line 421) | def test_prompt_from_jinja2_template() -> None: function test_basic_sandboxing_with_jinja2 (line 435) | def test_basic_sandboxing_with_jinja2() -> None: function test_prompt_from_jinja2_template_multiple_inputs (line 445) | def test_prompt_from_jinja2_template_multiple_inputs() -> None: function test_prompt_from_jinja2_template_multiple_inputs_with_repeats (line 474) | def test_prompt_from_jinja2_template_multiple_inputs_with_repeats() -> N... function test_prompt_jinja2_missing_input_variables (line 505) | def test_prompt_jinja2_missing_input_variables() -> None: function test_prompt_jinja2_extra_input_variables (line 522) | def test_prompt_jinja2_extra_input_variables() -> None: function test_prompt_jinja2_wrong_input_variables (line 539) | def test_prompt_jinja2_wrong_input_variables() -> None: function test_prompt_invoke_with_metadata (line 557) | def test_prompt_invoke_with_metadata() -> None: function test_prompt_ainvoke_with_metadata (line 576) | async def test_prompt_ainvoke_with_metadata() -> None: function test_prompt_falsy_vars (line 627) | def test_prompt_falsy_vars( function test_prompt_missing_vars_error (line 651) | def test_prompt_missing_vars_error() -> None: function test_prompt_with_template_variable_name_fstring (line 663) | def test_prompt_with_template_variable_name_fstring() -> None: function test_prompt_with_template_variable_name_mustache (line 669) | def test_prompt_with_template_variable_name_mustache() -> None: function test_prompt_with_template_variable_name_jinja2 (line 676) | def test_prompt_with_template_variable_name_jinja2() -> None: function test_prompt_template_add_with_with_another_format (line 682) | def test_prompt_template_add_with_with_another_format() -> None: function test_prompt_template_add (line 703) | def test_prompt_template_add( FILE: libs/core/tests/unit_tests/prompts/test_string.py function test_mustache_schema_parent_child (line 17) | def test_mustache_schema_parent_child() -> None: function test_get_template_variables_mustache_nested (line 35) | def test_get_template_variables_mustache_nested() -> None: FILE: libs/core/tests/unit_tests/prompts/test_structured.py function _fake_runnable (line 18) | def _fake_runnable( class FakeStructuredChatModel (line 27) | class FakeStructuredChatModel(FakeListChatModel): method with_structured_output (line 31) | def with_structured_output( method _llm_type (line 37) | def _llm_type(self) -> str: function test_structured_prompt_pydantic (line 41) | def test_structured_prompt_pydantic() -> None: function test_structured_prompt_dict (line 60) | def test_structured_prompt_dict() -> None: function test_structured_prompt_kwargs (line 87) | def test_structured_prompt_kwargs() -> None: function test_structured_prompt_template_format (line 124) | def test_structured_prompt_template_format() -> None: function test_structured_prompt_template_empty_vars (line 137) | def test_structured_prompt_template_empty_vars() -> None: FILE: libs/core/tests/unit_tests/prompts/test_utils.py function test_sorted_vals (line 6) | def test_sorted_vals() -> None: FILE: libs/core/tests/unit_tests/pydantic_utils.py function replace_all_of_with_ref (line 9) | def replace_all_of_with_ref(schema: Any) -> None: function remove_all_none_default (line 31) | def remove_all_none_default(schema: Any) -> None: function _remove_enum (line 60) | def _remove_enum(obj: Any) -> None: function _schema (line 76) | def _schema(obj: Any) -> dict: function _remove_additionalproperties (line 102) | def _remove_additionalproperties(schema: dict) -> dict[str, Any]: function _normalize_schema (line 129) | def _normalize_schema(obj: Any) -> dict[str, Any]: FILE: libs/core/tests/unit_tests/rate_limiters/test_in_memory_rate_limiter.py function rate_limiter (line 12) | def rate_limiter() -> InMemoryRateLimiter: function test_initial_state (line 19) | def test_initial_state(rate_limiter: InMemoryRateLimiter) -> None: function test_sync_wait (line 24) | def test_sync_wait(rate_limiter: InMemoryRateLimiter) -> None: function test_async_wait (line 52) | async def test_async_wait(rate_limiter: InMemoryRateLimiter) -> None: function test_sync_wait_max_bucket_size (line 75) | def test_sync_wait_max_bucket_size() -> None: function test_async_wait_max_bucket_size (line 94) | async def test_async_wait_max_bucket_size() -> None: FILE: libs/core/tests/unit_tests/runnables/test_concurrency.py function test_abatch_concurrency (line 14) | async def test_abatch_concurrency() -> None: function test_abatch_as_completed_concurrency (line 45) | async def test_abatch_as_completed_concurrency() -> None: function test_batch_concurrency (line 79) | def test_batch_concurrency() -> None: function test_batch_as_completed_concurrency (line 110) | def test_batch_as_completed_concurrency() -> None: FILE: libs/core/tests/unit_tests/runnables/test_config.py function test_ensure_config (line 27) | def test_ensure_config() -> None: function test_merge_config_callbacks (line 74) | async def test_merge_config_callbacks() -> None: function test_config_arbitrary_keys (line 147) | def test_config_arbitrary_keys() -> None: function test_run_in_executor (line 155) | async def test_run_in_executor() -> None: FILE: libs/core/tests/unit_tests/runnables/test_configurable.py class MyRunnable (line 14) | class MyRunnable(RunnableSerializable[str, str]): method my_error (line 24) | def my_error(cls, values: dict[str, Any]) -> Any: method build_extra (line 31) | def build_extra(self) -> Self: method invoke (line 36) | def invoke( method my_custom_function (line 41) | def my_custom_function(self) -> str: method my_custom_function_w_config (line 44) | def my_custom_function_w_config( method my_custom_function_w_kw_config (line 51) | def my_custom_function_w_kw_config( class MyOtherRunnable (line 60) | class MyOtherRunnable(RunnableSerializable[str, str]): method invoke (line 64) | def invoke( method my_other_custom_function (line 69) | def my_other_custom_function(self) -> str: method my_other_custom_function_w_config (line 72) | def my_other_custom_function_w_config(self, config: RunnableConfig) ->... function test_doubly_set_configurable (line 77) | def test_doubly_set_configurable() -> None: function test_alias_set_configurable (line 91) | def test_alias_set_configurable() -> None: function test_field_alias_set_configurable (line 109) | def test_field_alias_set_configurable() -> None: function test_config_passthrough (line 127) | def test_config_passthrough() -> None: function test_config_passthrough_nested (line 163) | def test_config_passthrough_nested() -> None: FILE: libs/core/tests/unit_tests/runnables/test_fallbacks.py function llm (line 34) | def llm() -> RunnableWithFallbacks[Any, Any]: function llm_multi (line 42) | def llm_multi() -> RunnableWithFallbacks[Any, Any]: function chain (line 51) | def chain() -> Runnable[Any, str]: function _raise_error (line 61) | def _raise_error(_: dict[str, Any]) -> str: function _dont_raise_error (line 65) | def _dont_raise_error(inputs: dict[str, Any]) -> str: function chain_pass_exceptions (line 72) | def chain_pass_exceptions() -> Runnable[Any, str]: function test_fallbacks (line 83) | def test_fallbacks( function test_fallbacks_async (line 97) | async def test_fallbacks_async(runnable_name: str, request: Any) -> None: function _runnable (line 104) | def _runnable(inputs: dict[str, Any]) -> str: function _assert_potential_error (line 117) | def _assert_potential_error(actual: list[Any], expected: list[Any]) -> N... function test_invoke_with_exception_key (line 125) | def test_invoke_with_exception_key() -> None: function test_ainvoke_with_exception_key (line 146) | async def test_ainvoke_with_exception_key() -> None: function test_batch (line 166) | def test_batch() -> None: function test_abatch (line 210) | async def test_abatch() -> None: function _generate (line 260) | def _generate(_: Iterator[Any]) -> Iterator[str]: function _error (line 264) | def _error(msg: str) -> None: function _generate_immediate_error (line 268) | def _generate_immediate_error(_: Iterator[Any]) -> Iterator[str]: function _generate_delayed_error (line 273) | def _generate_delayed_error(_: Iterator[Any]) -> Iterator[str]: function test_fallbacks_stream (line 278) | def test_fallbacks_stream() -> None: function _agenerate (line 291) | async def _agenerate(_: AsyncIterator[Any]) -> AsyncIterator[str]: function _agenerate_immediate_error (line 296) | async def _agenerate_immediate_error(_: AsyncIterator[Any]) -> AsyncIter... function _agenerate_delayed_error (line 301) | async def _agenerate_delayed_error(_: AsyncIterator[Any]) -> AsyncIterat... function test_fallbacks_astream (line 306) | async def test_fallbacks_astream() -> None: class FakeStructuredOutputModel (line 321) | class FakeStructuredOutputModel(BaseChatModel): method _generate (line 325) | def _generate( method bind_tools (line 336) | def bind_tools( method with_structured_output (line 344) | def with_structured_output( method _llm_type (line 350) | def _llm_type(self) -> str: class FakeModel (line 354) | class FakeModel(BaseChatModel): method _generate (line 358) | def _generate( method bind_tools (line 369) | def bind_tools( method _llm_type (line 377) | def _llm_type(self) -> str: function test_fallbacks_getattr (line 381) | def test_fallbacks_getattr() -> None: function test_fallbacks_getattr_runnable_output (line 391) | def test_fallbacks_getattr_runnable_output() -> None: FILE: libs/core/tests/unit_tests/runnables/test_graph.py function test_graph_single_runnable (line 27) | def test_graph_single_runnable(snapshot: SnapshotAssertion) -> None: function test_trim (line 54) | def test_trim(snapshot: SnapshotAssertion) -> None: function test_trim_multi_edge (line 80) | def test_trim_multi_edge() -> None: function test_graph_sequence (line 102) | def test_graph_sequence(snapshot: SnapshotAssertion) -> None: function test_graph_sequence_map (line 222) | def test_graph_sequence_map(snapshot: SnapshotAssertion) -> None: function test_parallel_subgraph_mermaid (line 255) | def test_parallel_subgraph_mermaid(snapshot: SnapshotAssertion) -> None: function test_double_nested_subgraph_mermaid (line 324) | def test_double_nested_subgraph_mermaid(snapshot: SnapshotAssertion) -> ... function test_triple_nested_subgraph_mermaid (line 385) | def test_triple_nested_subgraph_mermaid(snapshot: SnapshotAssertion) -> ... function test_single_node_subgraph_mermaid (line 458) | def test_single_node_subgraph_mermaid(snapshot: SnapshotAssertion) -> None: function test_runnable_get_graph_with_invalid_input_type (line 475) | def test_runnable_get_graph_with_invalid_input_type() -> None: function test_runnable_get_graph_with_invalid_output_type (line 500) | def test_runnable_get_graph_with_invalid_output_type() -> None: function test_graph_mermaid_to_safe_id (line 525) | def test_graph_mermaid_to_safe_id() -> None: function test_graph_mermaid_duplicate_nodes (line 533) | def test_graph_mermaid_duplicate_nodes(snapshot: SnapshotAssertion) -> N... function test_graph_mermaid_frontmatter_config (line 547) | def test_graph_mermaid_frontmatter_config(snapshot: SnapshotAssertion) -... function test_mermaid_base_url_default (line 572) | def test_mermaid_base_url_default() -> None: function test_mermaid_base_url_custom (line 592) | def test_mermaid_base_url_custom() -> None: function test_draw_mermaid_png_function_base_url (line 613) | def test_draw_mermaid_png_function_base_url() -> None: function test_graph_draw_mermaid_png_base_url (line 635) | def test_graph_draw_mermaid_png_base_url() -> None: function test_mermaid_bgcolor_url_encoding (line 659) | def test_mermaid_bgcolor_url_encoding() -> None: function test_mermaid_bgcolor_hex_not_encoded (line 683) | def test_mermaid_bgcolor_hex_not_encoded() -> None: function test_graph_mermaid_special_chars (line 701) | def test_graph_mermaid_special_chars(snapshot: SnapshotAssertion) -> None: FILE: libs/core/tests/unit_tests/runnables/test_history.py function test_interfaces (line 30) | def test_interfaces() -> None: function _get_get_session_history (line 38) | def _get_get_session_history( function test_input_messages (line 54) | def test_input_messages() -> None: function test_input_messages_async (line 85) | async def test_input_messages_async() -> None: function test_input_dict (line 119) | def test_input_dict() -> None: function test_input_dict_async (line 143) | async def test_input_dict_async() -> None: function test_input_dict_with_history_key (line 169) | def test_input_dict_with_history_key() -> None: function test_input_dict_with_history_key_async (line 197) | async def test_input_dict_with_history_key_async() -> None: function test_output_message (line 225) | def test_output_message() -> None: function test_output_message_async (line 253) | async def test_output_message_async() -> None: class LengthChatModel (line 281) | class LengthChatModel(BaseChatModel): method _generate (line 285) | def _generate( method _llm_type (line 298) | def _llm_type(self) -> str: function test_input_messages_output_message (line 302) | def test_input_messages_output_message() -> None: function test_input_messages_output_message_async (line 316) | async def test_input_messages_output_message_async() -> None: function test_output_messages (line 330) | def test_output_messages() -> None: function test_output_messages_async (line 360) | async def test_output_messages_async() -> None: function test_output_dict (line 390) | def test_output_dict() -> None: function test_output_dict_async (line 423) | async def test_output_dict_async() -> None: function test_get_input_schema_input_dict (line 456) | def test_get_input_schema_input_dict() -> None: function test_get_output_schema (line 490) | def test_get_output_schema() -> None: function test_get_input_schema_input_messages (line 526) | def test_get_input_schema_input_messages() -> None: function test_using_custom_config_specs (line 554) | def test_using_custom_config_specs() -> None: function test_using_custom_config_specs_async (line 667) | async def test_using_custom_config_specs_async() -> None: function test_ignore_session_id (line 780) | def test_ignore_session_id() -> None: class _RunnableLambdaWithRaiseError (line 801) | class _RunnableLambdaWithRaiseError(RunnableLambda[Input, Output]): method with_listeners (line 802) | def with_listeners( method with_alisteners (line 832) | def with_alisteners( function test_get_output_messages_no_value_error (line 857) | def test_get_output_messages_no_value_error() -> None: function test_get_output_messages_with_value_error (line 877) | def test_get_output_messages_with_value_error() -> None: FILE: libs/core/tests/unit_tests/runnables/test_imports.py function test_all_imports (line 36) | def test_all_imports() -> None: function test_imports_for_specific_funcs (line 40) | def test_imports_for_specific_funcs() -> None: FILE: libs/core/tests/unit_tests/runnables/test_runnable.py class FakeTracer (line 101) | class FakeTracer(BaseTracer): method __init__ (line 107) | def __init__(self) -> None: method _replace_uuid (line 116) | def _replace_uuid(self, uuid: UUID) -> UUID: method _replace_message_id (line 121) | def _replace_message_id(self, maybe_message: Any) -> Any: method _copy_run (line 139) | def _copy_run(self, run: Run) -> Run: method _persist_run (line 164) | def _persist_run(self, run: Run) -> None: method flattened_runs (line 168) | def flattened_runs(self) -> list[Run]: method run_ids (line 179) | def run_ids(self) -> list[uuid.UUID | None]: class FakeRunnable (line 185) | class FakeRunnable(Runnable[str, int]): method invoke (line 187) | def invoke( class FakeRunnableSerializable (line 196) | class FakeRunnableSerializable(RunnableSerializable[str, int]): method invoke (line 200) | def invoke( class FakeRetriever (line 209) | class FakeRetriever(BaseRetriever): method _get_relevant_documents (line 211) | def _get_relevant_documents( method _aget_relevant_documents (line 217) | async def _aget_relevant_documents( function test_schemas (line 230) | def test_schemas(snapshot: SnapshotAssertion) -> None: function test_passthrough_assign_schema (line 509) | def test_passthrough_assign_schema() -> None: function test_lambda_schemas (line 546) | def test_lambda_schemas(snapshot: SnapshotAssertion) -> None: function test_with_types_with_type_generics (line 648) | def test_with_types_with_type_generics() -> None: function test_schema_with_itemgetter (line 666) | def test_schema_with_itemgetter() -> None: function test_schema_complex_seq (line 685) | def test_schema_complex_seq() -> None: function test_configurable_fields (line 742) | def test_configurable_fields(snapshot: SnapshotAssertion) -> None: function test_configurable_alts_factory (line 872) | def test_configurable_alts_factory() -> None: function test_configurable_fields_prefix_keys (line 883) | def test_configurable_fields_prefix_keys(snapshot: SnapshotAssertion) ->... function test_configurable_fields_example (line 937) | def test_configurable_fields_example(snapshot: SnapshotAssertion) -> None: function test_passthrough_tap (line 1003) | def test_passthrough_tap(mocker: MockerFixture) -> None: function test_passthrough_tap_async (line 1070) | async def test_passthrough_tap_async(mocker: MockerFixture) -> None: function test_with_config_metadata_passthrough (line 1143) | async def test_with_config_metadata_passthrough(mocker: MockerFixture) -... function test_with_config (line 1171) | def test_with_config(mocker: MockerFixture) -> None: function test_with_config_async (line 1279) | async def test_with_config_async(mocker: MockerFixture) -> None: function test_default_method_implementations (line 1377) | def test_default_method_implementations(mocker: MockerFixture) -> None: function test_default_method_implementations_async (line 1420) | async def test_default_method_implementations_async(mocker: MockerFixtur... function test_prompt (line 1451) | def test_prompt() -> None: function test_prompt_async (line 1485) | async def test_prompt_async() -> None: function test_prompt_template_params (line 1621) | def test_prompt_template_params() -> None: function test_with_listeners (line 1639) | def test_with_listeners(mocker: MockerFixture) -> None: function test_with_listeners_async (line 1672) | async def test_with_listeners_async(mocker: MockerFixture) -> None: function test_with_listener_propagation (line 1705) | def test_with_listener_propagation(mocker: MockerFixture) -> None: function test_prompt_with_chat_model (line 1773) | def test_prompt_with_chat_model( function test_prompt_with_chat_model_async (line 1879) | async def test_prompt_with_chat_model_async( function test_prompt_with_llm (line 1994) | async def test_prompt_with_llm( function test_prompt_with_llm_parser (line 2190) | async def test_prompt_with_llm_parser( function test_stream_log_retriever (line 2468) | async def test_stream_log_retriever() -> None: function test_stream_log_lists (line 2508) | async def test_stream_log_lists() -> None: function test_prompt_with_llm_and_async_lambda (line 2580) | async def test_prompt_with_llm_and_async_lambda( function test_prompt_with_chat_model_and_parser (line 2622) | def test_prompt_with_chat_model_and_parser( function test_combining_sequences (line 2663) | def test_combining_sequences( function test_seq_dict_prompt_llm (line 2723) | def test_seq_dict_prompt_llm( function test_seq_prompt_dict (line 2804) | def test_seq_prompt_dict(mocker: MockerFixture, snapshot: SnapshotAssert... function test_router_runnable (line 2865) | def test_router_runnable(mocker: MockerFixture, snapshot: SnapshotAssert... function test_router_runnable_async (line 2909) | async def test_router_runnable_async() -> None: function test_higher_order_lambda_runnable (line 2935) | def test_higher_order_lambda_runnable( function test_higher_order_lambda_runnable_async (line 2993) | async def test_higher_order_lambda_runnable_async(mocker: MockerFixture)... function test_seq_prompt_map (line 3060) | def test_seq_prompt_map(mocker: MockerFixture, snapshot: SnapshotAsserti... function test_map_stream (line 3128) | def test_map_stream() -> None: function test_map_stream_iterator_input (line 3237) | def test_map_stream_iterator_input() -> None: function test_map_astream (line 3285) | async def test_map_astream() -> None: function test_map_astream_iterator_input (line 3414) | async def test_map_astream_iterator_input() -> None: function test_with_config_with_config (line 3465) | def test_with_config_with_config() -> None: function test_metadata_is_merged (line 3473) | def test_metadata_is_merged() -> None: function test_tags_are_appended (line 3487) | def test_tags_are_appended() -> None: function test_bind_bind (line 3497) | def test_bind_bind() -> None: function test_bind_with_lambda (line 3507) | def test_bind_with_lambda() -> None: function test_bind_with_lambda_async (line 3517) | async def test_bind_with_lambda_async() -> None: function test_deep_stream (line 3527) | def test_deep_stream() -> None: function test_deep_stream_assign (line 3551) | def test_deep_stream_assign() -> None: function test_deep_astream (line 3649) | async def test_deep_astream() -> None: function test_deep_astream_assign (line 3673) | async def test_deep_astream_assign() -> None: function test_runnable_sequence_transform (line 3773) | def test_runnable_sequence_transform() -> None: function test_runnable_sequence_atransform (line 3786) | async def test_runnable_sequence_atransform() -> None: class FakeSplitIntoListParser (line 3799) | class FakeSplitIntoListParser(BaseOutputParser[list[str]]): method is_lc_serializable (line 3803) | def is_lc_serializable(cls) -> bool: method get_format_instructions (line 3808) | def get_format_instructions(self) -> str: method parse (line 3815) | def parse(self, text: str) -> list[str]: function test_each_simple (line 3820) | def test_each_simple() -> None: function test_each (line 3831) | def test_each(snapshot: SnapshotAssertion) -> None: function test_recursive_lambda (line 3852) | def test_recursive_lambda() -> None: function test_retrying (line 3865) | def test_retrying(mocker: MockerFixture) -> None: function test_retry_batch_preserves_order (line 3930) | def test_retry_batch_preserves_order() -> None: function test_async_retry_batch_preserves_order (line 3960) | async def test_async_retry_batch_preserves_order() -> None: function test_async_retrying (line 3982) | async def test_async_retrying(mocker: MockerFixture) -> None: function test_runnable_lambda_stream (line 4047) | def test_runnable_lambda_stream() -> None: function test_runnable_lambda_stream_with_callbacks (line 4062) | def test_runnable_lambda_stream_with_callbacks() -> None: function test_runnable_lambda_astream (line 4093) | async def test_runnable_lambda_astream() -> None: function test_runnable_lambda_astream_with_callbacks (line 4137) | async def test_runnable_lambda_astream_with_callbacks() -> None: function test_seq_batch_return_exceptions (line 4177) | def test_seq_batch_return_exceptions(mocker: MockerFixture) -> None: function test_seq_abatch_return_exceptions (line 4318) | async def test_seq_abatch_return_exceptions(mocker: MockerFixture) -> None: function test_runnable_branch_init (line 4459) | def test_runnable_branch_init() -> None: function test_runnable_branch_init_coercion (line 4496) | def test_runnable_branch_init_coercion(branches: Sequence[Any]) -> None: function test_runnable_branch_invoke_call_counts (line 4511) | def test_runnable_branch_invoke_call_counts(mocker: MockerFixture) -> None: function test_runnable_branch_invoke (line 4539) | def test_runnable_branch_invoke() -> None: function test_runnable_branch_batch (line 4562) | def test_runnable_branch_batch() -> None: function test_runnable_branch_ainvoke (line 4574) | async def test_runnable_branch_ainvoke() -> None: function test_runnable_branch_invoke_callbacks (line 4602) | def test_runnable_branch_invoke_callbacks() -> None: function test_runnable_branch_ainvoke_callbacks (line 4630) | async def test_runnable_branch_ainvoke_callbacks() -> None: function test_runnable_branch_abatch (line 4658) | async def test_runnable_branch_abatch() -> None: function test_runnable_branch_stream (line 4669) | def test_runnable_branch_stream() -> None: function test_runnable_branch_stream_with_callbacks (line 4684) | def test_runnable_branch_stream_with_callbacks() -> None: function test_runnable_branch_astream (line 4725) | async def test_runnable_branch_astream() -> None: function test_runnable_branch_astream_with_callbacks (line 4760) | async def test_runnable_branch_astream_with_callbacks() -> None: function test_representation_of_runnables (line 4801) | def test_representation_of_runnables() -> None: function test_tool_from_runnable (line 4833) | async def test_tool_from_runnable() -> None: function test_runnable_gen (line 4862) | def test_runnable_gen() -> None: function test_runnable_gen_async (line 4883) | async def test_runnable_gen_async() -> None: function test_runnable_gen_context_config (line 4915) | def test_runnable_gen_context_config() -> None: function test_runnable_gen_context_config_async (line 4992) | async def test_runnable_gen_context_config_async() -> None: function test_runnable_iter_context_config (line 5062) | def test_runnable_iter_context_config() -> None: function test_runnable_iter_context_config_async (line 5123) | async def test_runnable_iter_context_config_async() -> None: function test_runnable_lambda_context_config (line 5191) | def test_runnable_lambda_context_config() -> None: function test_runnable_lambda_context_config_async (line 5250) | async def test_runnable_lambda_context_config_async() -> None: function test_runnable_gen_transform (line 5304) | async def test_runnable_gen_transform() -> None: function test_with_config_callbacks (line 5347) | def test_with_config_callbacks() -> None: function test_ainvoke_on_returned_runnable (line 5355) | async def test_ainvoke_on_returned_runnable() -> None: function test_invoke_stream_passthrough_assign_trace (line 5376) | def test_invoke_stream_passthrough_assign_trace() -> None: function test_ainvoke_astream_passthrough_assign_trace (line 5396) | async def test_ainvoke_astream_passthrough_assign_trace() -> None: function test_astream_log_deep_copies (line 5416) | async def test_astream_log_deep_copies() -> None: function test_transform_of_runnable_lambda_with_dicts (line 5464) | def test_transform_of_runnable_lambda_with_dicts() -> None: function test_atransform_of_runnable_lambda_with_dicts (line 5486) | async def test_atransform_of_runnable_lambda_with_dicts() -> None: function test_default_transform_with_dicts (line 5505) | def test_default_transform_with_dicts() -> None: function test_default_atransform_with_dicts (line 5527) | async def test_default_atransform_with_dicts() -> None: function test_passthrough_transform_with_dicts (line 5559) | def test_passthrough_transform_with_dicts() -> None: function test_passthrough_atransform_with_dicts (line 5566) | async def test_passthrough_atransform_with_dicts() -> None: function test_listeners (line 5578) | def test_listeners() -> None: function test_listeners_async (line 5605) | async def test_listeners_async() -> None: function test_closing_iterator_doesnt_raise_error (line 5633) | def test_closing_iterator_doesnt_raise_error() -> None: function test_pydantic_protected_namespaces (line 5678) | def test_pydantic_protected_namespaces() -> None: function test_schema_for_prompt_and_chat_model (line 5687) | def test_schema_for_prompt_and_chat_model() -> None: function test_runnable_assign (line 5725) | def test_runnable_assign() -> None: class _Foo (line 5736) | class _Foo(TypedDict): class _InputData (line 5740) | class _InputData(_Foo): function test_runnable_typed_dict_schema (line 5744) | def test_runnable_typed_dict_schema() -> None: FILE: libs/core/tests/unit_tests/runnables/test_runnable_events_v1.py function _with_nulled_run_id (line 38) | def _with_nulled_run_id(events: Sequence[StreamEvent]) -> list[StreamEve... function _collect_events (line 47) | async def _collect_events(events: AsyncIterator[StreamEvent]) -> list[St... function _assert_events_equal_allow_superset_metadata (line 56) | def _assert_events_equal_allow_superset_metadata( function test_event_stream_with_simple_function_tool (line 78) | async def test_event_stream_with_simple_function_tool() -> None: function test_event_stream_with_single_lambda (line 172) | async def test_event_stream_with_single_lambda() -> None: function test_event_stream_with_triple_lambda (line 216) | async def test_event_stream_with_triple_lambda() -> None: function test_event_stream_with_triple_lambda_test_filtering (line 344) | async def test_event_stream_with_triple_lambda_test_filtering() -> None: function test_event_stream_with_lambdas_from_lambda (line 433) | async def test_event_stream_with_lambdas_from_lambda() -> None: function test_astream_events_from_model (line 474) | async def test_astream_events_from_model() -> None: function test_event_stream_with_simple_chain (line 818) | async def test_event_stream_with_simple_chain() -> None: function test_event_streaming_with_tools (line 1064) | async def test_event_streaming_with_tools() -> None: class HardCodedRetriever (line 1231) | class HardCodedRetriever(BaseRetriever): method _get_relevant_documents (line 1235) | def _get_relevant_documents( function test_event_stream_with_retriever (line 1241) | async def test_event_stream_with_retriever() -> None: function test_event_stream_with_retriever_and_formatter (line 1308) | async def test_event_stream_with_retriever_and_formatter() -> None: function test_event_stream_on_chain_with_tool (line 1429) | async def test_event_stream_on_chain_with_tool() -> None: function test_chain_ordering (line 1528) | async def test_chain_ordering() -> None: function test_event_stream_with_retry (line 1641) | async def test_event_stream_with_retry() -> None: function test_with_llm (line 1731) | async def test_with_llm() -> None: function test_runnable_each (line 1863) | async def test_runnable_each() -> None: function test_events_astream_config (line 1876) | async def test_events_astream_config() -> None: function test_runnable_with_message_history (line 1957) | async def test_runnable_with_message_history() -> None: function test_sync_in_async_stream_lambdas (line 2098) | async def test_sync_in_async_stream_lambdas() -> None: function test_async_in_async_stream_lambdas (line 2117) | async def test_async_in_async_stream_lambdas() -> None: function test_sync_in_sync_lambdas (line 2142) | async def test_sync_in_sync_lambdas() -> None: FILE: libs/core/tests/unit_tests/runnables/test_runnable_events_v2.py function _with_nulled_run_id (line 60) | def _with_nulled_run_id(events: Sequence[StreamEvent]) -> list[StreamEve... function _collect_events (line 78) | async def _collect_events( function test_event_stream_with_simple_function_tool (line 93) | async def test_event_stream_with_simple_function_tool() -> None: function test_event_stream_with_single_lambda (line 188) | async def test_event_stream_with_single_lambda() -> None: function test_event_stream_with_triple_lambda (line 232) | async def test_event_stream_with_triple_lambda() -> None: function test_event_stream_exception (line 360) | async def test_event_stream_exception() -> None: function test_event_stream_with_triple_lambda_test_filtering (line 376) | async def test_event_stream_with_triple_lambda_test_filtering() -> None: function test_event_stream_with_lambdas_from_lambda (line 465) | async def test_event_stream_with_lambdas_from_lambda() -> None: function test_astream_events_from_model (line 506) | async def test_astream_events_from_model() -> None: function test_astream_with_model_in_chain (line 606) | async def test_astream_with_model_in_chain() -> None: function test_event_stream_with_simple_chain (line 855) | async def test_event_stream_with_simple_chain() -> None: function test_event_streaming_with_tools (line 1085) | async def test_event_streaming_with_tools() -> None: class HardCodedRetriever (line 1213) | class HardCodedRetriever(BaseRetriever): method _get_relevant_documents (line 1217) | def _get_relevant_documents( function test_event_stream_with_retriever (line 1223) | async def test_event_stream_with_retriever() -> None: function test_event_stream_with_retriever_and_formatter (line 1274) | async def test_event_stream_with_retriever_and_formatter() -> None: function test_event_stream_on_chain_with_tool (line 1390) | async def test_event_stream_on_chain_with_tool() -> None: function test_chain_ordering (line 1487) | async def test_chain_ordering() -> None: function test_event_stream_with_retry (line 1600) | async def test_event_stream_with_retry() -> None: function test_with_llm (line 1681) | async def test_with_llm() -> None: function test_runnable_each (line 1811) | async def test_runnable_each() -> None: function test_events_astream_config (line 1824) | async def test_events_astream_config() -> None: function test_runnable_with_message_history (line 1905) | async def test_runnable_with_message_history() -> None: function test_sync_in_async_stream_lambdas (line 2061) | async def test_sync_in_async_stream_lambdas(blockbuster: BlockBuster) ->... function test_async_in_async_stream_lambdas (line 2081) | async def test_async_in_async_stream_lambdas() -> None: function test_sync_in_sync_lambdas (line 2101) | async def test_sync_in_sync_lambdas() -> None: class StreamingRunnable (line 2121) | class StreamingRunnable(Runnable[Any, Addable]): method __init__ (line 2126) | def __init__(self, iterable: Iterable[Addable]) -> None: method invoke (line 2131) | def invoke( method stream (line 2139) | def stream( method astream (line 2148) | async def astream( function test_astream_events_from_custom_runnable (line 2185) | async def test_astream_events_from_custom_runnable() -> None: function test_parent_run_id_assignment (line 2244) | async def test_parent_run_id_assignment() -> None: function test_bad_parent_ids (line 2342) | async def test_bad_parent_ids() -> None: function test_runnable_generator (line 2378) | async def test_runnable_generator() -> None: function test_with_explicit_config (line 2430) | async def test_with_explicit_config() -> None: function test_break_astream_events (line 2462) | async def test_break_astream_events() -> None: function test_cancel_astream_events (line 2527) | async def test_cancel_astream_events() -> None: function test_custom_event (line 2599) | async def test_custom_event() -> None: function test_custom_event_nested (line 2673) | async def test_custom_event_nested() -> None: function test_custom_event_root_dispatch (line 2776) | async def test_custom_event_root_dispatch() -> None: function test_custom_event_root_dispatch_with_in_tool (line 2792) | async def test_custom_event_root_dispatch_with_in_tool() -> None: function test_default_is_v2 (line 2836) | def test_default_is_v2() -> None: function test_tool_error_event_includes_tool_call_id (line 2842) | async def test_tool_error_event_includes_tool_call_id() -> None: function test_tool_error_event_tool_call_id_is_none_when_not_provided (line 2882) | async def test_tool_error_event_tool_call_id_is_none_when_not_provided()... FILE: libs/core/tests/unit_tests/runnables/test_tracing_interops.py function _get_posts (line 24) | def _get_posts(client: Client) -> list[dict[str, Any]]: function _create_tracer_with_mocked_client (line 43) | def _create_tracer_with_mocked_client( function test_tracing_context (line 54) | def test_tracing_context() -> None: function test_config_traceable_handoff (line 78) | def test_config_traceable_handoff() -> None: function test_config_traceable_async_handoff (line 162) | async def test_config_traceable_async_handoff() -> None: function test_tracing_enable_disable (line 230) | def test_tracing_enable_disable( class TestRunnableSequenceParallelTraceNesting (line 262) | class TestRunnableSequenceParallelTraceNesting: method _setup (line 264) | def _setup(self) -> None: method _create_parent (line 268) | def _create_parent( method _check_posts (line 303) | def _check_posts(self) -> None: method test_sync (line 383) | def test_sync( method ainvoke (line 397) | async def ainvoke( method astream (line 403) | async def astream( method abatch (line 409) | async def abatch( method test_async (line 418) | async def test_async( function test_tree_is_constructed (line 436) | def test_tree_is_constructed(parent_type: Literal["ls", "lc"]) -> None: FILE: libs/core/tests/unit_tests/runnables/test_utils.py function test_get_lambda_source (line 22) | def test_get_lambda_source(func: Callable[..., Any], expected_source: st... function test_indent_lines_after_first (line 35) | def test_indent_lines_after_first(text: str, prefix: str, expected_outpu... function test_nonlocals (line 44) | def test_nonlocals() -> None: FILE: libs/core/tests/unit_tests/stores/test_in_memory.py class TestSyncInMemoryStore (line 14) | class TestSyncInMemoryStore(BaseStoreSyncTests[Any]): method kv_store (line 17) | def kv_store(self) -> InMemoryStore: method three_values (line 22) | def three_values(self) -> tuple[str, str, str]: class TestAsyncInMemoryStore (line 26) | class TestAsyncInMemoryStore(BaseStoreAsyncTests): method kv_store (line 29) | async def kv_store(self) -> InMemoryStore: method three_values (line 34) | def three_values(self) -> tuple[str, str, str]: function test_mget (line 38) | def test_mget() -> None: function test_amget (line 50) | async def test_amget() -> None: function test_mset (line 62) | def test_mset() -> None: function test_amset (line 70) | async def test_amset() -> None: function test_mdelete (line 78) | def test_mdelete() -> None: function test_amdelete (line 91) | async def test_amdelete() -> None: function test_yield_keys (line 104) | def test_yield_keys() -> None: function test_ayield_keys (line 118) | async def test_ayield_keys() -> None: FILE: libs/core/tests/unit_tests/stubs.py class AnyStr (line 7) | class AnyStr(str): method __eq__ (line 10) | def __eq__(self, other: object) -> bool: function _any_id_document (line 24) | def _any_id_document(**kwargs: Any) -> Document: function _any_id_ai_message (line 31) | def _any_id_ai_message(**kwargs: Any) -> AIMessage: function _any_id_ai_message_chunk (line 38) | def _any_id_ai_message_chunk(**kwargs: Any) -> AIMessageChunk: function _any_id_human_message (line 45) | def _any_id_human_message(**kwargs: Any) -> HumanMessage: FILE: libs/core/tests/unit_tests/test_globals.py function test_debug_is_settable_via_setter (line 6) | def test_debug_is_settable_via_setter() -> None: FILE: libs/core/tests/unit_tests/test_imports.py function test_importable_all (line 7) | def test_importable_all() -> None: function try_to_import (line 21) | def try_to_import(module_name: str) -> tuple[int, str]: function test_importable_all_via_subprocess (line 34) | def test_importable_all_via_subprocess() -> None: FILE: libs/core/tests/unit_tests/test_messages.py function test_message_init (line 39) | def test_message_init() -> None: function test_message_chunks (line 49) | def test_message_chunks() -> None: function test_chat_message_chunks (line 228) | def test_chat_message_chunks() -> None: function test_complex_ai_message_chunks (line 257) | def test_complex_ai_message_chunks() -> None: function test_function_message_chunks (line 336) | def test_function_message_chunks() -> None: function test_ai_message_chunks (line 352) | def test_ai_message_chunks() -> None: class TestGetBufferString (line 360) | class TestGetBufferString: method test_empty_input (line 364) | def test_empty_input(self) -> None: method test_valid_single_message (line 367) | def test_valid_single_message(self) -> None: method test_custom_human_prefix (line 371) | def test_custom_human_prefix(self) -> None: method test_custom_ai_prefix (line 375) | def test_custom_ai_prefix(self) -> None: method test_multiple_msg (line 379) | def test_multiple_msg(self) -> None: method test_custom_message_separator (line 401) | def test_custom_message_separator(self) -> None: function test_multiple_msg (line 410) | def test_multiple_msg() -> None: function test_multiple_msg_with_name (line 436) | def test_multiple_msg_with_name() -> None: function test_message_chunk_to_message (line 451) | def test_message_chunk_to_message() -> None: function test_tool_calls_merge (line 490) | def test_tool_calls_merge() -> None: function test_convert_to_messages (line 741) | def test_convert_to_messages() -> None: function test_message_name (line 851) | def test_message_name(message_class: type) -> None: function test_message_name_function (line 866) | def test_message_name_function(message_class: type) -> None: function test_message_name_chat (line 876) | def test_message_name_chat(message_class: type) -> None: function test_merge_tool_calls (line 887) | def test_merge_tool_calls() -> None: function test_merge_tool_calls_parallel_same_index (line 947) | def test_merge_tool_calls_parallel_same_index() -> None: function test_tool_message_serdes (line 988) | def test_tool_message_serdes() -> None: class BadObject (line 1008) | class BadObject: function test_tool_message_ser_non_serializable (line 1012) | def test_tool_message_ser_non_serializable() -> None: function test_tool_message_to_dict (line 1037) | def test_tool_message_to_dict() -> None: function test_tool_message_repr (line 1057) | def test_tool_message_repr() -> None: function test_tool_message_str (line 1066) | def test_tool_message_str() -> None: function test_merge_content (line 1095) | def test_merge_content(first: list | str, others: list, expected: list |... function test_tool_message_content (line 1100) | def test_tool_message_content() -> None: function test_tool_message_tool_call_id (line 1115) | def test_tool_message_tool_call_id() -> None: function test_message_text (line 1122) | def test_message_text() -> None: function test_is_data_content_block (line 1179) | def test_is_data_content_block() -> None: function test_convert_to_openai_image_block (line 1281) | def test_convert_to_openai_image_block() -> None: function test_known_block_types (line 1327) | def test_known_block_types() -> None: function test_typed_init (line 1346) | def test_typed_init() -> None: function test_text_accessor (line 1386) | def test_text_accessor() -> None: FILE: libs/core/tests/unit_tests/test_outputs.py function test_generation_chunk (line 5) | def test_generation_chunk() -> None: function test_chat_generation_chunk (line 29) | def test_chat_generation_chunk() -> None: FILE: libs/core/tests/unit_tests/test_prompt_values.py function test_chat_prompt_value_concrete (line 14) | def test_chat_prompt_value_concrete() -> None: FILE: libs/core/tests/unit_tests/test_pydantic_imports.py function test_all_models_built (line 7) | def test_all_models_built() -> None: FILE: libs/core/tests/unit_tests/test_pydantic_serde.py function test_serde_any_message (line 28) | def test_serde_any_message() -> None: FILE: libs/core/tests/unit_tests/test_setup.py function test_blockbuster_setup (line 9) | async def test_blockbuster_setup() -> None: FILE: libs/core/tests/unit_tests/test_ssrf_protection.py class TestIPValidation (line 19) | class TestIPValidation: method test_is_private_ip_ipv4 (line 22) | def test_is_private_ip_ipv4(self) -> None: method test_is_private_ip_ipv6 (line 31) | def test_is_private_ip_ipv6(self) -> None: method test_is_private_ip_public (line 38) | def test_is_private_ip_public(self) -> None: method test_is_private_ip_invalid (line 44) | def test_is_private_ip_invalid(self) -> None: method test_is_cloud_metadata_ips (line 49) | def test_is_cloud_metadata_ips(self) -> None: method test_is_cloud_metadata_link_local_range (line 59) | def test_is_cloud_metadata_link_local_range(self) -> None: method test_is_cloud_metadata_hostnames (line 64) | def test_is_cloud_metadata_hostnames(self) -> None: method test_is_cloud_metadata_safe (line 71) | def test_is_cloud_metadata_safe(self) -> None: method test_is_localhost_hostnames (line 76) | def test_is_localhost_hostnames(self) -> None: method test_is_localhost_ips (line 82) | def test_is_localhost_ips(self) -> None: method test_is_localhost_safe (line 88) | def test_is_localhost_safe(self) -> None: class TestValidateSafeUrl (line 94) | class TestValidateSafeUrl: method test_valid_public_https_url (line 97) | def test_valid_public_https_url(self) -> None: method test_valid_public_http_url (line 103) | def test_valid_public_http_url(self) -> None: method test_localhost_blocked_by_default (line 109) | def test_localhost_blocked_by_default(self) -> None: method test_localhost_allowed_with_flag (line 117) | def test_localhost_allowed_with_flag(self) -> None: method test_private_ip_blocked_by_default (line 127) | def test_private_ip_blocked_by_default(self) -> None: method test_private_ip_allowed_with_flag (line 138) | def test_private_ip_allowed_with_flag(self) -> None: method test_cloud_metadata_always_blocked (line 143) | def test_cloud_metadata_always_blocked(self) -> None: method test_ipv6_mapped_ipv4_localhost_blocked (line 155) | def test_ipv6_mapped_ipv4_localhost_blocked(self) -> None: method test_ipv6_mapped_ipv4_cloud_metadata_blocked (line 160) | def test_ipv6_mapped_ipv4_cloud_metadata_blocked(self) -> None: method test_invalid_scheme_blocked (line 165) | def test_invalid_scheme_blocked(self) -> None: method test_https_only_mode (line 176) | def test_https_only_mode(self) -> None: method test_url_without_hostname (line 186) | def test_url_without_hostname(self) -> None: method test_dns_resolution_failure (line 191) | def test_dns_resolution_failure(self) -> None: method test_testserver_allowed (line 196) | def test_testserver_allowed(self, monkeypatch: Any) -> None: class TestIsSafeUrl (line 205) | class TestIsSafeUrl: method test_safe_url_returns_true (line 208) | def test_safe_url_returns_true(self) -> None: method test_unsafe_url_returns_false (line 213) | def test_unsafe_url_returns_false(self) -> None: method test_unsafe_url_safe_with_allow_private (line 220) | def test_unsafe_url_safe_with_allow_private(self) -> None: method test_cloud_metadata_always_unsafe (line 225) | def test_cloud_metadata_always_unsafe(self) -> None: class TestSSRFProtectedUrlType (line 231) | class TestSSRFProtectedUrlType: method test_valid_url_accepted (line 234) | def test_valid_url_accepted(self) -> None: method test_localhost_rejected (line 243) | def test_localhost_rejected(self) -> None: method test_private_ip_rejected (line 252) | def test_private_ip_rejected(self) -> None: method test_cloud_metadata_rejected (line 261) | def test_cloud_metadata_rejected(self) -> None: class TestSSRFProtectedUrlRelaxedType (line 271) | class TestSSRFProtectedUrlRelaxedType: method test_localhost_accepted (line 274) | def test_localhost_accepted(self) -> None: method test_cloud_metadata_still_rejected (line 283) | def test_cloud_metadata_still_rejected(self) -> None: class TestRealWorldURLs (line 293) | class TestRealWorldURLs: method test_slack_webhook (line 296) | def test_slack_webhook(self) -> None: method test_discord_webhook (line 303) | def test_discord_webhook(self) -> None: method test_webhook_site (line 308) | def test_webhook_site(self) -> None: method test_ngrok_url (line 313) | def test_ngrok_url(self) -> None: FILE: libs/core/tests/unit_tests/test_sys_info.py function test_print_sys_info (line 4) | def test_print_sys_info() -> None: FILE: libs/core/tests/unit_tests/test_tools.py function _get_tool_call_json_schema (line 84) | def _get_tool_call_json_schema(tool: BaseTool) -> dict[str, Any]: function test_unnamed_decorator (line 96) | def test_unnamed_decorator() -> None: class _MockSchema (line 110) | class _MockSchema(BaseModel): class _MockStructuredTool (line 118) | class _MockStructuredTool(BaseTool): method _run (line 124) | def _run(self, *, arg1: int, arg2: bool, arg3: dict | None = None) -> ... method _arun (line 127) | async def _arun(self, *, arg1: int, arg2: bool, arg3: dict | None = No... function test_structured_args (line 131) | def test_structured_args() -> None: function test_misannotated_base_tool_raises_error (line 141) | def test_misannotated_base_tool_raises_error() -> None: function test_forward_ref_annotated_base_tool_accepted (line 161) | def test_forward_ref_annotated_base_tool_accepted() -> None: function test_subclass_annotated_base_tool_accepted (line 179) | def test_subclass_annotated_base_tool_accepted() -> None: function test_decorator_with_specified_schema (line 201) | def test_decorator_with_specified_schema() -> None: function test_decorator_with_specified_schema_pydantic_v1 (line 216) | def test_decorator_with_specified_schema_pydantic_v1() -> None: function test_decorated_function_schema_equivalent (line 234) | def test_decorated_function_schema_equivalent() -> None: function test_args_kwargs_filtered (line 253) | def test_args_kwargs_filtered() -> None: function test_structured_args_decorator_no_infer_schema (line 303) | def test_structured_args_decorator_no_infer_schema() -> None: function test_structured_single_str_decorator_no_infer_schema (line 320) | def test_structured_single_str_decorator_no_infer_schema() -> None: function test_structured_tool_types_parsed (line 334) | def test_structured_tool_types_parsed() -> None: function test_structured_tool_types_parsed_pydantic_v1 (line 372) | def test_structured_tool_types_parsed_pydantic_v1() -> None: function test_structured_tool_types_parsed_pydantic_mixed (line 398) | def test_structured_tool_types_parsed_pydantic_mixed() -> None: function test_base_tool_inheritance_base_schema (line 416) | def test_base_tool_inheritance_base_schema() -> None: function test_tool_lambda_args_schema (line 437) | def test_tool_lambda_args_schema() -> None: function test_structured_tool_from_function_docstring (line 449) | def test_structured_tool_from_function_docstring() -> None: function test_structured_tool_from_function_docstring_complex_args (line 483) | def test_structured_tool_from_function_docstring_complex_args() -> None: function test_structured_tool_lambda_multi_args_schema (line 525) | def test_structured_tool_lambda_multi_args_schema() -> None: function test_tool_partial_function_args_schema (line 540) | def test_tool_partial_function_args_schema() -> None: function test_empty_args_decorator (line 556) | def test_empty_args_decorator() -> None: function test_tool_from_function_with_run_manager (line 570) | def test_tool_from_function_with_run_manager() -> None: function test_structured_tool_from_function_with_run_manager (line 589) | def test_structured_tool_from_function_with_run_manager() -> None: function test_structured_tool_from_parameterless_function (line 631) | def test_structured_tool_from_parameterless_function() -> None: function test_named_tool_decorator (line 644) | def test_named_tool_decorator() -> None: function test_named_tool_decorator_return_direct (line 659) | def test_named_tool_decorator_return_direct() -> None: function test_unnamed_tool_decorator_return_direct (line 673) | def test_unnamed_tool_decorator_return_direct() -> None: function test_tool_with_kwargs (line 688) | def test_tool_with_kwargs() -> None: function test_missing_docstring (line 721) | def test_missing_docstring() -> None: function test_create_tool_positional_args (line 737) | def test_create_tool_positional_args() -> None: function test_create_tool_keyword_args (line 746) | def test_create_tool_keyword_args() -> None: function test_create_async_tool (line 755) | async def test_create_async_tool() -> None: class _FakeExceptionTool (line 775) | class _FakeExceptionTool(BaseTool): method _run (line 780) | def _run(self) -> str: method _arun (line 783) | async def _arun(self) -> str: function test_exception_handling_bool (line 787) | def test_exception_handling_bool() -> None: function test_exception_handling_str (line 794) | def test_exception_handling_str() -> None: function test_exception_handling_callable (line 801) | def test_exception_handling_callable() -> None: function test_exception_handling_non_tool_exception (line 812) | def test_exception_handling_non_tool_exception() -> None: function test_async_exception_handling_bool (line 818) | async def test_async_exception_handling_bool() -> None: function test_async_exception_handling_str (line 825) | async def test_async_exception_handling_str() -> None: function test_async_exception_handling_callable (line 832) | async def test_async_exception_handling_callable() -> None: function test_async_exception_handling_non_tool_exception (line 843) | async def test_async_exception_handling_non_tool_exception() -> None: function test_structured_tool_from_function (line 849) | def test_structured_tool_from_function() -> None: function test_validation_error_handling_bool (line 883) | def test_validation_error_handling_bool() -> None: function test_validation_error_handling_str (line 891) | def test_validation_error_handling_str() -> None: function test_validation_error_handling_callable (line 899) | def test_validation_error_handling_callable() -> None: function test_validation_error_handling_non_validation_error (line 919) | def test_validation_error_handling_non_validation_error( function test_async_validation_error_handling_bool (line 949) | async def test_async_validation_error_handling_bool() -> None: function test_async_validation_error_handling_str (line 957) | async def test_async_validation_error_handling_str() -> None: function test_async_validation_error_handling_callable (line 965) | async def test_async_validation_error_handling_callable() -> None: function test_async_validation_error_handling_non_validation_error (line 985) | async def test_async_validation_error_handling_non_validation_error( function test_optional_subset_model_rewrite (line 1015) | def test_optional_subset_model_rewrite() -> None: function test_tool_invoke_optional_args (line 1044) | def test_tool_invoke_optional_args(inputs: dict, expected: dict | None) ... function test_tool_pass_context (line 1061) | def test_tool_pass_context() -> None: function test_async_tool_pass_context (line 1077) | async def test_async_tool_pass_context() -> None: function assert_bar (line 1091) | def assert_bar(bar: Any, bar_config: RunnableConfig) -> Any: function foo (line 1098) | def foo(bar: Any, bar_config: RunnableConfig) -> Any: function afoo (line 1104) | async def afoo(bar: Any, bar_config: RunnableConfig) -> Any: function simple_foo (line 1110) | def simple_foo(bar: Any, bar_config: RunnableConfig) -> Any: function asimple_foo (line 1116) | async def asimple_foo(bar: Any, bar_config: RunnableConfig) -> Any: class FooBase (line 1121) | class FooBase(BaseTool): method _run (line 1126) | def _run(self, bar: Any, bar_config: RunnableConfig, **kwargs: Any) ->... class AFooBase (line 1130) | class AFooBase(FooBase): method _arun (line 1132) | async def _arun(self, bar: Any, bar_config: RunnableConfig, **kwargs: ... function test_tool_pass_config (line 1137) | def test_tool_pass_config(tool: BaseTool) -> None: class FooBaseNonPickleable (line 1151) | class FooBaseNonPickleable(FooBase): method _run (line 1153) | def _run(self, bar: Any, bar_config: RunnableConfig, **kwargs: Any) ->... function test_tool_pass_config_non_pickleable (line 1157) | def test_tool_pass_config_non_pickleable() -> None: function test_async_tool_pass_config (line 1174) | async def test_async_tool_pass_config(tool: BaseTool) -> None: function test_tool_description (line 1181) | def test_tool_description() -> None: function test_tool_arg_descriptions (line 1193) | def test_tool_arg_descriptions() -> None: function test_docstring_parsing (line 1279) | def test_docstring_parsing() -> None: function test_tool_invalid_docstrings (line 1360) | def test_tool_invalid_docstrings() -> None: function test_tool_annotated_descriptions (line 1394) | def test_tool_annotated_descriptions() -> None: function test_tool_field_description_preserved (line 1423) | def test_tool_field_description_preserved() -> None: function test_tool_call_input_tool_message_output (line 1456) | def test_tool_call_input_tool_message_output() -> None: function test_tool_content_block_output (line 1476) | def test_tool_content_block_output(block_type: str) -> None: class _MockStructuredToolWithRawOutput (line 1498) | class _MockStructuredToolWithRawOutput(BaseTool): method _run (line 1505) | def _run( function _mock_structured_tool_with_artifact (line 1515) | def _mock_structured_tool_with_artifact( function test_tool_call_input_tool_message_with_artifact (line 1525) | def test_tool_call_input_tool_message_with_artifact(tool: BaseTool) -> N... function test_convert_from_runnable_dict (line 1546) | def test_convert_from_runnable_dict() -> None: function test_convert_from_runnable_other (line 1611) | def test_convert_from_runnable_other() -> None: function injected_tool (line 1641) | def injected_tool(x: int, y: Annotated[str, InjectedToolArg]) -> str: class InjectedTool (line 1651) | class InjectedTool(BaseTool): method _run (line 1656) | def _run(self, x: int, y: Annotated[str, InjectedToolArg]) -> Any: class fooSchema (line 1666) | class fooSchema(BaseModel): # noqa: N801 class InjectedToolWithSchema (line 1675) | class InjectedToolWithSchema(BaseTool): method _run (line 1681) | def _run(self, x: int, y: str) -> Any: function injected_tool_with_schema (line 1686) | def injected_tool_with_schema(x: int, y: str) -> str: function test_tool_injected_arg_without_schema (line 1691) | def test_tool_injected_arg_without_schema(tool_: BaseTool) -> None: function test_tool_injected_arg_with_schema (line 1739) | def test_tool_injected_arg_with_schema(tool_: BaseTool) -> None: function test_tool_injected_arg (line 1783) | def test_tool_injected_arg() -> None: function test_tool_inherited_injected_arg (line 1828) | def test_tool_inherited_injected_arg() -> None: function _get_parametrized_tools (line 1892) | def _get_parametrized_tools() -> list[Callable[..., Any]]: function test_fn_injected_arg_with_schema (line 1907) | def test_fn_injected_arg_with_schema(tool_: Callable[..., Any]) -> None: function generate_models (line 1922) | def generate_models() -> list[Any]: function generate_backwards_compatible_v1 (line 1932) | def generate_backwards_compatible_v1() -> list[Any]: function test_args_schema_as_pydantic (line 1953) | def test_args_schema_as_pydantic(pydantic_model: Any) -> None: function test_args_schema_explicitly_typed (line 2002) | def test_args_schema_explicitly_typed() -> None: function test_structured_tool_with_different_pydantic_versions (line 2048) | def test_structured_tool_with_different_pydantic_versions(pydantic_model... function test__is_message_content_block (line 2127) | def test__is_message_content_block(obj: Any, *, expected: bool) -> None: function test__is_message_content_type (line 2139) | def test__is_message_content_type(obj: Any, *, expected: bool) -> None: function test__get_all_basemodel_annotations_v2 (line 2144) | def test__get_all_basemodel_annotations_v2(*, use_v1_namespace: bool) ->... function test_get_all_basemodel_annotations_aliases (line 2220) | def test_get_all_basemodel_annotations_aliases() -> None: function test_tool_annotations_preserved (line 2229) | def test_tool_annotations_preserved() -> None: function test_create_retriever_tool (line 2249) | def test_create_retriever_tool() -> None: function test_create_retriever_tool_get_type_hints (line 2301) | def test_create_retriever_tool_get_type_hints() -> None: function test_tool_args_schema_pydantic_v2_with_metadata (line 2327) | def test_tool_args_schema_pydantic_v2_with_metadata() -> None: function test_imports (line 2360) | def test_imports() -> None: function test_structured_tool_direct_init (line 2384) | def test_structured_tool_direct_init() -> None: function test_injected_arg_with_complex_type (line 2400) | def test_injected_arg_with_complex_type() -> None: function test_tool_allows_extra_runtime_args_with_custom_schema (line 2416) | def test_tool_allows_extra_runtime_args_with_custom_schema( function test_tool_injected_tool_call_id_with_custom_schema (line 2446) | def test_tool_injected_tool_call_id_with_custom_schema() -> None: function test_tool_injected_arg_with_custom_schema (line 2483) | def test_tool_injected_arg_with_custom_schema() -> None: function test_tool_injected_tool_call_id (line 2514) | def test_tool_injected_tool_call_id() -> None: function test_tool_injected_tool_call_id_override_llm_generated (line 2551) | def test_tool_injected_tool_call_id_override_llm_generated() -> None: function test_tool_uninjected_tool_call_id (line 2573) | def test_tool_uninjected_tool_call_id() -> None: function test_tool_return_output_mixin (line 2592) | def test_tool_return_output_mixin() -> None: function test_tool_mutate_input (line 2618) | def test_tool_mutate_input() -> None: function test_structured_tool_args_schema_dict (line 2636) | def test_structured_tool_args_schema_dict(caplog: pytest.LogCaptureFixtu... function test_simple_tool_args_schema_dict (line 2675) | def test_simple_tool_args_schema_dict() -> None: function test_empty_string_tool_call_id (line 2710) | def test_empty_string_tool_call_id() -> None: function test_tool_decorator_description (line 2721) | def test_tool_decorator_description() -> None: function test_title_property_preserved (line 2811) | def test_title_property_preserved() -> None: function test_nested_pydantic_fields (line 2848) | def test_nested_pydantic_fields() -> None: function test_tool_ainvoke_does_not_mutate_inputs (line 2860) | async def test_tool_ainvoke_does_not_mutate_inputs() -> None: function test_tool_invoke_does_not_mutate_inputs (line 2908) | def test_tool_invoke_does_not_mutate_inputs() -> None: function test_tool_args_schema_with_annotated_type (line 2947) | def test_tool_args_schema_with_annotated_type() -> None: class CallbackHandlerWithInputCapture (line 2968) | class CallbackHandlerWithInputCapture(FakeCallbackHandler): method on_tool_start (line 2973) | def on_tool_start( function test_filter_injected_args_from_callbacks (line 2999) | def test_filter_injected_args_from_callbacks() -> None: function test_filter_run_manager_from_callbacks (line 3033) | def test_filter_run_manager_from_callbacks() -> None: function test_filter_multiple_injected_args (line 3066) | def test_filter_multiple_injected_args() -> None: function test_no_filtering_for_string_input (line 3112) | def test_no_filtering_for_string_input() -> None: function test_filter_injected_args_async (line 3135) | async def test_filter_injected_args_async() -> None: function test_filter_tool_runtime_directly_injected_arg (line 3170) | def test_filter_tool_runtime_directly_injected_arg() -> None: class _CustomRuntime (line 3214) | class _CustomRuntime(_DirectlyInjectedToolArg): method __init__ (line 3217) | def __init__(self, data: dict[str, Any]) -> None: class _ToolArgsSchemaNoRuntime (line 3222) | class _ToolArgsSchemaNoRuntime(BaseModel): function _tool_func_directly_injected (line 3229) | def _tool_func_directly_injected( function _tool_func_annotated_injected (line 3242) | def _tool_func_annotated_injected( function test_filter_injected_args_not_in_schema (line 3272) | def test_filter_injected_args_not_in_schema( class CallbackHandlerWithToolCallIdCapture (line 3319) | class CallbackHandlerWithToolCallIdCapture(FakeCallbackHandler): method on_tool_start (line 3328) | def on_tool_start( function test_tool_call_id_passed_to_on_tool_start_callback (line 3371) | async def test_tool_call_id_passed_to_on_tool_start_callback(method: str... function test_tool_call_id_none_when_invoked_without_tool_call (line 3405) | def test_tool_call_id_none_when_invoked_without_tool_call() -> None: function test_tool_call_id_empty_string_passed_to_callback (line 3433) | def test_tool_call_id_empty_string_passed_to_callback() -> None: function test_tool_call_id_passed_via_run_method (line 3471) | async def test_tool_call_id_passed_via_run_method(method: str) -> None: function test_tool_args_schema_default_values (line 3513) | def test_tool_args_schema_default_values() -> None: function test_tool_args_schema_default_values_async (line 3551) | async def test_tool_args_schema_default_values_async() -> None: function test_tool_args_schema_none_default (line 3575) | def test_tool_args_schema_none_default() -> None: function test_tool_args_schema_falsy_defaults (line 3613) | def test_tool_args_schema_falsy_defaults() -> None: function test_tool_default_factory_not_required (line 3641) | def test_tool_default_factory_not_required() -> None: FILE: libs/core/tests/unit_tests/tracers/test_async_base_tracer.py class FakeAsyncTracer (line 24) | class FakeAsyncTracer(AsyncBaseTracer): method __init__ (line 27) | def __init__(self) -> None: method _persist_run (line 32) | async def _persist_run(self, run: Run) -> None: function _compare_run_with_error (line 36) | def _compare_run_with_error(run: Any, expected_run: Any) -> None: function test_tracer_llm_run (line 57) | async def test_tracer_llm_run() -> None: function test_tracer_chat_model_run (line 87) | async def test_tracer_chat_model_run() -> None: function test_tracer_llm_run_errors_no_start (line 118) | async def test_tracer_llm_run_errors_no_start() -> None: function test_tracer_multiple_llm_runs (line 127) | async def test_tracer_multiple_llm_runs() -> None: function test_tracer_chain_run (line 159) | async def test_tracer_chain_run() -> None: function test_tracer_tool_run (line 188) | async def test_tracer_tool_run() -> None: function test_tracer_nested_run (line 218) | async def test_tracer_nested_run() -> None: function test_tracer_llm_run_on_error (line 337) | async def test_tracer_llm_run_on_error() -> None: function test_tracer_llm_run_on_error_callback (line 369) | async def test_tracer_llm_run_on_error_callback() -> None: function test_tracer_chain_run_on_error (line 406) | async def test_tracer_chain_run_on_error() -> None: function test_tracer_tool_run_on_error (line 437) | async def test_tracer_tool_run_on_error() -> None: function test_tracer_nested_runs_on_error (line 470) | async def test_tracer_nested_runs_on_error() -> None: FILE: libs/core/tests/unit_tests/tracers/test_automatic_metadata.py class MockTracerCore (line 14) | class MockTracerCore(_TracerCore): method __init__ (line 17) | def __init__(self) -> None: method _persist_run (line 20) | def _persist_run(self, run: Run) -> None: function test_complete_llm_run_automatically_stores_tool_call_count (line 24) | def test_complete_llm_run_automatically_stores_tool_call_count() -> None: function test_complete_llm_run_handles_no_tool_calls (line 54) | def test_complete_llm_run_handles_no_tool_calls() -> None: function test_complete_llm_run_handles_empty_generations (line 79) | def test_complete_llm_run_handles_empty_generations() -> None: function test_complete_llm_run_counts_tool_calls_from_multiple_generations (line 101) | def test_complete_llm_run_counts_tool_calls_from_multiple_generations() ... function test_complete_llm_run_handles_null_tool_calls (line 131) | def test_complete_llm_run_handles_null_tool_calls() -> None: FILE: libs/core/tests/unit_tests/tracers/test_base_tracer.py class FakeTracer (line 28) | class FakeTracer(BaseTracer): method __init__ (line 31) | def __init__(self) -> None: method _persist_run (line 36) | def _persist_run(self, run: Run) -> None: function _compare_run_with_error (line 41) | def _compare_run_with_error(run: Any, expected_run: Any) -> None: function test_tracer_llm_run (line 62) | def test_tracer_llm_run() -> None: function test_tracer_chat_model_run (line 92) | def test_tracer_chat_model_run() -> None: function test_tracer_llm_run_errors_no_start (line 123) | def test_tracer_llm_run_errors_no_start() -> None: function test_tracer_multiple_llm_runs (line 132) | def test_tracer_multiple_llm_runs() -> None: function test_tracer_chain_run (line 164) | def test_tracer_chain_run() -> None: function test_tracer_tool_run (line 193) | def test_tracer_tool_run() -> None: function test_tracer_nested_run (line 221) | def test_tracer_nested_run() -> None: function test_tracer_llm_run_on_error (line 340) | def test_tracer_llm_run_on_error() -> None: function test_tracer_llm_run_on_error_callback (line 372) | def test_tracer_llm_run_on_error_callback() -> None: function test_tracer_chain_run_on_error (line 409) | def test_tracer_chain_run_on_error() -> None: function test_tracer_tool_run_on_error (line 440) | def test_tracer_tool_run_on_error() -> None: function test_tracer_nested_runs_on_error (line 471) | def test_tracer_nested_runs_on_error() -> None: function _get_mock_client (line 619) | def _get_mock_client() -> Client: function test_traceable_to_tracing (line 624) | def test_traceable_to_tracing() -> None: FILE: libs/core/tests/unit_tests/tracers/test_imports.py function test_all_imports (line 15) | def test_all_imports() -> None: FILE: libs/core/tests/unit_tests/tracers/test_langchain.py function test_example_id_assignment_threadsafe (line 22) | def test_example_id_assignment_threadsafe() -> None: function test_tracer_with_run_tree_parent (line 68) | def test_tracer_with_run_tree_parent() -> None: function test_log_lock (line 87) | def test_log_lock() -> None: function test_correct_get_tracer_project (line 125) | def test_correct_get_tracer_project( function test_get_usage_metadata_from_generations (line 298) | def test_get_usage_metadata_from_generations( function test_on_llm_end_stores_usage_metadata_in_run_extra (line 306) | def test_on_llm_end_stores_usage_metadata_in_run_extra() -> None: function test_on_llm_end_stores_usage_metadata_from_serialized_outputs (line 353) | def test_on_llm_end_stores_usage_metadata_from_serialized_outputs() -> N... function test_on_llm_end_no_usage_metadata_when_not_present (line 388) | def test_on_llm_end_no_usage_metadata_when_not_present() -> None: function test_on_llm_end_preserves_existing_metadata (line 433) | def test_on_llm_end_preserves_existing_metadata() -> None: function test_on_chain_start_skips_persist_when_defers_inputs (line 486) | def test_on_chain_start_skips_persist_when_defers_inputs() -> None: function test_on_chain_start_persists_when_not_defers_inputs (line 516) | def test_on_chain_start_persists_when_not_defers_inputs() -> None: function test_on_chain_end_persists_when_defers_inputs (line 545) | def test_on_chain_end_persists_when_defers_inputs() -> None: function test_on_chain_end_updates_when_not_defers_inputs (line 585) | def test_on_chain_end_updates_when_not_defers_inputs() -> None: function test_on_chain_error_persists_when_defers_inputs (line 623) | def test_on_chain_error_persists_when_defers_inputs() -> None: function test_on_chain_error_updates_when_not_defers_inputs (line 663) | def test_on_chain_error_updates_when_not_defers_inputs() -> None: FILE: libs/core/tests/unit_tests/tracers/test_memory_stream.py function test_same_event_loop (line 9) | async def test_same_event_loop() -> None: function test_queue_for_streaming_via_sync_call (line 63) | async def test_queue_for_streaming_via_sync_call() -> None: function test_send_to_closed_stream (line 115) | def test_send_to_closed_stream() -> None: function test_closed_stream (line 133) | async def test_closed_stream() -> None: FILE: libs/core/tests/unit_tests/tracers/test_run_collector.py function test_collect_runs (line 9) | def test_collect_runs() -> None: FILE: libs/core/tests/unit_tests/tracers/test_schemas.py function test_public_api (line 5) | def test_public_api() -> None: FILE: libs/core/tests/unit_tests/utils/test_aiter.py function test_abatch_iterate (line 17) | async def test_abatch_iterate( FILE: libs/core/tests/unit_tests/utils/test_env.py function test_get_from_dict_or_env (line 6) | def test_get_from_dict_or_env() -> None: FILE: libs/core/tests/unit_tests/utils/test_formatting.py class TestStrictFormatter (line 8) | class TestStrictFormatter: method test_vformat_with_keyword_args (line 11) | def test_vformat_with_keyword_args(self) -> None: method test_vformat_with_multiple_keyword_args (line 17) | def test_vformat_with_multiple_keyword_args(self) -> None: method test_vformat_with_empty_string (line 27) | def test_vformat_with_empty_string(self) -> None: method test_vformat_with_no_placeholders (line 33) | def test_vformat_with_no_placeholders(self) -> None: method test_vformat_raises_on_positional_args (line 39) | def test_vformat_raises_on_positional_args(self) -> None: method test_vformat_raises_on_multiple_positional_args (line 49) | def test_vformat_raises_on_multiple_positional_args(self) -> None: method test_vformat_with_special_characters (line 55) | def test_vformat_with_special_characters(self) -> None: method test_vformat_with_unicode (line 61) | def test_vformat_with_unicode(self) -> None: method test_vformat_with_format_spec (line 69) | def test_vformat_with_format_spec(self) -> None: method test_vformat_with_nested_braces (line 75) | def test_vformat_with_nested_braces(self) -> None: method test_validate_input_variables_success (line 81) | def test_validate_input_variables_success(self) -> None: method test_validate_input_variables_with_extra_variables (line 87) | def test_validate_input_variables_with_extra_variables(self) -> None: method test_validate_input_variables_with_missing_variable (line 93) | def test_validate_input_variables_with_missing_variable(self) -> None: method test_validate_input_variables_empty_format (line 99) | def test_validate_input_variables_empty_format(self) -> None: method test_validate_input_variables_no_placeholders (line 105) | def test_validate_input_variables_no_placeholders(self) -> None: class TestFormatterSingleton (line 112) | class TestFormatterSingleton: method test_formatter_is_strict_formatter (line 115) | def test_formatter_is_strict_formatter(self) -> None: method test_formatter_format_works (line 119) | def test_formatter_format_works(self) -> None: method test_formatter_rejects_positional_args (line 124) | def test_formatter_rejects_positional_args(self) -> None: FILE: libs/core/tests/unit_tests/utils/test_function_calling.py function pydantic (line 41) | def pydantic() -> type[BaseModel]: function annotated_function (line 52) | def annotated_function() -> Callable: function function (line 63) | def function() -> Callable: function function_docstring_annotations (line 76) | def function_docstring_annotations() -> Callable: function runnable (line 89) | def runnable() -> Runnable: function dummy_tool (line 101) | def dummy_tool() -> BaseTool: function dummy_structured_tool (line 118) | def dummy_structured_tool() -> StructuredTool: function dummy_structured_tool_args_schema_dict (line 132) | def dummy_structured_tool_args_schema_dict() -> StructuredTool: function dummy_pydantic (line 154) | def dummy_pydantic() -> type[BaseModel]: function dummy_pydantic_v2 (line 165) | def dummy_pydantic_v2() -> type[BaseModelV2Maybe]: function dummy_typing_typed_dict (line 178) | def dummy_typing_typed_dict() -> type: function dummy_typing_typed_dict_docstring (line 189) | def dummy_typing_typed_dict_docstring() -> type: function dummy_extensions_typed_dict (line 205) | def dummy_extensions_typed_dict() -> type: function dummy_extensions_typed_dict_docstring (line 216) | def dummy_extensions_typed_dict_docstring() -> type: function json_schema (line 232) | def json_schema() -> dict: function anthropic_tool (line 250) | def anthropic_tool() -> dict: function bedrock_converse_tool (line 270) | def bedrock_converse_tool() -> dict: class Dummy (line 293) | class Dummy: method dummy_function (line 294) | def dummy_function(self, arg1: int, arg2: Literal["bar", "baz"]) -> None: class DummyWithClassMethod (line 303) | class DummyWithClassMethod: method dummy_function (line 305) | def dummy_function(cls, arg1: int, arg2: Literal["bar", "baz"]) -> None: function test_convert_to_openai_function (line 314) | def test_convert_to_openai_function( function test_convert_to_openai_function_nested_v2 (line 412) | def test_convert_to_openai_function_nested_v2() -> None: function test_convert_to_openai_function_nested (line 425) | def test_convert_to_openai_function_nested() -> None: function test_convert_to_openai_function_nested_strict (line 462) | def test_convert_to_openai_function_nested_strict() -> None: function test_convert_to_openai_function_strict_union_of_objects_arg_type (line 502) | def test_convert_to_openai_function_strict_union_of_objects_arg_type() -... function test_convert_to_openai_function_no_description (line 646) | def test_convert_to_openai_function_no_description(func: dict) -> None: function test_convert_to_openai_function_no_description_no_params (line 673) | def test_convert_to_openai_function_no_description_no_params(func: dict)... function test_function_optional_param (line 682) | def test_function_optional_param() -> None: function test_function_no_params (line 696) | def test_function_no_params() -> None: class FakeCall (line 705) | class FakeCall(BaseModel): function test_valid_example_conversion (line 709) | def test_valid_example_conversion() -> None: function test_multiple_tool_calls (line 720) | def test_multiple_tool_calls() -> None: function test_tool_outputs (line 754) | def test_tool_outputs() -> None: function test__convert_typed_dict_to_openai_function (line 804) | def test__convert_typed_dict_to_openai_function( function test__convert_typed_dict_to_openai_function_fail (line 1041) | def test__convert_typed_dict_to_openai_function_fail(typed_dict: type) -... function test_convert_union_type (line 1050) | def test_convert_union_type() -> None: function test_convert_to_openai_function_no_args (line 1063) | def test_convert_to_openai_function_no_args() -> None: function test_convert_to_json_schema (line 1082) | def test_convert_to_json_schema( function test_convert_to_openai_function_nested_strict_2 (line 1125) | def test_convert_to_openai_function_nested_strict_2() -> None: function test_convert_to_openai_function_strict_required (line 1163) | def test_convert_to_openai_function_strict_required() -> None: function test_convert_to_openai_function_arbitrary_type_error (line 1176) | def test_convert_to_openai_function_arbitrary_type_error() -> None: function test_convert_to_openai_function_strict_defaults (line 1208) | def test_convert_to_openai_function_strict_defaults() -> None: function test_convert_to_openai_function_json_schema_missing_title_with_type (line 1219) | def test_convert_to_openai_function_json_schema_missing_title_with_type(... function test_convert_to_openai_function_json_schema_missing_title_properties (line 1229) | def test_convert_to_openai_function_json_schema_missing_title_properties... function test_convert_to_openai_function_json_schema_missing_title_includes_schema (line 1238) | def test_convert_to_openai_function_json_schema_missing_title_includes_s... function test_convert_to_openai_tool_computer_passthrough (line 1248) | def test_convert_to_openai_tool_computer_passthrough() -> None: FILE: libs/core/tests/unit_tests/utils/test_html.py function test_find_all_links_none (line 9) | def test_find_all_links_none() -> None: function test_find_all_links_single (line 15) | def test_find_all_links_single() -> None: function test_find_all_links_multiple (line 25) | def test_find_all_links_multiple() -> None: function test_find_all_links_ignore_suffix (line 37) | def test_find_all_links_ignore_suffix() -> None: function test_find_all_links_ignore_prefix (line 50) | def test_find_all_links_ignore_prefix() -> None: function test_find_all_links_drop_fragment (line 66) | def test_find_all_links_drop_fragment() -> None: function test_extract_sub_links (line 72) | def test_extract_sub_links() -> None: function test_extract_sub_links_base (line 107) | def test_extract_sub_links_base() -> None: function test_extract_sub_links_exclude (line 132) | def test_extract_sub_links_exclude() -> None: function test_prevent_outside (line 161) | def test_prevent_outside() -> None: function test_extract_sub_links_with_query (line 188) | def test_extract_sub_links_with_query() -> None: FILE: libs/core/tests/unit_tests/utils/test_imports.py function test_all_imports (line 33) | def test_all_imports() -> None: FILE: libs/core/tests/unit_tests/utils/test_iter.py function test_batch_iterate (line 15) | def test_batch_iterate( FILE: libs/core/tests/unit_tests/utils/test_json_schema.py function test_dereference_refs_no_refs (line 12) | def test_dereference_refs_no_refs() -> None: function test_dereference_refs_one_ref (line 23) | def test_dereference_refs_one_ref() -> None: function test_dereference_refs_multiple_refs (line 42) | def test_dereference_refs_multiple_refs() -> None: function test_dereference_refs_nested_refs_skip (line 69) | def test_dereference_refs_nested_refs_skip() -> None: function test_dereference_refs_nested_refs_no_skip (line 103) | def test_dereference_refs_nested_refs_no_skip() -> None: function test_dereference_refs_missing_ref (line 137) | def test_dereference_refs_missing_ref() -> None: function test_dereference_refs_remote_ref (line 149) | def test_dereference_refs_remote_ref() -> None: function test_dereference_refs_integer_ref (line 160) | def test_dereference_refs_integer_ref() -> None: function test_dereference_refs_string_ref (line 192) | def test_dereference_refs_string_ref() -> None: function test_dereference_refs_cyclical_refs (line 224) | def test_dereference_refs_cyclical_refs() -> None: function test_dereference_refs_list_index (line 275) | def test_dereference_refs_list_index() -> None: function test_dereference_refs_list_index_items_ref_mcp_like (line 455) | def test_dereference_refs_list_index_items_ref_mcp_like() -> None: function test_dereference_refs_mixed_ref_with_properties (line 533) | def test_dereference_refs_mixed_ref_with_properties() -> None: function test_dereference_refs_complex_pattern (line 565) | def test_dereference_refs_complex_pattern() -> None: function test_dereference_refs_cyclical_mixed_refs (line 637) | def test_dereference_refs_cyclical_mixed_refs() -> None: function test_dereference_refs_empty_mixed_ref (line 682) | def test_dereference_refs_empty_mixed_ref() -> None: function test_dereference_refs_nested_mixed_refs (line 700) | def test_dereference_refs_nested_mixed_refs() -> None: function test_dereference_refs_array_with_mixed_refs (line 732) | def test_dereference_refs_array_with_mixed_refs() -> None: function test_dereference_refs_mixed_ref_overrides_property (line 764) | def test_dereference_refs_mixed_ref_overrides_property() -> None: function test_dereference_refs_mixed_ref_cyclical_with_properties (line 794) | def test_dereference_refs_mixed_ref_cyclical_with_properties() -> None: function test_dereference_refs_non_dict_ref_target (line 837) | def test_dereference_refs_non_dict_ref_target() -> None: function test_convert_to_openai_tool_preserves_enum_defaults (line 868) | def test_convert_to_openai_tool_preserves_enum_defaults() -> None: FILE: libs/core/tests/unit_tests/utils/test_pydantic.py function test_pre_init_decorator (line 21) | def test_pre_init_decorator() -> None: function test_pre_init_decorator_with_more_defaults (line 38) | def test_pre_init_decorator_with_more_defaults() -> None: function test_with_aliases (line 57) | def test_with_aliases() -> None: function test_is_basemodel_subclass (line 90) | def test_is_basemodel_subclass() -> None: function test_is_basemodel_instance (line 96) | def test_is_basemodel_instance() -> None: function test_with_field_metadata (line 110) | def test_with_field_metadata() -> None: function test_fields_pydantic_v2_proper (line 136) | def test_fields_pydantic_v2_proper() -> None: function test_fields_pydantic_v1_from_2 (line 148) | def test_fields_pydantic_v1_from_2() -> None: function test_create_model_v2 (line 156) | def test_create_model_v2() -> None: function test_create_subset_model_v2_preserves_default_factory (line 191) | def test_create_subset_model_v2_preserves_default_factory() -> None: FILE: libs/core/tests/unit_tests/utils/test_rm_titles.py function test_rm_titles (line 232) | def test_rm_titles(schema: dict, output: dict) -> None: FILE: libs/core/tests/unit_tests/utils/test_strings.py function test_sanitize_for_postgres (line 11) | def test_sanitize_for_postgres() -> None: function test_existing_string_functions (line 35) | def test_existing_string_functions() -> None: function test_stringify_value_nested_structures (line 52) | def test_stringify_value_nested_structures() -> None: function test_comma_list_with_iterables (line 84) | def test_comma_list_with_iterables() -> None: FILE: libs/core/tests/unit_tests/utils/test_usage.py function test_dict_int_op_add (line 8) | def test_dict_int_op_add() -> None: function test_dict_int_op_subtract (line 15) | def test_dict_int_op_subtract() -> None: function test_dict_int_op_nested (line 22) | def test_dict_int_op_nested() -> None: function test_dict_int_op_max_depth_exceeded (line 29) | def test_dict_int_op_max_depth_exceeded() -> None: function test_dict_int_op_invalid_types (line 38) | def test_dict_int_op_invalid_types() -> None: FILE: libs/core/tests/unit_tests/utils/test_utils.py function test_check_package_version (line 39) | def test_check_package_version( function test_merge_dicts (line 134) | def test_merge_dicts( function test_merge_dicts_0_3 (line 162) | def test_merge_dicts_0_3( function test_guard_import (line 186) | def test_guard_import( function test_guard_import_failure (line 218) | def test_guard_import_failure( function test_get_pydantic_field_names_v1_in_2 (line 236) | def test_get_pydantic_field_names_v1_in_2() -> None: function test_get_pydantic_field_names_v2_in_2 (line 247) | def test_get_pydantic_field_names_v2_in_2() -> None: function test_from_env_with_env_variable (line 258) | def test_from_env_with_env_variable() -> None: function test_from_env_with_default_value (line 266) | def test_from_env_with_default_value() -> None: function test_from_env_with_error_message (line 274) | def test_from_env_with_error_message() -> None: function test_from_env_with_default_error_message (line 283) | def test_from_env_with_default_error_message() -> None: function test_secret_from_env_with_env_variable (line 291) | def test_secret_from_env_with_env_variable(monkeypatch: pytest.MonkeyPat... function test_secret_from_env_with_default_value (line 302) | def test_secret_from_env_with_default_value(monkeypatch: pytest.MonkeyPa... function test_secret_from_env_with_none_default (line 315) | def test_secret_from_env_with_none_default(monkeypatch: pytest.MonkeyPat... function test_secret_from_env_without_default_raises_error (line 328) | def test_secret_from_env_without_default_raises_error( function test_secret_from_env_with_custom_error_message (line 342) | def test_secret_from_env_with_custom_error_message( function test_using_secret_from_env_as_default_factory (line 358) | def test_using_secret_from_env_as_default_factory( function test_generation_chunk_addition_type_error (line 396) | def test_generation_chunk_addition_type_error() -> None: function test_merge_lists (line 438) | def test_merge_lists( function test_merge_lists_multiple_others (line 450) | def test_merge_lists_multiple_others() -> None: function test_merge_lists_all_none (line 456) | def test_merge_lists_all_none() -> None: function test_merge_obj (line 483) | def test_merge_obj(left: Any, right: Any, expected: Any) -> None: function test_merge_obj_type_mismatch (line 488) | def test_merge_obj_type_mismatch() -> None: function test_merge_obj_unmergeable_values (line 494) | def test_merge_obj_unmergeable_values() -> None: function test_merge_obj_tuple_raises (line 500) | def test_merge_obj_tuple_raises() -> None: FILE: libs/core/tests/unit_tests/utils/test_uuid_utils.py function _uuid_v7_ms (line 7) | def _uuid_v7_ms(uuid_obj: UUID | str) -> int: function test_uuid7 (line 17) | def test_uuid7() -> None: function test_monotonicity (line 29) | def test_monotonicity() -> None: FILE: libs/core/tests/unit_tests/vectorstores/test_in_memory.py class TestInMemoryStandard (line 13) | class TestInMemoryStandard(VectorStoreIntegrationTests): method vectorstore (line 15) | def vectorstore(self) -> InMemoryVectorStore: function test_inmemory_similarity_search (line 19) | async def test_inmemory_similarity_search() -> None: function test_inmemory_similarity_search_with_score (line 37) | async def test_inmemory_similarity_search_with_score() -> None: function test_add_by_ids (line 50) | async def test_add_by_ids() -> None: function test_inmemory_mmr (line 65) | async def test_inmemory_mmr() -> None: function test_inmemory_dump_load (line 86) | def test_inmemory_dump_load(tmp_path: Path) -> None: function test_inmemory_filter (line 101) | async def test_inmemory_filter() -> None: function test_inmemory_filter_by_document_id (line 120) | async def test_inmemory_filter_by_document_id() -> None: function test_inmemory_upsert (line 154) | async def test_inmemory_upsert() -> None: function test_inmemory_get_by_ids (line 182) | async def test_inmemory_get_by_ids() -> None: function test_inmemory_call_embeddings_async (line 209) | async def test_inmemory_call_embeddings_async() -> None: FILE: libs/core/tests/unit_tests/vectorstores/test_utils.py class TestCosineSimilarity (line 13) | class TestCosineSimilarity: method test_basic_cosine_similarity (line 16) | def test_basic_cosine_similarity(self) -> None: method test_identical_vectors (line 25) | def test_identical_vectors(self) -> None: method test_opposite_vectors (line 33) | def test_opposite_vectors(self) -> None: method test_zero_vector (line 41) | def test_zero_vector(self) -> None: method test_multiple_vectors (line 48) | def test_multiple_vectors(self) -> None: method test_numpy_array_input (line 62) | def test_numpy_array_input(self) -> None: method test_mixed_input_types (line 70) | def test_mixed_input_types(self) -> None: method test_higher_dimensions (line 78) | def test_higher_dimensions(self) -> None: method test_empty_matrices (line 86) | def test_empty_matrices(self) -> None: method test_single_empty_matrix (line 94) | def test_single_empty_matrix(self) -> None: method test_dimension_mismatch_error (line 102) | def test_dimension_mismatch_error(self) -> None: method test_nan_and_inf_handling (line 112) | def test_nan_and_inf_handling(self) -> None: method test_large_values (line 120) | def test_large_values(self) -> None: method test_small_values (line 128) | def test_small_values(self) -> None: method test_single_vector_vs_multiple (line 136) | def test_single_vector_vs_multiple(self) -> None: method test_single_dimension_vectors (line 153) | def test_single_dimension_vectors(self) -> None: FILE: libs/core/tests/unit_tests/vectorstores/test_vectorstore.py class CustomAddTextsVectorstore (line 23) | class CustomAddTextsVectorstore(VectorStore): method __init__ (line 26) | def __init__(self) -> None: method add_texts (line 30) | def add_texts( method get_by_ids (line 52) | def get_by_ids(self, ids: Sequence[str], /) -> list[Document]: method from_texts (line 57) | def from_texts( method similarity_search (line 68) | def similarity_search( class CustomAddDocumentsVectorstore (line 74) | class CustomAddDocumentsVectorstore(VectorStore): method __init__ (line 77) | def __init__(self) -> None: method add_documents (line 81) | def add_documents( method get_by_ids (line 98) | def get_by_ids(self, ids: Sequence[str], /) -> list[Document]: method from_texts (line 103) | def from_texts( method similarity_search (line 114) | def similarity_search( function test_default_add_documents (line 123) | def test_default_add_documents(vs_class: type[VectorStore]) -> None: function test_default_add_texts (line 154) | def test_default_add_texts(vs_class: type[VectorStore]) -> None: function test_default_aadd_documents (line 184) | async def test_default_aadd_documents(vs_class: type[VectorStore]) -> None: function test_default_aadd_texts (line 211) | async def test_default_aadd_texts(vs_class: type[VectorStore]) -> None: function test_default_from_documents (line 242) | def test_default_from_documents(vs_class: type[VectorStore]) -> None: function test_default_afrom_documents (line 271) | async def test_default_afrom_documents(vs_class: type[VectorStore]) -> N... FILE: libs/langchain/langchain_classic/__init__.py function _warn_on_import (line 17) | def _warn_on_import(name: str, replacement: str | None = None) -> None: function __getattr__ (line 45) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/_api/interactive_env.py function is_interactive_env (line 1) | def is_interactive_env() -> bool: FILE: libs/langchain/langchain_classic/_api/module_import.py function create_importer (line 16) | def create_importer( FILE: libs/langchain/langchain_classic/adapters/openai.py function __getattr__ (line 44) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/agents/__init__.py function __getattr__ (line 99) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/agents/agent.py class BaseSingleActionAgent (line 55) | class BaseSingleActionAgent(BaseModel): method return_values (line 59) | def return_values(self) -> list[str]: method get_allowed_tools (line 63) | def get_allowed_tools(self) -> list[str] | None: method plan (line 68) | def plan( method aplan (line 87) | async def aplan( method input_keys (line 107) | def input_keys(self) -> list[str]: method return_stopped_response (line 110) | def return_stopped_response( method from_llm_and_tools (line 139) | def from_llm_and_tools( method _agent_type (line 160) | def _agent_type(self) -> str: method dict (line 165) | def dict(self, **kwargs: Any) -> builtins.dict: method save (line 182) | def save(self, file_path: Path | str) -> None: method tool_run_logging_kwargs (line 216) | def tool_run_logging_kwargs(self) -> builtins.dict: class BaseMultiActionAgent (line 221) | class BaseMultiActionAgent(BaseModel): method return_values (line 225) | def return_values(self) -> list[str]: method get_allowed_tools (line 229) | def get_allowed_tools(self) -> list[str] | None: method plan (line 238) | def plan( method aplan (line 257) | async def aplan( method input_keys (line 277) | def input_keys(self) -> list[str]: method return_stopped_response (line 280) | def return_stopped_response( method _agent_type (line 306) | def _agent_type(self) -> str: method dict (line 311) | def dict(self, **kwargs: Any) -> builtins.dict: method save (line 318) | def save(self, file_path: Path | str) -> None: method tool_run_logging_kwargs (line 356) | def tool_run_logging_kwargs(self) -> builtins.dict: class AgentOutputParser (line 361) | class AgentOutputParser(BaseOutputParser[AgentAction | AgentFinish]): method parse (line 365) | def parse(self, text: str) -> AgentAction | AgentFinish: class MultiActionAgentOutputParser (line 369) | class MultiActionAgentOutputParser( method parse (line 378) | def parse(self, text: str) -> list[AgentAction] | AgentFinish: class RunnableAgent (line 389) | class RunnableAgent(BaseSingleActionAgent): method return_values (line 410) | def return_values(self) -> list[str]: method input_keys (line 415) | def input_keys(self) -> list[str]: method plan (line 419) | def plan( method aplan (line 455) | async def aplan( class RunnableMultiActionAgent (line 497) | class RunnableMultiActionAgent(BaseMultiActionAgent): method return_values (line 518) | def return_values(self) -> list[str]: method input_keys (line 523) | def input_keys(self) -> list[str]: method plan (line 531) | def plan( method aplan (line 567) | async def aplan( class LLMSingleActionAgent (line 615) | class LLMSingleActionAgent(BaseSingleActionAgent): method input_keys (line 626) | def input_keys(self) -> list[str]: method dict (line 635) | def dict(self, **kwargs: Any) -> builtins.dict: method plan (line 641) | def plan( method aplan (line 666) | async def aplan( method tool_run_logging_kwargs (line 691) | def tool_run_logging_kwargs(self) -> builtins.dict: class Agent (line 704) | class Agent(BaseSingleActionAgent): method dict (line 720) | def dict(self, **kwargs: Any) -> builtins.dict: method get_allowed_tools (line 726) | def get_allowed_tools(self) -> list[str] | None: method return_values (line 731) | def return_values(self) -> list[str]: method _stop (line 736) | def _stop(self) -> list[str]: method _construct_scratchpad (line 742) | def _construct_scratchpad( method plan (line 753) | def plan( method aplan (line 774) | async def aplan( method get_full_inputs (line 795) | def get_full_inputs( method input_keys (line 815) | def input_keys(self) -> list[str]: method validate_prompt (line 820) | def validate_prompt(self) -> Self: method observation_prefix (line 851) | def observation_prefix(self) -> str: method llm_prefix (line 856) | def llm_prefix(self) -> str: method create_prompt (line 861) | def create_prompt(cls, tools: Sequence[BaseTool]) -> BasePromptTemplate: method _validate_tools (line 872) | def _validate_tools(cls, tools: Sequence[BaseTool]) -> None: method _get_default_output_parser (line 881) | def _get_default_output_parser(cls, **kwargs: Any) -> AgentOutputParser: method from_llm_and_tools (line 885) | def from_llm_and_tools( method return_stopped_response (line 920) | def return_stopped_response( method tool_run_logging_kwargs (line 975) | def tool_run_logging_kwargs(self) -> builtins.dict: class ExceptionTool (line 983) | class ExceptionTool(BaseTool): method _run (line 992) | def _run( method _arun (line 1000) | async def _arun( class AgentExecutor (line 1012) | class AgentExecutor(Chain): method from_agent_and_tools (line 1059) | def from_agent_and_tools( method validate_tools (line 1085) | def validate_tools(self) -> Self: method validate_runnable_agent (line 1112) | def validate_runnable_agent(cls, values: dict) -> Any: method _action_agent (line 1147) | def _action_agent(self) -> BaseSingleActionAgent | BaseMultiActionAgent: method save (line 1161) | def save(self, file_path: Path | str) -> None: method save_agent (line 1177) | def save_agent(self, file_path: Path | str) -> None: method iter (line 1185) | def iter( method input_keys (line 1213) | def input_keys(self) -> list[str]: method output_keys (line 1218) | def output_keys(self) -> list[str]: method lookup_tool (line 1224) | def lookup_tool(self, name: str) -> BaseTool: method _should_continue (line 1235) | def _should_continue(self, iterations: int, time_elapsed: float) -> bool: method _return (line 1240) | def _return( method _areturn (line 1253) | async def _areturn( method _consume_next_step (line 1270) | def _consume_next_step( method _take_next_step (line 1281) | def _take_next_step( method _iter_next_step (line 1301) | def _iter_next_step( method _perform_agent_action (line 1380) | def _perform_agent_action( method _atake_next_step (line 1419) | async def _atake_next_step( method _aiter_next_step (line 1440) | async def _aiter_next_step( method _aperform_agent_action (line 1527) | async def _aperform_agent_action( method _call (line 1570) | def _call( method _acall (line 1624) | async def _acall( method _get_tool_return (line 1697) | def _get_tool_return( method _prepare_intermediate_steps (line 1718) | def _prepare_intermediate_steps( method stream (line 1732) | def stream( method astream (line 1763) | async def astream( FILE: libs/langchain/langchain_classic/agents/agent_iterator.py class AgentExecutorIterator (line 40) | class AgentExecutorIterator: method __init__ (line 43) | def __init__( method inputs (line 93) | def inputs(self) -> dict[str, str]: method inputs (line 98) | def inputs(self, inputs: Any) -> None: method agent_executor (line 102) | def agent_executor(self) -> AgentExecutor: method agent_executor (line 107) | def agent_executor(self, agent_executor: AgentExecutor) -> None: method name_to_tool_map (line 113) | def name_to_tool_map(self) -> dict[str, BaseTool]: method color_mapping (line 118) | def color_mapping(self) -> dict[str, str]: method reset (line 125) | def reset(self) -> None: method update_iterations (line 138) | def update_iterations(self) -> None: method make_final_outputs (line 148) | def make_final_outputs( method __iter__ (line 173) | def __iter__(self: AgentExecutorIterator) -> Iterator[AddableDict]: method __aiter__ (line 237) | async def __aiter__(self) -> AsyncIterator[AddableDict]: method _process_next_step_output (line 318) | def _process_next_step_output( method _aprocess_next_step_output (line 347) | async def _aprocess_next_step_output( method _stop (line 376) | def _stop(self, run_manager: CallbackManagerForChainRun) -> AddableDict: method _astop (line 390) | async def _astop(self, run_manager: AsyncCallbackManagerForChainRun) -... method _return (line 404) | def _return( method _areturn (line 419) | async def _areturn( FILE: libs/langchain/langchain_classic/agents/agent_toolkits/__init__.py function __getattr__ (line 118) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/agents/agent_toolkits/ainetwork/toolkit.py function __getattr__ (line 18) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/agents/agent_toolkits/amadeus/toolkit.py function __getattr__ (line 18) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/agents/agent_toolkits/azure_cognitive_services.py function __getattr__ (line 22) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/agents/agent_toolkits/clickup/toolkit.py function __getattr__ (line 18) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/agents/agent_toolkits/conversational_retrieval/openai_functions.py function _get_default_system_message (line 17) | def _get_default_system_message() -> SystemMessage: function create_conversational_retrieval_agent (line 27) | def create_conversational_retrieval_agent( FILE: libs/langchain/langchain_classic/agents/agent_toolkits/csv/__init__.py function __getattr__ (line 4) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/agents/agent_toolkits/file_management/__init__.py function __getattr__ (line 24) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/agents/agent_toolkits/file_management/toolkit.py function __getattr__ (line 22) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/agents/agent_toolkits/github/toolkit.py function __getattr__ (line 48) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/agents/agent_toolkits/gitlab/toolkit.py function __getattr__ (line 18) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/agents/agent_toolkits/gmail/toolkit.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/agents/agent_toolkits/jira/toolkit.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/agents/agent_toolkits/json/base.py function __getattr__ (line 18) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/agents/agent_toolkits/json/prompt.py function __getattr__ (line 19) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/agents/agent_toolkits/json/toolkit.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/agents/agent_toolkits/multion/toolkit.py function __getattr__ (line 18) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/agents/agent_toolkits/nasa/toolkit.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/agents/agent_toolkits/nla/tool.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/agents/agent_toolkits/nla/toolkit.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/agents/agent_toolkits/office365/toolkit.py function __getattr__ (line 18) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/agents/agent_toolkits/openapi/base.py function __getattr__ (line 18) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/agents/agent_toolkits/openapi/planner.py function __getattr__ (line 40) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/agents/agent_toolkits/openapi/planner_prompt.py function __getattr__ (line 80) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/agents/agent_toolkits/openapi/prompt.py function __getattr__ (line 24) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/agents/agent_toolkits/openapi/spec.py function __getattr__ (line 22) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/agents/agent_toolkits/openapi/toolkit.py function __getattr__ (line 22) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/agents/agent_toolkits/pandas/__init__.py function __getattr__ (line 4) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/agents/agent_toolkits/playwright/__init__.py function __getattr__ (line 22) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/agents/agent_toolkits/playwright/toolkit.py function __getattr__ (line 20) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/agents/agent_toolkits/powerbi/base.py function __getattr__ (line 18) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/agents/agent_toolkits/powerbi/chat_base.py function __getattr__ (line 20) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/agents/agent_toolkits/powerbi/prompt.py function __getattr__ (line 26) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/agents/agent_toolkits/powerbi/toolkit.py function __getattr__ (line 18) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/agents/agent_toolkits/python/__init__.py function __getattr__ (line 4) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/agents/agent_toolkits/slack/toolkit.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/agents/agent_toolkits/spark/__init__.py function __getattr__ (line 4) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/agents/agent_toolkits/spark_sql/base.py function __getattr__ (line 18) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/agents/agent_toolkits/spark_sql/prompt.py function __getattr__ (line 22) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/agents/agent_toolkits/spark_sql/toolkit.py function __getattr__ (line 18) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/agents/agent_toolkits/sql/base.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/agents/agent_toolkits/sql/prompt.py function __getattr__ (line 24) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/agents/agent_toolkits/sql/toolkit.py function __getattr__ (line 18) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/agents/agent_toolkits/steam/toolkit.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/agents/agent_toolkits/vectorstore/base.py function create_vectorstore_agent (line 36) | def create_vectorstore_agent( function create_vectorstore_router_agent (line 133) | def create_vectorstore_router_agent( FILE: libs/langchain/langchain_classic/agents/agent_toolkits/vectorstore/toolkit.py class VectorStoreInfo (line 10) | class VectorStoreInfo(BaseModel): class VectorStoreToolkit (line 22) | class VectorStoreToolkit(BaseToolkit): method get_tools (line 32) | def get_tools(self) -> list[BaseTool]: class VectorStoreRouterToolkit (line 65) | class VectorStoreRouterToolkit(BaseToolkit): method get_tools (line 75) | def get_tools(self) -> list[BaseTool]: FILE: libs/langchain/langchain_classic/agents/agent_toolkits/xorbits/__init__.py function __getattr__ (line 4) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/agents/agent_toolkits/zapier/toolkit.py function __getattr__ (line 18) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/agents/agent_types.py class AgentType (line 15) | class AgentType(str, Enum): FILE: libs/langchain/langchain_classic/agents/chat/base.py class ChatAgent (line 36) | class ChatAgent(Agent): method observation_prefix (line 43) | def observation_prefix(self) -> str: method llm_prefix (line 48) | def llm_prefix(self) -> str: method _construct_scratchpad (line 52) | def _construct_scratchpad( method _get_default_output_parser (line 70) | def _get_default_output_parser(cls, **kwargs: Any) -> AgentOutputParser: method _validate_tools (line 74) | def _validate_tools(cls, tools: Sequence[BaseTool]) -> None: method _stop (line 79) | def _stop(self) -> list[str]: method create_prompt (line 83) | def create_prompt( method from_llm_and_tools (line 123) | def from_llm_and_tools( method _agent_type (line 177) | def _agent_type(self) -> str: FILE: libs/langchain/langchain_classic/agents/chat/output_parser.py class ChatOutputParser (line 14) | class ChatOutputParser(AgentOutputParser): method get_format_instructions (line 23) | def get_format_instructions(self) -> str: method parse (line 27) | def parse(self, text: str) -> AgentAction | AgentFinish: method _type (line 70) | def _type(self) -> str: FILE: libs/langchain/langchain_classic/agents/conversational/base.py class ConversationalAgent (line 34) | class ConversationalAgent(Agent): method _get_default_output_parser (line 44) | def _get_default_output_parser( method _agent_type (line 52) | def _agent_type(self) -> str: method observation_prefix (line 57) | def observation_prefix(self) -> str: method llm_prefix (line 66) | def llm_prefix(self) -> str: method create_prompt (line 75) | def create_prompt( method _validate_tools (line 116) | def _validate_tools(cls, tools: Sequence[BaseTool]) -> None: method from_llm_and_tools (line 121) | def from_llm_and_tools( FILE: libs/langchain/langchain_classic/agents/conversational/output_parser.py class ConvoOutputParser (line 10) | class ConvoOutputParser(AgentOutputParser): method get_format_instructions (line 19) | def get_format_instructions(self) -> str: method parse (line 23) | def parse(self, text: str) -> AgentAction | AgentFinish: method _type (line 47) | def _type(self) -> str: FILE: libs/langchain/langchain_classic/agents/conversational_chat/base.py class ConversationalChatAgent (line 37) | class ConversationalChatAgent(Agent): method _get_default_output_parser (line 47) | def _get_default_output_parser(cls, **kwargs: Any) -> AgentOutputParser: method _agent_type (line 51) | def _agent_type(self) -> str: method observation_prefix (line 55) | def observation_prefix(self) -> str: method llm_prefix (line 64) | def llm_prefix(self) -> str: method _validate_tools (line 73) | def _validate_tools(cls, tools: Sequence[BaseTool]) -> None: method create_prompt (line 78) | def create_prompt( method _construct_scratchpad (line 120) | def _construct_scratchpad( method from_llm_and_tools (line 135) | def from_llm_and_tools( FILE: libs/langchain/langchain_classic/agents/conversational_chat/output_parser.py class ConvoOutputParser (line 12) | class ConvoOutputParser(AgentOutputParser): method get_format_instructions (line 18) | def get_format_instructions(self) -> str: method parse (line 22) | def parse(self, text: str) -> AgentAction | AgentFinish: method _type (line 54) | def _type(self) -> str: FILE: libs/langchain/langchain_classic/agents/format_scratchpad/log.py function format_log_to_str (line 4) | def format_log_to_str( FILE: libs/langchain/langchain_classic/agents/format_scratchpad/log_to_messages.py function format_log_to_messages (line 5) | def format_log_to_messages( FILE: libs/langchain/langchain_classic/agents/format_scratchpad/openai_functions.py function _convert_agent_action_to_messages (line 12) | def _convert_agent_action_to_messages( function _create_function_message (line 36) | def _create_function_message( function format_to_openai_function_messages (line 68) | def format_to_openai_function_messages( FILE: libs/langchain/langchain_classic/agents/format_scratchpad/tools.py function _create_tool_message (line 18) | def _create_tool_message( function format_to_tool_messages (line 51) | def format_to_tool_messages( FILE: libs/langchain/langchain_classic/agents/format_scratchpad/xml.py function _escape (line 6) | def _escape(xml: str) -> str: function format_xml (line 21) | def format_xml( FILE: libs/langchain/langchain_classic/agents/initialize.py function initialize_agent (line 24) | def initialize_agent( FILE: libs/langchain/langchain_classic/agents/json_chat/base.py function create_json_chat_agent (line 14) | def create_json_chat_agent( FILE: libs/langchain/langchain_classic/agents/load_tools.py function __getattr__ (line 11) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/agents/loading.py function _load_agent_from_tools (line 22) | def _load_agent_from_tools( function load_agent_from_config (line 39) | def load_agent_from_config( function load_agent (line 102) | def load_agent( function _load_agent_from_file (line 129) | def _load_agent_from_file( FILE: libs/langchain/langchain_classic/agents/mrkl/base.py class ChainConfig (line 26) | class ChainConfig(NamedTuple): class ZeroShotAgent (line 45) | class ZeroShotAgent(Agent): method _get_default_output_parser (line 56) | def _get_default_output_parser(cls, **kwargs: Any) -> AgentOutputParser: method _agent_type (line 60) | def _agent_type(self) -> str: method observation_prefix (line 65) | def observation_prefix(self) -> str: method llm_prefix (line 74) | def llm_prefix(self) -> str: method create_prompt (line 83) | def create_prompt( method from_llm_and_tools (line 114) | def from_llm_and_tools( method _validate_tools (line 162) | def _validate_tools(cls, tools: Sequence[BaseTool]) -> None: class MRKLChain (line 184) | class MRKLChain(AgentExecutor): method from_chains (line 188) | def from_chains( FILE: libs/langchain/langchain_classic/agents/mrkl/output_parser.py class MRKLOutputParser (line 21) | class MRKLOutputParser(AgentOutputParser): method get_format_instructions (line 27) | def get_format_instructions(self) -> str: method parse (line 31) | def parse(self, text: str) -> AgentAction | AgentFinish: method _type (line 98) | def _type(self) -> str: FILE: libs/langchain/langchain_classic/agents/openai_assistant/base.py class OpenAIAssistantFinish (line 30) | class OpenAIAssistantFinish(AgentFinish): method is_lc_serializable (line 42) | def is_lc_serializable(cls) -> bool: class OpenAIAssistantAction (line 51) | class OpenAIAssistantAction(AgentAction): method is_lc_serializable (line 65) | def is_lc_serializable(cls) -> bool: function _get_openai_client (line 74) | def _get_openai_client() -> openai.OpenAI: function _get_openai_async_client (line 90) | def _get_openai_async_client() -> openai.AsyncOpenAI: function _is_assistants_builtin_tool (line 106) | def _is_assistants_builtin_tool( function _get_assistants_tool (line 118) | def _get_assistants_tool( class OpenAIAssistantRunnable (line 139) | class OpenAIAssistantRunnable(RunnableSerializable[dict, OutputType]): method _validate_async_client (line 245) | def _validate_async_client(self) -> Self: method create_assistant (line 254) | def create_assistant( method invoke (line 288) | def invoke( method acreate_assistant (line 386) | async def acreate_assistant( method ainvoke (line 421) | async def ainvoke( method _parse_intermediate_steps (line 520) | def _parse_intermediate_steps( method _create_run (line 542) | def _create_run(self, input_dict: dict) -> Any: method _create_thread_and_run (line 566) | def _create_thread_and_run(self, input_dict: dict, thread: dict) -> Any: method _get_response (line 589) | def _get_response(self, run: Any) -> Any: method _wait_for_run (line 668) | def _wait_for_run(self, run_id: str, thread_id: str) -> Any: method _aparse_intermediate_steps (line 677) | async def _aparse_intermediate_steps( method _acreate_run (line 699) | async def _acreate_run(self, input_dict: dict) -> Any: method _acreate_thread_and_run (line 723) | async def _acreate_thread_and_run(self, input_dict: dict, thread: dict... method _aget_response (line 746) | async def _aget_response(self, run: Any) -> Any: method _await_for_run (line 821) | async def _await_for_run(self, run_id: str, thread_id: str) -> Any: FILE: libs/langchain/langchain_classic/agents/openai_functions_agent/agent_token_buffer_memory.py class AgentTokenBufferMemory (line 16) | class AgentTokenBufferMemory(BaseChatMemory): method buffer (line 46) | def buffer(self) -> list[BaseMessage]: method memory_variables (line 51) | def memory_variables(self) -> list[str]: method load_memory_variables (line 56) | def load_memory_variables(self, inputs: dict[str, Any]) -> dict[str, A... method save_context (line 75) | def save_context(self, inputs: dict[str, Any], outputs: dict[str, Any]... FILE: libs/langchain/langchain_classic/agents/openai_functions_agent/base.py class OpenAIFunctionsAgent (line 39) | class OpenAIFunctionsAgent(BaseSingleActionAgent): method get_allowed_tools (line 60) | def get_allowed_tools(self) -> list[str]: method validate_prompt (line 65) | def validate_prompt(self) -> Self: method input_keys (line 87) | def input_keys(self) -> list[str]: method functions (line 92) | def functions(self) -> list[dict]: method plan (line 96) | def plan( method aplan (line 137) | async def aplan( method return_stopped_response (line 170) | def return_stopped_response( method create_prompt (line 214) | def create_prompt( method from_llm_and_tools (line 249) | def from_llm_and_tools( function create_openai_functions_agent (line 287) | def create_openai_functions_agent( FILE: libs/langchain/langchain_classic/agents/openai_functions_multi_agent/base.py function _parse_ai_message (line 38) | def _parse_ai_message(message: BaseMessage) -> list[AgentAction] | Agent... class OpenAIMultiFunctionsAgent (line 107) | class OpenAIMultiFunctionsAgent(BaseMultiActionAgent): method get_allowed_tools (line 123) | def get_allowed_tools(self) -> list[str]: method _validate_prompt (line 128) | def _validate_prompt(self) -> Self: method input_keys (line 139) | def input_keys(self) -> list[str]: method functions (line 144) | def functions(self) -> list[dict]: method plan (line 204) | def plan( method aplan (line 235) | async def aplan( method create_prompt (line 267) | def create_prompt( method from_llm_and_tools (line 302) | def from_llm_and_tools( FILE: libs/langchain/langchain_classic/agents/openai_tools/base.py function create_openai_tools_agent (line 17) | def create_openai_tools_agent( FILE: libs/langchain/langchain_classic/agents/output_parsers/json.py class JSONAgentOutputParser (line 15) | class JSONAgentOutputParser(AgentOutputParser): method parse (line 38) | def parse(self, text: str) -> AgentAction | AgentFinish: method _type (line 56) | def _type(self) -> str: FILE: libs/langchain/langchain_classic/agents/output_parsers/openai_functions.py class OpenAIFunctionsAgentOutputParser (line 16) | class OpenAIFunctionsAgentOutputParser(AgentOutputParser): method _type (line 29) | def _type(self) -> str: method parse_ai_message (line 33) | def parse_ai_message(message: BaseMessage) -> AgentAction | AgentFinish: method parse_result (line 83) | def parse_result( method parse (line 96) | def parse(self, text: str) -> AgentAction | AgentFinish: FILE: libs/langchain/langchain_classic/agents/output_parsers/openai_tools.py function parse_ai_message_to_openai_tool_action (line 15) | def parse_ai_message_to_openai_tool_action( class OpenAIToolsAgentOutputParser (line 39) | class OpenAIToolsAgentOutputParser(MultiActionAgentOutputParser): method _type (line 52) | def _type(self) -> str: method parse_result (line 56) | def parse_result( method parse (line 69) | def parse(self, text: str) -> list[AgentAction] | AgentFinish: FILE: libs/langchain/langchain_classic/agents/output_parsers/react_json_single_input.py class ReActJsonSingleInputOutputParser (line 15) | class ReActJsonSingleInputOutputParser(AgentOutputParser): method get_format_instructions (line 50) | def get_format_instructions(self) -> str: method parse (line 54) | def parse(self, text: str) -> AgentAction | AgentFinish: method _type (line 85) | def _type(self) -> str: FILE: libs/langchain/langchain_classic/agents/output_parsers/react_single_input.py class ReActSingleInputOutputParser (line 22) | class ReActSingleInputOutputParser(AgentOutputParser): method get_format_instructions (line 49) | def get_format_instructions(self) -> str: method parse (line 53) | def parse(self, text: str) -> AgentAction | AgentFinish: method _type (line 98) | def _type(self) -> str: FILE: libs/langchain/langchain_classic/agents/output_parsers/self_ask.py class SelfAskOutputParser (line 10) | class SelfAskOutputParser(AgentOutputParser): method parse (line 39) | def parse(self, text: str) -> AgentAction | AgentFinish: method _type (line 51) | def _type(self) -> str: FILE: libs/langchain/langchain_classic/agents/output_parsers/tools.py class ToolAgentAction (line 17) | class ToolAgentAction(AgentActionMessageLog): function parse_ai_message_to_tool_action (line 24) | def parse_ai_message_to_tool_action( class ToolsAgentOutputParser (line 87) | class ToolsAgentOutputParser(MultiActionAgentOutputParser): method _type (line 97) | def _type(self) -> str: method parse_result (line 101) | def parse_result( method parse (line 114) | def parse(self, text: str) -> list[AgentAction] | AgentFinish: FILE: libs/langchain/langchain_classic/agents/output_parsers/xml.py function _unescape (line 11) | def _unescape(text: str) -> str: class XMLAgentOutputParser (line 26) | class XMLAgentOutputParser(AgentOutputParser): method parse (line 70) | def parse(self, text: str) -> AgentAction | AgentFinish: method get_format_instructions (line 121) | def get_format_instructions(self) -> str: method _type (line 125) | def _type(self) -> str: FILE: libs/langchain/langchain_classic/agents/react/agent.py function create_react_agent (line 16) | def create_react_agent( FILE: libs/langchain/langchain_classic/agents/react/base.py class ReActDocstoreAgent (line 36) | class ReActDocstoreAgent(Agent): method _get_default_output_parser (line 43) | def _get_default_output_parser(cls, **kwargs: Any) -> AgentOutputParser: method _agent_type (line 47) | def _agent_type(self) -> str: method create_prompt (line 53) | def create_prompt(cls, tools: Sequence[BaseTool]) -> BasePromptTemplate: method _validate_tools (line 58) | def _validate_tools(cls, tools: Sequence[BaseTool]) -> None: method observation_prefix (line 70) | def observation_prefix(self) -> str: method _stop (line 75) | def _stop(self) -> list[str]: method llm_prefix (line 79) | def llm_prefix(self) -> str: class DocstoreExplorer (line 89) | class DocstoreExplorer: method __init__ (line 92) | def __init__(self, docstore: Docstore): method search (line 99) | def search(self, term: str) -> str: method lookup (line 108) | def lookup(self, term: str) -> str: method _summary (line 127) | def _summary(self) -> str: method _paragraphs (line 131) | def _paragraphs(self) -> list[str]: class ReActTextWorldAgent (line 143) | class ReActTextWorldAgent(ReActDocstoreAgent): method create_prompt (line 148) | def create_prompt(cls, tools: Sequence[BaseTool]) -> BasePromptTemplate: method _validate_tools (line 153) | def _validate_tools(cls, tools: Sequence[BaseTool]) -> None: class ReActChain (line 170) | class ReActChain(AgentExecutor): method __init__ (line 173) | def __init__(self, llm: BaseLanguageModel, docstore: Docstore, **kwarg... FILE: libs/langchain/langchain_classic/agents/react/output_parser.py class ReActOutputParser (line 10) | class ReActOutputParser(AgentOutputParser): method parse (line 14) | def parse(self, text: str) -> AgentAction | AgentFinish: method _type (line 33) | def _type(self) -> str: FILE: libs/langchain/langchain_classic/agents/schema.py class AgentScratchPadChatPromptTemplate (line 8) | class AgentScratchPadChatPromptTemplate(ChatPromptTemplate): method is_lc_serializable (line 13) | def is_lc_serializable(cls) -> bool: method _construct_agent_scratchpad (line 16) | def _construct_agent_scratchpad( method _merge_partial_and_user_variables (line 32) | def _merge_partial_and_user_variables(self, **kwargs: Any) -> dict[str... FILE: libs/langchain/langchain_classic/agents/self_ask_with_search/base.py class SelfAskWithSearchAgent (line 32) | class SelfAskWithSearchAgent(Agent): method _get_default_output_parser (line 39) | def _get_default_output_parser(cls, **kwargs: Any) -> AgentOutputParser: method _agent_type (line 43) | def _agent_type(self) -> str: method create_prompt (line 49) | def create_prompt(cls, tools: Sequence[BaseTool]) -> BasePromptTemplate: method _validate_tools (line 54) | def _validate_tools(cls, tools: Sequence[BaseTool]) -> None: method observation_prefix (line 66) | def observation_prefix(self) -> str: method llm_prefix (line 71) | def llm_prefix(self) -> str: class SelfAskWithSearchChain (line 77) | class SelfAskWithSearchChain(AgentExecutor): method __init__ (line 80) | def __init__( function create_self_ask_with_search_agent (line 97) | def create_self_ask_with_search_agent( FILE: libs/langchain/langchain_classic/agents/structured_chat/base.py class StructuredChatAgent (line 39) | class StructuredChatAgent(Agent): method observation_prefix (line 48) | def observation_prefix(self) -> str: method llm_prefix (line 53) | def llm_prefix(self) -> str: method _construct_scratchpad (line 57) | def _construct_scratchpad( method _validate_tools (line 74) | def _validate_tools(cls, tools: Sequence[BaseTool]) -> None: method _get_default_output_parser (line 79) | def _get_default_output_parser( method _stop (line 88) | def _stop(self) -> list[str]: method create_prompt (line 93) | def create_prompt( method from_llm_and_tools (line 122) | def from_llm_and_tools( method _agent_type (line 162) | def _agent_type(self) -> str: function create_structured_chat_agent (line 166) | def create_structured_chat_agent( FILE: libs/langchain/langchain_classic/agents/structured_chat/output_parser.py class StructuredChatOutputParser (line 21) | class StructuredChatOutputParser(AgentOutputParser): method get_format_instructions (line 31) | def get_format_instructions(self) -> str: method parse (line 36) | def parse(self, text: str) -> AgentAction | AgentFinish: method _type (line 58) | def _type(self) -> str: class StructuredChatOutputParserWithRetries (line 62) | class StructuredChatOutputParserWithRetries(AgentOutputParser): method get_format_instructions (line 71) | def get_format_instructions(self) -> str: method parse (line 75) | def parse(self, text: str) -> AgentAction | AgentFinish: method from_llm (line 85) | def from_llm( method _type (line 111) | def _type(self) -> str: FILE: libs/langchain/langchain_classic/agents/tool_calling_agent/base.py function create_tool_calling_agent (line 18) | def create_tool_calling_agent( FILE: libs/langchain/langchain_classic/agents/tools.py class InvalidTool (line 11) | class InvalidTool(BaseTool): method _run (line 20) | def _run( method _arun (line 34) | async def _arun( FILE: libs/langchain/langchain_classic/agents/utils.py function validate_tools_single_input (line 6) | def validate_tools_single_input(class_name: str, tools: Sequence[BaseToo... FILE: libs/langchain/langchain_classic/agents/xml/base.py class XMLAgent (line 23) | class XMLAgent(BaseSingleActionAgent): method input_keys (line 48) | def input_keys(self) -> list[str]: method get_default_prompt (line 52) | def get_default_prompt() -> ChatPromptTemplate: method get_default_output_parser (line 60) | def get_default_output_parser() -> XMLAgentOutputParser: method plan (line 65) | def plan( method aplan (line 90) | async def aplan( function create_xml_agent (line 115) | def create_xml_agent( FILE: libs/langchain/langchain_classic/base_memory.py class BaseMemory (line 27) | class BaseMemory(Serializable, ABC): method memory_variables (line 65) | def memory_variables(self) -> list[str]: method load_memory_variables (line 69) | def load_memory_variables(self, inputs: dict[str, Any]) -> dict[str, A... method aload_memory_variables (line 79) | async def aload_memory_variables(self, inputs: dict[str, Any]) -> dict... method save_context (line 91) | def save_context(self, inputs: dict[str, Any], outputs: dict[str, str]... method asave_context (line 99) | async def asave_context( method clear (line 111) | def clear(self) -> None: method aclear (line 114) | async def aclear(self) -> None: FILE: libs/langchain/langchain_classic/cache.py function __getattr__ (line 50) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/callbacks/__init__.py function __getattr__ (line 93) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/callbacks/aim_callback.py function __getattr__ (line 24) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/callbacks/argilla_callback.py function __getattr__ (line 18) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/callbacks/arize_callback.py function __getattr__ (line 18) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/callbacks/arthur_callback.py function __getattr__ (line 18) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/callbacks/clearml_callback.py function __getattr__ (line 18) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/callbacks/comet_ml_callback.py function __getattr__ (line 18) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/callbacks/confident_callback.py function __getattr__ (line 18) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/callbacks/context_callback.py function __getattr__ (line 18) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/callbacks/flyte_callback.py function __getattr__ (line 18) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/callbacks/human.py function __getattr__ (line 24) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/callbacks/infino_callback.py function __getattr__ (line 18) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/callbacks/labelstudio_callback.py function __getattr__ (line 24) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/callbacks/llmonitor_callback.py function __getattr__ (line 20) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/callbacks/manager.py function __getattr__ (line 54) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/callbacks/mlflow_callback.py function __getattr__ (line 28) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/callbacks/openai_info.py function __getattr__ (line 18) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/callbacks/promptlayer_callback.py function __getattr__ (line 20) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/callbacks/sagemaker_callback.py function __getattr__ (line 20) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/callbacks/streaming_aiter.py class AsyncIteratorCallbackHandler (line 14) | class AsyncIteratorCallbackHandler(AsyncCallbackHandler): method always_verbose (line 22) | def always_verbose(self) -> bool: method __init__ (line 26) | def __init__(self) -> None: method on_llm_start (line 32) | async def on_llm_start( method on_llm_new_token (line 42) | async def on_llm_new_token(self, token: str, **kwargs: Any) -> None: method on_llm_end (line 47) | async def on_llm_end(self, response: LLMResult, **kwargs: Any) -> None: method on_llm_error (line 51) | async def on_llm_error(self, error: BaseException, **kwargs: Any) -> N... method aiter (line 56) | async def aiter(self) -> AsyncIterator[str]: FILE: libs/langchain/langchain_classic/callbacks/streaming_aiter_final_only.py class AsyncFinalIteratorCallbackHandler (line 13) | class AsyncFinalIteratorCallbackHandler(AsyncIteratorCallbackHandler): method append_to_last_tokens (line 19) | def append_to_last_tokens(self, token: str) -> None: method check_if_answer_reached (line 27) | def check_if_answer_reached(self) -> bool: method __init__ (line 33) | def __init__( method on_llm_start (line 68) | async def on_llm_start( method on_llm_end (line 79) | async def on_llm_end(self, response: LLMResult, **kwargs: Any) -> None: method on_llm_new_token (line 84) | async def on_llm_new_token(self, token: str, **kwargs: Any) -> None: FILE: libs/langchain/langchain_classic/callbacks/streaming_stdout_final_only.py class FinalStreamingStdOutCallbackHandler (line 12) | class FinalStreamingStdOutCallbackHandler(StreamingStdOutCallbackHandler): method append_to_last_tokens (line 20) | def append_to_last_tokens(self, token: str) -> None: method check_if_answer_reached (line 28) | def check_if_answer_reached(self) -> bool: method __init__ (line 34) | def __init__( method on_llm_start (line 69) | def on_llm_start( method on_llm_new_token (line 79) | def on_llm_new_token(self, token: str, **kwargs: Any) -> None: FILE: libs/langchain/langchain_classic/callbacks/streamlit/__init__.py function StreamlitCallbackHandler (line 12) | def StreamlitCallbackHandler( # noqa: N802 FILE: libs/langchain/langchain_classic/callbacks/streamlit/mutable_expander.py function __getattr__ (line 24) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/callbacks/streamlit/streamlit_callback_handler.py function __getattr__ (line 38) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/callbacks/tracers/__init__.py function __getattr__ (line 25) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/callbacks/tracers/comet.py function __getattr__ (line 22) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/callbacks/tracers/logging.py class LoggingCallbackHandler (line 13) | class LoggingCallbackHandler(FunctionCallbackHandler): method __init__ (line 18) | def __init__( method on_text (line 41) | def on_text( FILE: libs/langchain/langchain_classic/callbacks/tracers/wandb.py function __getattr__ (line 19) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/callbacks/trubrics_callback.py function __getattr__ (line 18) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/callbacks/utils.py function __getattr__ (line 34) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/callbacks/wandb_callback.py function __getattr__ (line 18) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/callbacks/whylabs_callback.py function __getattr__ (line 18) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/chains/__init__.py function __getattr__ (line 92) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/chains/api/base.py function _extract_scheme_and_domain (line 24) | def _extract_scheme_and_domain(url: str) -> tuple[str, str]: function _check_in_allowed_domain (line 37) | def _check_in_allowed_domain(url: str, limit_to_domains: Sequence[str]) ... class APIChain (line 68) | class APIChain(Chain): method input_keys (line 225) | def input_keys(self) -> list[str]: method output_keys (line 230) | def output_keys(self) -> list[str]: method validate_api_request_prompt (line 235) | def validate_api_request_prompt(self) -> Self: method validate_limit_to_domains (line 246) | def validate_limit_to_domains(cls, values: dict) -> Any: method validate_api_answer_prompt (line 268) | def validate_api_answer_prompt(self) -> Self: method _call (line 277) | def _call( method _acall (line 315) | async def _acall( method from_llm_and_api_docs (line 361) | def from_llm_and_api_docs( method _chain_type (line 385) | def _chain_type(self) -> str: method __init__ (line 393) | def __init__(self, *_: Any, **__: Any) -> None: class APIChain (line 390) | class APIChain: # type: ignore[no-redef] method input_keys (line 225) | def input_keys(self) -> list[str]: method output_keys (line 230) | def output_keys(self) -> list[str]: method validate_api_request_prompt (line 235) | def validate_api_request_prompt(self) -> Self: method validate_limit_to_domains (line 246) | def validate_limit_to_domains(cls, values: dict) -> Any: method validate_api_answer_prompt (line 268) | def validate_api_answer_prompt(self) -> Self: method _call (line 277) | def _call( method _acall (line 315) | async def _acall( method from_llm_and_api_docs (line 361) | def from_llm_and_api_docs( method _chain_type (line 385) | def _chain_type(self) -> str: method __init__ (line 393) | def __init__(self, *_: Any, **__: Any) -> None: FILE: libs/langchain/langchain_classic/chains/api/openapi/chain.py function __getattr__ (line 18) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/chains/api/openapi/prompts.py function __getattr__ (line 22) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/chains/api/openapi/requests_chain.py function __getattr__ (line 24) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/chains/api/openapi/response_chain.py function __getattr__ (line 24) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/chains/base.py function _get_verbosity (line 46) | def _get_verbosity() -> bool: class Chain (line 52) | class Chain(RunnableSerializable[dict[str, Any], dict[str, Any]], ABC): method get_input_schema (line 112) | def get_input_schema( method get_output_schema (line 120) | def get_output_schema( method invoke (line 131) | def invoke( method ainvoke (line 187) | async def ainvoke( method _chain_type (line 241) | def _chain_type(self) -> str: method raise_callback_manager_deprecation (line 247) | def raise_callback_manager_deprecation(cls, values: dict) -> Any: method set_verbose (line 267) | def set_verbose( method input_keys (line 281) | def input_keys(self) -> list[str]: method output_keys (line 286) | def output_keys(self) -> list[str]: method _validate_inputs (line 289) | def _validate_inputs(self, inputs: Any) -> None: method _validate_outputs (line 311) | def _validate_outputs(self, outputs: dict[str, Any]) -> None: method _call (line 318) | def _call( method _acall (line 340) | async def _acall( method __call__ (line 369) | def __call__( method acall (line 421) | async def acall( method prep_outputs (line 471) | def prep_outputs( method aprep_outputs (line 496) | async def aprep_outputs( method prep_inputs (line 521) | def prep_inputs(self, inputs: dict[str, Any] | Any) -> dict[str, str]: method aprep_inputs (line 545) | async def aprep_inputs(self, inputs: dict[str, Any] | Any) -> dict[str... method _run_output_key (line 570) | def _run_output_key(self) -> str: method run (line 580) | def run( method arun (line 654) | async def arun( method dict (line 735) | def dict(self, **kwargs: Any) -> dict: method save (line 759) | def save(self, file_path: Path | str) -> None: method apply (line 800) | def apply( FILE: libs/langchain/langchain_classic/chains/combine_documents/base.py function _validate_prompt (line 26) | def _validate_prompt(prompt: BasePromptTemplate, document_variable_name:... class BaseCombineDocumentsChain (line 35) | class BaseCombineDocumentsChain(Chain, ABC): method get_input_schema (line 51) | def get_input_schema( method get_output_schema (line 61) | def get_output_schema( method input_keys (line 71) | def input_keys(self) -> list[str]: method output_keys (line 76) | def output_keys(self) -> list[str]: method prompt_length (line 80) | def prompt_length(self, docs: list[Document], **kwargs: Any) -> int | ... method combine_docs (line 100) | def combine_docs(self, docs: list[Document], **kwargs: Any) -> tuple[s... method acombine_docs (line 114) | async def acombine_docs( method _call (line 131) | def _call( method _acall (line 149) | async def _acall( class AnalyzeDocumentChain (line 176) | class AnalyzeDocumentChain(Chain): method input_keys (line 236) | def input_keys(self) -> list[str]: method output_keys (line 241) | def output_keys(self) -> list[str]: method get_input_schema (line 246) | def get_input_schema( method get_output_schema (line 256) | def get_output_schema( method _call (line 262) | def _call( FILE: libs/langchain/langchain_classic/chains/combine_documents/map_reduce.py class MapReduceDocumentsChain (line 29) | class MapReduceDocumentsChain(BaseCombineDocumentsChain): method get_output_schema (line 111) | def get_output_schema( method output_keys (line 127) | def output_keys(self) -> list[str]: method get_reduce_chain (line 141) | def get_reduce_chain(cls, values: dict) -> Any: method get_return_intermediate_steps (line 165) | def get_return_intermediate_steps(cls, values: dict) -> Any: method get_default_document_variable_name (line 174) | def get_default_document_variable_name(cls, values: dict) -> Any: method collapse_document_chain (line 199) | def collapse_document_chain(self) -> BaseCombineDocumentsChain: method combine_document_chain (line 213) | def combine_document_chain(self) -> BaseCombineDocumentsChain: method combine_docs (line 224) | def combine_docs( method acombine_docs (line 258) | async def acombine_docs( method _chain_type (line 293) | def _chain_type(self) -> str: FILE: libs/langchain/langchain_classic/chains/combine_documents/map_rerank.py class MapRerankDocumentsChain (line 30) | class MapRerankDocumentsChain(BaseCombineDocumentsChain): method get_output_schema (line 95) | def get_output_schema( method output_keys (line 110) | def output_keys(self) -> list[str]: method validate_llm_output (line 120) | def validate_llm_output(self) -> Self: method get_default_document_variable_name (line 146) | def get_default_document_variable_name(cls, values: dict) -> Any: method combine_docs (line 170) | def combine_docs( method acombine_docs (line 197) | async def acombine_docs( method _process_results (line 224) | def _process_results( method _chain_type (line 244) | def _chain_type(self) -> str: FILE: libs/langchain/langchain_classic/chains/combine_documents/reduce.py class CombineDocsProtocol (line 16) | class CombineDocsProtocol(Protocol): method __call__ (line 19) | def __call__(self, docs: list[Document], **kwargs: Any) -> str: class AsyncCombineDocsProtocol (line 23) | class AsyncCombineDocsProtocol(Protocol): method __call__ (line 26) | async def __call__(self, docs: list[Document], **kwargs: Any) -> str: function split_list_of_docs (line 30) | def split_list_of_docs( function collapse_docs (line 67) | def collapse_docs( function acollapse_docs (line 99) | async def acollapse_docs( class ReduceDocumentsChain (line 140) | class ReduceDocumentsChain(BaseCombineDocumentsChain): method _collapse_chain (line 236) | def _collapse_chain(self) -> BaseCombineDocumentsChain: method combine_docs (line 241) | def combine_docs( method acombine_docs (line 275) | async def acombine_docs( method _collapse (line 309) | def _collapse( method _acollapse (line 348) | async def _acollapse( method _chain_type (line 388) | def _chain_type(self) -> str: FILE: libs/langchain/langchain_classic/chains/combine_documents/refine.py function _get_default_document_prompt (line 20) | def _get_default_document_prompt() -> PromptTemplate: class RefineDocumentsChain (line 33) | class RefineDocumentsChain(BaseCombineDocumentsChain): method output_keys (line 98) | def output_keys(self) -> list[str]: method get_return_intermediate_steps (line 112) | def get_return_intermediate_steps(cls, values: dict) -> Any: method get_default_document_variable_name (line 121) | def get_default_document_variable_name(cls, values: dict) -> Any: method combine_docs (line 145) | def combine_docs( method acombine_docs (line 173) | async def acombine_docs( method _construct_result (line 201) | def _construct_result(self, refine_steps: list[str], res: str) -> tupl... method _construct_refine_inputs (line 208) | def _construct_refine_inputs(self, doc: Document, res: str) -> dict[st... method _construct_initial_inputs (line 214) | def _construct_initial_inputs( method _chain_type (line 228) | def _chain_type(self) -> str: FILE: libs/langchain/langchain_classic/chains/combine_documents/stuff.py function create_stuff_documents_chain (line 25) | def create_stuff_documents_chain( class StuffDocumentsChain (line 113) | class StuffDocumentsChain(BaseCombineDocumentsChain): method get_default_document_variable_name (line 168) | def get_default_document_variable_name(cls, values: dict) -> Any: method input_keys (line 195) | def input_keys(self) -> list[str]: method _get_inputs (line 201) | def _get_inputs(self, docs: list[Document], **kwargs: Any) -> dict: method prompt_length (line 227) | def prompt_length(self, docs: list[Document], **kwargs: Any) -> int | ... method combine_docs (line 247) | def combine_docs( method acombine_docs (line 268) | async def acombine_docs( method _chain_type (line 290) | def _chain_type(self) -> str: FILE: libs/langchain/langchain_classic/chains/constitutional_ai/base.py class ConstitutionalChain (line 29) | class ConstitutionalChain(Chain): method get_principles (line 204) | def get_principles( method from_llm (line 219) | def from_llm( method input_keys (line 238) | def input_keys(self) -> list[str]: method output_keys (line 243) | def output_keys(self) -> list[str]: method _call (line 249) | def _call( method _parse_critique (line 326) | def _parse_critique(output_string: str) -> str: FILE: libs/langchain/langchain_classic/chains/constitutional_ai/models.py class ConstitutionalPrinciple (line 6) | class ConstitutionalPrinciple(BaseModel): FILE: libs/langchain/langchain_classic/chains/conversation/base.py class ConversationChain (line 19) | class ConversationChain(LLMChain): method is_lc_serializable (line 121) | def is_lc_serializable(cls) -> bool: method input_keys (line 125) | def input_keys(self) -> list[str]: method validate_prompt_input_variables (line 130) | def validate_prompt_input_variables(self) -> Self: FILE: libs/langchain/langchain_classic/chains/conversation/memory.py function __getattr__ (line 29) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/chains/conversational_retrieval/base.py function _get_chat_history (line 45) | def _get_chat_history(chat_history: list[CHAT_TURN_TYPE]) -> str: class InputType (line 68) | class InputType(BaseModel): class BaseConversationalRetrievalChain (line 77) | class BaseConversationalRetrievalChain(Chain): method input_keys (line 112) | def input_keys(self) -> list[str]: method get_input_schema (line 117) | def get_input_schema( method output_keys (line 124) | def output_keys(self) -> list[str]: method _get_docs (line 134) | def _get_docs( method _call (line 143) | def _call( method _aget_docs (line 191) | async def _aget_docs( method _acall (line 200) | async def _acall( method save (line 248) | def save(self, file_path: Path | str) -> None: class ConversationalRetrievalChain (line 263) | class ConversationalRetrievalChain(BaseConversationalRetrievalChain): method _reduce_tokens_below_limit (line 389) | def _reduce_tokens_below_limit(self, docs: list[Document]) -> list[Doc... method _get_docs (line 408) | def _get_docs( method _aget_docs (line 423) | async def _aget_docs( method from_llm (line 438) | def from_llm( class ChatVectorDBChain (line 498) | class ChatVectorDBChain(BaseConversationalRetrievalChain): method _chain_type (line 506) | def _chain_type(self) -> str: method _raise_deprecation (line 511) | def _raise_deprecation(cls, values: dict) -> Any: method _get_docs (line 521) | def _get_docs( method _aget_docs (line 537) | async def _aget_docs( method from_llm (line 549) | def from_llm( FILE: libs/langchain/langchain_classic/chains/elasticsearch_database/base.py class ElasticsearchDatabaseChain (line 28) | class ElasticsearchDatabaseChain(Chain): method _validate_indices (line 64) | def _validate_indices(self) -> Self: method input_keys (line 71) | def input_keys(self) -> list[str]: method output_keys (line 76) | def output_keys(self) -> list[str]: method _list_indices (line 82) | def _list_indices(self) -> list[str]: method _get_indices_infos (line 94) | def _get_indices_infos(self, indices: list[str]) -> str: method _search (line 112) | def _search(self, indices: list[str], query: str) -> str: method _call (line 116) | def _call( method _chain_type (line 173) | def _chain_type(self) -> str: method from_llm (line 177) | def from_llm( FILE: libs/langchain/langchain_classic/chains/ernie_functions/__init__.py function __getattr__ (line 32) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/chains/ernie_functions/base.py function __getattr__ (line 36) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/chains/example_generator.py function generate_example (line 9) | def generate_example( FILE: libs/langchain/langchain_classic/chains/flare/base.py function _extract_tokens_and_log_probs (line 31) | def _extract_tokens_and_log_probs(response: AIMessage) -> tuple[list[str... class QuestionGeneratorChain (line 41) | class QuestionGeneratorChain(LLMChain): method is_lc_serializable (line 49) | def is_lc_serializable(cls) -> bool: method input_keys (line 53) | def input_keys(self) -> list[str]: function _low_confidence_spans (line 58) | def _low_confidence_spans( class FlareChain (line 97) | class FlareChain(Chain): method input_keys (line 126) | def input_keys(self) -> list[str]: method output_keys (line 131) | def output_keys(self) -> list[str]: method _do_generation (line 135) | def _do_generation( method _do_retrieval (line 160) | def _do_retrieval( method _call (line 198) | def _call( method from_llm (line 250) | def from_llm( FILE: libs/langchain/langchain_classic/chains/flare/prompts.py class FinishedOutputParser (line 6) | class FinishedOutputParser(BaseOutputParser[tuple[str, bool]]): method parse (line 13) | def parse(self, text: str) -> tuple[str, bool]: FILE: libs/langchain/langchain_classic/chains/graph_qa/arangodb.py function __getattr__ (line 18) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/chains/graph_qa/base.py function __getattr__ (line 18) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/chains/graph_qa/cypher.py function __getattr__ (line 28) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/chains/graph_qa/cypher_utils.py function __getattr__ (line 22) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/chains/graph_qa/falkordb.py function __getattr__ (line 24) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/chains/graph_qa/gremlin.py function __getattr__ (line 26) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/chains/graph_qa/hugegraph.py function __getattr__ (line 18) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/chains/graph_qa/kuzu.py function __getattr__ (line 24) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/chains/graph_qa/nebulagraph.py function __getattr__ (line 18) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/chains/graph_qa/neptune_cypher.py function __getattr__ (line 28) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/chains/graph_qa/neptune_sparql.py function __getattr__ (line 26) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/chains/graph_qa/ontotext_graphdb.py function __getattr__ (line 20) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/chains/graph_qa/prompts.py function __getattr__ (line 68) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/chains/graph_qa/sparql.py function __getattr__ (line 18) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/chains/history_aware_retriever.py function create_history_aware_retriever (line 10) | def create_history_aware_retriever( FILE: libs/langchain/langchain_classic/chains/hyde/base.py class HypotheticalDocumentEmbedder (line 26) | class HypotheticalDocumentEmbedder(Chain, Embeddings): method input_keys (line 41) | def input_keys(self) -> list[str]: method output_keys (line 46) | def output_keys(self) -> list[str]: method embed_documents (line 52) | def embed_documents(self, texts: list[str]) -> list[list[float]]: method combine_embeddings (line 56) | def combine_embeddings(self, embeddings: list[list[float]]) -> list[fl... method embed_query (line 78) | def embed_query(self, text: str) -> list[float]: method _call (line 89) | def _call( method from_llm (line 102) | def from_llm( method _chain_type (line 126) | def _chain_type(self) -> str: FILE: libs/langchain/langchain_classic/chains/llm.py class LLMChain (line 45) | class LLMChain(Chain): method is_lc_serializable (line 78) | def is_lc_serializable(cls) -> bool: method input_keys (line 101) | def input_keys(self) -> list[str]: method output_keys (line 106) | def output_keys(self) -> list[str]: method _call (line 112) | def _call( method generate (line 120) | def generate( method agenerate (line 147) | async def agenerate( method prep_prompts (line 174) | def prep_prompts( method aprep_prompts (line 199) | async def aprep_prompts( method apply (line 224) | def apply( method aapply (line 249) | async def aapply( method _run_output_key (line 275) | def _run_output_key(self) -> str: method create_outputs (line 278) | def create_outputs(self, llm_result: LLMResult) -> list[dict[str, Any]]: method _acall (line 292) | async def _acall( method predict (line 300) | def predict(self, callbacks: Callbacks = None, **kwargs: Any) -> str: method apredict (line 317) | async def apredict(self, callbacks: Callbacks = None, **kwargs: Any) -... method predict_and_parse (line 334) | def predict_and_parse( method apredict_and_parse (line 350) | async def apredict_and_parse( method apply_and_parse (line 366) | def apply_and_parse( method _parse_generation (line 380) | def _parse_generation( method aapply_and_parse (line 391) | async def aapply_and_parse( method _chain_type (line 406) | def _chain_type(self) -> str: method from_string (line 410) | def from_string(cls, llm: BaseLanguageModel, template: str) -> LLMChain: method _get_num_tokens (line 415) | def _get_num_tokens(self, text: str) -> int: function _get_language_model (line 419) | def _get_language_model(llm_like: Runnable) -> BaseLanguageModel: FILE: libs/langchain/langchain_classic/chains/llm_bash/__init__.py function __getattr__ (line 1) | def __getattr__(_: str = "") -> None: FILE: libs/langchain/langchain_classic/chains/llm_checker/base.py function _load_question_to_checked_assertions_chain (line 25) | def _load_question_to_checked_assertions_chain( class LLMCheckerChain (line 75) | class LLMCheckerChain(Chain): method _raise_deprecation (line 110) | def _raise_deprecation(cls, values: dict) -> Any: method input_keys (line 140) | def input_keys(self) -> list[str]: method output_keys (line 145) | def output_keys(self) -> list[str]: method _call (line 149) | def _call( method _chain_type (line 164) | def _chain_type(self) -> str: method from_llm (line 168) | def from_llm( FILE: libs/langchain/langchain_classic/chains/llm_math/base.py class LLMMathChain (line 33) | class LLMMathChain(Chain): method _raise_deprecation (line 169) | def _raise_deprecation(cls, values: dict) -> Any: method input_keys (line 191) | def input_keys(self) -> list[str]: method output_keys (line 196) | def output_keys(self) -> list[str]: method _evaluate_expression (line 200) | def _evaluate_expression(self, expression: str) -> str: method _process_llm_result (line 222) | def _process_llm_result( method _aprocess_llm_result (line 245) | async def _aprocess_llm_result( method _call (line 268) | def _call( method _acall (line 282) | async def _acall( method _chain_type (line 297) | def _chain_type(self) -> str: method from_llm (line 301) | def from_llm( FILE: libs/langchain/langchain_classic/chains/llm_requests.py function __getattr__ (line 18) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/chains/llm_summarization_checker/base.py function _load_sequential_chain (line 29) | def _load_sequential_chain( class LLMSummarizationCheckerChain (line 80) | class LLMSummarizationCheckerChain(Chain): method _raise_deprecation (line 118) | def _raise_deprecation(cls, values: dict) -> Any: method input_keys (line 138) | def input_keys(self) -> list[str]: method output_keys (line 143) | def output_keys(self) -> list[str]: method _call (line 147) | def _call( method _chain_type (line 180) | def _chain_type(self) -> str: method from_llm (line 184) | def from_llm( FILE: libs/langchain/langchain_classic/chains/llm_symbolic_math/__init__.py function __getattr__ (line 1) | def __getattr__(_: str = "") -> None: FILE: libs/langchain/langchain_classic/chains/loading.py function load_llm (line 50) | def load_llm(*_: Any, **__: Any) -> None: function load_llm_from_config (line 59) | def load_llm_from_config(*_: Any, **__: Any) -> None: function _load_llm_chain (line 72) | def _load_llm_chain(config: dict, **kwargs: Any) -> LLMChain: function _load_hyde_chain (line 96) | def _load_hyde_chain(config: dict, **kwargs: Any) -> HypotheticalDocumen... function _load_stuff_documents_chain (line 118) | def _load_stuff_documents_chain(config: dict, **kwargs: Any) -> StuffDoc... function _load_map_reduce_documents_chain (line 148) | def _load_map_reduce_documents_chain( function _load_reduce_documents_chain (line 185) | def _load_reduce_documents_chain(config: dict, **kwargs: Any) -> ReduceD... function _load_llm_bash_chain (line 254) | def _load_llm_bash_chain(config: dict, **kwargs: Any) -> Any: function _load_llm_checker_chain (line 265) | def _load_llm_checker_chain(config: dict, **kwargs: Any) -> LLMCheckerCh... function _load_llm_math_chain (line 312) | def _load_llm_math_chain(config: dict, **kwargs: Any) -> LLMMathChain: function _load_map_rerank_documents_chain (line 340) | def _load_map_rerank_documents_chain( function _load_pal_chain (line 355) | def _load_pal_chain(config: dict, **kwargs: Any) -> Any: function _load_refine_documents_chain (line 365) | def _load_refine_documents_chain(config: dict, **kwargs: Any) -> RefineD... function _load_qa_with_sources_chain (line 395) | def _load_qa_with_sources_chain(config: dict, **kwargs: Any) -> QAWithSo... function _load_sql_database_chain (line 416) | def _load_sql_database_chain(config: dict, **kwargs: Any) -> Any: function _load_vector_db_qa_with_sources_chain (line 429) | def _load_vector_db_qa_with_sources_chain( function _load_retrieval_qa (line 462) | def _load_retrieval_qa(config: dict, **kwargs: Any) -> RetrievalQA: function _load_retrieval_qa_with_sources_chain (line 492) | def _load_retrieval_qa_with_sources_chain( function _load_vector_db_qa (line 525) | def _load_vector_db_qa(config: dict, **kwargs: Any) -> VectorDBQA: function _load_graph_cypher_chain (line 555) | def _load_graph_cypher_chain(config: dict, **kwargs: Any) -> GraphCypher... function _load_api_chain (line 594) | def _load_api_chain(config: dict, **kwargs: Any) -> APIChain: function _load_llm_requests_chain (line 624) | def _load_llm_requests_chain(config: dict, **kwargs: Any) -> LLMRequests... function load_chain_from_config (line 685) | def load_chain_from_config(config: dict, **kwargs: Any) -> Chain: function load_chain (line 708) | def load_chain(path: str | Path, **kwargs: Any) -> Chain: function _load_chain_from_file (line 720) | def _load_chain_from_file(file: str | Path, **kwargs: Any) -> Chain: FILE: libs/langchain/langchain_classic/chains/mapreduce.py class MapReduceChain (line 39) | class MapReduceChain(Chain): method from_params (line 50) | def from_params( method input_keys (line 89) | def input_keys(self) -> list[str]: method output_keys (line 94) | def output_keys(self) -> list[str]: method _call (line 98) | def _call( FILE: libs/langchain/langchain_classic/chains/moderation.py class OpenAIModerationChain (line 16) | class OpenAIModerationChain(Chain): method validate_environment (line 47) | def validate_environment(cls, values: dict) -> Any: method input_keys (line 86) | def input_keys(self) -> list[str]: method output_keys (line 91) | def output_keys(self) -> list[str]: method _moderate (line 95) | def _moderate(self, text: str, results: Any) -> str: method _call (line 105) | def _call( method _acall (line 119) | async def _acall( FILE: libs/langchain/langchain_classic/chains/natbot/base.py class NatBotChain (line 29) | class NatBotChain(Chain): method _raise_deprecation (line 70) | def _raise_deprecation(cls, values: dict) -> Any: method from_default (line 83) | def from_default(cls, objective: str, **kwargs: Any) -> NatBotChain: method from_llm (line 93) | def from_llm( method input_keys (line 104) | def input_keys(self) -> list[str]: method output_keys (line 109) | def output_keys(self) -> list[str]: method _call (line 113) | def _call( method execute (line 134) | def execute(self, url: str, browser_content: str) -> str: method _chain_type (line 157) | def _chain_type(self) -> str: FILE: libs/langchain/langchain_classic/chains/natbot/crawler.py class ElementInViewPort (line 31) | class ElementInViewPort(TypedDict): class Crawler (line 46) | class Crawler: method __init__ (line 64) | def __init__(self) -> None: method go_to_page (line 82) | def go_to_page(self, url: str) -> None: method scroll (line 93) | def scroll(self, direction: str) -> None: method click (line 112) | def click(self, id_: str | int) -> None: method type (line 136) | def type(self, id_: str | int, text: str) -> None: method enter (line 146) | def enter(self) -> None: method crawl (line 150) | def crawl(self) -> list[str]: FILE: libs/langchain/langchain_classic/chains/openai_functions/base.py function create_openai_fn_chain (line 42) | def create_openai_fn_chain( function create_structured_output_chain (line 149) | def create_structured_output_chain( FILE: libs/langchain/langchain_classic/chains/openai_functions/citation_fuzzy_match.py class FactWithEvidence (line 15) | class FactWithEvidence(BaseModel): method _get_span (line 32) | def _get_span(self, quote: str, context: str, errs: int = 100) -> Iter... method get_spans (line 47) | def get_spans(self, context: str) -> Iterator[str]: class QuestionAnswer (line 60) | class QuestionAnswer(BaseModel): function create_citation_fuzzy_match_runnable (line 77) | def create_citation_fuzzy_match_runnable(llm: BaseChatModel) -> Runnable: function create_citation_fuzzy_match_chain (line 128) | def create_citation_fuzzy_match_chain(llm: BaseLanguageModel) -> LLMChain: FILE: libs/langchain/langchain_classic/chains/openai_functions/extraction.py function _get_extraction_function (line 21) | def _get_extraction_function(entity_schema: dict) -> dict: function create_extraction_chain (line 76) | def create_extraction_chain( function create_extraction_chain_pydantic (line 145) | def create_extraction_chain_pydantic( FILE: libs/langchain/langchain_classic/chains/openai_functions/openapi.py function _format_url (line 31) | def _format_url(url: str, path_params: dict) -> str: function _openapi_params_to_json_schema (line 69) | def _openapi_params_to_json_schema(params: list[Parameter], spec: OpenAP... function openapi_spec_to_openai_fn (line 86) | def openapi_spec_to_openai_fn( class SimpleRequestChain (line 201) | class SimpleRequestChain(Chain): method input_keys (line 213) | def input_keys(self) -> list[str]: method output_keys (line 218) | def output_keys(self) -> list[str]: method _call (line 221) | def _call( function get_openapi_chain (line 261) | def get_openapi_chain( FILE: libs/langchain/langchain_classic/chains/openai_functions/qa_with_structure.py class AnswerWithSources (line 20) | class AnswerWithSources(BaseModel): function create_qa_with_structure_chain (line 39) | def create_qa_with_structure_chain( function create_qa_with_sources_chain (line 122) | def create_qa_with_sources_chain( FILE: libs/langchain/langchain_classic/chains/openai_functions/tagging.py function _get_tagging_function (line 19) | def _get_tagging_function(schema: dict) -> dict: function create_tagging_chain (line 51) | def create_tagging_chain( function create_tagging_chain_pydantic (line 127) | def create_tagging_chain_pydantic( FILE: libs/langchain/langchain_classic/chains/openai_functions/utils.py function _resolve_schema_references (line 4) | def _resolve_schema_references(schema: Any, definitions: dict[str, Any])... function _convert_schema (line 20) | def _convert_schema(schema: dict) -> dict: function get_llm_kwargs (line 29) | def get_llm_kwargs(function: dict) -> dict: FILE: libs/langchain/langchain_classic/chains/openai_tools/extraction.py function create_extraction_chain_pydantic (line 53) | def create_extraction_chain_pydantic( FILE: libs/langchain/langchain_classic/chains/prompt_selector.py class BasePromptSelector (line 11) | class BasePromptSelector(BaseModel, ABC): method get_prompt (line 15) | def get_prompt(self, llm: BaseLanguageModel) -> BasePromptTemplate: class ConditionalPromptSelector (line 19) | class ConditionalPromptSelector(BasePromptSelector): method get_prompt (line 29) | def get_prompt(self, llm: BaseLanguageModel) -> BasePromptTemplate: function is_llm (line 44) | def is_llm(llm: BaseLanguageModel) -> bool: function is_chat_model (line 56) | def is_chat_model(llm: BaseLanguageModel) -> bool: FILE: libs/langchain/langchain_classic/chains/qa_generation/base.py class QAGenerationChain (line 27) | class QAGenerationChain(Chain): method from_llm (line 82) | def from_llm( method _chain_type (line 103) | def _chain_type(self) -> str: method input_keys (line 108) | def input_keys(self) -> list[str]: method output_keys (line 113) | def output_keys(self) -> list[str]: method _call (line 116) | def _call( FILE: libs/langchain/langchain_classic/chains/qa_with_sources/base.py class BaseQAWithSourcesChain (line 46) | class BaseQAWithSourcesChain(Chain, ABC): method from_llm (line 59) | def from_llm( method from_chain_type (line 89) | def from_chain_type( method input_keys (line 111) | def input_keys(self) -> list[str]: method output_keys (line 116) | def output_keys(self) -> list[str]: method validate_naming (line 125) | def validate_naming(cls, values: dict) -> Any: method _split_sources (line 131) | def _split_sources(self, answer: str) -> tuple[str, str]: method _get_docs (line 145) | def _get_docs( method _call (line 153) | def _call( method _aget_docs (line 182) | async def _aget_docs( method _acall (line 190) | async def _acall( class QAWithSourcesChain (line 227) | class QAWithSourcesChain(BaseQAWithSourcesChain): method input_keys (line 233) | def input_keys(self) -> list[str]: method _get_docs (line 238) | def _get_docs( method _aget_docs (line 248) | async def _aget_docs( method _chain_type (line 258) | def _chain_type(self) -> str: FILE: libs/langchain/langchain_classic/chains/qa_with_sources/loading.py class LoadingCallable (line 33) | class LoadingCallable(Protocol): method __call__ (line 36) | def __call__( function _load_map_rerank_chain (line 44) | def _load_map_rerank_chain( function _load_stuff_chain (line 64) | def _load_stuff_chain( function _load_map_reduce_chain (line 83) | def _load_map_reduce_chain( function _load_refine_chain (line 141) | def _load_refine_chain( function load_qa_with_sources_chain (line 182) | def load_qa_with_sources_chain( FILE: libs/langchain/langchain_classic/chains/qa_with_sources/retrieval.py class RetrievalQAWithSourcesChain (line 17) | class RetrievalQAWithSourcesChain(BaseQAWithSourcesChain): method _reduce_tokens_below_limit (line 28) | def _reduce_tokens_below_limit(self, docs: list[Document]) -> list[Doc... method _get_docs (line 46) | def _get_docs( method _aget_docs (line 59) | async def _aget_docs( method _chain_type (line 73) | def _chain_type(self) -> str: FILE: libs/langchain/langchain_classic/chains/qa_with_sources/vector_db.py class VectorDBQAWithSourcesChain (line 19) | class VectorDBQAWithSourcesChain(BaseQAWithSourcesChain): method _reduce_tokens_below_limit (line 34) | def _reduce_tokens_below_limit(self, docs: list[Document]) -> list[Doc... method _get_docs (line 53) | def _get_docs( method _aget_docs (line 67) | async def _aget_docs( method _raise_deprecation (line 78) | def _raise_deprecation(cls, values: dict) -> Any: method _chain_type (line 88) | def _chain_type(self) -> str: FILE: libs/langchain/langchain_classic/chains/query_constructor/base.py class StructuredQueryOutputParser (line 44) | class StructuredQueryOutputParser(BaseOutputParser[StructuredQuery]): method parse (line 51) | def parse(self, text: str) -> StructuredQuery: method from_components (line 72) | def from_components( function fix_filter_directive (line 114) | def fix_filter_directive( function _format_attribute_info (line 170) | def _format_attribute_info(info: Sequence[AttributeInfo | dict]) -> str: function construct_examples (line 178) | def construct_examples(input_output_pairs: Sequence[tuple[str, dict]]) -... function get_query_constructor_prompt (line 201) | def get_query_constructor_prompt( function load_query_constructor_chain (line 273) | def load_query_constructor_chain( function load_query_constructor_runnable (line 326) | def load_query_constructor_runnable( FILE: libs/langchain/langchain_classic/chains/query_constructor/parser.py function v_args (line 16) | def v_args(*_: Any, **__: Any) -> Any: # type: ignore[misc] class ISO8601Date (line 63) | class ISO8601Date(TypedDict): class ISO8601DateTime (line 70) | class ISO8601DateTime(TypedDict): class QueryTransformer (line 78) | class QueryTransformer(Transformer): method __init__ (line 81) | def __init__( method program (line 103) | def program(self, *items: Any) -> tuple: method func_call (line 107) | def func_call(self, func_name: Any, args: list) -> FilterDirective: method _match_func_name (line 134) | def _match_func_name(self, func_name: str) -> Operator | Comparator: method args (line 163) | def args(self, *items: Any) -> tuple: method false (line 171) | def false(self) -> bool: method true (line 175) | def true(self) -> bool: method list (line 179) | def list(self, item: Any) -> list: method int (line 189) | def int(self, item: Any) -> int: method float (line 197) | def float(self, item: Any) -> float: method date (line 205) | def date(self, item: Any) -> ISO8601Date: method datetime (line 225) | def datetime(self, item: Any) -> ISO8601DateTime: method string (line 246) | def string(self, item: Any) -> str: function get_parser (line 257) | def get_parser( FILE: libs/langchain/langchain_classic/chains/query_constructor/schema.py class AttributeInfo (line 4) | class AttributeInfo(BaseModel): FILE: libs/langchain/langchain_classic/chains/question_answering/chain.py class LoadingCallable (line 32) | class LoadingCallable(Protocol): method __call__ (line 35) | def __call__( function _load_map_rerank_chain (line 43) | def _load_map_rerank_chain( function _load_stuff_chain (line 73) | def _load_stuff_chain( function _load_map_reduce_chain (line 102) | def _load_map_reduce_chain( function _load_refine_chain (line 186) | def _load_refine_chain( function load_qa_chain (line 246) | def load_qa_chain( FILE: libs/langchain/langchain_classic/chains/retrieval.py function create_retrieval_chain (line 12) | def create_retrieval_chain( FILE: libs/langchain/langchain_classic/chains/retrieval_qa/base.py class BaseRetrievalQA (line 40) | class BaseRetrievalQA(Chain): method input_keys (line 57) | def input_keys(self) -> list[str]: method output_keys (line 62) | def output_keys(self) -> list[str]: method from_llm (line 70) | def from_llm( method from_chain_type (line 104) | def from_chain_type( method _get_docs (line 121) | def _get_docs( method _call (line 129) | def _call( method _aget_docs (line 165) | async def _aget_docs( method _acall (line 173) | async def _acall( class RetrievalQA (line 218) | class RetrievalQA(BaseRetrievalQA): method _get_docs (line 268) | def _get_docs( method _aget_docs (line 280) | async def _aget_docs( method _chain_type (line 293) | def _chain_type(self) -> str: class VectorDBQA (line 307) | class VectorDBQA(BaseRetrievalQA): method validate_search_type (line 321) | def validate_search_type(cls, values: dict) -> Any: method _get_docs (line 331) | def _get_docs( method _aget_docs (line 355) | async def _aget_docs( method _chain_type (line 366) | def _chain_type(self) -> str: FILE: libs/langchain/langchain_classic/chains/router/base.py class Route (line 20) | class Route(NamedTuple): class RouterChain (line 27) | class RouterChain(Chain, ABC): method output_keys (line 32) | def output_keys(self) -> list[str]: method route (line 35) | def route(self, inputs: dict[str, Any], callbacks: Callbacks = None) -... method aroute (line 48) | async def aroute( class MultiRouteChain (line 66) | class MultiRouteChain(Chain): method input_keys (line 84) | def input_keys(self) -> list[str]: method output_keys (line 89) | def output_keys(self) -> list[str]: method _call (line 93) | def _call( method _acall (line 118) | async def _acall( FILE: libs/langchain/langchain_classic/chains/router/embedding_router.py class EmbeddingRouterChain (line 19) | class EmbeddingRouterChain(RouterChain): method input_keys (line 31) | def input_keys(self) -> list[str]: method _call (line 36) | def _call( method _acall (line 46) | async def _acall( method from_names_and_descriptions (line 56) | def from_names_and_descriptions( method afrom_names_and_descriptions (line 76) | async def afrom_names_and_descriptions( FILE: libs/langchain/langchain_classic/chains/router/llm_router.py class LLMRouterChain (line 33) | class LLMRouterChain(RouterChain): method _validate_prompt (line 107) | def _validate_prompt(self) -> Self: method input_keys (line 120) | def input_keys(self) -> list[str]: method _validate_outputs (line 124) | def _validate_outputs(self, outputs: dict[str, Any]) -> None: method _call (line 129) | def _call( method _acall (line 143) | async def _acall( method from_llm (line 156) | def from_llm( class RouterOutputParser (line 167) | class RouterOutputParser(BaseOutputParser[dict[str, str]]): method parse (line 175) | def parse(self, text: str) -> dict[str, Any]: FILE: libs/langchain/langchain_classic/chains/router/multi_prompt.py class MultiPromptChain (line 33) | class MultiPromptChain(MultiRouteChain): method output_keys (line 154) | def output_keys(self) -> list[str]: method from_prompts (line 158) | def from_prompts( FILE: libs/langchain/langchain_classic/chains/router/multi_retrieval_qa.py class MultiRetrievalQAChain (line 27) | class MultiRetrievalQAChain(MultiRouteChain): method output_keys (line 43) | def output_keys(self) -> list[str]: method from_retrievers (line 47) | def from_retrievers( FILE: libs/langchain/langchain_classic/chains/sequential.py class SequentialChain (line 16) | class SequentialChain(Chain): method input_keys (line 30) | def input_keys(self) -> list[str]: method output_keys (line 35) | def output_keys(self) -> list[str]: method validate_chains (line 41) | def validate_chains(cls, values: dict) -> Any: method _call (line 92) | def _call( method _acall (line 105) | async def _acall( class SimpleSequentialChain (line 123) | class SimpleSequentialChain(Chain): method input_keys (line 137) | def input_keys(self) -> list[str]: method output_keys (line 142) | def output_keys(self) -> list[str]: method validate_chains (line 147) | def validate_chains(self) -> Self: method _call (line 164) | def _call( method _acall (line 187) | async def _acall( FILE: libs/langchain/langchain_classic/chains/sql_database/query.py function _strip (line 16) | def _strip(text: str) -> str: class SQLInput (line 20) | class SQLInput(TypedDict): class SQLInputWithTables (line 26) | class SQLInputWithTables(TypedDict): function create_sql_query_chain (line 33) | def create_sql_query_chain( FILE: libs/langchain/langchain_classic/chains/structured_output/base.py function create_openai_fn_runnable (line 66) | def create_openai_fn_runnable( function create_structured_output_runnable (line 185) | def create_structured_output_runnable( function _create_openai_tools_runnable (line 450) | def _create_openai_tools_runnable( function _get_openai_tool_output_parser (line 475) | def _get_openai_tool_output_parser( function get_openai_output_parser (line 493) | def get_openai_output_parser( function _create_openai_json_runnable (line 524) | def _create_openai_json_runnable( function _create_openai_functions_structured_output_runnable (line 549) | def _create_openai_functions_structured_output_runnable( FILE: libs/langchain/langchain_classic/chains/summarize/chain.py class LoadingCallable (line 25) | class LoadingCallable(Protocol): method __call__ (line 28) | def __call__( function _load_stuff_chain (line 36) | def _load_stuff_chain( function _load_map_reduce_chain (line 68) | def _load_map_reduce_chain( function _load_refine_chain (line 172) | def _load_refine_chain( function load_summarize_chain (line 196) | def load_summarize_chain( FILE: libs/langchain/langchain_classic/chains/transform.py class TransformChain (line 20) | class TransformChain(Chain): method _log_once (line 45) | def _log_once(msg: str) -> None: method input_keys (line 50) | def input_keys(self) -> list[str]: method output_keys (line 55) | def output_keys(self) -> list[str]: method _call (line 60) | def _call( method _acall (line 68) | async def _acall( FILE: libs/langchain/langchain_classic/chat_loaders/facebook_messenger.py function __getattr__ (line 28) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/chat_loaders/gmail.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/chat_loaders/imessage.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/chat_loaders/langsmith.py function __getattr__ (line 22) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/chat_loaders/slack.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/chat_loaders/telegram.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/chat_loaders/utils.py function __getattr__ (line 26) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/chat_loaders/whatsapp.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/chat_models/__init__.py function __getattr__ (line 16) | def __getattr__(name: str) -> None: FILE: libs/langchain/langchain_classic/chat_models/anthropic.py function __getattr__ (line 22) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/chat_models/anyscale.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/chat_models/azure_openai.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/chat_models/azureml_endpoint.py function __getattr__ (line 22) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/chat_models/baichuan.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/chat_models/baidu_qianfan_endpoint.py function __getattr__ (line 20) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/chat_models/base.py function init_chat_model (line 36) | def init_chat_model( function init_chat_model (line 47) | def init_chat_model( function init_chat_model (line 58) | def init_chat_model( function init_chat_model (line 71) | def init_chat_model( function _init_chat_model_helper (line 372) | def _init_chat_model_helper( function _attempt_infer_model_provider (line 534) | def _attempt_infer_model_provider(model_name: str) -> str | None: function _parse_model (line 606) | def _parse_model(model: str, model_provider: str | None) -> tuple[str, s... function _check_pkg (line 636) | def _check_pkg(pkg: str, class_name: str, *, pkg_kebab: str | None = Non... class _ConfigurableModel (line 649) | class _ConfigurableModel(Runnable[LanguageModelInput, Any]): method __init__ (line 650) | def __init__( method __getattr__ (line 673) | def __getattr__(self, name: str) -> Any: method _model (line 703) | def _model(self, config: RunnableConfig | None = None) -> Runnable: method _model_params (line 710) | def _model_params(self, config: RunnableConfig | None) -> dict: method with_config (line 723) | def with_config( method InputType (line 757) | def InputType(self) -> TypeAlias: method invoke (line 770) | def invoke( method ainvoke (line 779) | async def ainvoke( method stream (line 788) | def stream( method astream (line 797) | async def astream( method batch (line 806) | def batch( method abatch (line 834) | async def abatch( method batch_as_completed (line 862) | def batch_as_completed( method abatch_as_completed (line 891) | async def abatch_as_completed( method transform (line 925) | def transform( method atransform (line 934) | async def atransform( method astream_log (line 944) | def astream_log( method astream_log (line 961) | def astream_log( method astream_log (line 978) | async def astream_log( method astream_events (line 1009) | async def astream_events( method bind_tools (line 1038) | def bind_tools( method with_structured_output (line 1046) | def with_structured_output( FILE: libs/langchain/langchain_classic/chat_models/bedrock.py function __getattr__ (line 19) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/chat_models/cohere.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/chat_models/databricks.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/chat_models/ernie.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/chat_models/everlyai.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/chat_models/fake.py function __getattr__ (line 22) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/chat_models/fireworks.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/chat_models/gigachat.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/chat_models/google_palm.py function __getattr__ (line 22) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/chat_models/human.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/chat_models/hunyuan.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/chat_models/javelin_ai_gateway.py function __getattr__ (line 22) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/chat_models/jinachat.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/chat_models/konko.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/chat_models/litellm.py function __getattr__ (line 22) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/chat_models/meta.py function __getattr__ (line 18) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/chat_models/minimax.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/chat_models/mlflow.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/chat_models/mlflow_ai_gateway.py function __getattr__ (line 22) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/chat_models/ollama.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/chat_models/openai.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/chat_models/pai_eas_endpoint.py function __getattr__ (line 18) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/chat_models/promptlayer_openai.py function __getattr__ (line 18) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/chat_models/tongyi.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/chat_models/vertexai.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/chat_models/volcengine_maas.py function __getattr__ (line 22) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/chat_models/yandex.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/docstore/__init__.py function __getattr__ (line 27) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/docstore/arbitrary_fn.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/docstore/base.py function __getattr__ (line 19) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/docstore/in_memory.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/docstore/wikipedia.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/__init__.py function __getattr__ (line 365) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/acreom.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/airbyte.py function __getattr__ (line 34) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/airbyte_json.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/airtable.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/apify_dataset.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/arcgis_loader.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/arxiv.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/assemblyai.py function __getattr__ (line 20) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/async_html.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/azlyrics.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/azure_ai_data.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/azure_blob_storage_container.py function __getattr__ (line 18) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/azure_blob_storage_file.py function __getattr__ (line 18) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/baiducloud_bos_directory.py function __getattr__ (line 22) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/baiducloud_bos_file.py function __getattr__ (line 20) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/base_o365.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/bibtex.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/bigquery.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/bilibili.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/blackboard.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/blob_loaders/__init__.py function __getattr__ (line 26) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/blob_loaders/file_system.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/blob_loaders/schema.py function __getattr__ (line 18) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/blob_loaders/youtube_audio.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/blockchain.py function __getattr__ (line 20) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/brave_search.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/browserless.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/chatgpt.py function __getattr__ (line 20) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/chromium.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/college_confidential.py function __getattr__ (line 18) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/concurrent.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/confluence.py function __getattr__ (line 20) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/conllu.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/couchbase.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/csv_loader.py function __getattr__ (line 19) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/cube_semantic.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/datadog_logs.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/dataframe.py function __getattr__ (line 20) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/diffbot.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/directory.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/discord.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/docugami.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/docusaurus.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/dropbox.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/duckdb_loader.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/email.py function __getattr__ (line 22) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/epub.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/etherscan.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/evernote.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/excel.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/facebook_chat.py function __getattr__ (line 20) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/fauna.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/figma.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/gcs_directory.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/gcs_file.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/generic.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/geodataframe.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/git.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/gitbook.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/github.py function __getattr__ (line 20) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/google_speech_to_text.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/googledrive.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/gutenberg.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/helpers.py function __getattr__ (line 22) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/hn.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/html.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/html_bs.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/hugging_face_dataset.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/ifixit.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/image.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/image_captions.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/imsdb.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/iugu.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/joplin.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/json_loader.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/lakefs.py function __getattr__ (line 24) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/larksuite.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/markdown.py function __getattr__ (line 18) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/mastodon.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/max_compute.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/mediawikidump.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/merge.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/mhtml.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/modern_treasury.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/mongodb.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/news.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/notebook.py function __getattr__ (line 24) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/notion.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/notiondb.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/nuclia.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/obs_directory.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/obs_file.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/obsidian.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/odt.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/onedrive.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/onedrive_file.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/onenote.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/open_city_data.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/org_mode.py function __getattr__ (line 18) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/parsers/__init__.py function __getattr__ (line 42) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/parsers/audio.py function __getattr__ (line 24) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/parsers/docai.py function __getattr__ (line 22) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/parsers/generic.py function __getattr__ (line 18) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/parsers/grobid.py function __getattr__ (line 22) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/parsers/html/__init__.py function __getattr__ (line 18) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/parsers/html/bs4.py function __getattr__ (line 18) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/parsers/language/__init__.py function __getattr__ (line 22) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/parsers/language/cobol.py function __getattr__ (line 20) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/parsers/language/code_segmenter.py function __getattr__ (line 22) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/parsers/language/javascript.py function __getattr__ (line 22) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/parsers/language/language_parser.py function __getattr__ (line 22) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/parsers/language/python.py function __getattr__ (line 20) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/parsers/msword.py function __getattr__ (line 18) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/parsers/pdf.py function __getattr__ (line 36) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/parsers/registry.py function __getattr__ (line 18) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/parsers/txt.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/pdf.py function __getattr__ (line 46) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/polars_dataframe.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/powerpoint.py function __getattr__ (line 18) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/psychic.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/pubmed.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/pyspark_dataframe.py function __getattr__ (line 21) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/python.py function __getattr__ (line 17) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/quip.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/readthedocs.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/recursive_url_loader.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/reddit.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/roam.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/rocksetdb.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/rspace.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/rss.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/rst.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/rtf.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/s3_directory.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/s3_file.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/sharepoint.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/sitemap.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/slack_directory.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/snowflake_loader.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/spreedly.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/srt.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/stripe.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/telegram.py function __getattr__ (line 28) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/tencent_cos_directory.py function __getattr__ (line 18) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/tencent_cos_file.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/tensorflow_datasets.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/text.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/tomarkdown.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/toml.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/trello.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/tsv.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/twitter.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/unstructured.py function __getattr__ (line 40) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/url.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/url_playwright.py function __getattr__ (line 24) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/url_selenium.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/weather.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/web_base.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/whatsapp_chat.py function __getattr__ (line 20) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/wikipedia.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/word_document.py function __getattr__ (line 22) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/xml.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/xorbits.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_loaders/youtube.py function __getattr__ (line 24) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_transformers/__init__.py function __getattr__ (line 47) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_transformers/beautiful_soup_transformer.py function __getattr__ (line 18) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_transformers/doctran_text_extract.py function __getattr__ (line 18) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_transformers/doctran_text_qa.py function __getattr__ (line 18) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_transformers/doctran_text_translate.py function __getattr__ (line 18) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_transformers/embeddings_redundant_filter.py function __getattr__ (line 38) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_transformers/google_translate.py function __getattr__ (line 18) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_transformers/html2text.py function __getattr__ (line 18) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_transformers/long_context_reorder.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_transformers/nuclia_text_transform.py function __getattr__ (line 18) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/document_transformers/openai_functions.py function __getattr__ (line 24) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/embeddings/__init__.py function __getattr__ (line 142) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/embeddings/aleph_alpha.py function __getattr__ (line 22) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/embeddings/awa.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/embeddings/azure_openai.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/embeddings/baidu_qianfan_endpoint.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/embeddings/base.py function _get_provider_list (line 22) | def _get_provider_list() -> str: function _parse_model_string (line 29) | def _parse_model_string(model_name: str) -> tuple[str, str]: function _infer_model_and_provider (line 84) | def _infer_model_and_provider( function _check_pkg (line 119) | def _check_pkg(pkg: str) -> None: function init_embeddings (line 130) | def init_embeddings( FILE: libs/langchain/langchain_classic/embeddings/bedrock.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/embeddings/bookend.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/embeddings/cache.py function _sha1_hash_to_uuid (line 28) | def _sha1_hash_to_uuid(text: str) -> uuid.UUID: function _make_default_key_encoder (line 43) | def _make_default_key_encoder(namespace: str, algorithm: str) -> Callabl... function _value_serializer (line 76) | def _value_serializer(value: Sequence[float]) -> bytes: function _value_deserializer (line 81) | def _value_deserializer(serialized_value: bytes) -> list[float]: function _warn_about_sha1_encoder (line 90) | def _warn_about_sha1_encoder() -> None: class CacheBackedEmbeddings (line 108) | class CacheBackedEmbeddings(Embeddings): method __init__ (line 142) | def __init__( method embed_documents (line 165) | def embed_documents(self, texts: list[str]) -> list[list[float]]: method aembed_documents (line 201) | async def aembed_documents(self, texts: list[str]) -> list[list[float]]: method embed_query (line 241) | def embed_query(self, text: str) -> list[float]: method aembed_query (line 264) | async def aembed_query(self, text: str) -> list[float]: method from_bytes_store (line 288) | def from_bytes_store( FILE: libs/langchain/langchain_classic/embeddings/clarifai.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/embeddings/cloudflare_workersai.py function __getattr__ (line 22) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/embeddings/cohere.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/embeddings/dashscope.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/embeddings/databricks.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/embeddings/deepinfra.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/embeddings/edenai.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/embeddings/elasticsearch.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/embeddings/embaas.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/embeddings/ernie.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/embeddings/fake.py function __getattr__ (line 22) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/embeddings/fastembed.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/embeddings/google_palm.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/embeddings/gpt4all.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/embeddings/gradient_ai.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/embeddings/huggingface.py function __getattr__ (line 26) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/embeddings/huggingface_hub.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/embeddings/infinity.py function __getattr__ (line 22) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/embeddings/javelin_ai_gateway.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/embeddings/jina.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/embeddings/johnsnowlabs.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/embeddings/llamacpp.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/embeddings/llm_rails.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/embeddings/localai.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/embeddings/minimax.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/embeddings/mlflow.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/embeddings/mlflow_gateway.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/embeddings/modelscope_hub.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/embeddings/mosaicml.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/embeddings/nlpcloud.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/embeddings/octoai_embeddings.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/embeddings/ollama.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/embeddings/openai.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/embeddings/sagemaker_endpoint.py function __getattr__ (line 22) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/embeddings/self_hosted.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/embeddings/self_hosted_hugging_face.py function __getattr__ (line 22) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/embeddings/sentence_transformer.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/embeddings/spacy_embeddings.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/embeddings/tensorflow_hub.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/embeddings/vertexai.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/embeddings/voyageai.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/embeddings/xinference.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/env.py function get_runtime_environment (line 6) | def get_runtime_environment() -> dict: FILE: libs/langchain/langchain_classic/evaluation/agents/trajectory_eval_chain.py class TrajectoryEval (line 40) | class TrajectoryEval(TypedDict): class TrajectoryOutputParser (line 49) | class TrajectoryOutputParser(BaseOutputParser): method _type (line 53) | def _type(self) -> str: method parse (line 56) | def parse(self, text: str) -> TrajectoryEval: class TrajectoryEvalChain (line 96) | class TrajectoryEvalChain(AgentTrajectoryEvaluator, LLMEvalChain): method requires_reference (line 159) | def requires_reference(self) -> bool: method _tools_description (line 164) | def _tools_description(self) -> str: method get_agent_trajectory (line 181) | def get_agent_trajectory( method _format_reference (line 206) | def _format_reference(reference: str | None) -> str: method from_llm (line 226) | def from_llm( method input_keys (line 258) | def input_keys(self) -> list[str]: method output_keys (line 267) | def output_keys(self) -> list[str]: method prep_inputs (line 275) | def prep_inputs(self, inputs: dict[str, Any] | Any) -> dict[str, str]: method _call (line 280) | def _call( method _acall (line 304) | async def _acall( method _evaluate_agent_trajectory (line 329) | def _evaluate_agent_trajectory( method _aevaluate_agent_trajectory (line 375) | async def _aevaluate_agent_trajectory( FILE: libs/langchain/langchain_classic/evaluation/comparison/eval_chain.py function resolve_pairwise_criteria (line 52) | def resolve_pairwise_criteria( class PairwiseStringResultOutputParser (line 99) | class PairwiseStringResultOutputParser(BaseOutputParser[dict]): method _type (line 108) | def _type(self) -> str: method parse (line 117) | def parse(self, text: str) -> dict[str, Any]: class PairwiseStringEvalChain (line 156) | class PairwiseStringEvalChain(PairwiseStringEvaluator, LLMEvalChain, LLM... method is_lc_serializable (line 198) | def is_lc_serializable(cls) -> bool: method requires_reference (line 206) | def requires_reference(self) -> bool: method requires_input (line 216) | def requires_input(self) -> bool: method _skip_reference_warning (line 226) | def _skip_reference_warning(self) -> str: method from_llm (line 240) | def from_llm( method _prepare_input (line 283) | def _prepare_input( method _prepare_output (line 311) | def _prepare_output(self, result: dict) -> dict: method _evaluate_string_pairs (line 319) | def _evaluate_string_pairs( method _aevaluate_string_pairs (line 365) | async def _aevaluate_string_pairs( class LabeledPairwiseStringEvalChain (line 411) | class LabeledPairwiseStringEvalChain(PairwiseStringEvalChain): method requires_reference (line 424) | def requires_reference(self) -> bool: method from_llm (line 434) | def from_llm( FILE: libs/langchain/langchain_classic/evaluation/criteria/eval_chain.py class Criteria (line 22) | class Criteria(str, Enum): class CriteriaResultOutputParser (line 66) | class CriteriaResultOutputParser(BaseOutputParser[dict]): method _type (line 70) | def _type(self) -> str: method parse (line 73) | def parse(self, text: str) -> dict[str, Any]: function resolve_criteria (line 116) | def resolve_criteria( class CriteriaEvalChain (line 162) | class CriteriaEvalChain(StringEvaluator, LLMEvalChain, LLMChain): method is_lc_serializable (line 235) | def is_lc_serializable(cls) -> bool: method requires_reference (line 243) | def requires_reference(self) -> bool: method requires_input (line 249) | def requires_input(self) -> bool: method evaluation_name (line 253) | def evaluation_name(self) -> str: method _skip_reference_warning (line 264) | def _skip_reference_warning(self) -> str: method _resolve_prompt (line 272) | def _resolve_prompt( method resolve_criteria (line 287) | def resolve_criteria( method from_llm (line 315) | def from_llm( method _get_eval_input (line 381) | def _get_eval_input( method _prepare_output (line 396) | def _prepare_output(self, result: dict) -> dict: method _evaluate_strings (line 404) | def _evaluate_strings( method _aevaluate_strings (line 456) | async def _aevaluate_strings( class LabeledCriteriaEvalChain (line 508) | class LabeledCriteriaEvalChain(CriteriaEvalChain): method is_lc_serializable (line 513) | def is_lc_serializable(cls) -> bool: method requires_reference (line 517) | def requires_reference(self) -> bool: method _resolve_prompt (line 522) | def _resolve_prompt( method from_llm (line 537) | def from_llm( FILE: libs/langchain/langchain_classic/evaluation/embedding_distance/base.py function _import_numpy (line 24) | def _import_numpy() -> Any: function _check_numpy (line 37) | def _check_numpy() -> bool: function _embedding_factory (line 50) | def _embedding_factory() -> Embeddings: class EmbeddingDistance (line 75) | class EmbeddingDistance(str, Enum): class _EmbeddingDistanceChainMixin (line 93) | class _EmbeddingDistanceChainMixin(Chain): method _validate_tiktoken_installed (line 105) | def _validate_tiktoken_installed(cls, values: dict[str, Any]) -> dict[... method output_keys (line 157) | def output_keys(self) -> list[str]: method _prepare_output (line 165) | def _prepare_output(self, result: dict) -> dict: method _get_metric (line 171) | def _get_metric(self, metric: EmbeddingDistance) -> Any: method _cosine_distance (line 193) | def _cosine_distance(a: Any, b: Any) -> Any: method _euclidean_distance (line 241) | def _euclidean_distance(a: Any, b: Any) -> Any: method _manhattan_distance (line 264) | def _manhattan_distance(a: Any, b: Any) -> Any: method _chebyshev_distance (line 286) | def _chebyshev_distance(a: Any, b: Any) -> Any: method _hamming_distance (line 308) | def _hamming_distance(a: Any, b: Any) -> Any: method _compute_score (line 329) | def _compute_score(self, vectors: Any) -> float: class EmbeddingDistanceEvalChain (line 346) | class EmbeddingDistanceEvalChain(_EmbeddingDistanceChainMixin, StringEva... method requires_reference (line 360) | def requires_reference(self) -> bool: method evaluation_name (line 370) | def evaluation_name(self) -> str: method input_keys (line 374) | def input_keys(self) -> list[str]: method _call (line 383) | def _call( method _acall (line 407) | async def _acall( method _evaluate_strings (line 434) | def _evaluate_strings( method _aevaluate_strings (line 470) | async def _aevaluate_strings( class PairwiseEmbeddingDistanceEvalChain (line 506) | class PairwiseEmbeddingDistanceEvalChain( method input_keys (line 520) | def input_keys(self) -> list[str]: method evaluation_name (line 529) | def evaluation_name(self) -> str: method _call (line 534) | def _call( method _acall (line 561) | async def _acall( method _evaluate_string_pairs (line 588) | def _evaluate_string_pairs( method _aevaluate_string_pairs (line 624) | async def _aevaluate_string_pairs( FILE: libs/langchain/langchain_classic/evaluation/exact_match/base.py class ExactMatchStringEvaluator (line 9) | class ExactMatchStringEvaluator(StringEvaluator): method __init__ (line 26) | def __init__( method requires_input (line 47) | def requires_input(self) -> bool: method requires_reference (line 52) | def requires_reference(self) -> bool: method input_keys (line 57) | def input_keys(self) -> list[str]: method evaluation_name (line 66) | def evaluation_name(self) -> str: method _evaluate_strings (line 75) | def _evaluate_strings( # type: ignore[override] FILE: libs/langchain/langchain_classic/evaluation/loading.py function load_dataset (line 52) | def load_dataset(uri: str) -> list[dict]: function load_evaluator (line 115) | def load_evaluator( function load_evaluators (line 182) | def load_evaluators( FILE: libs/langchain/langchain_classic/evaluation/parsing/base.py class JsonValidityEvaluator (line 17) | class JsonValidityEvaluator(StringEvaluator): method __init__ (line 42) | def __init__(self, **_: Any) -> None: method requires_input (line 48) | def requires_input(self) -> bool: method requires_reference (line 53) | def requires_reference(self) -> bool: method evaluation_name (line 58) | def evaluation_name(self) -> str: method _evaluate_strings (line 62) | def _evaluate_strings( class JsonEqualityEvaluator (line 91) | class JsonEqualityEvaluator(StringEvaluator): method __init__ (line 124) | def __init__(self, operator: Callable | None = None, **_: Any) -> None: method requires_input (line 136) | def requires_input(self) -> bool: method requires_reference (line 141) | def requires_reference(self) -> bool: method evaluation_name (line 146) | def evaluation_name(self) -> str: method _parse_json (line 149) | def _parse_json( method _evaluate_strings (line 158) | def _evaluate_strings( FILE: libs/langchain/langchain_classic/evaluation/parsing/json_distance.py class JsonEditDistanceEvaluator (line 11) | class JsonEditDistanceEvaluator(StringEvaluator): method __init__ (line 34) | def __init__( method requires_input (line 81) | def requires_input(self) -> bool: method requires_reference (line 86) | def requires_reference(self) -> bool: method evaluation_name (line 91) | def evaluation_name(self) -> str: method _parse_json (line 94) | def _parse_json(self, node: Any) -> dict | list | None | float | bool ... method _evaluate_strings (line 100) | def _evaluate_strings( FILE: libs/langchain/langchain_classic/evaluation/parsing/json_schema.py class JsonSchemaEvaluator (line 9) | class JsonSchemaEvaluator(StringEvaluator): method __init__ (line 36) | def __init__(self, **_: Any) -> None: method requires_input (line 53) | def requires_input(self) -> bool: method requires_reference (line 58) | def requires_reference(self) -> bool: method evaluation_name (line 63) | def evaluation_name(self) -> str: method _parse_json (line 67) | def _parse_json(self, node: Any) -> dict | list | None | float | bool ... method _validate (line 78) | def _validate(self, prediction: Any, schema: Any) -> dict: method _evaluate_strings (line 88) | def _evaluate_strings( FILE: libs/langchain/langchain_classic/evaluation/qa/eval_chain.py function _get_score (line 26) | def _get_score(text: str) -> tuple[str, int] | None: function _parse_string_eval_output (line 55) | def _parse_string_eval_output(text: str) -> dict: class QAEvalChain (line 77) | class QAEvalChain(LLMChain, StringEvaluator, LLMEvalChain): method is_lc_serializable (line 88) | def is_lc_serializable(cls) -> bool: method evaluation_name (line 93) | def evaluation_name(self) -> str: method requires_reference (line 98) | def requires_reference(self) -> bool: method requires_input (line 103) | def requires_input(self) -> bool: method from_llm (line 107) | def from_llm( method evaluate (line 137) | def evaluate( method _prepare_output (line 159) | def _prepare_output(self, result: dict) -> dict: method _evaluate_strings (line 166) | def _evaluate_strings( method _aevaluate_strings (line 201) | async def _aevaluate_strings( class ContextQAEvalChain (line 219) | class ContextQAEvalChain(LLMChain, StringEvaluator, LLMEvalChain): method is_lc_serializable (line 224) | def is_lc_serializable(cls) -> bool: method requires_reference (line 228) | def requires_reference(self) -> bool: method requires_input (line 233) | def requires_input(self) -> bool: method _validate_input_vars (line 242) | def _validate_input_vars(cls, prompt: PromptTemplate) -> None: method evaluation_name (line 253) | def evaluation_name(self) -> str: method from_llm (line 257) | def from_llm( method evaluate (line 281) | def evaluate( method _prepare_output (line 303) | def _prepare_output(self, result: dict) -> dict: method _evaluate_strings (line 310) | def _evaluate_strings( method _aevaluate_strings (line 332) | async def _aevaluate_strings( class CotQAEvalChain (line 350) | class CotQAEvalChain(ContextQAEvalChain): method is_lc_serializable (line 355) | def is_lc_serializable(cls) -> bool: method evaluation_name (line 360) | def evaluation_name(self) -> str: method from_llm (line 364) | def from_llm( FILE: libs/langchain/langchain_classic/evaluation/qa/generate_chain.py class QAGenerateChain (line 22) | class QAGenerateChain(LLMChain): method is_lc_serializable (line 30) | def is_lc_serializable(cls) -> bool: method from_llm (line 34) | def from_llm(cls, llm: BaseLanguageModel, **kwargs: Any) -> QAGenerate... FILE: libs/langchain/langchain_classic/evaluation/regex_match/base.py class RegexMatchStringEvaluator (line 9) | class RegexMatchStringEvaluator(StringEvaluator): method __init__ (line 32) | def __init__(self, *, flags: int = 0, **_: Any): # Default is no flags method requires_input (line 42) | def requires_input(self) -> bool: method requires_reference (line 47) | def requires_reference(self) -> bool: method input_keys (line 52) | def input_keys(self) -> list[str]: method evaluation_name (line 61) | def evaluation_name(self) -> str: method _evaluate_strings (line 70) | def _evaluate_strings( # type: ignore[override] FILE: libs/langchain/langchain_classic/evaluation/schema.py class EvaluatorType (line 21) | class EvaluatorType(str, Enum): class LLMEvalChain (line 75) | class LLMEvalChain(Chain): method from_llm (line 80) | def from_llm(cls, llm: BaseLanguageModel, **kwargs: Any) -> LLMEvalChain: class _EvalArgsMixin (line 84) | class _EvalArgsMixin: method requires_reference (line 88) | def requires_reference(self) -> bool: method requires_input (line 93) | def requires_input(self) -> bool: method _skip_input_warning (line 98) | def _skip_input_warning(self) -> str: method _skip_reference_warning (line 103) | def _skip_reference_warning(self) -> str: method _check_evaluation_args (line 109) | def _check_evaluation_args( class StringEvaluator (line 136) | class StringEvaluator(_EvalArgsMixin, ABC): method evaluation_name (line 144) | def evaluation_name(self) -> str: method requires_reference (line 149) | def requires_reference(self) -> bool: method _evaluate_strings (line 154) | def _evaluate_strings( method _aevaluate_strings (line 178) | async def _aevaluate_strings( method evaluate_strings (line 210) | def evaluate_strings( method aevaluate_strings (line 237) | async def aevaluate_strings( class PairwiseStringEvaluator (line 265) | class PairwiseStringEvaluator(_EvalArgsMixin, ABC): method _evaluate_string_pairs (line 269) | def _evaluate_string_pairs( method _aevaluate_string_pairs (line 291) | async def _aevaluate_string_pairs( method evaluate_string_pairs (line 322) | def evaluate_string_pairs( method aevaluate_string_pairs (line 352) | async def aevaluate_string_pairs( class AgentTrajectoryEvaluator (line 383) | class AgentTrajectoryEvaluator(_EvalArgsMixin, ABC): method requires_input (line 387) | def requires_input(self) -> bool: method _evaluate_agent_trajectory (line 392) | def _evaluate_agent_trajectory( method _aevaluate_agent_trajectory (line 415) | async def _aevaluate_agent_trajectory( method evaluate_agent_trajectory (line 447) | def evaluate_agent_trajectory( method aevaluate_agent_trajectory (line 478) | async def aevaluate_agent_trajectory( FILE: libs/langchain/langchain_classic/evaluation/scoring/eval_chain.py function resolve_criteria (line 53) | def resolve_criteria( class ScoreStringResultOutputParser (line 100) | class ScoreStringResultOutputParser(BaseOutputParser[dict]): method _type (line 109) | def _type(self) -> str: method parse (line 118) | def parse(self, text: str) -> dict[str, Any]: class ScoreStringEvalChain (line 150) | class ScoreStringEvalChain(StringEvaluator, LLMEvalChain, LLMChain): method is_lc_serializable (line 191) | def is_lc_serializable(cls) -> bool: method requires_reference (line 195) | def requires_reference(self) -> bool: method requires_input (line 205) | def requires_input(self) -> bool: method evaluation_name (line 215) | def evaluation_name(self) -> str: method _skip_reference_warning (line 226) | def _skip_reference_warning(self) -> str: method from_llm (line 240) | def from_llm( method _prepare_input (line 296) | def _prepare_input( method _prepare_output (line 322) | def _prepare_output(self, result: dict) -> dict: method _evaluate_strings (line 332) | def _evaluate_strings( method _aevaluate_strings (line 373) | async def _aevaluate_strings( class LabeledScoreStringEvalChain (line 414) | class LabeledScoreStringEvalChain(ScoreStringEvalChain): method requires_reference (line 423) | def requires_reference(self) -> bool: method from_llm (line 433) | def from_llm( FILE: libs/langchain/langchain_classic/evaluation/string_distance/base.py function _load_rapidfuzz (line 21) | def _load_rapidfuzz() -> Any: class StringDistance (line 41) | class StringDistance(str, Enum): class _RapidFuzzChainMixin (line 61) | class _RapidFuzzChainMixin(Chain): method validate_dependencies (line 70) | def validate_dependencies(cls, values: dict[str, Any]) -> dict[str, Any]: method output_keys (line 83) | def output_keys(self) -> list[str]: method _prepare_output (line 91) | def _prepare_output(self, result: dict[str, Any]) -> dict[str, Any]: method _get_metric (line 106) | def _get_metric(distance: str, *, normalize_score: bool = False) -> Ca... method metric (line 141) | def metric(self) -> Callable: method compute_metric (line 152) | def compute_metric(self, a: str, b: str) -> float: class StringDistanceEvalChain (line 165) | class StringDistanceEvalChain(StringEvaluator, _RapidFuzzChainMixin): method requires_input (line 188) | def requires_input(self) -> bool: method requires_reference (line 193) | def requires_reference(self) -> bool: method input_keys (line 198) | def input_keys(self) -> list[str]: method evaluation_name (line 207) | def evaluation_name(self) -> str: method _call (line 216) | def _call( method _acall (line 233) | async def _acall( method _evaluate_strings (line 250) | def _evaluate_strings( method _aevaluate_strings (line 288) | async def _aevaluate_strings( class PairwiseStringDistanceEvalChain (line 325) | class PairwiseStringDistanceEvalChain(PairwiseStringEvaluator, _RapidFuz... method input_keys (line 329) | def input_keys(self) -> list[str]: method evaluation_name (line 338) | def evaluation_name(self) -> str: method _call (line 347) | def _call( method _acall (line 366) | async def _acall( method _evaluate_string_pairs (line 385) | def _evaluate_string_pairs( method _aevaluate_string_pairs (line 420) | async def _aevaluate_string_pairs( FILE: libs/langchain/langchain_classic/graphs/__init__.py function __getattr__ (line 41) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/graphs/arangodb_graph.py function __getattr__ (line 20) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/graphs/falkordb_graph.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/graphs/graph_document.py function __getattr__ (line 24) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/graphs/graph_store.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/graphs/hugegraph.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/graphs/kuzu_graph.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/graphs/memgraph_graph.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/graphs/nebula_graph.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/graphs/neo4j_graph.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/graphs/neptune_graph.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/graphs/networkx_graph.py function __getattr__ (line 26) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/graphs/rdf_graph.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/hub.py function _get_client (line 14) | def _get_client( function push (line 55) | def push( function pull (line 111) | def pull( FILE: libs/langchain/langchain_classic/indexes/__init__.py function __getattr__ (line 39) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/indexes/_sql_record_manager.py class UpsertionRecord (line 53) | class UpsertionRecord(Base): # type: ignore[valid-type,misc] class SQLRecordManager (line 85) | class SQLRecordManager(RecordManager): method __init__ (line 88) | def __init__( method create_schema (line 148) | def create_schema(self) -> None: method acreate_schema (line 156) | async def acreate_schema(self) -> None: method _make_session (line 166) | def _make_session(self) -> Generator[Session, None, None]: method _amake_session (line 179) | async def _amake_session(self) -> AsyncGenerator[AsyncSession, None]: method get_time (line 188) | def get_time(self) -> float: method aget_time (line 220) | async def aget_time(self) -> float: method update (line 253) | def update( method aupdate (line 335) | async def aupdate( method exists (line 417) | def exists(self, keys: Sequence[str]) -> list[bool]: method aexists (line 431) | async def aexists(self, keys: Sequence[str]) -> list[bool]: method list_keys (line 451) | def list_keys( method alist_keys (line 478) | async def alist_keys( method delete_keys (line 506) | def delete_keys(self, keys: Sequence[str]) -> None: method adelete_keys (line 520) | async def adelete_keys(self, keys: Sequence[str]) -> None: FILE: libs/langchain/langchain_classic/indexes/graph.py function __getattr__ (line 23) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/indexes/vectorstore.py function _get_default_text_splitter (line 19) | def _get_default_text_splitter() -> TextSplitter: class VectorStoreIndexWrapper (line 24) | class VectorStoreIndexWrapper(BaseModel): method query (line 34) | def query( method aquery (line 69) | async def aquery( method query_with_sources (line 104) | def query_with_sources( method aquery_with_sources (line 139) | async def aquery_with_sources( function _get_in_memory_vectorstore (line 175) | def _get_in_memory_vectorstore() -> type[VectorStore]: class VectorstoreIndexCreator (line 193) | class VectorstoreIndexCreator(BaseModel): method from_loaders (line 208) | def from_loaders(self, loaders: list[BaseLoader]) -> VectorStoreIndexW... method afrom_loaders (line 222) | async def afrom_loaders(self, loaders: list[BaseLoader]) -> VectorStor... method from_documents (line 236) | def from_documents(self, documents: list[Document]) -> VectorStoreInde... method afrom_documents (line 253) | async def afrom_documents( FILE: libs/langchain/langchain_classic/llms/__init__.py function _import_ai21 (line 16) | def _import_ai21() -> Any: function _import_aleph_alpha (line 22) | def _import_aleph_alpha() -> Any: function _import_amazon_api_gateway (line 28) | def _import_amazon_api_gateway() -> Any: function _import_anthropic (line 34) | def _import_anthropic() -> Any: function _import_anyscale (line 40) | def _import_anyscale() -> Any: function _import_arcee (line 46) | def _import_arcee() -> Any: function _import_aviary (line 52) | def _import_aviary() -> Any: function _import_azureml_endpoint (line 58) | def _import_azureml_endpoint() -> Any: function _import_baidu_qianfan_endpoint (line 64) | def _import_baidu_qianfan_endpoint() -> Any: function _import_bananadev (line 70) | def _import_bananadev() -> Any: function _import_baseten (line 76) | def _import_baseten() -> Any: function _import_beam (line 82) | def _import_beam() -> Any: function _import_bedrock (line 88) | def _import_bedrock() -> Any: function _import_bittensor (line 94) | def _import_bittensor() -> Any: function _import_cerebriumai (line 100) | def _import_cerebriumai() -> Any: function _import_chatglm (line 106) | def _import_chatglm() -> Any: function _import_clarifai (line 112) | def _import_clarifai() -> Any: function _import_cohere (line 118) | def _import_cohere() -> Any: function _import_ctransformers (line 124) | def _import_ctransformers() -> Any: function _import_ctranslate2 (line 130) | def _import_ctranslate2() -> Any: function _import_databricks (line 136) | def _import_databricks() -> Any: function _import_databricks_chat (line 142) | def _import_databricks_chat() -> Any: function _import_deepinfra (line 148) | def _import_deepinfra() -> Any: function _import_deepsparse (line 154) | def _import_deepsparse() -> Any: function _import_edenai (line 160) | def _import_edenai() -> Any: function _import_fake (line 166) | def _import_fake() -> Any: function _import_fireworks (line 172) | def _import_fireworks() -> Any: function _import_forefrontai (line 178) | def _import_forefrontai() -> Any: function _import_gigachat (line 184) | def _import_gigachat() -> Any: function _import_google_palm (line 190) | def _import_google_palm() -> Any: function _import_gooseai (line 196) | def _import_gooseai() -> Any: function _import_gpt4all (line 202) | def _import_gpt4all() -> Any: function _import_gradient_ai (line 208) | def _import_gradient_ai() -> Any: function _import_huggingface_endpoint (line 214) | def _import_huggingface_endpoint() -> Any: function _import_huggingface_hub (line 220) | def _import_huggingface_hub() -> Any: function _import_huggingface_pipeline (line 226) | def _import_huggingface_pipeline() -> Any: function _import_huggingface_text_gen_inference (line 232) | def _import_huggingface_text_gen_inference() -> Any: function _import_human (line 240) | def _import_human() -> Any: function _import_javelin_ai_gateway (line 246) | def _import_javelin_ai_gateway() -> Any: function _import_koboldai (line 252) | def _import_koboldai() -> Any: function _import_llamacpp (line 258) | def _import_llamacpp() -> Any: function _import_manifest (line 264) | def _import_manifest() -> Any: function _import_minimax (line 270) | def _import_minimax() -> Any: function _import_mlflow (line 276) | def _import_mlflow() -> Any: function _import_mlflow_chat (line 282) | def _import_mlflow_chat() -> Any: function _import_mlflow_ai_gateway (line 288) | def _import_mlflow_ai_gateway() -> Any: function _import_modal (line 294) | def _import_modal() -> Any: function _import_mosaicml (line 300) | def _import_mosaicml() -> Any: function _import_nlpcloud (line 306) | def _import_nlpcloud() -> Any: function _import_octoai_endpoint (line 312) | def _import_octoai_endpoint() -> Any: function _import_ollama (line 318) | def _import_ollama() -> Any: function _import_opaqueprompts (line 324) | def _import_opaqueprompts() -> Any: function _import_azure_openai (line 330) | def _import_azure_openai() -> Any: function _import_openai (line 336) | def _import_openai() -> Any: function _import_openai_chat (line 342) | def _import_openai_chat() -> Any: function _import_openllm (line 348) | def _import_openllm() -> Any: function _import_openlm (line 354) | def _import_openlm() -> Any: function _import_pai_eas_endpoint (line 360) | def _import_pai_eas_endpoint() -> Any: function _import_petals (line 366) | def _import_petals() -> Any: function _import_pipelineai (line 372) | def _import_pipelineai() -> Any: function _import_predibase (line 378) | def _import_predibase() -> Any: function _import_predictionguard (line 384) | def _import_predictionguard() -> Any: function _import_promptlayer (line 390) | def _import_promptlayer() -> Any: function _import_promptlayer_chat (line 396) | def _import_promptlayer_chat() -> Any: function _import_replicate (line 402) | def _import_replicate() -> Any: function _import_rwkv (line 408) | def _import_rwkv() -> Any: function _import_sagemaker_endpoint (line 414) | def _import_sagemaker_endpoint() -> Any: function _import_self_hosted (line 420) | def _import_self_hosted() -> Any: function _import_self_hosted_hugging_face (line 426) | def _import_self_hosted_hugging_face() -> Any: function _import_stochasticai (line 434) | def _import_stochasticai() -> Any: function _import_symblai_nebula (line 440) | def _import_symblai_nebula() -> Any: function _import_textgen (line 446) | def _import_textgen() -> Any: function _import_titan_takeoff (line 452) | def _import_titan_takeoff() -> Any: function _import_titan_takeoff_pro (line 458) | def _import_titan_takeoff_pro() -> Any: function _import_together (line 464) | def _import_together() -> Any: function _import_tongyi (line 470) | def _import_tongyi() -> Any: function _import_vertex (line 476) | def _import_vertex() -> Any: function _import_vertex_model_garden (line 482) | def _import_vertex_model_garden() -> Any: function _import_vllm (line 488) | def _import_vllm() -> Any: function _import_vllm_openai (line 494) | def _import_vllm_openai() -> Any: function _import_watsonxllm (line 500) | def _import_watsonxllm() -> Any: function _import_writer (line 506) | def _import_writer() -> Any: function _import_xinference (line 512) | def _import_xinference() -> Any: function _import_yandex_gpt (line 518) | def _import_yandex_gpt() -> Any: function _import_volcengine_maas (line 524) | def _import_volcengine_maas() -> Any: function __getattr__ (line 530) | def __getattr__(name: str) -> Any: function get_type_to_cls_dict (line 639) | def get_type_to_cls_dict() -> dict[str, Callable[[], type[BaseLLM]]]: FILE: libs/langchain/langchain_classic/llms/ai21.py function __getattr__ (line 20) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/llms/aleph_alpha.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/llms/amazon_api_gateway.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/llms/anthropic.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/llms/anyscale.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/llms/arcee.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/llms/aviary.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/llms/azureml_endpoint.py function __getattr__ (line 34) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/llms/baidu_qianfan_endpoint.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/llms/bananadev.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/llms/baseten.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/llms/beam.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/llms/bedrock.py function __getattr__ (line 20) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/llms/bittensor.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/llms/cerebriumai.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/llms/chatglm.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/llms/clarifai.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/llms/cloudflare_workersai.py function __getattr__ (line 18) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/llms/cohere.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/llms/ctransformers.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/llms/ctranslate2.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/llms/databricks.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/llms/deepinfra.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/llms/deepsparse.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/llms/edenai.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/llms/fake.py function __getattr__ (line 20) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/llms/fireworks.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/llms/forefrontai.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/llms/gigachat.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/llms/google_palm.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/llms/gooseai.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/llms/gpt4all.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/llms/gradient_ai.py function __getattr__ (line 20) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/llms/huggingface_endpoint.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/llms/huggingface_hub.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/llms/huggingface_pipeline.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/llms/huggingface_text_gen_inference.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/llms/human.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/llms/javelin_ai_gateway.py function __getattr__ (line 20) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/llms/koboldai.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/llms/llamacpp.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/llms/loading.py function __getattr__ (line 19) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/llms/manifest.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/llms/minimax.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/llms/mlflow.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/llms/mlflow_ai_gateway.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/llms/modal.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/llms/mosaicml.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/llms/nlpcloud.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/llms/octoai_endpoint.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/llms/ollama.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/llms/opaqueprompts.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/llms/openai.py function __getattr__ (line 22) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/llms/openllm.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/llms/openlm.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/llms/pai_eas_endpoint.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/llms/petals.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/llms/pipelineai.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/llms/predibase.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/llms/predictionguard.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/llms/promptlayer_openai.py function __getattr__ (line 19) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/llms/replicate.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/llms/rwkv.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/llms/sagemaker_endpoint.py function __getattr__ (line 20) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/llms/self_hosted.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/llms/self_hosted_hugging_face.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/llms/stochasticai.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/llms/symblai_nebula.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/llms/textgen.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/llms/titan_takeoff.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/llms/titan_takeoff_pro.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/llms/together.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/llms/tongyi.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/llms/utils.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/llms/vertexai.py function __getattr__ (line 19) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/llms/vllm.py function __getattr__ (line 19) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/llms/volcengine_maas.py function __getattr__ (line 20) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/llms/watsonxllm.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/llms/writer.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/llms/xinference.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/llms/yandex.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/memory/__init__.py function __getattr__ (line 84) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/memory/buffer.py class ConversationBufferMemory (line 21) | class ConversationBufferMemory(BaseChatMemory): method buffer (line 36) | def buffer(self) -> Any: method abuffer (line 40) | async def abuffer(self) -> Any: method _buffer_as_str (line 48) | def _buffer_as_str(self, messages: list[BaseMessage]) -> str: method buffer_as_str (line 56) | def buffer_as_str(self) -> str: method abuffer_as_str (line 60) | async def abuffer_as_str(self) -> str: method buffer_as_messages (line 66) | def buffer_as_messages(self) -> list[BaseMessage]: method abuffer_as_messages (line 70) | async def abuffer_as_messages(self) -> list[BaseMessage]: method memory_variables (line 75) | def memory_variables(self) -> list[str]: method load_memory_variables (line 80) | def load_memory_variables(self, inputs: dict[str, Any]) -> dict[str, A... method aload_memory_variables (line 85) | async def aload_memory_variables(self, inputs: dict[str, Any]) -> dict... class ConversationStringBufferMemory (line 99) | class ConversationStringBufferMemory(BaseMemory): method validate_chains (line 121) | def validate_chains(cls, values: dict) -> dict: method memory_variables (line 129) | def memory_variables(self) -> list[str]: method load_memory_variables (line 134) | def load_memory_variables(self, inputs: dict[str, Any]) -> dict[str, s... method aload_memory_variables (line 138) | async def aload_memory_variables(self, inputs: dict[str, Any]) -> dict... method save_context (line 142) | def save_context(self, inputs: dict[str, Any], outputs: dict[str, str]... method asave_context (line 159) | async def asave_context( method clear (line 167) | def clear(self) -> None: method aclear (line 172) | async def aclear(self) -> None: FILE: libs/langchain/langchain_classic/memory/buffer_window.py class ConversationBufferWindowMemory (line 18) | class ConversationBufferWindowMemory(BaseChatMemory): method buffer (line 32) | def buffer(self) -> str | list[BaseMessage]: method buffer_as_str (line 37) | def buffer_as_str(self) -> str: method buffer_as_messages (line 47) | def buffer_as_messages(self) -> list[BaseMessage]: method memory_variables (line 52) | def memory_variables(self) -> list[str]: method load_memory_variables (line 57) | def load_memory_variables(self, inputs: dict[str, Any]) -> dict[str, A... FILE: libs/langchain/langchain_classic/memory/chat_memory.py class BaseChatMemory (line 25) | class BaseChatMemory(BaseMemory, ABC): method _get_input_output (line 43) | def _get_input_output( method save_context (line 74) | def save_context(self, inputs: dict[str, Any], outputs: dict[str, str]... method asave_context (line 84) | async def asave_context( method clear (line 98) | def clear(self) -> None: method aclear (line 102) | async def aclear(self) -> None: FILE: libs/langchain/langchain_classic/memory/chat_message_histories/__init__.py function __getattr__ (line 58) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/memory/chat_message_histories/astradb.py function __getattr__ (line 18) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/memory/chat_message_histories/cassandra.py function __getattr__ (line 18) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/memory/chat_message_histories/cosmos_db.py function __getattr__ (line 18) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/memory/chat_message_histories/dynamodb.py function __getattr__ (line 18) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/memory/chat_message_histories/elasticsearch.py function __getattr__ (line 20) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/memory/chat_message_histories/file.py function __getattr__ (line 18) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/memory/chat_message_histories/firestore.py function __getattr__ (line 18) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/memory/chat_message_histories/momento.py function __getattr__ (line 18) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/memory/chat_message_histories/mongodb.py function __getattr__ (line 18) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/memory/chat_message_histories/neo4j.py function __getattr__ (line 18) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/memory/chat_message_histories/postgres.py function __getattr__ (line 18) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/memory/chat_message_histories/redis.py function __getattr__ (line 18) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/memory/chat_message_histories/rocksetdb.py function __getattr__ (line 18) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/memory/chat_message_histories/singlestoredb.py function __getattr__ (line 20) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/memory/chat_message_histories/sql.py function __getattr__ (line 24) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/memory/chat_message_histories/streamlit.py function __getattr__ (line 18) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/memory/chat_message_histories/upstash_redis.py function __getattr__ (line 20) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/memory/chat_message_histories/xata.py function __getattr__ (line 18) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/memory/chat_message_histories/zep.py function __getattr__ (line 18) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/memory/combined.py class CombinedMemory (line 10) | class CombinedMemory(BaseMemory): method _check_repeated_memory_variable (line 18) | def _check_repeated_memory_variable( method check_input_key (line 37) | def check_input_key(cls, value: list[BaseMemory]) -> list[BaseMemory]: method memory_variables (line 50) | def memory_variables(self) -> list[str]: method load_memory_variables (line 61) | def load_memory_variables(self, inputs: dict[str, Any]) -> dict[str, s... method save_context (line 76) | def save_context(self, inputs: dict[str, Any], outputs: dict[str, str]... method clear (line 82) | def clear(self) -> None: FILE: libs/langchain/langchain_classic/memory/entity.py class BaseEntityStore (line 38) | class BaseEntityStore(BaseModel, ABC): method get (line 42) | def get(self, key: str, default: str | None = None) -> str | None: method set (line 46) | def set(self, key: str, value: str | None) -> None: method delete (line 50) | def delete(self, key: str) -> None: method exists (line 54) | def exists(self, key: str) -> bool: method clear (line 58) | def clear(self) -> None: class InMemoryEntityStore (line 70) | class InMemoryEntityStore(BaseEntityStore): method get (line 76) | def get(self, key: str, default: str | None = None) -> str | None: method set (line 80) | def set(self, key: str, value: str | None) -> None: method delete (line 84) | def delete(self, key: str) -> None: method exists (line 88) | def exists(self, key: str) -> bool: method clear (line 92) | def clear(self) -> None: class UpstashRedisEntityStore (line 104) | class UpstashRedisEntityStore(BaseEntityStore): method __init__ (line 111) | def __init__( method full_key_prefix (line 158) | def full_key_prefix(self) -> str: method get (line 163) | def get(self, key: str, default: str | None = None) -> str | None: method set (line 175) | def set(self, key: str, value: str | None) -> None: method delete (line 189) | def delete(self, key: str) -> None: method exists (line 193) | def exists(self, key: str) -> bool: method clear (line 197) | def clear(self) -> None: class RedisEntityStore (line 219) | class RedisEntityStore(BaseEntityStore): method __init__ (line 232) | def __init__( method full_key_prefix (line 284) | def full_key_prefix(self) -> str: method get (line 289) | def get(self, key: str, default: str | None = None) -> str | None: method set (line 299) | def set(self, key: str, value: str | None) -> None: method delete (line 313) | def delete(self, key: str) -> None: method exists (line 317) | def exists(self, key: str) -> bool: method clear (line 321) | def clear(self) -> None: class SQLiteEntityStore (line 343) | class SQLiteEntityStore(BaseEntityStore): method __init__ (line 354) | def __init__( method full_table_name (line 393) | def full_table_name(self) -> str: method _execute_query (line 397) | def _execute_query(self, query: str, params: tuple = ()) -> "sqlite3.C... method _create_table_if_not_exists (line 402) | def _create_table_if_not_exists(self) -> None: method get (line 413) | def get(self, key: str, default: str | None = None) -> str | None: method set (line 422) | def set(self, key: str, value: str | None) -> None: method delete (line 434) | def delete(self, key: str) -> None: method exists (line 440) | def exists(self, key: str) -> bool: method clear (line 448) | def clear(self) -> None: class ConversationEntityMemory (line 465) | class ConversationEntityMemory(BaseChatMemory): method buffer (line 493) | def buffer(self) -> list[BaseMessage]: method memory_variables (line 498) | def memory_variables(self) -> list[str]: method load_memory_variables (line 502) | def load_memory_variables(self, inputs: dict[str, Any]) -> dict[str, A... method save_context (line 567) | def save_context(self, inputs: dict[str, Any], outputs: dict[str, str]... method clear (line 607) | def clear(self) -> None: FILE: libs/langchain/langchain_classic/memory/kg.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/memory/motorhead_memory.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/memory/readonly.py class ReadOnlySharedMemory (line 6) | class ReadOnlySharedMemory(BaseMemory): method memory_variables (line 12) | def memory_variables(self) -> list[str]: method load_memory_variables (line 16) | def load_memory_variables(self, inputs: dict[str, Any]) -> dict[str, s... method save_context (line 20) | def save_context(self, inputs: dict[str, Any], outputs: dict[str, str]... method clear (line 23) | def clear(self) -> None: FILE: libs/langchain/langchain_classic/memory/simple.py class SimpleMemory (line 8) | class SimpleMemory(BaseMemory): method memory_variables (line 19) | def memory_variables(self) -> list[str]: method load_memory_variables (line 23) | def load_memory_variables(self, inputs: dict[str, Any]) -> dict[str, s... method save_context (line 26) | def save_context(self, inputs: dict[str, Any], outputs: dict[str, str]... method clear (line 29) | def clear(self) -> None: FILE: libs/langchain/langchain_classic/memory/summary.py class SummarizerMixin (line 27) | class SummarizerMixin(BaseModel): method predict_new_summary (line 36) | def predict_new_summary( method apredict_new_summary (line 59) | async def apredict_new_summary( class ConversationSummaryMemory (line 91) | class ConversationSummaryMemory(BaseChatMemory, SummarizerMixin): method from_messages (line 103) | def from_messages( method memory_variables (line 131) | def memory_variables(self) -> list[str]: method load_memory_variables (line 136) | def load_memory_variables(self, inputs: dict[str, Any]) -> dict[str, A... method validate_prompt_input_variables (line 145) | def validate_prompt_input_variables(cls, values: dict) -> dict: method save_context (line 157) | def save_context(self, inputs: dict[str, Any], outputs: dict[str, str]... method clear (line 165) | def clear(self) -> None: FILE: libs/langchain/langchain_classic/memory/summary_buffer.py class ConversationSummaryBufferMemory (line 20) | class ConversationSummaryBufferMemory(BaseChatMemory, SummarizerMixin): method buffer (line 33) | def buffer(self) -> str | list[BaseMessage]: method abuffer (line 37) | async def abuffer(self) -> str | list[BaseMessage]: method memory_variables (line 43) | def memory_variables(self) -> list[str]: method load_memory_variables (line 48) | def load_memory_variables(self, inputs: dict[str, Any]) -> dict[str, A... method aload_memory_variables (line 67) | async def aload_memory_variables(self, inputs: dict[str, Any]) -> dict... method validate_prompt_input_variables (line 86) | def validate_prompt_input_variables(cls, values: dict) -> dict: method save_context (line 98) | def save_context(self, inputs: dict[str, Any], outputs: dict[str, str]... method asave_context (line 103) | async def asave_context( method prune (line 112) | def prune(self) -> None: method aprune (line 126) | async def aprune(self) -> None: method clear (line 140) | def clear(self) -> None: method aclear (line 145) | async def aclear(self) -> None: FILE: libs/langchain/langchain_classic/memory/token_buffer.py class ConversationTokenBufferMemory (line 19) | class ConversationTokenBufferMemory(BaseChatMemory): method buffer (line 33) | def buffer(self) -> Any: method buffer_as_str (line 38) | def buffer_as_str(self) -> str: method buffer_as_messages (line 47) | def buffer_as_messages(self) -> list[BaseMessage]: method memory_variables (line 52) | def memory_variables(self) -> list[str]: method load_memory_variables (line 57) | def load_memory_variables(self, inputs: dict[str, Any]) -> dict[str, A... method save_context (line 61) | def save_context(self, inputs: dict[str, Any], outputs: dict[str, str]... FILE: libs/langchain/langchain_classic/memory/utils.py function get_prompt_input_key (line 4) | def get_prompt_input_key(inputs: dict[str, Any], memory_variables: list[... FILE: libs/langchain/langchain_classic/memory/vectorstore.py class VectorStoreRetrieverMemory (line 23) | class VectorStoreRetrieverMemory(BaseMemory): method memory_variables (line 46) | def memory_variables(self) -> list[str]: method _get_prompt_input_key (line 50) | def _get_prompt_input_key(self, inputs: dict[str, Any]) -> str: method _documents_to_memory_variables (line 56) | def _documents_to_memory_variables( method load_memory_variables (line 67) | def load_memory_variables( method aload_memory_variables (line 77) | async def aload_memory_variables( method _form_documents (line 87) | def _form_documents( method save_context (line 104) | def save_context(self, inputs: dict[str, Any], outputs: dict[str, str]... method asave_context (line 109) | async def asave_context( method clear (line 118) | def clear(self) -> None: method aclear (line 121) | async def aclear(self) -> None: FILE: libs/langchain/langchain_classic/memory/vectorstore_token_buffer_memory.py class ConversationVectorStoreTokenBufferMemory (line 37) | class ConversationVectorStoreTokenBufferMemory(ConversationTokenBufferMe... method memory_retriever (line 116) | def memory_retriever(self) -> VectorStoreRetrieverMemory: method load_memory_variables (line 123) | def load_memory_variables(self, inputs: dict[str, Any]) -> dict[str, A... method save_context (line 145) | def save_context(self, inputs: dict[str, Any], outputs: dict[str, str]... method save_remainder (line 157) | def save_remainder(self) -> None: method _pop_and_store_interaction (line 168) | def _pop_and_store_interaction(self, buffer: list[BaseMessage]) -> None: method _split_long_ai_text (line 181) | def _split_long_ai_text(self, text: str) -> list[str]: FILE: libs/langchain/langchain_classic/memory/zep_memory.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/model_laboratory.py class ModelLaboratory (line 15) | class ModelLaboratory: method __init__ (line 18) | def __init__(self, chains: Sequence[Chain], names: list[str] | None = ... method from_llms (line 62) | def from_llms( method compare (line 83) | def compare(self, text: str) -> None: FILE: libs/langchain/langchain_classic/output_parsers/__init__.py function __getattr__ (line 53) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/output_parsers/boolean.py class BooleanOutputParser (line 6) | class BooleanOutputParser(BaseOutputParser[bool]): method parse (line 14) | def parse(self, text: str) -> bool: method _type (line 52) | def _type(self) -> str: FILE: libs/langchain/langchain_classic/output_parsers/combining.py class CombiningOutputParser (line 12) | class CombiningOutputParser(BaseOutputParser[dict[str, Any]]): method is_lc_serializable (line 19) | def is_lc_serializable(cls) -> bool: method validate_parsers (line 23) | def validate_parsers(cls, values: dict[str, Any]) -> dict[str, Any]: method _type (line 39) | def _type(self) -> str: method get_format_instructions (line 43) | def get_format_instructions(self) -> str: method parse (line 52) | def parse(self, text: str) -> dict[str, Any]: FILE: libs/langchain/langchain_classic/output_parsers/datetime.py class DatetimeOutputParser (line 8) | class DatetimeOutputParser(BaseOutputParser[datetime]): method get_format_instructions (line 17) | def get_format_instructions(self) -> str: method parse (line 48) | def parse(self, response: str) -> datetime: method _type (line 57) | def _type(self) -> str: FILE: libs/langchain/langchain_classic/output_parsers/enum.py class EnumOutputParser (line 9) | class EnumOutputParser(BaseOutputParser[Enum]): method _raise_deprecation (line 16) | def _raise_deprecation(cls, values: dict) -> dict: method _valid_values (line 24) | def _valid_values(self) -> list[str]: method parse (line 28) | def parse(self, response: str) -> Enum: method get_format_instructions (line 39) | def get_format_instructions(self) -> str: method OutputType (line 44) | def OutputType(self) -> type[Enum]: FILE: libs/langchain/langchain_classic/output_parsers/ernie_functions.py function __getattr__ (line 34) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/output_parsers/fix.py class OutputFixingParserRetryChainInput (line 17) | class OutputFixingParserRetryChainInput(TypedDict, total=False): class OutputFixingParser (line 25) | class OutputFixingParser(BaseOutputParser[T]): method is_lc_serializable (line 30) | def is_lc_serializable(cls) -> bool: method from_llm (line 48) | def from_llm( method parse (line 70) | def parse(self, completion: str) -> T: method aparse (line 108) | async def aparse(self, completion: str) -> T: method get_format_instructions (line 146) | def get_format_instructions(self) -> str: method _type (line 150) | def _type(self) -> str: method OutputType (line 155) | def OutputType(self) -> type[T]: FILE: libs/langchain/langchain_classic/output_parsers/loading.py function load_output_parser (line 4) | def load_output_parser(config: dict) -> dict: FILE: libs/langchain/langchain_classic/output_parsers/pandas_dataframe.py class PandasDataFrameOutputParser (line 14) | class PandasDataFrameOutputParser(BaseOutputParser[dict[str, Any]]): method _validate_dataframe (line 22) | def _validate_dataframe(cls, val: Any) -> Any: method parse_array (line 35) | def parse_array( method parse (line 93) | def parse(self, request: str) -> dict[str, Any]: method get_format_instructions (line 168) | def get_format_instructions(self) -> str: FILE: libs/langchain/langchain_classic/output_parsers/rail_parser.py function __getattr__ (line 18) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/output_parsers/regex.py class RegexParser (line 9) | class RegexParser(BaseOutputParser[dict[str, str]]): method is_lc_serializable (line 14) | def is_lc_serializable(cls) -> bool: method _type (line 25) | def _type(self) -> str: method parse (line 29) | def parse(self, text: str) -> dict[str, str]: FILE: libs/langchain/langchain_classic/output_parsers/regex_dict.py class RegexDictParser (line 8) | class RegexDictParser(BaseOutputParser[dict[str, str]]): method _type (line 19) | def _type(self) -> str: method parse (line 23) | def parse(self, text: str) -> dict[str, str]: FILE: libs/langchain/langchain_classic/output_parsers/retry.py class RetryOutputParserRetryChainInput (line 39) | class RetryOutputParserRetryChainInput(TypedDict): class RetryWithErrorOutputParserRetryChainInput (line 46) | class RetryWithErrorOutputParserRetryChainInput(TypedDict): class RetryOutputParser (line 54) | class RetryOutputParser(BaseOutputParser[T]): method from_llm (line 76) | def from_llm( method parse_with_prompt (line 97) | def parse_with_prompt(self, completion: str, prompt_value: PromptValue... method aparse_with_prompt (line 132) | async def aparse_with_prompt(self, completion: str, prompt_value: Prom... method parse (line 169) | def parse(self, completion: str) -> T: method get_format_instructions (line 174) | def get_format_instructions(self) -> str: method _type (line 178) | def _type(self) -> str: method OutputType (line 183) | def OutputType(self) -> type[T]: class RetryWithErrorOutputParser (line 187) | class RetryWithErrorOutputParser(BaseOutputParser[T]): method from_llm (line 212) | def from_llm( method parse_with_prompt (line 234) | def parse_with_prompt(self, completion: str, prompt_value: PromptValue... method aparse_with_prompt (line 262) | async def aparse_with_prompt(self, completion: str, prompt_value: Prom... method parse (line 300) | def parse(self, completion: str) -> T: method get_format_instructions (line 305) | def get_format_instructions(self) -> str: method _type (line 309) | def _type(self) -> str: method OutputType (line 314) | def OutputType(self) -> type[T]: FILE: libs/langchain/langchain_classic/output_parsers/structured.py class ResponseSchema (line 18) | class ResponseSchema(BaseModel): function _get_sub_string (line 29) | def _get_sub_string(schema: ResponseSchema) -> str: class StructuredOutputParser (line 37) | class StructuredOutputParser(BaseOutputParser[dict[str, Any]]): method from_response_schemas (line 44) | def from_response_schemas( method get_format_instructions (line 58) | def get_format_instructions( method parse (line 110) | def parse(self, text: str) -> dict[str, Any]: method _type (line 115) | def _type(self) -> str: FILE: libs/langchain/langchain_classic/output_parsers/yaml.py class YamlOutputParser (line 18) | class YamlOutputParser(BaseOutputParser[T]): method parse (line 31) | def parse(self, text: str) -> T: method get_format_instructions (line 47) | def get_format_instructions(self) -> str: method _type (line 63) | def _type(self) -> str: method OutputType (line 68) | def OutputType(self) -> type[T]: FILE: libs/langchain/langchain_classic/prompts/__init__.py function __getattr__ (line 52) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/prompts/example_selector/__init__.py function __getattr__ (line 32) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/prompts/example_selector/ngram_overlap.py function __getattr__ (line 24) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/python.py function __getattr__ (line 17) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/requests.py function __getattr__ (line 26) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/retrievers/__init__.py function __getattr__ (line 116) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/retrievers/arcee.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/retrievers/arxiv.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/retrievers/azure_ai_search.py function __getattr__ (line 22) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/retrievers/bedrock.py function __getattr__ (line 24) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/retrievers/bm25.py function __getattr__ (line 20) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/retrievers/chaindesk.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/retrievers/chatgpt_plugin_retriever.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/retrievers/cohere_rag_retriever.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/retrievers/contextual_compression.py class ContextualCompressionRetriever (line 13) | class ContextualCompressionRetriever(BaseRetriever): method _get_relevant_documents (line 27) | def _get_relevant_documents( method _aget_relevant_documents (line 49) | async def _aget_relevant_documents( FILE: libs/langchain/langchain_classic/retrievers/databerry.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/retrievers/docarray.py function __getattr__ (line 20) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/retrievers/document_compressors/__init__.py function __getattr__ (line 29) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/retrievers/document_compressors/base.py class DocumentCompressorPipeline (line 13) | class DocumentCompressorPipeline(BaseDocumentCompressor): method compress_documents (line 23) | def compress_documents( method acompress_documents (line 53) | async def acompress_documents( FILE: libs/langchain/langchain_classic/retrievers/document_compressors/chain_extract.py function default_get_input (line 23) | def default_get_input(query: str, doc: Document) -> dict[str, Any]: class NoOutputParser (line 28) | class NoOutputParser(BaseOutputParser[str]): method parse (line 34) | def parse(self, text: str) -> str: function _get_default_chain_prompt (line 41) | def _get_default_chain_prompt() -> PromptTemplate: class LLMChainExtractor (line 51) | class LLMChainExtractor(BaseDocumentCompressor): method compress_documents (line 68) | def compress_documents( method acompress_documents (line 92) | async def acompress_documents( method from_llm (line 111) | def from_llm( FILE: libs/langchain/langchain_classic/retrievers/document_compressors/chain_filter.py function _get_default_chain_prompt (line 22) | def _get_default_chain_prompt() -> PromptTemplate: function default_get_input (line 30) | def default_get_input(query: str, doc: Document) -> dict[str, Any]: class LLMChainFilter (line 35) | class LLMChainFilter(BaseDocumentCompressor): method compress_documents (line 49) | def compress_documents( method acompress_documents (line 81) | async def acompress_documents( method from_llm (line 113) | def from_llm( FILE: libs/langchain/langchain_classic/retrievers/document_compressors/cohere_rerank.py class CohereRerank (line 20) | class CohereRerank(BaseDocumentCompressor): method validate_environment (line 42) | def validate_environment(cls, values: dict) -> Any: method rerank (line 62) | def rerank( method compress_documents (line 102) | def compress_documents( FILE: libs/langchain/langchain_classic/retrievers/document_compressors/cross_encoder_rerank.py class CrossEncoderReranker (line 16) | class CrossEncoderReranker(BaseDocumentCompressor): method compress_documents (line 31) | def compress_documents( FILE: libs/langchain/langchain_classic/retrievers/document_compressors/embeddings_filter.py function _get_similarity_function (line 11) | def _get_similarity_function() -> Callable: class EmbeddingsFilter (line 23) | class EmbeddingsFilter(BaseDocumentCompressor): method validate_params (line 48) | def validate_params(cls, values: dict) -> dict: method compress_documents (line 56) | def compress_documents( method acompress_documents (line 100) | async def acompress_documents( FILE: libs/langchain/langchain_classic/retrievers/document_compressors/flashrank_rerank.py function __getattr__ (line 20) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/retrievers/document_compressors/listwise_rerank.py function _get_prompt_input (line 21) | def _get_prompt_input(input_: dict) -> dict[str, Any]: function _parse_ranking (line 34) | def _parse_ranking(results: dict) -> list[Document]: class LLMListwiseRerank (line 40) | class LLMListwiseRerank(BaseDocumentCompressor): method compress_documents (line 88) | def compress_documents( method from_llm (line 102) | def from_llm( FILE: libs/langchain/langchain_classic/retrievers/elastic_search_bm25.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/retrievers/embedchain.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/retrievers/ensemble.py function unique_by_key (line 36) | def unique_by_key(iterable: Iterable[T], key: Callable[[T], H]) -> Itera... class EnsembleRetriever (line 53) | class EnsembleRetriever(BaseRetriever): method config_specs (line 74) | def config_specs(self) -> list[ConfigurableFieldSpec]: method _set_weights (line 82) | def _set_weights(cls, values: dict[str, Any]) -> Any: method invoke (line 105) | def invoke( method ainvoke (line 142) | async def ainvoke( method _get_relevant_documents (line 182) | def _get_relevant_documents( method _aget_relevant_documents (line 200) | async def _aget_relevant_documents( method rank_fusion (line 218) | def rank_fusion( method arank_fusion (line 260) | async def arank_fusion( method weighted_reciprocal_rank (line 304) | def weighted_reciprocal_rank( FILE: libs/langchain/langchain_classic/retrievers/google_cloud_documentai_warehouse.py function __getattr__ (line 18) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/retrievers/google_vertex_ai_search.py function __getattr__ (line 24) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/retrievers/kay.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/retrievers/kendra.py function __getattr__ (line 46) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/retrievers/knn.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/retrievers/llama_index.py function __getattr__ (line 22) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/retrievers/merger_retriever.py class MergerRetriever (line 11) | class MergerRetriever(BaseRetriever): method _get_relevant_documents (line 17) | def _get_relevant_documents( method _aget_relevant_documents (line 35) | async def _aget_relevant_documents( method merge_documents (line 53) | def merge_documents( method amerge_documents (line 86) | async def amerge_documents( FILE: libs/langchain/langchain_classic/retrievers/metal.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/retrievers/milvus.py function __getattr__ (line 20) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/retrievers/multi_query.py class LineListOutputParser (line 23) | class LineListOutputParser(BaseOutputParser[list[str]]): method parse (line 27) | def parse(self, text: str) -> list[str]: function _unique_documents (line 45) | def _unique_documents(documents: Sequence[Document]) -> list[Document]: class MultiQueryRetriever (line 49) | class MultiQueryRetriever(BaseRetriever): method from_llm (line 64) | def from_llm( method _aget_relevant_documents (line 95) | async def _aget_relevant_documents( method agenerate_queries (line 116) | async def agenerate_queries( method aretrieve_documents (line 139) | async def aretrieve_documents( method _get_relevant_documents (line 164) | def _get_relevant_documents( method generate_queries (line 185) | def generate_queries( method retrieve_documents (line 208) | def retrieve_documents( method unique_union (line 231) | def unique_union(self, documents: list[Document]) -> list[Document]: FILE: libs/langchain/langchain_classic/retrievers/multi_vector.py class SearchType (line 18) | class SearchType(str, Enum): class MultiVectorRetriever (line 29) | class MultiVectorRetriever(BaseRetriever): method _shim_docstore (line 65) | def _shim_docstore(cls, values: dict) -> Any: method _get_relevant_documents (line 77) | def _get_relevant_documents( method _aget_relevant_documents (line 116) | async def _aget_relevant_documents( FILE: libs/langchain/langchain_classic/retrievers/outline.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/retrievers/parent_document_retriever.py class ParentDocumentRetriever (line 11) | class ParentDocumentRetriever(MultiVectorRetriever): method _split_docs_for_adding (line 76) | def _split_docs_for_adding( method add_documents (line 116) | def add_documents( method aadd_documents (line 147) | async def aadd_documents( FILE: libs/langchain/langchain_classic/retrievers/pinecone_hybrid_search.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/retrievers/pubmed.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/retrievers/pupmed.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/retrievers/re_phraser.py class RePhraseQueryRetriever (line 27) | class RePhraseQueryRetriever(BaseRetriever): method from_llm (line 37) | def from_llm( method _get_relevant_documents (line 61) | def _get_relevant_documents( method _aget_relevant_documents (line 86) | async def _aget_relevant_documents( FILE: libs/langchain/langchain_classic/retrievers/remote_retriever.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/retrievers/self_query/astradb.py function __getattr__ (line 18) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/retrievers/self_query/base.py function _get_builtin_translator (line 29) | def _get_builtin_translator(vectorstore: VectorStore) -> Visitor: class SelfQueryRetriever (line 237) | class SelfQueryRetriever(BaseRetriever): method validate_translator (line 267) | def validate_translator(cls, values: dict) -> Any: method llm_chain (line 276) | def llm_chain(self) -> Runnable: method _prepare_query (line 280) | def _prepare_query( method _get_docs_with_query (line 295) | def _get_docs_with_query( method _aget_docs_with_query (line 302) | async def _aget_docs_with_query( method _get_relevant_documents (line 310) | def _get_relevant_documents( method _aget_relevant_documents (line 326) | async def _aget_relevant_documents( method from_llm (line 342) | def from_llm( FILE: libs/langchain/langchain_classic/retrievers/self_query/chroma.py function __getattr__ (line 18) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/retrievers/self_query/dashvector.py function __getattr__ (line 18) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/retrievers/self_query/databricks_vector_search.py function __getattr__ (line 22) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/retrievers/self_query/deeplake.py function __getattr__ (line 22) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/retrievers/self_query/dingo.py function __getattr__ (line 18) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/retrievers/self_query/elasticsearch.py function __getattr__ (line 20) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/retrievers/self_query/milvus.py function __getattr__ (line 22) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/retrievers/self_query/mongodb_atlas.py function __getattr__ (line 20) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/retrievers/self_query/myscale.py function __getattr__ (line 18) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/retrievers/self_query/opensearch.py function __getattr__ (line 18) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/retrievers/self_query/pgvector.py function __getattr__ (line 18) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/retrievers/self_query/pinecone.py function __getattr__ (line 18) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/retrievers/self_query/qdrant.py function __getattr__ (line 18) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/retrievers/self_query/redis.py function __getattr__ (line 18) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/retrievers/self_query/supabase.py function __getattr__ (line 18) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/retrievers/self_query/tencentvectordb.py function __getattr__ (line 22) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/retrievers/self_query/timescalevector.py function __getattr__ (line 22) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/retrievers/self_query/vectara.py function __getattr__ (line 22) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/retrievers/self_query/weaviate.py function __getattr__ (line 18) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/retrievers/svm.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/retrievers/tavily_search_api.py function __getattr__ (line 20) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/retrievers/tfidf.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/retrievers/time_weighted_retriever.py function _get_hours_passed (line 16) | def _get_hours_passed(time: datetime.datetime, ref_time: datetime.dateti... class TimeWeightedVectorStoreRetriever (line 21) | class TimeWeightedVectorStoreRetriever(BaseRetriever): method _document_get_date (line 56) | def _document_get_date(self, field: str, document: Document) -> dateti... method _get_combined_score (line 64) | def _get_combined_score( method get_salient_docs (line 83) | def get_salient_docs(self, query: str) -> dict[int, tuple[Document, fl... method aget_salient_docs (line 98) | async def aget_salient_docs(self, query: str) -> dict[int, tuple[Docum... method _get_rescored_docs (line 115) | def _get_rescored_docs( method _get_relevant_documents (line 135) | def _get_relevant_documents( method _aget_relevant_documents (line 150) | async def _aget_relevant_documents( method add_documents (line 164) | def add_documents(self, documents: list[Document], **kwargs: Any) -> l... method aadd_documents (line 180) | async def aadd_documents( FILE: libs/langchain/langchain_classic/retrievers/vespa_retriever.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/retrievers/weaviate_hybrid_search.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/retrievers/web_research.py function __getattr__ (line 24) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/retrievers/wikipedia.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/retrievers/you.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/retrievers/zep.py function __getattr__ (line 21) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/retrievers/zilliz.py function __getattr__ (line 20) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/runnables/hub.py class HubRunnable (line 7) | class HubRunnable(RunnableBindingBase[Input, Output]): # type: ignore[n... method __init__ (line 12) | def __init__( FILE: libs/langchain/langchain_classic/runnables/openai_functions.py class OpenAIFunction (line 12) | class OpenAIFunction(TypedDict): class OpenAIFunctionsRouter (line 23) | class OpenAIFunctionsRouter(RunnableBindingBase[BaseMessage, Any]): # t... method __init__ (line 28) | def __init__( FILE: libs/langchain/langchain_classic/serpapi.py function __getattr__ (line 18) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/smith/evaluation/config.py class EvalConfig (line 34) | class EvalConfig(BaseModel): method get_kwargs (line 43) | def get_kwargs(self) -> dict[str, Any]: class SingleKeyEvalConfig (line 57) | class SingleKeyEvalConfig(EvalConfig): method get_kwargs (line 72) | def get_kwargs(self) -> dict[str, Any]: class RunEvalConfig (line 84) | class RunEvalConfig(BaseModel): class Criteria (line 123) | class Criteria(SingleKeyEvalConfig): class LabeledCriteria (line 135) | class LabeledCriteria(SingleKeyEvalConfig): class EmbeddingDistance (line 147) | class EmbeddingDistance(SingleKeyEvalConfig): class StringDistance (line 163) | class StringDistance(SingleKeyEvalConfig): class QA (line 177) | class QA(SingleKeyEvalConfig): class ContextQA (line 189) | class ContextQA(SingleKeyEvalConfig): class CoTQA (line 201) | class CoTQA(SingleKeyEvalConfig): class JsonValidity (line 213) | class JsonValidity(SingleKeyEvalConfig): class JsonEqualityEvaluator (line 218) | class JsonEqualityEvaluator(EvalConfig): class ExactMatch (line 223) | class ExactMatch(SingleKeyEvalConfig): class RegexMatch (line 237) | class RegexMatch(SingleKeyEvalConfig): class ScoreString (line 247) | class ScoreString(SingleKeyEvalConfig): class LabeledScoreString (line 270) | class LabeledScoreString(ScoreString): FILE: libs/langchain/langchain_classic/smith/evaluation/name_generation.py function random_name (line 722) | def random_name() -> str: FILE: libs/langchain/langchain_classic/smith/evaluation/progress.py class ProgressBarCallback (line 14) | class ProgressBarCallback(base_callbacks.BaseCallbackHandler): method __init__ (line 17) | def __init__( method increment (line 37) | def increment(self) -> None: method _print_bar (line 43) | def _print_bar(self) -> None: method on_chain_error (line 52) | def on_chain_error( method on_chain_end (line 64) | def on_chain_end( method on_retriever_error (line 76) | def on_retriever_error( method on_retriever_end (line 88) | def on_retriever_end( method on_llm_error (line 100) | def on_llm_error( method on_llm_end (line 112) | def on_llm_end( method on_tool_error (line 124) | def on_tool_error( method on_tool_end (line 136) | def on_tool_end( FILE: libs/langchain/langchain_classic/smith/evaluation/runner_utils.py class InputFormatError (line 73) | class InputFormatError(Exception): class TestResult (line 80) | class TestResult(dict): method get_aggregate_feedback (line 83) | def get_aggregate_feedback( method to_dataframe (line 104) | def to_dataframe(self) -> pd.DataFrame: class EvalError (line 152) | class EvalError(dict): method __init__ (line 155) | def __init__(self, Error: BaseException, **kwargs: Any) -> None: # no... method __getattr__ (line 164) | def __getattr__(self, name: str) -> Any: function _wrap_in_chain_factory (line 183) | def _wrap_in_chain_factory( function _get_prompt (line 247) | def _get_prompt(inputs: dict[str, Any]) -> str: class ChatModelInput (line 297) | class ChatModelInput(TypedDict): function _get_messages (line 303) | def _get_messages(inputs: dict[str, Any]) -> dict: function _validate_example_inputs_for_language_model (line 346) | def _validate_example_inputs_for_language_model( function _validate_example_inputs_for_chain (line 381) | def _validate_example_inputs_for_chain( function _validate_example_inputs (line 421) | def _validate_example_inputs( function _setup_evaluation (line 441) | def _setup_evaluation( function _determine_input_key (line 471) | def _determine_input_key( function _determine_prediction_key (line 498) | def _determine_prediction_key( function _determine_reference_key (line 524) | def _determine_reference_key( function _construct_run_evaluator (line 543) | def _construct_run_evaluator( function _get_keys (line 610) | def _get_keys( function _load_run_evaluators (line 622) | def _load_run_evaluators( function _arun_llm (line 697) | async def _arun_llm( function _arun_chain (line 767) | async def _arun_chain( function _arun_llm_or_chain (line 803) | async def _arun_llm_or_chain( function _run_llm (line 861) | def _run_llm( function _run_chain (line 929) | def _run_chain( function _run_llm_or_chain (line 965) | def _run_llm_or_chain( function _prepare_eval_run (line 1022) | def _prepare_eval_run( class _RowResult (line 1085) | class _RowResult(TypedDict, total=False): class _DatasetRunContainer (line 1094) | class _DatasetRunContainer: method _merge_test_outputs (line 1104) | def _merge_test_outputs( method _run_batch_evaluators (line 1126) | def _run_batch_evaluators(self, runs: dict[str, Run]) -> list[dict]: method _collect_metrics (line 1151) | def _collect_metrics(self) -> tuple[dict[str, _RowResult], dict[str, R... method _collect_test_results (line 1180) | def _collect_test_results( method finish (line 1198) | def finish( method prepare (line 1221) | def prepare( function _is_jupyter_environment (line 1296) | def _is_jupyter_environment() -> bool: function _display_aggregate_results (line 1306) | def _display_aggregate_results(aggregate_results: pd.DataFrame) -> None: function arun_on_dataset (line 1338) | async def arun_on_dataset( function run_on_dataset (line 1512) | def run_on_dataset( FILE: libs/langchain/langchain_classic/smith/evaluation/string_run_evaluator.py function _get_messages_from_run_dict (line 29) | def _get_messages_from_run_dict(messages: list[dict]) -> list[BaseMessage]: class StringRunMapper (line 38) | class StringRunMapper(Serializable): method output_keys (line 42) | def output_keys(self) -> list[str]: method map (line 47) | def map(self, run: Run) -> dict[str, str]: method __call__ (line 50) | def __call__(self, run: Run) -> dict[str, str]: class LLMStringRunMapper (line 58) | class LLMStringRunMapper(StringRunMapper): method serialize_chat_messages (line 61) | def serialize_chat_messages(self, messages: list[dict] | list[list[dic... method serialize_inputs (line 78) | def serialize_inputs(self, inputs: dict) -> str: method serialize_outputs (line 101) | def serialize_outputs(self, outputs: dict) -> str: method map (line 132) | def map(self, run: Run) -> dict[str, str]: class ChainStringRunMapper (line 156) | class ChainStringRunMapper(StringRunMapper): method _get_key (line 168) | def _get_key(self, source: dict, key: str | None, which: str) -> str: method map (line 179) | def map(self, run: Run) -> dict[str, str]: class ToolStringRunMapper (line 214) | class ToolStringRunMapper(StringRunMapper): method map (line 218) | def map(self, run: Run) -> dict[str, str]: class StringExampleMapper (line 225) | class StringExampleMapper(Serializable): method output_keys (line 231) | def output_keys(self) -> list[str]: method serialize_chat_messages (line 235) | def serialize_chat_messages(self, messages: list[dict]) -> str: method map (line 240) | def map(self, example: Example) -> dict[str, str]: method __call__ (line 267) | def __call__(self, example: Example) -> dict[str, str]: class StringRunEvaluatorChain (line 275) | class StringRunEvaluatorChain(Chain, RunEvaluator): method input_keys (line 290) | def input_keys(self) -> list[str]: method output_keys (line 295) | def output_keys(self) -> list[str]: method _prepare_input (line 298) | def _prepare_input(self, inputs: dict[str, Any]) -> dict[str, str]: method _prepare_output (line 316) | def _prepare_output(self, output: dict[str, Any]) -> dict[str, Any]: method _call (line 327) | def _call( method _acall (line 343) | async def _acall( method _prepare_evaluator_output (line 359) | def _prepare_evaluator_output(self, output: dict[str, Any]) -> Evaluat... method evaluate_run (line 366) | def evaluate_run( method aevaluate_run (line 385) | async def aevaluate_run( method from_run_and_data_type (line 406) | def from_run_and_data_type( FILE: libs/langchain/langchain_classic/sql_database.py function __getattr__ (line 18) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/storage/__init__.py function __getattr__ (line 41) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/storage/_lc_store.py function _dump_as_bytes (line 13) | def _dump_as_bytes(obj: Serializable) -> bytes: function _dump_document_as_bytes (line 18) | def _dump_document_as_bytes(obj: Any) -> bytes: function _load_document_from_bytes (line 26) | def _load_document_from_bytes(serialized: bytes) -> Document: function _load_from_bytes (line 35) | def _load_from_bytes(serialized: bytes) -> Serializable: function _identity (line 40) | def _identity(x: str) -> str: function create_lc_store (line 48) | def create_lc_store( function create_kv_docstore (line 70) | def create_kv_docstore( FILE: libs/langchain/langchain_classic/storage/encoder_backed.py class EncoderBackedStore (line 13) | class EncoderBackedStore(BaseStore[K, V]): method __init__ (line 52) | def __init__( method mget (line 72) | def mget(self, keys: Sequence[K]) -> list[V | None]: method amget (line 89) | async def amget(self, keys: Sequence[K]) -> list[V | None]: method mset (line 106) | def mset(self, key_value_pairs: Sequence[tuple[K, V]]) -> None: method amset (line 118) | async def amset(self, key_value_pairs: Sequence[tuple[K, V]]) -> None: method mdelete (line 130) | def mdelete(self, keys: Sequence[K]) -> None: method amdelete (line 139) | async def amdelete(self, keys: Sequence[K]) -> None: method yield_keys (line 148) | def yield_keys( method ayield_keys (line 165) | async def ayield_keys( FILE: libs/langchain/langchain_classic/storage/file_system.py class LocalFileStore (line 12) | class LocalFileStore(ByteStore): method __init__ (line 39) | def __init__( method _get_full_path (line 65) | def _get_full_path(self, key: str) -> Path: method _mkdir_for_store (line 89) | def _mkdir_for_store(self, dir_path: Path) -> None: method mget (line 104) | def mget(self, keys: Sequence[str]) -> list[bytes | None]: method mset (line 127) | def mset(self, key_value_pairs: Sequence[tuple[str, bytes]]) -> None: method mdelete (line 140) | def mdelete(self, keys: Sequence[str]) -> None: method yield_keys (line 151) | def yield_keys(self, *, prefix: str | None = None) -> Iterator[str]: FILE: libs/langchain/langchain_classic/storage/redis.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/storage/upstash_redis.py function __getattr__ (line 19) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/__init__.py function _import_python_tool_python_ast_repl_tool (line 28) | def _import_python_tool_python_ast_repl_tool() -> Any: function _import_python_tool_python_repl_tool (line 40) | def _import_python_tool_python_repl_tool() -> Any: function __getattr__ (line 52) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/ainetwork/app.py function __getattr__ (line 21) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/ainetwork/base.py function __getattr__ (line 19) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/ainetwork/owner.py function __getattr__ (line 20) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/ainetwork/rule.py function __getattr__ (line 20) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/ainetwork/transfer.py function __getattr__ (line 20) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/ainetwork/value.py function __getattr__ (line 20) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/amadeus/__init__.py function __getattr__ (line 22) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/amadeus/base.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/amadeus/closest_airport.py function __getattr__ (line 22) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/amadeus/flight_search.py function __getattr__ (line 22) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/arxiv/tool.py function __getattr__ (line 20) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/azure_cognitive_services/__init__.py function __getattr__ (line 30) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/azure_cognitive_services/form_recognizer.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/azure_cognitive_services/image_analysis.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/azure_cognitive_services/speech2text.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/azure_cognitive_services/text2speech.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/azure_cognitive_services/text_analytics_health.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/bearly/tool.py function __getattr__ (line 24) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/bing_search/__init__.py function __getattr__ (line 21) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/bing_search/tool.py function __getattr__ (line 19) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/brave_search/tool.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/clickup/tool.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/dataforseo_api_search/__init__.py function __getattr__ (line 26) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/dataforseo_api_search/tool.py function __getattr__ (line 24) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/ddg_search/__init__.py function __getattr__ (line 18) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/ddg_search/tool.py function __getattr__ (line 22) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/e2b_data_analysis/tool.py function __getattr__ (line 24) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/edenai/__init__.py function __getattr__ (line 36) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/edenai/audio_speech_to_text.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/edenai/audio_text_to_speech.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/edenai/edenai_base_tool.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/edenai/image_explicitcontent.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/edenai/image_objectdetection.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/edenai/ocr_identityparser.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/edenai/ocr_invoiceparser.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/edenai/text_moderation.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/eleven_labs/__init__.py function __getattr__ (line 18) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/eleven_labs/models.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/eleven_labs/text2speech.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/file_management/__init__.py function __getattr__ (line 34) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/file_management/copy.py function __getattr__ (line 20) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/file_management/delete.py function __getattr__ (line 20) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/file_management/file_search.py function __getattr__ (line 20) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/file_management/list_dir.py function __getattr__ (line 20) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/file_management/move.py function __getattr__ (line 20) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/file_management/read.py function __getattr__ (line 20) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/file_management/write.py function __getattr__ (line 20) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/github/tool.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/gitlab/tool.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/gmail/__init__.py function __getattr__ (line 30) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/gmail/base.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/gmail/create_draft.py function __getattr__ (line 20) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/gmail/get_message.py function __getattr__ (line 20) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/gmail/get_thread.py function __getattr__ (line 20) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/gmail/search.py function __getattr__ (line 21) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/gmail/send_message.py function __getattr__ (line 20) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/golden_query/__init__.py function __getattr__ (line 18) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/golden_query/tool.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/google_cloud/__init__.py function __getattr__ (line 18) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/google_cloud/texttospeech.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/google_finance/__init__.py function __getattr__ (line 20) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/google_finance/tool.py function __getattr__ (line 18) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/google_jobs/__init__.py function __getattr__ (line 18) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/google_jobs/tool.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/google_lens/__init__.py function __getattr__ (line 18) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/google_lens/tool.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/google_places/__init__.py function __getattr__ (line 18) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/google_places/tool.py function __getattr__ (line 20) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/google_scholar/__init__.py function __getattr__ (line 20) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/google_scholar/tool.py function __getattr__ (line 18) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/google_search/__init__.py function __getattr__ (line 21) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/google_search/tool.py function __getattr__ (line 19) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/google_serper/__init__.py function __getattr__ (line 22) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/google_serper/tool.py function __getattr__ (line 19) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/google_trends/__init__.py function __getattr__ (line 20) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/google_trends/tool.py function __getattr__ (line 18) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/graphql/tool.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/human/__init__.py function __getattr__ (line 18) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/human/tool.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/ifttt.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/interaction/tool.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/jira/tool.py function __getattr__ (line 26) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/json/tool.py function __getattr__ (line 31) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/memorize/__init__.py function __getattr__ (line 18) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/memorize/tool.py function __getattr__ (line 19) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/merriam_webster/tool.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/metaphor_search/__init__.py function __getattr__ (line 18) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/metaphor_search/tool.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/multion/__init__.py function __getattr__ (line 24) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/multion/close_session.py function __getattr__ (line 22) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/multion/create_session.py function __getattr__ (line 22) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/multion/update_session.py function __getattr__ (line 22) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/nasa/tool.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/nuclia/__init__.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/nuclia/tool.py function __getattr__ (line 19) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/office365/__init__.py function __getattr__ (line 30) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/office365/base.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/office365/create_draft_message.py function __getattr__ (line 24) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/office365/events_search.py function __getattr__ (line 20) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/office365/messages_search.py function __getattr__ (line 20) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/office365/send_event.py function __getattr__ (line 20) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/office365/send_message.py function __getattr__ (line 20) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/openapi/utils/api_models.py function __getattr__ (line 38) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/openapi/utils/openapi_utils.py function __getattr__ (line 22) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/openweathermap/__init__.py function __getattr__ (line 18) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/openweathermap/tool.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/playwright/__init__.py function __getattr__ (line 34) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/playwright/base.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/playwright/click.py function __getattr__ (line 20) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/playwright/current_page.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/playwright/extract_hyperlinks.py function __getattr__ (line 24) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/playwright/extract_text.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/playwright/get_elements.py function __getattr__ (line 20) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/playwright/navigate.py function __getattr__ (line 20) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/playwright/navigate_back.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/plugin.py function __getattr__ (line 22) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/powerbi/tool.py function __getattr__ (line 24) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/pubmed/tool.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/python/__init__.py function __getattr__ (line 4) | def __getattr__(_: str = "") -> Any: FILE: libs/langchain/langchain_classic/tools/reddit_search/tool.py function __getattr__ (line 19) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/requests/tool.py function __getattr__ (line 30) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/scenexplain/tool.py function __getattr__ (line 20) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/searchapi/__init__.py function __getattr__ (line 22) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/searchapi/tool.py function __getattr__ (line 19) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/searx_search/tool.py function __getattr__ (line 19) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/shell/__init__.py function __getattr__ (line 18) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/shell/tool.py function __getattr__ (line 20) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/slack/__init__.py function __getattr__ (line 28) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/slack/base.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/slack/get_channel.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/slack/get_message.py function __getattr__ (line 20) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/slack/schedule_message.py function __getattr__ (line 20) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/slack/send_message.py function __getattr__ (line 20) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/sleep/tool.py function __getattr__ (line 20) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/spark_sql/tool.py function __getattr__ (line 28) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/sql_database/prompt.py function __getattr__ (line 19) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/sql_database/tool.py function __getattr__ (line 28) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/stackexchange/tool.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/steam/tool.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/steamship_image_generation/__init__.py function __getattr__ (line 18) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/steamship_image_generation/tool.py function __getattr__ (line 20) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/tavily_search/__init__.py function __getattr__ (line 24) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/tavily_search/tool.py function __getattr__ (line 24) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/vectorstore/tool.py function __getattr__ (line 22) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/wikipedia/tool.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/wolfram_alpha/__init__.py function __getattr__ (line 18) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/wolfram_alpha/tool.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/yahoo_finance_news.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/youtube/search.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/zapier/__init__.py function __getattr__ (line 21) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/tools/zapier/tool.py function __getattr__ (line 29) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/utilities/__init__.py function __getattr__ (line 117) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/utilities/alpha_vantage.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/utilities/anthropic.py function __getattr__ (line 22) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/utilities/apify.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/utilities/arcee.py function __getattr__ (line 32) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/utilities/arxiv.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/utilities/awslambda.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/utilities/bibtex.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/utilities/bing_search.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/utilities/brave_search.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/utilities/clickup.py function __getattr__ (line 32) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/utilities/dalle_image_generator.py function __getattr__ (line 18) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/utilities/dataforseo_api_search.py function __getattr__ (line 18) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/utilities/duckduckgo_search.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/utilities/github.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/utilities/gitlab.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/utilities/golden_query.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/utilities/google_finance.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/utilities/google_jobs.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/utilities/google_lens.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/utilities/google_places_api.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/utilities/google_scholar.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/utilities/google_search.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/utilities/google_serper.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/utilities/google_trends.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/utilities/graphql.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/utilities/jira.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/utilities/max_compute.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/utilities/merriam_webster.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/utilities/metaphor_search.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/utilities/nasa.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/utilities/opaqueprompts.py function __getattr__ (line 19) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/utilities/openapi.py function __getattr__ (line 20) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/utilities/openweathermap.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/utilities/outline.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/utilities/portkey.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/utilities/powerbi.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/utilities/pubmed.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/utilities/python.py function __getattr__ (line 17) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/utilities/reddit_search.py function __getattr__ (line 18) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/utilities/redis.py function __getattr__ (line 24) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/utilities/requests.py function __getattr__ (line 19) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/utilities/scenexplain.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/utilities/searchapi.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/utilities/searx_search.py function __getattr__ (line 20) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/utilities/serpapi.py function __getattr__ (line 20) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/utilities/spark_sql.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/utilities/sql_database.py function __getattr__ (line 20) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/utilities/stackexchange.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/utilities/steam.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/utilities/tavily_search.py function __getattr__ (line 18) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/utilities/tensorflow_datasets.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/utilities/twilio.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/utilities/vertexai.py function __getattr__ (line 26) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/utilities/wikipedia.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/utilities/wolfram_alpha.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/utilities/zapier.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/utils/__init__.py function __getattr__ (line 50) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/utils/ernie_functions.py function __getattr__ (line 26) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/utils/math.py function __getattr__ (line 24) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/utils/openai.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/utils/pydantic.py function get_pydantic_major_version (line 4) | def get_pydantic_major_version() -> int: FILE: libs/langchain/langchain_classic/vectorstores/__init__.py function __getattr__ (line 168) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/vectorstores/alibabacloud_opensearch.py function __getattr__ (line 22) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/vectorstores/analyticdb.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/vectorstores/annoy.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/vectorstores/astradb.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/vectorstores/atlas.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/vectorstores/awadb.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/vectorstores/azure_cosmos_db.py function __getattr__ (line 20) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/vectorstores/azuresearch.py function __getattr__ (line 22) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/vectorstores/bageldb.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/vectorstores/baiducloud_vector_search.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/vectorstores/cassandra.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/vectorstores/chroma.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/vectorstores/clarifai.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/vectorstores/clickhouse.py function __getattr__ (line 19) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/vectorstores/dashvector.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/vectorstores/databricks_vector_search.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/vectorstores/deeplake.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/vectorstores/dingo.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/vectorstores/docarray/__init__.py function __getattr__ (line 22) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/vectorstores/docarray/base.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/vectorstores/docarray/hnsw.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/vectorstores/docarray/in_memory.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/vectorstores/elastic_vector_search.py function __getattr__ (line 19) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/vectorstores/elasticsearch.py function __getattr__ (line 28) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/vectorstores/epsilla.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/vectorstores/faiss.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/vectorstores/hippo.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/vectorstores/hologres.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/vectorstores/lancedb.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/vectorstores/llm_rails.py function __getattr__ (line 20) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/vectorstores/marqo.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/vectorstores/matching_engine.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/vectorstores/meilisearch.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/vectorstores/milvus.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/vectorstores/momento_vector_index.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/vectorstores/mongodb_atlas.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/vectorstores/myscale.py function __getattr__ (line 21) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/vectorstores/neo4j_vector.py function __getattr__ (line 20) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/vectorstores/nucliadb.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/vectorstores/opensearch_vector_search.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/vectorstores/pgembedding.py function __getattr__ (line 26) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/vectorstores/pgvecto_rs.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/vectorstores/pgvector.py function __getattr__ (line 20) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/vectorstores/pinecone.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/vectorstores/qdrant.py function __getattr__ (line 20) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/vectorstores/redis/__init__.py function __getattr__ (line 30) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/vectorstores/redis/base.py function __getattr__ (line 24) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/vectorstores/redis/filters.py function __getattr__ (line 34) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/vectorstores/redis/schema.py function __getattr__ (line 38) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/vectorstores/rocksetdb.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/vectorstores/scann.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/vectorstores/semadb.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/vectorstores/singlestoredb.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/vectorstores/sklearn.py function __getattr__ (line 30) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/vectorstores/sqlitevss.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/vectorstores/starrocks.py function __getattr__ (line 20) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/vectorstores/supabase.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/vectorstores/tair.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/vectorstores/tencentvectordb.py function __getattr__ (line 24) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/vectorstores/tiledb.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/vectorstores/timescalevector.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/vectorstores/typesense.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/vectorstores/usearch.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/vectorstores/utils.py function __getattr__ (line 24) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/vectorstores/vald.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/vectorstores/vearch.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/vectorstores/vectara.py function __getattr__ (line 20) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/vectorstores/vespa.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/vectorstores/weaviate.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/vectorstores/xata.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/vectorstores/yellowbrick.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/vectorstores/zep.py function __getattr__ (line 20) | def __getattr__(name: str) -> Any: FILE: libs/langchain/langchain_classic/vectorstores/zilliz.py function __getattr__ (line 16) | def __getattr__(name: str) -> Any: FILE: libs/langchain/tests/integration_tests/cache/fake_embeddings.py class FakeEmbeddings (line 11) | class FakeEmbeddings(Embeddings): method embed_documents (line 15) | def embed_documents(self, texts: list[str]) -> list[list[float]]: method aembed_documents (line 28) | async def aembed_documents(self, texts: list[str]) -> list[list[float]]: method embed_query (line 32) | def embed_query(self, text: str) -> list[float]: method aembed_query (line 47) | async def aembed_query(self, text: str) -> list[float]: class ConsistentFakeEmbeddings (line 51) | class ConsistentFakeEmbeddings(FakeEmbeddings): method __init__ (line 58) | def __init__(self, dimensionality: int = 10) -> None: method embed_documents (line 62) | def embed_documents(self, texts: list[str]) -> list[list[float]]: method embed_query (line 75) | def embed_query(self, text: str) -> list[float]: class AngularTwoDimensionalEmbeddings (line 90) | class AngularTwoDimensionalEmbeddings(Embeddings): method embed_documents (line 93) | def embed_documents(self, texts: list[str]) -> list[list[float]]: method embed_query (line 98) | def embed_query(self, text: str) -> list[float]: FILE: libs/langchain/tests/integration_tests/chains/openai_functions/test_openapi.py function test_openai_openapi_chain (line 33) | def test_openai_openapi_chain() -> None: function test_openai_moderation_chain_instantiation (line 43) | def test_openai_moderation_chain_instantiation() -> None: FILE: libs/langchain/tests/integration_tests/chat_models/test_base.py class Multiply (line 14) | class Multiply(BaseModel): function test_init_chat_model_chain (line 22) | async def test_init_chat_model_chain() -> None: class TestStandard (line 40) | class TestStandard(ChatModelIntegrationTests): method chat_model_class (line 42) | def chat_model_class(self) -> type[BaseChatModel]: method chat_model_params (line 46) | def chat_model_params(self) -> dict: method supports_image_inputs (line 50) | def supports_image_inputs(self) -> bool: method has_tool_calling (line 54) | def has_tool_calling(self) -> bool: method has_structured_output (line 58) | def has_structured_output(self) -> bool: FILE: libs/langchain/tests/integration_tests/conftest.py function _load_env (line 13) | def _load_env() -> None: function test_dir (line 25) | def test_dir() -> Path: function vcr_cassette_dir (line 32) | def vcr_cassette_dir(request: pytest.FixtureRequest) -> str: FILE: libs/langchain/tests/integration_tests/embeddings/test_base.py function test_init_embedding_model (line 20) | async def test_init_embedding_model(provider: str, model: str) -> None: FILE: libs/langchain/tests/integration_tests/evaluation/embedding_distance/test_embedding.py function vectors (line 12) | def vectors() -> tuple[np.ndarray, np.ndarray]: function pairwise_embedding_distance_eval_chain (line 46) | def pairwise_embedding_distance_eval_chain() -> PairwiseEmbeddingDistanc... function embedding_distance_eval_chain (line 52) | def embedding_distance_eval_chain() -> EmbeddingDistanceEvalChain: function test_pairwise_embedding_distance_eval_chain_cosine_similarity (line 58) | def test_pairwise_embedding_distance_eval_chain_cosine_similarity( function test_pairwise_embedding_distance_eval_chain_euclidean_distance (line 72) | def test_pairwise_embedding_distance_eval_chain_euclidean_distance( function test_pairwise_embedding_distance_eval_chain_manhattan_distance (line 86) | def test_pairwise_embedding_distance_eval_chain_manhattan_distance( function test_pairwise_embedding_distance_eval_chain_chebyshev_distance (line 100) | def test_pairwise_embedding_distance_eval_chain_chebyshev_distance( function test_pairwise_embedding_distance_eval_chain_hamming_distance (line 114) | def test_pairwise_embedding_distance_eval_chain_hamming_distance( function test_pairwise_embedding_distance_eval_chain_embedding_distance (line 128) | def test_pairwise_embedding_distance_eval_chain_embedding_distance( function test_embedding_distance_eval_chain (line 140) | def test_embedding_distance_eval_chain( FILE: libs/langchain/tests/integration_tests/examples/hello_world.js class HelloWorld (line 1) | class HelloWorld { method sayHello (line 2) | sayHello() { function main (line 7) | function main() { FILE: libs/langchain/tests/integration_tests/examples/hello_world.py function main (line 6) | def main() -> int: FILE: libs/langchain/tests/integration_tests/retrievers/document_compressors/test_cohere_reranker.py function test_cohere_reranker_init (line 6) | def test_cohere_reranker_init() -> None: FILE: libs/langchain/tests/integration_tests/retrievers/document_compressors/test_listwise_rerank.py function test_list_rerank (line 8) | def test_list_rerank() -> None: FILE: libs/langchain/tests/integration_tests/test_compile.py function test_placeholder (line 5) | def test_placeholder() -> None: FILE: libs/langchain/tests/integration_tests/test_hub.py function test_hub_pull_public_prompt (line 8) | def test_hub_pull_public_prompt() -> None: function test_hub_pull_private_prompt (line 20) | def test_hub_pull_private_prompt() -> None: FILE: libs/langchain/tests/integration_tests/test_schema.py class TestTokenCountingWithGPT2Tokenizer (line 6) | class TestTokenCountingWithGPT2Tokenizer: method test_tokenization (line 7) | def test_tokenization(self) -> None: method test_empty_token (line 11) | def test_empty_token(self) -> None: method test_multiple_tokens (line 14) | def test_multiple_tokens(self) -> None: method test_special_tokens (line 17) | def test_special_tokens(self) -> None: FILE: libs/langchain/tests/mock_servers/robot/server.py class StateItems (line 35) | class StateItems(str, Enum): class Direction (line 58) | class Direction(str, Enum): class Style (line 65) | class Style(str, Enum): class Cautiousness (line 73) | class Cautiousness(str, Enum): class WalkInput (line 79) | class WalkInput(BaseModel): class PublicCues (line 88) | class PublicCues(BaseModel): class SecretPassPhrase (line 95) | class SecretPassPhrase(BaseModel): function walk (line 107) | async def walk(walk_input: WalkInput) -> dict[str, Any]: function goto (line 120) | async def goto(x: int, y: int, z: int, cautiousness: Cautiousness) -> di... function get_state (line 129) | async def get_state( function ask_for_passphrase (line 141) | async def ask_for_passphrase(*, said_please: bool) -> dict[str, Any]: function recycle (line 152) | async def recycle(password: SecretPassPhrase) -> dict[str, Any]: function ask_for_help (line 174) | async def ask_for_help(query: str) -> dict[str, Any]: function custom_openapi (line 183) | def custom_openapi() -> dict[str, Any]: FILE: libs/langchain/tests/unit_tests/__init__.py function assert_all_importable (line 6) | def assert_all_importable(module: Any) -> None: FILE: libs/langchain/tests/unit_tests/_api/test_importing.py function test_import_from_non_deprecated_path (line 4) | def test_import_from_non_deprecated_path() -> None: function test_import_from_deprecated_path (line 16) | def test_import_from_deprecated_path() -> None: function test_import_using_fallback_module (line 29) | def test_import_using_fallback_module() -> None: FILE: libs/langchain/tests/unit_tests/agents/agent_toolkits/test_imports.py function test_imports (line 39) | def test_imports() -> None: FILE: libs/langchain/tests/unit_tests/agents/format_scratchpad/test_log.py function test_single_agent_action_observation (line 6) | def test_single_agent_action_observation() -> None: function test_multiple_agent_actions_observations (line 14) | def test_multiple_agent_actions_observations() -> None: function test_custom_prefixes (line 26) | def test_custom_prefixes() -> None: function test_empty_intermediate_steps (line 39) | def test_empty_intermediate_steps() -> None: FILE: libs/langchain/tests/unit_tests/agents/format_scratchpad/test_log_to_messages.py function test_single_intermediate_step_default_response (line 9) | def test_single_intermediate_step_default_response() -> None: function test_multiple_intermediate_steps_default_response (line 17) | def test_multiple_intermediate_steps_default_response() -> None: function test_custom_template_tool_response (line 34) | def test_custom_template_tool_response() -> None: function test_empty_steps (line 52) | def test_empty_steps() -> None: FILE: libs/langchain/tests/unit_tests/agents/format_scratchpad/test_openai_functions.py function test_calls_convert_agent_action_to_messages (line 9) | def test_calls_convert_agent_action_to_messages() -> None: function test_handles_empty_input_list (line 68) | def test_handles_empty_input_list() -> None: FILE: libs/langchain/tests/unit_tests/agents/format_scratchpad/test_openai_tools.py function test_calls_convert_agent_action_to_messages (line 11) | def test_calls_convert_agent_action_to_messages() -> None: function test_handles_empty_input_list (line 114) | def test_handles_empty_input_list() -> None: FILE: libs/langchain/tests/unit_tests/agents/format_scratchpad/test_xml.py function test_single_agent_action_observation (line 6) | def test_single_agent_action_observation() -> None: function test_multiple_agent_actions_observations (line 20) | def test_multiple_agent_actions_observations() -> None: function test_empty_list_agent_actions (line 39) | def test_empty_list_agent_actions() -> None: function test_xml_escaping_minimal (line 44) | def test_xml_escaping_minimal() -> None: function test_no_escaping (line 65) | def test_no_escaping() -> None: FILE: libs/langchain/tests/unit_tests/agents/output_parsers/test_convo_output_parser.py function test_normal_output_parsing (line 6) | def test_normal_output_parsing() -> None: function test_multiline_output_parsing (line 17) | def test_multiline_output_parsing() -> None: function _test_convo_output (line 36) | def _test_convo_output(text: str, expected_tool: str, expected_tool_inpu... FILE: libs/langchain/tests/unit_tests/agents/output_parsers/test_json.py function test_tool_usage (line 6) | def test_tool_usage() -> None: function test_finish (line 19) | def test_finish() -> None: FILE: libs/langchain/tests/unit_tests/agents/output_parsers/test_openai_functions.py function test_not_an_ai (line 14) | def test_not_an_ai() -> None: function test_model_response (line 22) | def test_model_response() -> None: function test_func_call (line 33) | def test_func_call() -> None: function test_func_call_no_args (line 53) | def test_func_call_no_args() -> None: function test_func_call_oldstyle (line 69) | def test_func_call_oldstyle() -> None: function test_func_call_invalid (line 87) | def test_func_call_invalid() -> None: FILE: libs/langchain/tests/unit_tests/agents/output_parsers/test_react_json_single_input.py function test_action (line 8) | def test_action() -> None: function test_finish (line 28) | def test_finish() -> None: FILE: libs/langchain/tests/unit_tests/agents/output_parsers/test_react_single_input.py function test_action (line 13) | def test_action() -> None: function test_finish (line 28) | def test_finish() -> None: function test_action_with_finish (line 41) | def test_action_with_finish() -> None: function _timeout_handler (line 51) | def _timeout_handler(_signum: int, _frame: object) -> None: function test_react_single_input_no_redos (line 59) | def test_react_single_input_no_redos() -> None: FILE: libs/langchain/tests/unit_tests/agents/output_parsers/test_self_ask.py function test_follow_up (line 6) | def test_follow_up() -> None: function test_follow_up_custom (line 28) | def test_follow_up_custom() -> None: function test_finish (line 41) | def test_finish() -> None: function test_finish_custom (line 50) | def test_finish_custom() -> None: FILE: libs/langchain/tests/unit_tests/agents/output_parsers/test_xml.py function test_tool_usage (line 6) | def test_tool_usage() -> None: function test_finish (line 21) | def test_finish() -> None: function test_malformed_xml_with_nested_tags (line 37) | def test_malformed_xml_with_nested_tags() -> None: function test_no_escaping (line 61) | def test_no_escaping() -> None: FILE: libs/langchain/tests/unit_tests/agents/test_agent.py class FakeListLLM (line 46) | class FakeListLLM(LLM): method _call (line 53) | def _call( method get_num_tokens (line 66) | def get_num_tokens(self, text: str) -> int: method _acall (line 70) | async def _acall(self, *args: Any, **kwargs: Any) -> str: method _identifying_params (line 74) | def _identifying_params(self) -> dict[str, Any]: method _llm_type (line 78) | def _llm_type(self) -> str: function _get_agent (line 83) | def _get_agent(**kwargs: Any) -> AgentExecutor: function test_agent_bad_action (line 114) | def test_agent_bad_action() -> None: function test_agent_stopped_early (line 121) | def test_agent_stopped_early() -> None: function test_agent_with_callbacks (line 134) | def test_agent_with_callbacks() -> None: function test_agent_stream (line 186) | def test_agent_stream() -> None: function test_agent_tool_return_direct (line 316) | def test_agent_tool_return_direct() -> None: function test_agent_tool_return_direct_in_intermediate_steps (line 342) | def test_agent_tool_return_direct_in_intermediate_steps() -> None: function test_agent_with_new_prefix_suffix (line 373) | def test_agent_with_new_prefix_suffix() -> None: function test_agent_lookup_tool (line 404) | def test_agent_lookup_tool() -> None: function test_agent_invalid_tool (line 426) | def test_agent_invalid_tool() -> None: function test_runnable_agent (line 452) | async def test_runnable_agent() -> None: function test_runnable_agent_with_function_calls (line 539) | async def test_runnable_agent_with_function_calls() -> None: function test_runnable_with_multi_action_per_step (line 642) | async def test_runnable_with_multi_action_per_step() -> None: function _make_func_invocation (line 790) | def _make_func_invocation(name: str, **kwargs: Any) -> AIMessage: function _recursive_dump (line 811) | def _recursive_dump(obj: Any) -> Any: function test_openai_agent_with_streaming (line 831) | async def test_openai_agent_with_streaming() -> None: function _make_tools_invocation (line 995) | def _make_tools_invocation(name_to_arguments: dict[str, dict[str, Any]])... function test_openai_agent_tools_agent (line 1021) | async def test_openai_agent_tools_agent() -> None: FILE: libs/langchain/tests/unit_tests/agents/test_agent_async.py class FakeListLLM (line 17) | class FakeListLLM(LLM): method _call (line 24) | def _call( method get_num_tokens (line 37) | def get_num_tokens(self, text: str) -> int: method _acall (line 41) | async def _acall(self, *args: Any, **kwargs: Any) -> str: method _identifying_params (line 45) | def _identifying_params(self) -> dict[str, Any]: method _llm_type (line 49) | def _llm_type(self) -> str: function _get_agent (line 54) | def _get_agent(**kwargs: Any) -> AgentExecutor: function test_agent_bad_action (line 85) | async def test_agent_bad_action() -> None: function test_agent_stopped_early (line 92) | async def test_agent_stopped_early() -> None: function test_agent_with_callbacks (line 105) | async def test_agent_with_callbacks() -> None: function test_agent_stream (line 157) | async def test_agent_stream() -> None: function test_agent_tool_return_direct (line 287) | async def test_agent_tool_return_direct() -> None: function test_agent_tool_return_direct_in_intermediate_steps (line 313) | async def test_agent_tool_return_direct_in_intermediate_steps() -> None: function test_agent_invalid_tool (line 344) | async def test_agent_invalid_tool() -> None: FILE: libs/langchain/tests/unit_tests/agents/test_agent_iterator.py function test_agent_iterator_bad_action (line 19) | def test_agent_iterator_bad_action() -> None: function test_agent_iterator_stopped_early (line 30) | def test_agent_iterator_stopped_early() -> None: function test_agent_async_iterator_stopped_early (line 61) | async def test_agent_async_iterator_stopped_early() -> None: function test_agent_iterator_with_callbacks (line 93) | def test_agent_iterator_with_callbacks() -> None: function test_agent_async_iterator_with_callbacks (line 159) | async def test_agent_async_iterator_with_callbacks() -> None: function test_agent_iterator_properties_and_setters (line 226) | def test_agent_iterator_properties_and_setters() -> None: function test_agent_iterator_manual_run_id (line 252) | def test_agent_iterator_manual_run_id() -> None: function test_manually_specify_rid_async (line 263) | async def test_manually_specify_rid_async() -> None: function test_agent_iterator_reset (line 274) | def test_agent_iterator_reset() -> None: function test_agent_iterator_output_structure (line 298) | def test_agent_iterator_output_structure() -> None: function test_agent_async_iterator_output_structure (line 313) | async def test_agent_async_iterator_output_structure() -> None: function test_agent_iterator_empty_input (line 329) | def test_agent_iterator_empty_input() -> None: function test_agent_iterator_custom_stopping_condition (line 340) | def test_agent_iterator_custom_stopping_condition() -> None: function test_agent_iterator_failing_tool (line 355) | def test_agent_iterator_failing_tool() -> None: FILE: libs/langchain/tests/unit_tests/agents/test_chat.py function get_action_and_input (line 10) | def get_action_and_input(text: str) -> tuple[str, str]: function test_parse_with_language (line 17) | def test_parse_with_language() -> None: function test_parse_without_language (line 33) | def test_parse_without_language() -> None: FILE: libs/langchain/tests/unit_tests/agents/test_imports.py function test_all_imports (line 49) | def test_all_imports() -> None: FILE: libs/langchain/tests/unit_tests/agents/test_initialize.py function my_tool (line 11) | def my_tool(query: str) -> str: # noqa: ARG001 function test_initialize_agent_with_str_agent_type (line 16) | def test_initialize_agent_with_str_agent_type() -> None: FILE: libs/langchain/tests/unit_tests/agents/test_mrkl.py function get_action_and_input (line 15) | def get_action_and_input(text: str) -> tuple[str, str]: function test_get_action_and_input (line 22) | def test_get_action_and_input() -> None: function test_get_action_and_input_whitespace (line 30) | def test_get_action_and_input_whitespace() -> None: function test_get_action_and_input_newline (line 38) | def test_get_action_and_input_newline() -> None: function test_get_action_and_input_newline_after_keyword (line 49) | def test_get_action_and_input_newline_after_keyword() -> None: function test_get_action_and_input_sql_query (line 72) | def test_get_action_and_input_sql_query() -> None: function test_get_final_answer (line 91) | def test_get_final_answer() -> None: function test_get_final_answer_new_line (line 99) | def test_get_final_answer_new_line() -> None: function test_get_final_answer_multiline (line 107) | def test_get_final_answer_multiline() -> None: function test_bad_action_input_line (line 115) | def test_bad_action_input_line() -> None: function test_bad_action_line (line 123) | def test_bad_action_line() -> None: function test_valid_action_and_answer_raises_exception (line 131) | def test_valid_action_and_answer_raises_exception() -> None: function test_from_chains (line 145) | def test_from_chains() -> None: FILE: libs/langchain/tests/unit_tests/agents/test_mrkl_output_parser.py function test_valid_action_and_action_input_parse (line 17) | def test_valid_action_and_action_input_parse() -> None: function test_valid_final_answer_parse (line 27) | def test_valid_final_answer_parse() -> None: function test_missing_action (line 37) | def test_missing_action() -> None: function test_missing_action_input (line 47) | def test_missing_action_input() -> None: function test_final_answer_before_parsable_action (line 59) | def test_final_answer_before_parsable_action() -> None: function test_final_answer_after_parsable_action (line 72) | def test_final_answer_after_parsable_action() -> None: function _timeout_handler (line 87) | def _timeout_handler(_signum: int, _frame: object) -> None: function test_mrkl_output_parser_no_redos (line 95) | def test_mrkl_output_parser_no_redos() -> None: FILE: libs/langchain/tests/unit_tests/agents/test_openai_assistant.py function _create_mock_client (line 10) | def _create_mock_client(*_: Any, use_async: bool = False, **__: Any) -> ... function test_user_supplied_client (line 19) | def test_user_supplied_client() -> None: function test_create_assistant (line 41) | def test_create_assistant() -> None: function test_ainvoke_uses_async_response_completed (line 56) | async def test_ainvoke_uses_async_response_completed() -> None: function test_ainvoke_uses_async_response_requires_action_agent (line 98) | async def test_ainvoke_uses_async_response_requires_action_agent() -> None: function test_acreate_assistant (line 135) | async def test_acreate_assistant() -> None: FILE: libs/langchain/tests/unit_tests/agents/test_openai_functions_multi.py class TestParseAIMessage (line 15) | class TestParseAIMessage: method test_not_an_ai (line 17) | def test_not_an_ai(self) -> None: method test_model_response (line 23) | def test_model_response(self) -> None: method test_func_call (line 32) | def test_func_call(self) -> None: method test_func_call_oldstyle (line 56) | def test_func_call_oldstyle(self) -> None: method test_func_call_invalid (line 80) | def test_func_call_invalid(self) -> None: FILE: libs/langchain/tests/unit_tests/agents/test_public_api.py function test_public_api (line 49) | def test_public_api() -> None: FILE: libs/langchain/tests/unit_tests/agents/test_structured_chat.py function get_action_and_input (line 22) | def get_action_and_input(text: str) -> tuple[str, str]: function test_parse_with_language (line 32) | def test_parse_with_language() -> None: function test_parse_without_language (line 48) | def test_parse_without_language() -> None: function test_parse_with_language_and_spaces (line 64) | def test_parse_with_language_and_spaces() -> None: function test_parse_without_language_without_a_new_line (line 81) | def test_parse_without_language_without_a_new_line() -> None: function test_parse_with_language_without_a_new_line (line 92) | def test_parse_with_language_without_a_new_line() -> None: function test_parse_case_matched_and_final_answer (line 104) | def test_parse_case_matched_and_final_answer() -> None: class TestCreatePrompt (line 122) | class TestCreatePrompt: method test_create_prompt_output (line 124) | def test_create_prompt_output(self) -> None: method test_system_message_single_tool (line 135) | def test_system_message_single_tool(self) -> None: method test_system_message_multiple_tools (line 197) | def test_system_message_multiple_tools(self) -> None: FILE: libs/langchain/tests/unit_tests/agents/test_types.py function test_confirm_full_coverage (line 5) | def test_confirm_full_coverage() -> None: FILE: libs/langchain/tests/unit_tests/callbacks/fake_callback_handler.py class BaseFakeCallbackHandler (line 13) | class BaseFakeCallbackHandler(BaseModel): class BaseFakeCallbackHandlerMixin (line 46) | class BaseFakeCallbackHandlerMixin(BaseFakeCallbackHandler): method on_llm_start_common (line 49) | def on_llm_start_common(self) -> None: method on_llm_end_common (line 53) | def on_llm_end_common(self) -> None: method on_llm_error_common (line 57) | def on_llm_error_common(self) -> None: method on_llm_new_token_common (line 60) | def on_llm_new_token_common(self) -> None: method on_retry_common (line 63) | def on_retry_common(self) -> None: method on_chain_start_common (line 66) | def on_chain_start_common(self) -> None: method on_chain_end_common (line 70) | def on_chain_end_common(self) -> None: method on_chain_error_common (line 74) | def on_chain_error_common(self) -> None: method on_tool_start_common (line 77) | def on_tool_start_common(self) -> None: method on_tool_end_common (line 81) | def on_tool_end_common(self) -> None: method on_tool_error_common (line 85) | def on_tool_error_common(self) -> None: method on_agent_action_common (line 88) | def on_agent_action_common(self) -> None: method on_agent_finish_common (line 92) | def on_agent_finish_common(self) -> None: method on_chat_model_start_common (line 96) | def on_chat_model_start_common(self) -> None: method on_text_common (line 100) | def on_text_common(self) -> None: method on_retriever_start_common (line 103) | def on_retriever_start_common(self) -> None: method on_retriever_end_common (line 107) | def on_retriever_end_common(self) -> None: method on_retriever_error_common (line 111) | def on_retriever_error_common(self) -> None: class FakeCallbackHandler (line 116) | class FakeCallbackHandler(BaseCallbackHandler, BaseFakeCallbackHandlerMi... method ignore_llm (line 120) | def ignore_llm(self) -> bool: method ignore_chain (line 125) | def ignore_chain(self) -> bool: method ignore_agent (line 130) | def ignore_agent(self) -> bool: method ignore_retriever (line 135) | def ignore_retriever(self) -> bool: method on_llm_start (line 140) | def on_llm_start( method on_llm_new_token (line 148) | def on_llm_new_token( method on_llm_end (line 156) | def on_llm_end( method on_llm_error (line 164) | def on_llm_error( method on_retry (line 172) | def on_retry( method on_chain_start (line 180) | def on_chain_start( method on_chain_end (line 188) | def on_chain_end( method on_chain_error (line 196) | def on_chain_error( method on_tool_start (line 204) | def on_tool_start( method on_tool_end (line 212) | def on_tool_end( method on_tool_error (line 220) | def on_tool_error( method on_agent_action (line 228) | def on_agent_action( method on_agent_finish (line 236) | def on_agent_finish( method on_text (line 244) | def on_text( method on_retriever_start (line 252) | def on_retriever_start( method on_retriever_end (line 260) | def on_retriever_end( method on_retriever_error (line 268) | def on_retriever_error( method __deepcopy__ (line 275) | def __deepcopy__(self, memo: dict) -> "FakeCallbackHandler": # type: ... class FakeCallbackHandlerWithChatStart (line 279) | class FakeCallbackHandlerWithChatStart(FakeCallbackHandler): method on_chat_model_start (line 281) | def on_chat_model_start( class FakeAsyncCallbackHandler (line 294) | class FakeAsyncCallbackHandler(AsyncCallbackHandler, BaseFakeCallbackHan... method ignore_llm (line 298) | def ignore_llm(self) -> bool: method ignore_chain (line 303) | def ignore_chain(self) -> bool: method ignore_agent (line 308) | def ignore_agent(self) -> bool: method on_retry (line 313) | async def on_retry( method on_llm_start (line 321) | async def on_llm_start( method on_llm_new_token (line 329) | async def on_llm_new_token( method on_llm_end (line 337) | async def on_llm_end( method on_llm_error (line 345) | async def on_llm_error( method on_chain_start (line 353) | async def on_chain_start( method on_chain_end (line 361) | async def on_chain_end( method on_chain_error (line 369) | async def on_chain_error( method on_tool_start (line 377) | async def on_tool_start( method on_tool_end (line 385) | async def on_tool_end( method on_tool_error (line 393) | async def on_tool_error( method on_agent_action (line 401) | async def on_agent_action( method on_agent_finish (line 409) | async def on_agent_finish( method on_text (line 417) | async def on_text( method __deepcopy__ (line 424) | def __deepcopy__(self, memo: dict) -> "FakeAsyncCallbackHandler": # t... FILE: libs/langchain/tests/unit_tests/callbacks/test_base.py function test_all_imports (line 17) | def test_all_imports() -> None: FILE: libs/langchain/tests/unit_tests/callbacks/test_file.py class FakeChain (line 11) | class FakeChain(Chain): method input_keys (line 19) | def input_keys(self) -> list[str]: method output_keys (line 24) | def output_keys(self) -> list[str]: method _call (line 29) | def _call( function strip_ansi (line 37) | def strip_ansi(text: str) -> str: function test_filecallback (line 47) | def test_filecallback(tmp_path: pathlib.Path) -> None: FILE: libs/langchain/tests/unit_tests/callbacks/test_imports.py function test_all_imports (line 38) | def test_all_imports() -> None: FILE: libs/langchain/tests/unit_tests/callbacks/test_manager.py function test_all_imports (line 34) | def test_all_imports() -> None: FILE: libs/langchain/tests/unit_tests/callbacks/test_stdout.py class FakeChain (line 11) | class FakeChain(Chain): method input_keys (line 19) | def input_keys(self) -> list[str]: method output_keys (line 24) | def output_keys(self) -> list[str]: method _call (line 29) | def _call( function test_stdoutcallback (line 37) | def test_stdoutcallback(capsys: pytest.CaptureFixture) -> Any: FILE: libs/langchain/tests/unit_tests/callbacks/tracers/test_logging.py function test_logging (line 10) | def test_logging( FILE: libs/langchain/tests/unit_tests/chains/query_constructor/test_parser.py function test_parse_invalid_grammar (line 20) | def test_parse_invalid_grammar(x: str) -> None: function test_parse_comparison (line 25) | def test_parse_comparison() -> None: function test_parse_operation (line 41) | def test_parse_operation() -> None: function test_parse_nested_operation (line 59) | def test_parse_nested_operation() -> None: function test_parse_disallowed_comparator (line 72) | def test_parse_disallowed_comparator() -> None: function test_parse_disallowed_operator (line 78) | def test_parse_disallowed_operator() -> None: function _test_parse_value (line 84) | def _test_parse_value(x: Any) -> None: function test_parse_int_value (line 91) | def test_parse_int_value(x: int) -> None: function test_parse_float_value (line 96) | def test_parse_float_value(x: float) -> None: function test_parse_list_value (line 101) | def test_parse_list_value(x: list) -> None: function test_parse_string_value (line 106) | def test_parse_string_value(x: str) -> None: function test_parse_bool_value (line 113) | def test_parse_bool_value(x: str) -> None: function test_parser_unpack_single_arg_operation (line 122) | def test_parser_unpack_single_arg_operation(op: str, arg: str) -> None: function test_parse_date_value (line 129) | def test_parse_date_value(x: str) -> None: function test_parse_datetime_value (line 148) | def test_parse_datetime_value(x: str, expected: dict[str, str] | None) -... FILE: libs/langchain/tests/unit_tests/chains/question_answering/test_map_rerank_prompt.py function test_parse_scores (line 16) | def test_parse_scores(answer: str) -> None: FILE: libs/langchain/tests/unit_tests/chains/test_base.py class FakeMemory (line 18) | class FakeMemory(BaseMemory): method memory_variables (line 22) | def memory_variables(self) -> list[str]: method load_memory_variables (line 27) | def load_memory_variables( method save_context (line 34) | def save_context(self, inputs: dict[str, Any], outputs: dict[str, str]... method clear (line 37) | def clear(self) -> None: class FakeChain (line 41) | class FakeChain(Chain): method input_keys (line 49) | def input_keys(self) -> list[str]: method output_keys (line 54) | def output_keys(self) -> list[str]: method _call (line 59) | def _call( function test_bad_inputs (line 69) | def test_bad_inputs() -> None: function test_bad_outputs (line 76) | def test_bad_outputs() -> None: function test_run_info (line 85) | def test_run_info() -> None: function test_correct_call (line 94) | def test_correct_call() -> None: function test_single_input_correct (line 101) | def test_single_input_correct() -> None: function test_single_input_error (line 108) | def test_single_input_error() -> None: function test_run_single_arg (line 115) | def test_run_single_arg() -> None: function test_run_multiple_args_error (line 122) | def test_run_multiple_args_error() -> None: function test_run_kwargs (line 129) | def test_run_kwargs() -> None: function test_run_kwargs_error (line 136) | def test_run_kwargs_error() -> None: function test_run_args_and_kwargs_error (line 143) | def test_run_args_and_kwargs_error() -> None: function test_multiple_output_keys_error (line 154) | def test_multiple_output_keys_error() -> None: function test_run_arg_with_memory (line 164) | def test_run_arg_with_memory() -> None: function test_run_with_callback (line 170) | def test_run_with_callback() -> None: function test_run_with_callback_and_input_error (line 183) | def test_run_with_callback_and_input_error() -> None: function test_manually_specify_rid (line 199) | def test_manually_specify_rid() -> None: function test_manually_specify_rid_async (line 214) | async def test_manually_specify_rid_async() -> None: function test_run_with_callback_and_output_error (line 230) | def test_run_with_callback_and_output_error() -> None: FILE: libs/langchain/tests/unit_tests/chains/test_combine_documents.py function _fake_docs_len_func (line 18) | def _fake_docs_len_func(docs: list[Document]) -> int: function _fake_combine_docs_func (line 22) | def _fake_combine_docs_func(docs: list[Document], **_: Any) -> str: function test_multiple_input_keys (line 26) | def test_multiple_input_keys() -> None: function test__split_list_long_single_doc (line 31) | def test__split_list_long_single_doc() -> None: function test__split_list_single_doc (line 40) | def test__split_list_single_doc() -> None: function test__split_list_double_doc (line 47) | def test__split_list_double_doc() -> None: function test__split_list_works_correctly (line 54) | def test__split_list_works_correctly() -> None: function test__collapse_docs_no_metadata (line 80) | def test__collapse_docs_no_metadata() -> None: function test__collapse_docs_one_doc (line 92) | def test__collapse_docs_one_doc() -> None: function test__collapse_docs_metadata (line 105) | def test__collapse_docs_metadata() -> None: function test_format_doc_with_metadata (line 125) | async def test_format_doc_with_metadata() -> None: function test_format_doc_missing_metadata (line 139) | async def test_format_doc_missing_metadata() -> None: FILE: libs/langchain/tests/unit_tests/chains/test_constitutional_ai.py function test_critique_parsing (line 20) | def test_critique_parsing() -> None: FILE: libs/langchain/tests/unit_tests/chains/test_conversation.py class DummyLLM (line 20) | class DummyLLM(LLM): method __init__ (line 23) | def __init__(self, **kwargs: Any): method _llm_type (line 27) | def _llm_type(self) -> str: method _call (line 31) | def _call( function test_memory_ai_prefix (line 42) | def test_memory_ai_prefix() -> None: function test_memory_human_prefix (line 49) | def test_memory_human_prefix() -> None: function test_memory_async (line 56) | async def test_memory_async() -> None: function test_conversation_chain_works (line 64) | async def test_conversation_chain_works() -> None: function test_conversation_chain_errors_bad_prompt (line 78) | def test_conversation_chain_errors_bad_prompt() -> None: function test_conversation_chain_errors_bad_variable (line 88) | def test_conversation_chain_errors_bad_variable() -> None: function test_conversation_memory (line 110) | def test_conversation_memory(memory: BaseMemory) -> None: function test_clearing_conversation_memory (line 142) | def test_clearing_conversation_memory(memory: BaseMemory) -> None: function test_clearing_conversation_memory_async (line 162) | async def test_clearing_conversation_memory_async(memory: BaseMemory) ->... FILE: libs/langchain/tests/unit_tests/chains/test_conversation_retrieval.py function test_simplea (line 13) | async def test_simplea() -> None: function test_fixed_message_response_when_docs_founda (line 38) | async def test_fixed_message_response_when_docs_founda() -> None: function test_fixed_message_response_when_no_docs_found (line 65) | def test_fixed_message_response_when_no_docs_found() -> None: function test_fixed_message_response_when_docs_found (line 90) | def test_fixed_message_response_when_docs_found() -> None: FILE: libs/langchain/tests/unit_tests/chains/test_flare.py class _EmptyRetriever (line 13) | class _EmptyRetriever(BaseRetriever): method _get_relevant_documents (line 16) | def _get_relevant_documents(self, query: str) -> list[Document]: # ty... method _aget_relevant_documents (line 20) | async def _aget_relevant_documents(self, query: str) -> list[Document]... function test_from_llm_rejects_non_chatopenai (line 25) | def test_from_llm_rejects_non_chatopenai() -> None: function test_from_llm_uses_supplied_chatopenai (line 34) | def test_from_llm_uses_supplied_chatopenai(monkeypatch: pytest.MonkeyPat... FILE: libs/langchain/tests/unit_tests/chains/test_history_aware_retriever.py function test_create (line 9) | def test_create() -> None: FILE: libs/langchain/tests/unit_tests/chains/test_hyde.py class FakeEmbeddings (line 19) | class FakeEmbeddings(Embeddings): method embed_documents (line 23) | def embed_documents(self, texts: list[str]) -> list[list[float]]: method embed_query (line 28) | def embed_query(self, text: str) -> list[float]: class FakeLLM (line 33) | class FakeLLM(BaseLLM): method _generate (line 39) | def _generate( method _agenerate (line 49) | async def _agenerate( method get_num_tokens (line 58) | def get_num_tokens(self, text: str) -> int: method _llm_type (line 63) | def _llm_type(self) -> str: function test_hyde_from_llm (line 68) | def test_hyde_from_llm() -> None: function test_hyde_from_llm_with_multiple_n (line 79) | def test_hyde_from_llm_with_multiple_n() -> None: FILE: libs/langchain/tests/unit_tests/chains/test_imports.py function test_all_imports (line 69) | def test_all_imports() -> None: FILE: libs/langchain/tests/unit_tests/chains/test_llm_checker.py function fake_llm_checker_chain (line 16) | def fake_llm_checker_chain() -> LLMCheckerChain: function test_simple_question (line 45) | def test_simple_question(fake_llm_checker_chain: LLMCheckerChain) -> None: FILE: libs/langchain/tests/unit_tests/chains/test_llm_math.py function fake_llm_math_chain (line 11) | def fake_llm_math_chain() -> LLMMathChain: function test_simple_question (line 24) | def test_simple_question(fake_llm_math_chain: LLMMathChain) -> None: function test_complex_question (line 32) | def test_complex_question(fake_llm_math_chain: LLMMathChain) -> None: function test_error (line 40) | def test_error(fake_llm_math_chain: LLMMathChain) -> None: FILE: libs/langchain/tests/unit_tests/chains/test_llm_summarization_checker.py function test_input_variables (line 15) | def test_input_variables() -> None: function fake_llm_summarization_checker_chain (line 23) | def fake_llm_summarization_checker_chain() -> LLMSummarizationCheckerChain: function test_simple_text (line 45) | def test_simple_text( FILE: libs/langchain/tests/unit_tests/chains/test_memory.py function test_simple_memory (line 13) | def test_simple_memory() -> None: function test_readonly_memory (line 31) | def test_readonly_memory(memory: BaseMemory) -> None: FILE: libs/langchain/tests/unit_tests/chains/test_qa_with_sources.py function test_spliting_answer_into_answer_and_sources (line 86) | def test_spliting_answer_into_answer_and_sources( FILE: libs/langchain/tests/unit_tests/chains/test_retrieval.py function test_create (line 11) | def test_create() -> None: FILE: libs/langchain/tests/unit_tests/chains/test_sequential.py class FakeChain (line 19) | class FakeChain(Chain): method input_keys (line 26) | def input_keys(self) -> list[str]: method output_keys (line 31) | def output_keys(self) -> list[str]: method _call (line 36) | def _call( method _acall (line 48) | async def _acall( function test_sequential_usage_single_inputs (line 60) | def test_sequential_usage_single_inputs() -> None: function test_sequential_usage_multiple_inputs (line 70) | def test_sequential_usage_multiple_inputs() -> None: function test_sequential_usage_memory (line 84) | def test_sequential_usage_memory() -> None: function test_sequential_internal_chain_use_memory (line 113) | def test_sequential_internal_chain_use_memory() -> None: function test_sequential_usage_multiple_outputs (line 130) | def test_sequential_usage_multiple_outputs() -> None: function test_sequential_missing_inputs (line 143) | def test_sequential_missing_inputs() -> None: function test_sequential_bad_outputs (line 155) | def test_sequential_bad_outputs() -> None: function test_sequential_valid_outputs (line 173) | def test_sequential_valid_outputs() -> None: function test_sequential_overlapping_inputs (line 187) | def test_sequential_overlapping_inputs() -> None: function test_simple_sequential_functionality (line 198) | def test_simple_sequential_functionality() -> None: function test_simple_sequential_functionality_with_callbacks (line 209) | async def test_simple_sequential_functionality_with_callbacks( function test_multi_input_errors (line 245) | def test_multi_input_errors() -> None: function test_multi_output_errors (line 256) | def test_multi_output_errors() -> None: FILE: libs/langchain/tests/unit_tests/chains/test_summary_buffer_memory.py function test_summary_buffer_memory_no_buffer_yet (line 7) | def test_summary_buffer_memory_no_buffer_yet() -> None: function test_summary_buffer_memory_no_buffer_yet_async (line 14) | async def test_summary_buffer_memory_no_buffer_yet_async() -> None: function test_summary_buffer_memory_buffer_only (line 21) | def test_summary_buffer_memory_buffer_only() -> None: function test_summary_buffer_memory_buffer_only_async (line 30) | async def test_summary_buffer_memory_buffer_only_async() -> None: function test_summary_buffer_memory_summary (line 39) | def test_summary_buffer_memory_summary() -> None: function test_summary_buffer_memory_summary_async (line 54) | async def test_summary_buffer_memory_summary_async() -> None: FILE: libs/langchain/tests/unit_tests/chains/test_transform.py function dummy_transform (line 10) | def dummy_transform(inputs: dict[str, str]) -> dict[str, str]: function test_transform_chain (line 19) | def test_transform_chain() -> None: function test_transform_chain_bad_inputs (line 32) | def test_transform_chain_bad_inputs() -> None: FILE: libs/langchain/tests/unit_tests/chat_models/test_base.py function test_all_imports (line 21) | def test_all_imports() -> None: function test_init_chat_model (line 40) | def test_init_chat_model(model_name: str, model_provider: str | None) ->... function test_init_missing_dep (line 53) | def test_init_missing_dep() -> None: function test_init_unknown_provider (line 58) | def test_init_unknown_provider() -> None: function test_configurable (line 69) | def test_configurable() -> None: function test_configurable_with_default (line 194) | def test_configurable_with_default() -> None: FILE: libs/langchain/tests/unit_tests/chat_models/test_imports.py function test_all_imports (line 38) | def test_all_imports() -> None: FILE: libs/langchain/tests/unit_tests/conftest.py function pytest_addoption (line 9) | def pytest_addoption(parser: pytest.Parser) -> None: function pytest_collection_modifyitems (line 31) | def pytest_collection_modifyitems( FILE: libs/langchain/tests/unit_tests/docstore/test_imports.py function test_all_imports (line 6) | def test_all_imports() -> None: FILE: libs/langchain/tests/unit_tests/document_loaders/blob_loaders/test_public_api.py function test_public_api (line 4) | def test_public_api() -> None: FILE: libs/langchain/tests/unit_tests/document_loaders/parsers/test_public_api.py function test_parsers_public_api_correct (line 4) | def test_parsers_public_api_correct() -> None: FILE: libs/langchain/tests/unit_tests/document_loaders/test_base.py function test_base_blob_parser (line 10) | def test_base_blob_parser() -> None: FILE: libs/langchain/tests/unit_tests/document_loaders/test_imports.py function test_all_imports (line 177) | def test_all_imports() -> None: FILE: libs/langchain/tests/unit_tests/document_transformers/test_imports.py function test_all_imports (line 19) | def test_all_imports() -> None: FILE: libs/langchain/tests/unit_tests/embeddings/test_base.py function test_parse_model_string (line 21) | def test_parse_model_string( function test_parse_model_string_errors (line 31) | def test_parse_model_string_errors() -> None: function test_infer_model_and_provider (line 56) | def test_infer_model_and_provider() -> None: function test_infer_model_and_provider_errors (line 79) | def test_infer_model_and_provider_errors() -> None: function test_supported_providers_package_names (line 105) | def test_supported_providers_package_names(provider: str) -> None: function test_is_sorted (line 113) | def test_is_sorted() -> None: FILE: libs/langchain/tests/unit_tests/embeddings/test_caching.py class MockEmbeddings (line 16) | class MockEmbeddings(Embeddings): method embed_documents (line 18) | def embed_documents(self, texts: list[str]) -> list[list[float]]: method embed_query (line 29) | def embed_query(self, text: str) -> list[float]: function cache_embeddings (line 35) | def cache_embeddings() -> CacheBackedEmbeddings: function cache_embeddings_batch (line 47) | def cache_embeddings_batch() -> CacheBackedEmbeddings: function cache_embeddings_with_query (line 60) | def cache_embeddings_with_query() -> CacheBackedEmbeddings: function test_embed_documents (line 73) | def test_embed_documents(cache_embeddings: CacheBackedEmbeddings) -> None: function test_embed_documents_batch (line 84) | def test_embed_documents_batch(cache_embeddings_batch: CacheBackedEmbedd... function test_embed_query (line 96) | def test_embed_query(cache_embeddings: CacheBackedEmbeddings) -> None: function test_embed_cached_query (line 104) | def test_embed_cached_query(cache_embeddings_with_query: CacheBackedEmbe... function test_aembed_documents (line 114) | async def test_aembed_documents(cache_embeddings: CacheBackedEmbeddings)... function test_aembed_documents_batch (line 127) | async def test_aembed_documents_batch( function test_aembed_query (line 144) | async def test_aembed_query(cache_embeddings: CacheBackedEmbeddings) -> ... function test_aembed_query_cached (line 151) | async def test_aembed_query_cached( function test_blake2b_encoder (line 161) | def test_blake2b_encoder() -> None: function test_sha256_encoder (line 180) | def test_sha256_encoder() -> None: function test_sha512_encoder (line 199) | def test_sha512_encoder() -> None: function test_sha1_warning_emitted_once (line 218) | def test_sha1_warning_emitted_once() -> None: function test_custom_encoder (line 241) | def test_custom_encoder() -> None: FILE: libs/langchain/tests/unit_tests/embeddings/test_imports.py function test_all_imports (line 63) | def test_all_imports() -> None: FILE: libs/langchain/tests/unit_tests/evaluation/agents/test_eval_chain.py function intermediate_steps (line 23) | def intermediate_steps() -> list[tuple[AgentAction, str]]: function foo (line 37) | def foo(bar: str) -> str: class _FakeTrajectoryChatModel (line 42) | class _FakeTrajectoryChatModel(FakeChatModel): method _call (line 48) | def _call( function test_trajectory_output_parser_parse (line 63) | def test_trajectory_output_parser_parse() -> None: function test_trajectory_eval_chain (line 118) | def test_trajectory_eval_chain( function test_trajectory_eval_chain_no_tools (line 146) | def test_trajectory_eval_chain_no_tools( function test_old_api_works (line 172) | def test_old_api_works(intermediate_steps: list[tuple[AgentAction, str]]... FILE: libs/langchain/tests/unit_tests/evaluation/comparison/test_eval_chain.py function test_resolve_criteria_enum (line 18) | def test_resolve_criteria_enum(criterion: Criteria) -> None: function test_resolve_criteria_list_enum (line 24) | def test_resolve_criteria_list_enum() -> None: function test_pairwise_string_result_output_parser_parse (line 30) | def test_pairwise_string_result_output_parser_parse() -> None: function test_pairwise_string_comparison_chain (line 69) | def test_pairwise_string_comparison_chain() -> None: function test_labeled_pairwise_string_comparison_chain_missing_ref (line 105) | def test_labeled_pairwise_string_comparison_chain_missing_ref() -> None: FILE: libs/langchain/tests/unit_tests/evaluation/criteria/test_eval_chain.py function test_resolve_criteria_str (line 16) | def test_resolve_criteria_str() -> None: function test_criteria_result_output_parser_parse (line 54) | def test_criteria_result_output_parser_parse(text: str, want: dict) -> N... function test_resolve_criteria_enum (line 63) | def test_resolve_criteria_enum(criterion: Criteria) -> None: function test_criteria_eval_chain (line 69) | def test_criteria_eval_chain() -> None: function test_criteria_eval_chain_missing_reference (line 86) | def test_criteria_eval_chain_missing_reference() -> None: function test_implements_string_protocol (line 100) | def test_implements_string_protocol() -> None: FILE: libs/langchain/tests/unit_tests/evaluation/exact_match/test_base.py function exact_match_string_evaluator (line 7) | def exact_match_string_evaluator() -> ExactMatchStringEvaluator: function exact_match_string_evaluator_ignore_case (line 13) | def exact_match_string_evaluator_ignore_case() -> ExactMatchStringEvalua... function test_default_exact_matching (line 18) | def test_default_exact_matching( function test_exact_matching_with_ignore_case (line 37) | def test_exact_matching_with_ignore_case( FILE: libs/langchain/tests/unit_tests/evaluation/parsing/test_base.py function json_validity_evaluator (line 12) | def json_validity_evaluator() -> JsonValidityEvaluator: function test_json_validity_evaluator_requires_input (line 16) | def test_json_validity_evaluator_requires_input( function test_json_validity_evaluator_requires_reference (line 22) | def test_json_validity_evaluator_requires_reference( function test_json_validity_evaluator_evaluation_name (line 28) | def test_json_validity_evaluator_evaluation_name( function test_json_validity_evaluator_evaluate_valid_json (line 34) | def test_json_validity_evaluator_evaluate_valid_json( function test_json_validity_evaluator_evaluate_invalid_json (line 42) | def test_json_validity_evaluator_evaluate_invalid_json( function json_equality_evaluator (line 51) | def json_equality_evaluator() -> JsonEqualityEvaluator: function test_json_equality_evaluator_requires_input (line 55) | def test_json_equality_evaluator_requires_input( function test_json_equality_evaluator_requires_reference (line 61) | def test_json_equality_evaluator_requires_reference( function test_json_equality_evaluator_evaluation_name (line 67) | def test_json_equality_evaluator_evaluation_name( function test_json_equality_evaluator_parse_json (line 73) | def test_json_equality_evaluator_parse_json( function test_json_equality_evaluator_evaluate_strings_equal (line 81) | def test_json_equality_evaluator_evaluate_strings_equal( function test_json_equality_evaluator_evaluate_strings_not_equal (line 93) | def test_json_equality_evaluator_evaluate_strings_not_equal( function test_json_equality_evaluator_evaluate_strings_custom_operator_equal (line 105) | def test_json_equality_evaluator_evaluate_strings_custom_operator_equal(... function test_json_equality_evaluator_evaluate_strings_custom_operator_not_equal (line 116) | def test_json_equality_evaluator_evaluate_strings_custom_operator_not_eq... function test_json_equality_evaluator_evaluate_lists_permutation_invariant (line 127) | def test_json_equality_evaluator_evaluate_lists_permutation_invariant() ... FILE: libs/langchain/tests/unit_tests/evaluation/parsing/test_json_distance.py function json_distance_evaluator (line 7) | def json_distance_evaluator() -> JsonEditDistanceEvaluator: function test_json_distance_evaluator_requires_input (line 12) | def test_json_distance_evaluator_requires_input( function test_json_distance_evaluator_requires_reference (line 19) | def test_json_distance_evaluator_requires_reference( function test_json_distance_evaluator_evaluation_name (line 26) | def test_json_distance_evaluator_evaluation_name( function test_json_distance_evaluator_parse_json (line 33) | def test_json_distance_evaluator_parse_json( function test_json_distance_evaluator_evaluate_strings_simple_diff (line 42) | def test_json_distance_evaluator_evaluate_strings_simple_diff( function test_json_distance_evaluator_evaluate_strings_complex_diff (line 56) | def test_json_distance_evaluator_evaluate_strings_complex_diff( function test_json_distance_evaluator_evaluate_strings_list_diff (line 70) | def test_json_distance_evaluator_evaluate_strings_list_diff( function test_json_distance_evaluator_evaluate_strings_list_same (line 84) | def test_json_distance_evaluator_evaluate_strings_list_same( function test_json_distance_evaluator_evaluate_strings_list_diff_length (line 97) | def test_json_distance_evaluator_evaluate_strings_list_diff_length( function test_json_distance_evaluator_evaluate_strings_custom_operator_equal (line 113) | def test_json_distance_evaluator_evaluate_strings_custom_operator_equal(... FILE: libs/langchain/tests/unit_tests/evaluation/parsing/test_json_schema.py function json_schema_evaluator (line 7) | def json_schema_evaluator() -> JsonSchemaEvaluator: function test_json_schema_evaluator_requires_input (line 12) | def test_json_schema_evaluator_requires_input( function test_json_schema_evaluator_requires_reference (line 19) | def test_json_schema_evaluator_requires_reference( function test_json_schema_evaluator_evaluation_name (line 26) | def test_json_schema_evaluator_evaluation_name( function test_json_schema_evaluator_valid_prediction (line 33) | def test_json_schema_evaluator_valid_prediction( function test_json_schema_evaluator_invalid_prediction (line 49) | def test_json_schema_evaluator_invalid_prediction( function test_json_schema_evaluator_missing_property (line 66) | def test_json_schema_evaluator_missing_property( FILE: libs/langchain/tests/unit_tests/evaluation/qa/test_eval_chain.py function test_eval_chain (line 25) | def test_eval_chain() -> None: function test_context_eval_chain (line 42) | def test_context_eval_chain(chain_cls: type[ContextQAEvalChain]) -> None: function test_load_criteria_evaluator (line 57) | def test_load_criteria_evaluator() -> None: function test_implements_string_evaluator_protocol (line 70) | def test_implements_string_evaluator_protocol( function test_returns_expected_results (line 77) | def test_returns_expected_results( function test_qa_output_parser (line 150) | def test_qa_output_parser(output: str, expected: dict) -> None: FILE: libs/langchain/tests/unit_tests/evaluation/regex_match/test_base.py function regex_match_string_evaluator (line 9) | def regex_match_string_evaluator() -> RegexMatchStringEvaluator: function regex_match_string_evaluator_ignore_case (line 15) | def regex_match_string_evaluator_ignore_case() -> RegexMatchStringEvalua... function test_default_regex_matching (line 20) | def test_default_regex_matching( function test_regex_matching_with_ignore_case (line 39) | def test_regex_matching_with_ignore_case( FILE: libs/langchain/tests/unit_tests/evaluation/scoring/test_eval_chain.py function test_pairwise_string_result_output_parser_parse (line 15) | def test_pairwise_string_result_output_parser_parse() -> None: function test_pairwise_string_comparison_chain (line 41) | def test_pairwise_string_comparison_chain() -> None: function test_labeled_pairwise_string_comparison_chain_missing_ref (line 66) | def test_labeled_pairwise_string_comparison_chain_missing_ref() -> None: FILE: libs/langchain/tests/unit_tests/evaluation/string_distance/test_base.py function test_zero_distance (line 12) | def test_zero_distance(distance: StringDistance) -> None: function test_zero_distance_async (line 22) | async def test_zero_distance_async(distance: StringDistance) -> None: function test_zero_distance_pairwise (line 33) | def test_zero_distance_pairwise( function test_zero_distance_pairwise_async (line 50) | async def test_zero_distance_pairwise_async(distance: StringDistance) ->... function test_non_zero_distance (line 69) | def test_non_zero_distance(*, distance: StringDistance, normalize_score:... function test_non_zero_distance_async (line 85) | async def test_non_zero_distance_async(distance: StringDistance) -> None: function test_non_zero_distance_pairwise (line 99) | def test_non_zero_distance_pairwise(distance: StringDistance) -> None: function test_non_zero_distance_pairwise_async (line 113) | async def test_non_zero_distance_pairwise_async(distance: StringDistance... FILE: libs/langchain/tests/unit_tests/evaluation/test_imports.py function test_all_imports (line 37) | def test_all_imports() -> None: FILE: libs/langchain/tests/unit_tests/graphs/test_imports.py function test_all_imports (line 17) | def test_all_imports() -> None: FILE: libs/langchain/tests/unit_tests/indexes/test_api.py function test_all (line 4) | def test_all() -> None: FILE: libs/langchain/tests/unit_tests/indexes/test_imports.py function test_all_imports (line 14) | def test_all_imports() -> None: FILE: libs/langchain/tests/unit_tests/indexes/test_indexing.py class ToyLoader (line 21) | class ToyLoader(BaseLoader): method __init__ (line 24) | def __init__(self, documents: Sequence[Document]) -> None: method lazy_load (line 28) | def lazy_load( method alazy_load (line 33) | async def alazy_load( class InMemoryVectorStore (line 40) | class InMemoryVectorStore(VectorStore): method __init__ (line 43) | def __init__(self, *, permit_upserts: bool = False) -> None: method delete (line 49) | def delete(self, ids: Sequence[str] | None = None, **kwargs: Any) -> N... method adelete (line 56) | async def adelete(self, ids: Sequence[str] | None = None, **kwargs: An... method add_documents (line 63) | def add_documents( method aadd_documents (line 88) | async def aadd_documents( method add_texts (line 110) | def add_texts( method from_texts (line 120) | def from_texts( method similarity_search (line 130) | def similarity_search( function record_manager (line 141) | def record_manager() -> SQLRecordManager: function arecord_manager (line 149) | async def arecord_manager() -> SQLRecordManager: function vector_store (line 162) | def vector_store() -> InMemoryVectorStore: function upserting_vector_store (line 168) | def upserting_vector_store() -> InMemoryVectorStore: function test_indexing_same_content (line 177) | def test_indexing_same_content( function test_aindexing_same_content (line 213) | async def test_aindexing_same_content( function test_index_simple_delete_full (line 248) | def test_index_simple_delete_full( function test_aindex_simple_delete_full (line 333) | async def test_aindex_simple_delete_full( function test_incremental_fails_with_bad_source_ids (line 417) | def test_incremental_fails_with_bad_source_ids( function test_aincremental_fails_with_bad_source_ids (line 462) | async def test_aincremental_fails_with_bad_source_ids( function test_no_delete (line 511) | def test_no_delete( function test_ano_delete (line 600) | async def test_ano_delete( function test_incremental_delete (line 688) | def test_incremental_delete( function test_incremental_indexing_with_batch_size (line 799) | def test_incremental_indexing_with_batch_size( function test_incremental_delete_with_batch_size (line 866) | def test_incremental_delete_with_batch_size( function test_aincremental_delete (line 1032) | async def test_aincremental_delete( function test_indexing_with_no_docs (line 1143) | def test_indexing_with_no_docs( function test_aindexing_with_no_docs (line 1159) | async def test_aindexing_with_no_docs( function test_deduplication (line 1174) | def test_deduplication( function test_adeduplication (line 1200) | async def test_adeduplication( function test_cleanup_with_different_batchsize (line 1225) | def test_cleanup_with_different_batchsize( function test_async_cleanup_with_different_batchsize (line 1268) | async def test_async_cleanup_with_different_batchsize( function test_deduplication_v2 (line 1310) | def test_deduplication_v2( function _to_async_iter (line 1349) | async def _to_async_iter(it: Iterable[Any]) -> AsyncIterator[Any]: function test_abatch (line 1355) | async def test_abatch() -> None: function test_indexing_force_update (line 1374) | def test_indexing_force_update( function test_aindexing_force_update (line 1423) | async def test_aindexing_force_update( function test_indexing_custom_batch_size (line 1481) | def test_indexing_custom_batch_size( function test_aindexing_custom_batch_size (line 1516) | async def test_aindexing_custom_batch_size( FILE: libs/langchain/tests/unit_tests/llms/fake_chat_model.py class FakeChatModel (line 22) | class FakeChatModel(SimpleChatModel): method _call (line 26) | def _call( method _agenerate (line 36) | async def _agenerate( method _llm_type (line 49) | def _llm_type(self) -> str: method _identifying_params (line 53) | def _identifying_params(self) -> dict[str, Any]: class GenericFakeChatModel (line 57) | class GenericFakeChatModel(BaseChatModel): method _generate (line 83) | def _generate( method _stream (line 95) | def _stream( method _astream (line 201) | async def _astream( method _llm_type (line 221) | def _llm_type(self) -> str: FILE: libs/langchain/tests/unit_tests/llms/fake_llm.py class FakeLLM (line 12) | class FakeLLM(LLM): method check_queries_required (line 21) | def check_queries_required(cls, values: dict) -> dict: method get_num_tokens (line 27) | def get_num_tokens(self, text: str) -> int: method _llm_type (line 32) | def _llm_type(self) -> str: method _call (line 37) | def _call( method _identifying_params (line 53) | def _identifying_params(self) -> dict[str, Any]: method _get_next_response_in_sequence (line 57) | def _get_next_response_in_sequence(self) -> str: FILE: libs/langchain/tests/unit_tests/llms/test_base.py function test_all_imports (line 17) | def test_all_imports() -> None: function test_caching (line 21) | def test_caching() -> None: FILE: libs/langchain/tests/unit_tests/llms/test_fake_chat_model.py function test_generic_fake_chat_model_invoke (line 16) | def test_generic_fake_chat_model_invoke() -> None: function test_generic_fake_chat_model_ainvoke (line 28) | async def test_generic_fake_chat_model_ainvoke() -> None: function test_generic_fake_chat_model_stream (line 40) | async def test_generic_fake_chat_model_stream() -> None: function test_generic_fake_chat_model_astream_log (line 136) | async def test_generic_fake_chat_model_astream_log() -> None: function test_callback_handlers (line 151) | async def test_callback_handlers() -> None: FILE: libs/langchain/tests/unit_tests/llms/test_imports.py function test_all_imports (line 88) | def test_all_imports() -> None: FILE: libs/langchain/tests/unit_tests/load/test_dump.py class Person (line 14) | class Person(Serializable): method is_lc_serializable (line 20) | def is_lc_serializable(cls) -> bool: method lc_secrets (line 24) | def lc_secrets(self) -> dict[str, str]: method lc_attributes (line 28) | def lc_attributes(self) -> dict[str, str]: class SpecialPerson (line 32) | class SpecialPerson(Person): method get_lc_namespace (line 38) | def get_lc_namespace(cls) -> list[str]: method lc_secrets (line 43) | def lc_secrets(self) -> dict[str, str]: method lc_attributes (line 48) | def lc_attributes(self) -> dict[str, str]: class NotSerializable (line 52) | class NotSerializable: function test_person (line 56) | def test_person(snapshot: Any) -> None: function test_typeerror (line 65) | def test_typeerror() -> None: function test_person_with_kwargs (line 76) | def test_person_with_kwargs(snapshot: Any) -> None: function test_person_with_invalid_kwargs (line 81) | def test_person_with_invalid_kwargs() -> None: class TestClass (line 87) | class TestClass(Serializable): method get_from_env (line 97) | def get_from_env(cls, values: dict) -> Any: method is_lc_serializable (line 106) | def is_lc_serializable(cls) -> bool: method get_lc_namespace (line 110) | def get_lc_namespace(cls) -> list[str]: method lc_secrets (line 114) | def lc_secrets(self) -> dict[str, str]: function test_aliases_hidden (line 121) | def test_aliases_hidden() -> None: FILE: libs/langchain/tests/unit_tests/load/test_imports.py function test_all_imports (line 11) | def test_all_imports() -> None: FILE: libs/langchain/tests/unit_tests/load/test_load.py class NotSerializable (line 18) | class NotSerializable: function test_loads_openai_llm (line 23) | def test_loads_openai_llm() -> None: function test_loads_llmchain (line 42) | def test_loads_llmchain() -> None: function test_loads_llmchain_env (line 64) | def test_loads_llmchain_env() -> None: function test_loads_llmchain_with_non_serializable_arg (line 90) | def test_loads_llmchain_with_non_serializable_arg() -> None: function test_load_openai_llm (line 105) | def test_load_openai_llm() -> None: function test_load_llmchain (line 118) | def test_load_llmchain() -> None: function test_load_llmchain_env (line 135) | def test_load_llmchain_env() -> None: function test_load_llmchain_with_non_serializable_arg (line 161) | def test_load_llmchain_with_non_serializable_arg() -> None: function test_loads_with_missing_secrets (line 179) | def test_loads_with_missing_secrets() -> None: FILE: libs/langchain/tests/unit_tests/memory/chat_message_histories/test_imports.py function test_imports (line 27) | def test_imports() -> None: FILE: libs/langchain/tests/unit_tests/memory/test_combined_memory.py function example_memory (line 11) | def example_memory() -> list[ConversationBufferMemory]: function test_basic_functionality (line 18) | def test_basic_functionality(example_memory: list[ConversationBufferMemo... function test_repeated_memory_var (line 35) | def test_repeated_memory_var(example_memory: list[ConversationBufferMemo... FILE: libs/langchain/tests/unit_tests/memory/test_imports.py function test_all_imports (line 43) | def test_all_imports() -> None: FILE: libs/langchain/tests/unit_tests/output_parsers/test_boolean_parser.py function test_boolean_output_parser_parse (line 8) | def test_boolean_output_parser_parse() -> None: function test_boolean_output_parser_output_type (line 58) | def test_boolean_output_parser_output_type() -> None: FILE: libs/langchain/tests/unit_tests/output_parsers/test_combining_parser.py function test_combining_dict_result (line 29) | def test_combining_dict_result() -> None: function test_combining_output_parser_output_type (line 55) | def test_combining_output_parser_output_type() -> None: FILE: libs/langchain/tests/unit_tests/output_parsers/test_datetime_parser.py function test_datetime_output_parser_parse (line 9) | def test_datetime_output_parser_parse() -> None: FILE: libs/langchain/tests/unit_tests/output_parsers/test_enum_parser.py class Colors (line 9) | class Colors(Enum): function test_enum_output_parser_parse (line 15) | def test_enum_output_parser_parse() -> None: function test_enum_output_parser_output_type (line 33) | def test_enum_output_parser_output_type() -> None: FILE: libs/langchain/tests/unit_tests/output_parsers/test_fix.py class SuccessfulParseAfterRetries (line 21) | class SuccessfulParseAfterRetries(BaseOutputParser[str]): method parse (line 26) | def parse(self, *args: Any, **kwargs: Any) -> str: class SuccessfulParseAfterRetriesWithGetFormatInstructions (line 34) | class SuccessfulParseAfterRetriesWithGetFormatInstructions(SuccessfulPar... method get_format_instructions (line 35) | def get_format_instructions(self) -> str: function test_output_fixing_parser_parse (line 48) | def test_output_fixing_parser_parse( function test_output_fixing_parser_from_llm (line 66) | def test_output_fixing_parser_from_llm() -> None: function test_output_fixing_parser_aparse (line 91) | async def test_output_fixing_parser_aparse( function test_output_fixing_parser_parse_fail (line 107) | def test_output_fixing_parser_parse_fail() -> None: function test_output_fixing_parser_aparse_fail (line 121) | async def test_output_fixing_parser_aparse_fail() -> None: function test_output_fixing_parser_output_type (line 142) | def test_output_fixing_parser_output_type( function test_output_fixing_parser_parse_with_retry_chain (line 171) | def test_output_fixing_parser_parse_with_retry_chain( function test_output_fixing_parser_aparse_with_retry_chain (line 208) | async def test_output_fixing_parser_aparse_with_retry_chain( FILE: libs/langchain/tests/unit_tests/output_parsers/test_imports.py function test_all_imports (line 30) | def test_all_imports() -> None: FILE: libs/langchain/tests/unit_tests/output_parsers/test_json.py function test_partial_functions_json_output_parser (line 404) | def test_partial_functions_json_output_parser() -> None: function test_partial_functions_json_output_parser_diff (line 417) | def test_partial_functions_json_output_parser_diff() -> None: function test_partial_functions_json_output_parser_async (line 430) | async def test_partial_functions_json_output_parser_async() -> None: function test_partial_functions_json_output_parser_diff_async (line 443) | async def test_partial_functions_json_output_parser_diff_async() -> None: FILE: libs/langchain/tests/unit_tests/output_parsers/test_pandas_dataframe_parser.py function test_pandas_output_parser_col_no_array (line 25) | def test_pandas_output_parser_col_no_array() -> None: function test_pandas_output_parser_col_oob (line 31) | def test_pandas_output_parser_col_oob() -> None: function test_pandas_output_parser_col_first_elem (line 37) | def test_pandas_output_parser_col_first_elem() -> None: function test_pandas_output_parser_col_multi_elem (line 44) | def test_pandas_output_parser_col_multi_elem() -> None: function test_pandas_output_parser_row_no_array (line 52) | def test_pandas_output_parser_row_no_array() -> None: function test_pandas_output_parser_row_first (line 58) | def test_pandas_output_parser_row_first() -> None: function test_pandas_output_parser_row_no_column (line 65) | def test_pandas_output_parser_row_no_column() -> None: function test_pandas_output_parser_row_col_1 (line 71) | def test_pandas_output_parser_row_col_1() -> None: function test_pandas_output_parser_special_ops (line 77) | def test_pandas_output_parser_special_ops() -> None: function test_pandas_output_parser_invalid_special_op (line 103) | def test_pandas_output_parser_invalid_special_op() -> None: function test_pandas_output_parser_output_type (line 108) | def test_pandas_output_parser_output_type() -> None: FILE: libs/langchain/tests/unit_tests/output_parsers/test_regex.py function test_regex_parser_parse (line 19) | def test_regex_parser_parse() -> None: function test_regex_parser_output_type (line 29) | def test_regex_parser_output_type() -> None: FILE: libs/langchain/tests/unit_tests/output_parsers/test_regex_dict.py function test_regex_dict_result (line 31) | def test_regex_dict_result() -> None: function test_regex_dict_output_type (line 42) | def test_regex_dict_output_type() -> None: FILE: libs/langchain/tests/unit_tests/output_parsers/test_retry.py class SuccessfulParseAfterRetries (line 24) | class SuccessfulParseAfterRetries(BaseOutputParser[str]): method parse (line 30) | def parse(self, *args: Any, **kwargs: Any) -> str: function test_retry_output_parser_parse_with_prompt (line 37) | def test_retry_output_parser_parse_with_prompt() -> None: function test_retry_output_parser_parse_with_prompt_fail (line 51) | def test_retry_output_parser_parse_with_prompt_fail() -> None: function test_retry_output_parser_aparse_with_prompt (line 65) | async def test_retry_output_parser_aparse_with_prompt() -> None: function test_retry_output_parser_aparse_with_prompt_fail (line 82) | async def test_retry_output_parser_aparse_with_prompt_fail() -> None: function test_retry_output_parser_output_type (line 103) | def test_retry_output_parser_output_type(base_parser: BaseOutputParser) ... function test_retry_output_parser_parse_is_not_implemented (line 112) | def test_retry_output_parser_parse_is_not_implemented() -> None: function test_retry_with_error_output_parser_parse_with_prompt (line 122) | def test_retry_with_error_output_parser_parse_with_prompt() -> None: function test_retry_with_error_output_parser_parse_with_prompt_fail (line 136) | def test_retry_with_error_output_parser_parse_with_prompt_fail() -> None: function test_retry_with_error_output_parser_aparse_with_prompt (line 150) | async def test_retry_with_error_output_parser_aparse_with_prompt() -> None: function test_retry_with_error_output_parser_aparse_with_prompt_fail (line 167) | async def test_retry_with_error_output_parser_aparse_with_prompt_fail() ... function test_retry_with_error_output_parser_output_type (line 188) | def test_retry_with_error_output_parser_output_type( function test_retry_with_error_output_parser_parse_is_not_implemented (line 199) | def test_retry_with_error_output_parser_parse_is_not_implemented() -> None: function test_retry_output_parser_parse_with_prompt_with_retry_chain (line 222) | def test_retry_output_parser_parse_with_prompt_with_retry_chain( function test_retry_output_parser_aparse_with_prompt_with_retry_chain (line 250) | async def test_retry_output_parser_aparse_with_prompt_with_retry_chain( function test_retry_with_error_output_parser_parse_with_prompt_with_retry_chain (line 279) | def test_retry_with_error_output_parser_parse_with_prompt_with_retry_chain( function test_retry_with_error_output_parser_aparse_with_prompt_with_retry_chain (line 308) | async def test_retry_with_error_output_parser_aparse_with_prompt_with_re... FILE: libs/langchain/tests/unit_tests/output_parsers/test_structured_parser.py function test_parse (line 8) | def test_parse() -> None: function test_output_type (line 33) | def test_output_type() -> None: FILE: libs/langchain/tests/unit_tests/output_parsers/test_yaml_parser.py class Actions (line 12) | class Actions(Enum): class TestModel (line 19) | class TestModel(BaseModel): function test_yaml_output_parser (line 70) | def test_yaml_output_parser(result: str) -> None: function test_yaml_output_parser_fail (line 81) | def test_yaml_output_parser_fail() -> None: function test_yaml_output_parser_output_type (line 93) | def test_yaml_output_parser_output_type() -> None: FILE: libs/langchain/tests/unit_tests/prompts/test_base.py function test_all_imports (line 15) | def test_all_imports() -> None: FILE: libs/langchain/tests/unit_tests/prompts/test_chat.py function test_all_imports (line 23) | def test_all_imports() -> None: FILE: libs/langchain/tests/unit_tests/prompts/test_few_shot.py function test_all_imports (line 10) | def test_all_imports() -> None: FILE: libs/langchain/tests/unit_tests/prompts/test_few_shot_with_templates.py function test_all_imports (line 6) | def test_all_imports() -> None: FILE: libs/langchain/tests/unit_tests/prompts/test_imports.py function test_all_imports (line 26) | def test_all_imports() -> None: FILE: libs/langchain/tests/unit_tests/prompts/test_loading.py function test_all_imports (line 15) | def test_all_imports() -> None: FILE: libs/langchain/tests/unit_tests/prompts/test_prompt.py function test_all_imports (line 6) | def test_all_imports() -> None: FILE: libs/langchain/tests/unit_tests/retrievers/document_compressors/test_chain_extract.py function test_llm_chain_extractor (line 7) | def test_llm_chain_extractor() -> None: function test_llm_chain_extractor_async (line 49) | async def test_llm_chain_extractor_async() -> None: FILE: libs/langchain/tests/unit_tests/retrievers/document_compressors/test_chain_filter.py function test_llm_chain_filter (line 7) | def test_llm_chain_filter() -> None: function test_llm_chain_extractor_async (line 29) | async def test_llm_chain_extractor_async() -> None: FILE: libs/langchain/tests/unit_tests/retrievers/document_compressors/test_listwise_rerank.py function test__list_rerank_init (line 9) | def test__list_rerank_init() -> None: FILE: libs/langchain/tests/unit_tests/retrievers/parrot_retriever.py class FakeParrotRetriever (line 5) | class FakeParrotRetriever(BaseRetriever): method _get_relevant_documents (line 8) | def _get_relevant_documents( # type: ignore[override] method _aget_relevant_documents (line 14) | async def _aget_relevant_documents( # type: ignore[override] FILE: libs/langchain/tests/unit_tests/retrievers/self_query/test_base.py class FakeTranslator (line 25) | class FakeTranslator(Visitor): method _format_func (line 38) | def _format_func(self, func: Operator | Comparator) -> str: method visit_operation (line 42) | def visit_operation(self, operation: Operation) -> dict: method visit_comparison (line 46) | def visit_comparison(self, comparison: Comparison) -> dict: method visit_structured_query (line 53) | def visit_structured_query( class InMemoryVectorstoreWithSearch (line 64) | class InMemoryVectorstoreWithSearch(InMemoryVectorStore): method similarity_search (line 66) | def similarity_search( function fake_llm (line 79) | def fake_llm() -> FakeLLM: function fake_vectorstore (line 95) | def fake_vectorstore() -> InMemoryVectorstoreWithSearch: function fake_self_query_retriever (line 112) | def fake_self_query_retriever( function test__get_relevant_documents (line 131) | def test__get_relevant_documents(fake_self_query_retriever: SelfQueryRet... function test__aget_relevant_documents (line 140) | async def test__aget_relevant_documents( FILE: libs/langchain/tests/unit_tests/retrievers/sequential_retriever.py class SequentialRetriever (line 8) | class SequentialRetriever(BaseRetriever): method _get_relevant_documents (line 15) | def _get_relevant_documents( method _aget_relevant_documents (line 26) | async def _aget_relevant_documents( FILE: libs/langchain/tests/unit_tests/retrievers/test_ensemble.py class MockRetriever (line 9) | class MockRetriever(BaseRetriever): method _get_relevant_documents (line 13) | def _get_relevant_documents( function test_invoke (line 23) | def test_invoke() -> None: FILE: libs/langchain/tests/unit_tests/retrievers/test_imports.py function test_imports (line 54) | def test_imports() -> None: FILE: libs/langchain/tests/unit_tests/retrievers/test_multi_query.py function test__unique_documents (line 40) | def test__unique_documents(documents: list[Document], expected: list[Doc... function test_line_list_output_parser (line 52) | def test_line_list_output_parser(text: str, expected: list[str]) -> None: FILE: libs/langchain/tests/unit_tests/retrievers/test_multi_vector.py class InMemoryVectorstoreWithSearch (line 12) | class InMemoryVectorstoreWithSearch(InMemoryVectorStore): method _identity_fn (line 14) | def _identity_fn(score: float) -> float: method _select_relevance_score_fn (line 17) | def _select_relevance_score_fn(self) -> Callable[[float], float]: method similarity_search (line 21) | def similarity_search( method similarity_search_with_score (line 33) | def similarity_search_with_score( function test_multi_vector_retriever_initialization (line 45) | def test_multi_vector_retriever_initialization() -> None: function test_multi_vector_retriever_initialization_async (line 60) | async def test_multi_vector_retriever_initialization_async() -> None: function test_multi_vector_retriever_similarity_search_with_score (line 75) | def test_multi_vector_retriever_similarity_search_with_score() -> None: function test_multi_vector_retriever_similarity_search_with_score_async (line 106) | async def test_multi_vector_retriever_similarity_search_with_score_async... FILE: libs/langchain/tests/unit_tests/retrievers/test_parent_document.py class InMemoryVectorstoreWithSearch (line 13) | class InMemoryVectorstoreWithSearch(InMemoryVectorStore): method similarity_search (line 15) | def similarity_search( method add_documents (line 27) | def add_documents(self, documents: Sequence[Document], **kwargs: Any) ... function test_parent_document_retriever_initialization (line 35) | def test_parent_document_retriever_initialization() -> None: FILE: libs/langchain/tests/unit_tests/retrievers/test_time_weighted_retriever.py function _get_example_memories (line 19) | def _get_example_memories(k: int = 4) -> list[Document]: class MockVectorStore (line 32) | class MockVectorStore(VectorStore): method add_texts (line 36) | def add_texts( method similarity_search (line 45) | def similarity_search( method from_texts (line 55) | def from_texts( method _similarity_search_with_relevance_scores (line 65) | def _similarity_search_with_relevance_scores( method _asimilarity_search_with_relevance_scores (line 73) | async def _asimilarity_search_with_relevance_scores( function time_weighted_retriever (line 83) | def time_weighted_retriever() -> TimeWeightedVectorStoreRetriever: function test__get_hours_passed (line 91) | def test__get_hours_passed() -> None: function test_get_combined_score (line 99) | def test_get_combined_score( function test_get_salient_docs (line 120) | def test_get_salient_docs( function test_aget_salient_docs (line 132) | async def test_aget_salient_docs( function test_invoke (line 144) | def test_invoke( function test_ainvoke (line 162) | async def test_ainvoke( function test_add_documents (line 180) | def test_add_documents( function test_aadd_documents (line 193) | async def test_aadd_documents( FILE: libs/langchain/tests/unit_tests/runnables/test_hub.py function test_hub_runnable (line 11) | def test_hub_runnable(mock_pull: Mock) -> None: function repo_lookup (line 41) | def repo_lookup(owner_repo_commit: str, **_: Any) -> ChatPromptTemplate: function test_hub_runnable_configurable_alternative (line 46) | def test_hub_runnable_configurable_alternative(mock_pull: Mock) -> None: function test_hub_runnable_configurable_fields (line 68) | def test_hub_runnable_configurable_fields(mock_pull: Mock) -> None: FILE: libs/langchain/tests/unit_tests/runnables/test_openai_functions.py class FakeChatOpenAI (line 14) | class FakeChatOpenAI(BaseChatModel): method _llm_type (line 16) | def _llm_type(self) -> str: method _generate (line 20) | def _generate( function test_openai_functions_router (line 44) | def test_openai_functions_router( FILE: libs/langchain/tests/unit_tests/schema/runnable/test_base.py function test_all_imports (line 23) | def test_all_imports() -> None: FILE: libs/langchain/tests/unit_tests/schema/runnable/test_branch.py function test_all_imports (line 6) | def test_all_imports() -> None: FILE: libs/langchain/tests/unit_tests/schema/runnable/test_config.py function test_all_imports (line 18) | def test_all_imports() -> None: FILE: libs/langchain/tests/unit_tests/schema/runnable/test_configurable.py function test_all_imports (line 12) | def test_all_imports() -> None: FILE: libs/langchain/tests/unit_tests/schema/runnable/test_fallbacks.py function test_all_imports (line 6) | def test_all_imports() -> None: FILE: libs/langchain/tests/unit_tests/schema/runnable/test_history.py function test_all_imports (line 10) | def test_all_imports() -> None: FILE: libs/langchain/tests/unit_tests/schema/runnable/test_imports.py function test_all_imports (line 25) | def test_all_imports() -> None: FILE: libs/langchain/tests/unit_tests/schema/runnable/test_passthrough.py function test_all_imports (line 6) | def test_all_imports() -> None: FILE: libs/langchain/tests/unit_tests/schema/runnable/test_retry.py function test_all_imports (line 6) | def test_all_imports() -> None: FILE: libs/langchain/tests/unit_tests/schema/runnable/test_router.py function test_all_imports (line 6) | def test_all_imports() -> None: FILE: libs/langchain/tests/unit_tests/schema/runnable/test_utils.py function test_all_imports (line 30) | def test_all_imports() -> None: FILE: libs/langchain/tests/unit_tests/schema/test_agent.py function test_all_imports (line 6) | def test_all_imports() -> None: FILE: libs/langchain/tests/unit_tests/schema/test_cache.py function test_all_imports (line 6) | def test_all_imports() -> None: FILE: libs/langchain/tests/unit_tests/schema/test_chat.py function test_all_imports (line 6) | def test_all_imports() -> None: FILE: libs/langchain/tests/unit_tests/schema/test_chat_history.py function test_all_imports (line 6) | def test_all_imports() -> None: FILE: libs/langchain/tests/unit_tests/schema/test_document.py function test_all_imports (line 6) | def test_all_imports() -> None: FILE: libs/langchain/tests/unit_tests/schema/test_embeddings.py function test_all_imports (line 6) | def test_all_imports() -> None: FILE: libs/langchain/tests/unit_tests/schema/test_exceptions.py function test_all_imports (line 6) | def test_all_imports() -> None: FILE: libs/langchain/tests/unit_tests/schema/test_imports.py function test_all_imports (line 43) | def test_all_imports() -> None: FILE: libs/langchain/tests/unit_tests/schema/test_language_model.py function test_all_imports (line 12) | def test_all_imports() -> None: FILE: libs/langchain/tests/unit_tests/schema/test_memory.py function test_all_imports (line 6) | def test_all_imports() -> None: FILE: libs/langchain/tests/unit_tests/schema/test_messages.py function test_all_imports (line 29) | def test_all_imports() -> None: FILE: libs/langchain/tests/unit_tests/schema/test_output.py function test_all_imports (line 14) | def test_all_imports() -> None: FILE: libs/langchain/tests/unit_tests/schema/test_output_parser.py function test_all_imports (line 16) | def test_all_imports() -> None: FILE: libs/langchain/tests/unit_tests/schema/test_prompt.py function test_all_imports (line 6) | def test_all_imports() -> None: FILE: libs/langchain/tests/unit_tests/schema/test_prompt_template.py function test_all_imports (line 6) | def test_all_imports() -> None: FILE: libs/langchain/tests/unit_tests/schema/test_retriever.py function test_all_imports (line 6) | def test_all_imports() -> None: FILE: libs/langchain/tests/unit_tests/schema/test_storage.py function test_all_imports (line 6) | def test_all_imports() -> None: FILE: libs/langchain/tests/unit_tests/schema/test_vectorstore.py function test_all_imports (line 6) | def test_all_imports() -> None: FILE: libs/langchain/tests/unit_tests/smith/evaluation/test_runner_utils.py function test__get_messages_valid (line 65) | def test__get_messages_valid(inputs: dict[str, Any]) -> None: function test__get_prompts_valid (line 73) | def test__get_prompts_valid(inputs: dict[str, Any]) -> None: function test__validate_example_inputs_for_language_model (line 81) | def test__validate_example_inputs_for_language_model(inputs: dict[str, A... function test__validate_example_inputs_for_language_model_invalid (line 91) | def test__validate_example_inputs_for_language_model_invalid( function test__validate_example_inputs_for_chain_single_input (line 100) | def test__validate_example_inputs_for_chain_single_input() -> None: function test__validate_example_inputs_for_chain_input_mapper (line 108) | def test__validate_example_inputs_for_chain_input_mapper() -> None: function test__validate_example_inputs_for_chain_multi_io (line 138) | def test__validate_example_inputs_for_chain_multi_io() -> None: function test__validate_example_inputs_for_chain_single_input_multi_expect (line 146) | def test__validate_example_inputs_for_chain_single_input_multi_expect() ... function test__get_prompts_invalid (line 156) | def test__get_prompts_invalid(inputs: dict[str, Any]) -> None: function test_run_llm_or_chain_with_input_mapper (line 161) | def test_run_llm_or_chain_with_input_mapper() -> None: function test__get_messages_invalid (line 226) | def test__get_messages_invalid(inputs: dict[str, Any]) -> None: function test_run_llm_all_formats (line 232) | def test_run_llm_all_formats(inputs: dict[str, Any]) -> None: function test_run_chat_model_all_formats (line 238) | def test_run_chat_model_all_formats(inputs: dict[str, Any]) -> None: function test_arun_on_dataset (line 244) | async def test_arun_on_dataset() -> None: FILE: libs/langchain/tests/unit_tests/smith/evaluation/test_string_run_evaluator.py function test_evaluate_run (line 13) | def test_evaluate_run() -> None: FILE: libs/langchain/tests/unit_tests/smith/test_imports.py function test_all_imports (line 10) | def test_all_imports() -> None: FILE: libs/langchain/tests/unit_tests/storage/test_filesystem.py function file_store (line 12) | def file_store() -> Generator[LocalFileStore, None, None]: function test_mset_and_mget (line 20) | def test_mset_and_mget(file_store: LocalFileStore) -> None: function test_mset_chmod (line 36) | def test_mset_chmod(chmod_dir_s: str, chmod_file_s: str) -> None: function test_mget_update_atime (line 62) | def test_mget_update_atime() -> None: function test_mdelete (line 85) | def test_mdelete(file_store: LocalFileStore) -> None: function test_set_invalid_key (line 100) | def test_set_invalid_key(file_store: LocalFileStore) -> None: function test_set_key_and_verify_content (line 109) | def test_set_key_and_verify_content(file_store: LocalFileStore) -> None: function test_yield_keys (line 122) | def test_yield_keys(file_store: LocalFileStore) -> None: function test_catches_forbidden_keys (line 135) | def test_catches_forbidden_keys(file_store: LocalFileStore) -> None: FILE: libs/langchain/tests/unit_tests/storage/test_imports.py function test_all_imports (line 17) | def test_all_imports() -> None: FILE: libs/langchain/tests/unit_tests/storage/test_lc_store.py function file_store (line 13) | def file_store() -> Generator[LocalFileStore, None, None]: function test_create_lc_store (line 21) | def test_create_lc_store(file_store: LocalFileStore) -> None: function test_create_kv_store (line 30) | def test_create_kv_store(file_store: LocalFileStore) -> None: FILE: libs/langchain/tests/unit_tests/stubs.py class _AnyIDMixin (line 5) | class _AnyIDMixin(BaseModel): method __eq__ (line 6) | def __eq__(self, other: object) -> bool: class _AnyIdAIMessage (line 18) | class _AnyIdAIMessage(AIMessage, _AnyIDMixin): class _AnyIdAIMessageChunk (line 22) | class _AnyIdAIMessageChunk(AIMessageChunk, _AnyIDMixin): FILE: libs/langchain/tests/unit_tests/test_dependencies.py function uv_conf (line 17) | def uv_conf() -> dict[str, Any]: function test_required_dependencies (line 23) | def test_required_dependencies(uv_conf: Mapping[str, Any]) -> None: function test_test_group_dependencies (line 47) | def test_test_group_dependencies(uv_conf: Mapping[str, Any]) -> None: FILE: libs/langchain/tests/unit_tests/test_formatting.py function test_valid_formatting (line 7) | def test_valid_formatting() -> None: function test_does_not_allow_args (line 15) | def test_does_not_allow_args() -> None: function test_allows_extra_kwargs (line 26) | def test_allows_extra_kwargs() -> None: FILE: libs/langchain/tests/unit_tests/test_globals.py function test_no_warning (line 11) | def test_no_warning() -> None: function test_debug_is_settable_via_setter (line 25) | def test_debug_is_settable_via_setter() -> None: function test_verbose_is_settable_via_setter (line 55) | def test_verbose_is_settable_via_setter() -> None: FILE: libs/langchain/tests/unit_tests/test_imports.py function test_import_all (line 14) | def test_import_all() -> None: function test_import_all_using_dir (line 49) | def test_import_all_using_dir() -> None: function test_no_more_changes_to_proxy_community (line 78) | def test_no_more_changes_to_proxy_community() -> None: function extract_deprecated_lookup (line 111) | def extract_deprecated_lookup(file_path: str) -> dict[str, Any] | None: function _dict_from_ast (line 136) | def _dict_from_ast(node: ast.Dict) -> dict[str, str]: function _literal_eval_str (line 153) | def _literal_eval_str(node: ast.AST) -> str: FILE: libs/langchain/tests/unit_tests/test_pytest_config.py function test_socket_disabled (line 6) | def test_socket_disabled() -> None: FILE: libs/langchain/tests/unit_tests/test_schema.py function test_serialization_of_wellknown_objects (line 25) | def test_serialization_of_wellknown_objects() -> None: FILE: libs/langchain/tests/unit_tests/test_utils.py function test_check_package_version_pass (line 7) | def test_check_package_version_pass() -> None: function test_check_package_version_fail (line 11) | def test_check_package_version_fail() -> None: FILE: libs/langchain/tests/unit_tests/tools/test_base.py function test_all_imports (line 14) | def test_all_imports() -> None: FILE: libs/langchain/tests/unit_tests/tools/test_imports.py function test_all_imports (line 126) | def test_all_imports() -> None: FILE: libs/langchain/tests/unit_tests/tools/test_render.py function search (line 11) | def search(query: str) -> str: # noqa: ARG001 function calculator (line 17) | def calculator(expression: str) -> str: # noqa: ARG001 function tools (line 23) | def tools() -> list[BaseTool]: function test_render_text_description (line 27) | def test_render_text_description(tools: list[BaseTool]) -> None: function test_render_text_description_and_args (line 34) | def test_render_text_description_and_args(tools: list[BaseTool]) -> None: FILE: libs/langchain/tests/unit_tests/utilities/test_imports.py function test_all_imports (line 52) | def test_all_imports() -> None: FILE: libs/langchain/tests/unit_tests/utils/test_imports.py function test_all_imports (line 27) | def test_all_imports() -> None: FILE: libs/langchain/tests/unit_tests/utils/test_iter.py function test_batch_iterate (line 14) | def test_batch_iterate( FILE: libs/langchain/tests/unit_tests/utils/test_openai_functions.py function test_convert_pydantic_to_openai_function (line 5) | def test_convert_pydantic_to_openai_function() -> None: function test_convert_pydantic_to_openai_function_nested (line 32) | def test_convert_pydantic_to_openai_function_nested() -> None: FILE: libs/langchain/tests/unit_tests/vectorstores/test_public_api.py function test_public_api (line 80) | def test_public_api() -> None: FILE: libs/langchain_v1/langchain/agents/factory.py class _ComposedExtendedModelResponse (line 59) | class _ComposedExtendedModelResponse(Generic[ResponseT]): function _scrub_inputs (line 136) | def _scrub_inputs(inputs: dict[str, Any]) -> dict[str, Any]: function _normalize_to_model_response (line 161) | def _normalize_to_model_response( function _build_commands (line 177) | def _build_commands( function _chain_model_call_handlers (line 219) | def _chain_model_call_handlers( function _chain_async_model_call_handlers (line 311) | def _chain_async_model_call_handlers( function _resolve_schemas (line 402) | def _resolve_schemas(schemas: set[type]) -> tuple[type, type, type]: function _resolve_schema (line 412) | def _resolve_schema( function _extract_metadata (line 447) | def _extract_metadata(type_: type) -> list[Any]: function _get_can_jump_to (line 462) | def _get_can_jump_to(middleware: AgentMiddleware[Any, Any], hook_name: s... function _supports_provider_strategy (line 497) | def _supports_provider_strategy( function _handle_structured_output_error (line 542) | def _handle_structured_output_error( function _chain_tool_call_wrappers (line 572) | def _chain_tool_call_wrappers( function _chain_async_tool_call_wrappers (line 620) | def _chain_async_tool_call_wrappers( function create_agent (line 684) | def create_agent( function _resolve_jump (line 1659) | def _resolve_jump( function _fetch_last_ai_and_tool_messages (line 1674) | def _fetch_last_ai_and_tool_messages( function _make_model_to_tools_edge (line 1695) | def _make_model_to_tools_edge( function _make_model_to_model_edge (line 1756) | def _make_model_to_model_edge( function _make_tools_to_model_edge (line 1783) | def _make_tools_to_model_edge( function _add_middleware_edge (line 1819) | def _add_middleware_edge( FILE: libs/langchain_v1/langchain/agents/middleware/_execution.py function _launch_subprocess (line 27) | def _launch_subprocess( class BaseExecutionPolicy (line 57) | class BaseExecutionPolicy(abc.ABC): method __post_init__ (line 75) | def __post_init__(self) -> None: method spawn (line 81) | def spawn( class HostExecutionPolicy (line 92) | class HostExecutionPolicy(BaseExecutionPolicy): method __post_init__ (line 113) | def __post_init__(self) -> None: method spawn (line 131) | def spawn( method _create_preexec_fn (line 148) | def _create_preexec_fn(self) -> typing.Callable[[], None] | None: method _apply_post_spawn_limits (line 165) | def _apply_post_spawn_limits(self, process: subprocess.Popen[str]) -> ... method _can_use_prlimit (line 186) | def _can_use_prlimit() -> bool: class CodexSandboxExecutionPolicy (line 191) | class CodexSandboxExecutionPolicy(BaseExecutionPolicy): method spawn (line 210) | def spawn( method _build_command (line 226) | def _build_command(self, command: Sequence[str]) -> list[str]: method _resolve_binary (line 236) | def _resolve_binary(self) -> str: method _determine_platform (line 245) | def _determine_platform(self) -> str: method _format_override (line 259) | def _format_override(value: typing.Any) -> str: class DockerExecutionPolicy (line 267) | class DockerExecutionPolicy(BaseExecutionPolicy): method __post_init__ (line 295) | def __post_init__(self) -> None: method spawn (line 314) | def spawn( method _build_command (line 331) | def _build_command( method _should_mount_workspace (line 366) | def _should_mount_workspace(workspace: Path) -> bool: method _resolve_binary (line 369) | def _resolve_binary(self) -> str: FILE: libs/langchain_v1/langchain/agents/middleware/_redaction.py class PIIMatch (line 20) | class PIIMatch(TypedDict): class PIIDetectionError (line 29) | class PIIDetectionError(Exception): method __init__ (line 32) | def __init__(self, pii_type: str, matches: Sequence[PIIMatch]) -> None: function detect_email (line 50) | def detect_email(content: str) -> list[PIIMatch]: function detect_credit_card (line 71) | def detect_credit_card(content: str) -> list[PIIMatch]: function detect_ip (line 98) | def detect_ip(content: str) -> list[PIIMatch]: function detect_mac_address (line 128) | def detect_mac_address(content: str) -> list[PIIMatch]: function detect_url (line 149) | def detect_url(content: str) -> list[PIIMatch]: function _passes_luhn (line 222) | def _passes_luhn(card_number: str) -> bool: function _apply_redact_strategy (line 239) | def _apply_redact_strategy(content: str, matches: list[PIIMatch]) -> str: function _apply_mask_strategy (line 251) | def _apply_mask_strategy(content: str, matches: list[PIIMatch]) -> str: function _apply_hash_strategy (line 297) | def _apply_hash_strategy(content: str, matches: list[PIIMatch]) -> str: function apply_strategy (line 306) | def apply_strategy( function resolve_detector (line 339) | def resolve_detector(pii_type: str, detector: Detector | str | None) -> ... class RedactionRule (line 398) | class RedactionRule: method resolve (line 405) | def resolve(self) -> ResolvedRedactionRule: class ResolvedRedactionRule (line 420) | class ResolvedRedactionRule: method apply (line 427) | def apply(self, content: str) -> tuple[str, list[PIIMatch]]: FILE: libs/langchain_v1/langchain/agents/middleware/_retry.py function validate_retry_params (line 35) | def validate_retry_params( function should_retry_exception (line 66) | def should_retry_exception( function calculate_delay (line 85) | def calculate_delay( FILE: libs/langchain_v1/langchain/agents/middleware/context_editing.py class ContextEdit (line 44) | class ContextEdit(Protocol): method apply (line 47) | def apply( class ClearToolUsesEdit (line 58) | class ClearToolUsesEdit(ContextEdit): method apply (line 79) | def apply( method _build_cleared_tool_input_message (line 158) | def _build_cleared_tool_input_message( class ContextEditingMiddleware (line 187) | class ContextEditingMiddleware(AgentMiddleware[AgentState[ResponseT], Co... method __init__ (line 200) | def __init__( method wrap_model_call (line 220) | def wrap_model_call( method awrap_model_call (line 257) | async def awrap_model_call( FILE: libs/langchain_v1/langchain/agents/middleware/file_search.py function _expand_include_patterns (line 23) | def _expand_include_patterns(pattern: str) -> list[str] | None: function _is_valid_include_pattern (line 57) | def _is_valid_include_pattern(pattern: str) -> bool: function _match_include_pattern (line 78) | def _match_include_pattern(basename: str, pattern: str) -> bool: class FilesystemFileSearchMiddleware (line 87) | class FilesystemFileSearchMiddleware(AgentMiddleware[AgentState[Response... method __init__ (line 112) | def __init__( method _validate_and_resolve_path (line 235) | def _validate_and_resolve_path(self, path: str) -> Path: method _ripgrep_search (line 259) | def _ripgrep_search( method _python_search (line 312) | def _python_search( method _format_grep_results (line 356) | def _format_grep_results( FILE: libs/langchain_v1/langchain/agents/middleware/human_in_the_loop.py class Action (line 19) | class Action(TypedDict): class ActionRequest (line 29) | class ActionRequest(TypedDict): class ReviewConfig (line 45) | class ReviewConfig(TypedDict): class HITLRequest (line 58) | class HITLRequest(TypedDict): class ApproveDecision (line 68) | class ApproveDecision(TypedDict): class EditDecision (line 75) | class EditDecision(TypedDict): class RejectDecision (line 88) | class RejectDecision(TypedDict): class HITLResponse (line 101) | class HITLResponse(TypedDict): class _DescriptionFactory (line 108) | class _DescriptionFactory(Protocol): method __call__ (line 111) | def __call__( class InterruptOnConfig (line 118) | class InterruptOnConfig(TypedDict): class HumanInTheLoopMiddleware (line 167) | class HumanInTheLoopMiddleware(AgentMiddleware[StateT, ContextT, Respons... method __init__ (line 170) | def __init__( method _create_action_and_config (line 210) | def _create_action_and_config( method _process_decision (line 247) | def _process_decision( method after_model (line 288) | def after_model( method aafter_model (line 375) | async def aafter_model( FILE: libs/langchain_v1/langchain/agents/middleware/model_call_limit.py class ModelCallLimitState (line 24) | class ModelCallLimitState(AgentState[ResponseT]): function _build_limit_exceeded_message (line 37) | def _build_limit_exceeded_message( class ModelCallLimitExceededError (line 63) | class ModelCallLimitExceededError(Exception): method __init__ (line 70) | def __init__( class ModelCallLimitMiddleware (line 94) | class ModelCallLimitMiddleware( method __init__ (line 126) | def __init__( method before_model (line 168) | def before_model( method abefore_model (line 213) | async def abefore_model( method after_model (line 236) | def after_model( method aafter_model (line 253) | async def aafter_model( FILE: libs/langchain_v1/langchain/agents/middleware/model_fallback.py class ModelFallbackMiddleware (line 24) | class ModelFallbackMiddleware(AgentMiddleware[AgentState[ResponseT], Con... method __init__ (line 50) | def __init__( method wrap_model_call (line 72) | def wrap_model_call( method awrap_model_call (line 106) | async def awrap_model_call( FILE: libs/langchain_v1/langchain/agents/middleware/model_retry.py class ModelRetryMiddleware (line 31) | class ModelRetryMiddleware(AgentMiddleware[AgentState[ResponseT], Contex... method __init__ (line 111) | def __init__( method _format_failure_message (line 172) | def _format_failure_message(exc: Exception, attempts_made: int) -> AIM... method _handle_failure (line 190) | def _handle_failure(self, exc: Exception, attempts_made: int) -> Model... method wrap_model_call (line 214) | def wrap_model_call( method awrap_model_call (line 264) | async def awrap_model_call( FILE: libs/langchain_v1/langchain/agents/middleware/pii.py class PIIMiddleware (line 36) | class PIIMiddleware(AgentMiddleware[AgentState[ResponseT], ContextT, Res... method __init__ (line 100) | def __init__( method name (line 157) | def name(self) -> str: method _process_content (line 161) | def _process_content(self, content: str) -> tuple[str, list[PIIMatch]]: method before_model (line 171) | def before_model( method abefore_model (line 266) | async def abefore_model( method after_model (line 287) | def after_model( method aafter_model (line 346) | async def aafter_model( FILE: libs/langchain_v1/langchain/agents/middleware/shell_tool.py function _cleanup_resources (line 71) | def _cleanup_resources( class _SessionResources (line 82) | class _SessionResources: method __post_init__ (line 90) | def __post_init__(self) -> None: class ShellToolState (line 100) | class ShellToolState(AgentState[ResponseT]): class CommandExecutionResult (line 113) | class CommandExecutionResult: class ShellSession (line 125) | class ShellSession: method __init__ (line 128) | def __init__( method start (line 147) | def start(self) -> None: method restart (line 186) | def restart(self) -> None: method stop (line 191) | def stop(self, timeout: float) -> None: method execute (line 217) | def execute(self, command: str, *, timeout: float) -> CommandExecution... method _collect_output (line 240) | def _collect_output( method _collect_output_after_exit (line 327) | def _collect_output_after_exit(self, deadline: float) -> CommandExecut... method _kill_process (line 401) | def _kill_process(self) -> None: method _enqueue_stream (line 412) | def _enqueue_stream(self, stream: Any, label: str) -> None: method _drain_queue (line 417) | def _drain_queue(self) -> None: method _drain_remaining_stderr (line 424) | def _drain_remaining_stderr( method _safe_int (line 456) | def _safe_int(value: str) -> int | None: class _ShellToolInput (line 462) | class _ShellToolInput(BaseModel): method validate_payload (line 479) | def validate_payload(self) -> _ShellToolInput: class ShellToolMiddleware (line 489) | class ShellToolMiddleware(AgentMiddleware[ShellToolState[ResponseT], Con... method __init__ (line 508) | def __init__( method _normalize_commands (line 594) | def _normalize_commands( method _normalize_shell_command (line 604) | def _normalize_shell_command( method _normalize_env (line 616) | def _normalize_env(env: Mapping[str, Any] | None) -> dict[str, str] | ... method before_agent (line 628) | def before_agent( method abefore_agent (line 643) | async def abefore_agent( method after_agent (line 658) | def after_agent(self, state: ShellToolState[ResponseT], runtime: Runti... method aafter_agent (line 669) | async def aafter_agent( method _get_or_create_resources (line 675) | def _get_or_create_resources(self, state: ShellToolState[ResponseT]) -... method _create_resources (line 696) | def _create_resources(self) -> _SessionResources: method _run_startup_commands (line 725) | def _run_startup_commands(self, session: ShellSession) -> None: method _run_shutdown_commands (line 734) | def _run_shutdown_commands(self, session: ShellSession) -> None: method _apply_redactions (line 751) | def _apply_redactions(self, content: str) -> tuple[str, dict[str, list... method _run_shell_tool (line 761) | def _run_shell_tool( method _format_tool_message (line 856) | def _format_tool_message( FILE: libs/langchain_v1/langchain/agents/middleware/summarization.py function _get_approximate_token_counter (line 142) | def _get_approximate_token_counter(model: BaseChatModel) -> TokenCounter: class SummarizationMiddleware (line 153) | class SummarizationMiddleware(AgentMiddleware[AgentState[ResponseT], Con... method __init__ (line 161) | def __init__( method before_model (line 293) | def before_model( method abefore_model (line 331) | async def abefore_model( method _should_summarize_based_on_reported_tokens (line 368) | def _should_summarize_based_on_reported_tokens( method _should_summarize (line 387) | def _should_summarize(self, messages: list[AnyMessage], total_tokens: ... method _determine_cutoff_index (line 415) | def _determine_cutoff_index(self, messages: list[AnyMessage]) -> int: method _find_token_based_cutoff (line 427) | def _find_token_based_cutoff(self, messages: list[AnyMessage]) -> int ... method _get_profile_limits (line 476) | def _get_profile_limits(self) -> int | None: method _validate_context_size (line 494) | def _validate_context_size(context: ContextSize, parameter_name: str) ... method _build_new_messages (line 511) | def _build_new_messages(summary: str) -> list[HumanMessage]: method _ensure_message_ids (line 520) | def _ensure_message_ids(messages: list[AnyMessage]) -> None: method _partition_messages (line 527) | def _partition_messages( method _find_safe_cutoff (line 537) | def _find_safe_cutoff(self, messages: list[AnyMessage], messages_to_ke... method _find_safe_cutoff_point (line 553) | def _find_safe_cutoff_point(messages: list[AnyMessage], cutoff_index: ... method _create_summary (line 588) | def _create_summary(self, messages_to_summarize: list[AnyMessage]) -> ... method _acreate_summary (line 614) | async def _acreate_summary(self, messages_to_summarize: list[AnyMessag... method _trim_messages_for_summary (line 640) | def _trim_messages_for_summary(self, messages: list[AnyMessage]) -> li... FILE: libs/langchain_v1/langchain/agents/middleware/todo.py class Todo (line 25) | class Todo(TypedDict): class PlanningState (line 35) | class PlanningState(AgentState[ResponseT]): class WriteTodosInput (line 46) | class WriteTodosInput(BaseModel): function write_todos (line 128) | def write_todos( function _write_todos (line 141) | def _write_todos( function _awrite_todos (line 155) | async def _awrite_todos( class TodoListMiddleware (line 162) | class TodoListMiddleware(AgentMiddleware[PlanningState[ResponseT], Conte... method __init__ (line 191) | def __init__( method wrap_model_call (line 219) | def wrap_model_call( method awrap_model_call (line 246) | async def awrap_model_call( method after_model (line 274) | def after_model( method aafter_model (line 326) | async def aafter_model( FILE: libs/langchain_v1/langchain/agents/middleware/tool_call_limit.py class ToolCallLimitState (line 35) | class ToolCallLimitState(AgentState[ResponseT]): function _build_tool_message_content (line 52) | def _build_tool_message_content(tool_name: str | None) -> str: function _build_final_ai_message_content (line 70) | def _build_final_ai_message_content( class ToolCallLimitExceededError (line 104) | class ToolCallLimitExceededError(Exception): method __init__ (line 111) | def __init__( class ToolCallLimitMiddleware (line 140) | class ToolCallLimitMiddleware(AgentMiddleware[ToolCallLimitState[Respons... method __init__ (line 201) | def __init__( method name (line 256) | def name(self) -> str: method _would_exceed_limit (line 267) | def _would_exceed_limit(self, thread_count: int, run_count: int) -> bool: method _matches_tool_filter (line 281) | def _matches_tool_filter(self, tool_call: ToolCall) -> bool: method _separate_tool_calls (line 292) | def _separate_tool_calls( method after_model (line 326) | def after_model( method aafter_model (line 466) | async def aafter_model( FILE: libs/langchain_v1/langchain/agents/middleware/tool_emulator.py class LLMToolEmulator (line 22) | class LLMToolEmulator(AgentMiddleware[AgentState[Any], ContextT], Generi... method __init__ (line 66) | def __init__( method wrap_tool_call (line 109) | def wrap_tool_call( method awrap_tool_call (line 159) | async def awrap_tool_call( FILE: libs/langchain_v1/langchain/agents/middleware/tool_retry.py class ToolRetryMiddleware (line 30) | class ToolRetryMiddleware(AgentMiddleware[AgentState[ResponseT], Context... method __init__ (line 128) | def __init__( method _should_retry_tool (line 223) | def _should_retry_tool(self, tool_name: str) -> bool: method _format_failure_message (line 237) | def _format_failure_message(tool_name: str, exc: Exception, attempts_m... method _handle_failure (line 256) | def _handle_failure( method wrap_tool_call (line 288) | def wrap_tool_call( method awrap_tool_call (line 346) | async def awrap_tool_call( FILE: libs/langchain_v1/langchain/agents/middleware/tool_selection.py class _SelectionRequest (line 37) | class _SelectionRequest: function _create_tool_selection_response (line 47) | def _create_tool_selection_response(tools: list[BaseTool]) -> TypeAdapte... function _render_tool_list (line 81) | def _render_tool_list(tools: list[BaseTool]) -> str: class LLMToolSelectorMiddleware (line 93) | class LLMToolSelectorMiddleware(AgentMiddleware[AgentState[ResponseT], C... method __init__ (line 122) | def __init__( method _prepare_selection_request (line 158) | def _prepare_selection_request( method _process_selection_response (line 232) | def _process_selection_response( method wrap_model_call (line 274) | def wrap_model_call( method awrap_model_call (line 317) | async def awrap_model_call( FILE: libs/langchain_v1/langchain/agents/middleware/types.py class _ModelRequestOverrides (line 75) | class _ModelRequestOverrides(TypedDict, total=False): class ModelRequest (line 89) | class ModelRequest(Generic[ContextT]): method __init__ (line 106) | def __init__( method system_prompt (line 158) | def system_prompt(self) -> str | None: method __setattr__ (line 168) | def __setattr__(self, name: str, value: Any) -> None: method override (line 202) | def override(self, **overrides: Unpack[_ModelRequestOverrides]) -> Mod... class ModelResponse (line 272) | class ModelResponse(Generic[ResponseT]): class ExtendedModelResponse (line 290) | class ExtendedModelResponse(Generic[ResponseT]): class OmitFromSchema (line 330) | class OmitFromSchema: class AgentState (line 350) | class AgentState(TypedDict, Generic[ResponseT]): class _InputAgentState (line 358) | class _InputAgentState(TypedDict): # noqa: PYI049 class _OutputAgentState (line 364) | class _OutputAgentState(TypedDict, Generic[ResponseT]): # noqa: PYI049 class _DefaultAgentState (line 376) | class _DefaultAgentState(AgentState[Any]): class AgentMiddleware (line 380) | class AgentMiddleware(Generic[StateT, ContextT, ResponseT]): method name (line 399) | def name(self) -> str: method before_agent (line 406) | def before_agent(self, state: StateT, runtime: Runtime[ContextT]) -> d... method abefore_agent (line 417) | async def abefore_agent( method before_model (line 430) | def before_model(self, state: StateT, runtime: Runtime[ContextT]) -> d... method abefore_model (line 441) | async def abefore_model( method after_model (line 454) | def after_model(self, state: StateT, runtime: Runtime[ContextT]) -> di... method aafter_model (line 465) | async def aafter_model( method wrap_model_call (line 478) | def wrap_model_call( method awrap_model_call (line 573) | async def awrap_model_call( method after_agent (line 625) | def after_agent(self, state: StateT, runtime: Runtime[ContextT]) -> di... method aafter_agent (line 636) | async def aafter_agent( method wrap_tool_call (line 649) | def wrap_tool_call( method awrap_tool_call (line 731) | async def awrap_tool_call( class _CallableWithStateAndRuntime (line 801) | class _CallableWithStateAndRuntime(Protocol[StateT_contra, ContextT]): method __call__ (line 804) | def __call__( class _CallableReturningSystemMessage (line 811) | class _CallableReturningSystemMessage(Protocol[StateT_contra, ContextT])... method __call__ (line 814) | def __call__( class _CallableReturningModelResponse (line 821) | class _CallableReturningModelResponse(Protocol[StateT_contra, ContextT, ... method __call__ (line 828) | def __call__( class _CallableReturningToolResponse (line 837) | class _CallableReturningToolResponse(Protocol): method __call__ (line 844) | def __call__( function hook_config (line 856) | def hook_config( function before_model (line 911) | def before_model( function before_model (line 917) | def before_model( function before_model (line 929) | def before_model( function after_model (line 1081) | def after_model( function after_model (line 1087) | def after_model( function after_model (line 1099) | def after_model( function before_agent (line 1239) | def before_agent( function before_agent (line 1245) | def before_agent( function before_agent (line 1257) | def before_agent( function after_agent (line 1432) | def after_agent( function after_agent (line 1438) | def after_agent( function after_agent (line 1450) | def after_agent( function dynamic_prompt (line 1591) | def dynamic_prompt( function dynamic_prompt (line 1597) | def dynamic_prompt( function dynamic_prompt (line 1605) | def dynamic_prompt( function wrap_model_call (line 1737) | def wrap_model_call( function wrap_model_call (line 1743) | def wrap_model_call( function wrap_model_call (line 1755) | def wrap_model_call( function wrap_tool_call (line 1896) | def wrap_tool_call( function wrap_tool_call (line 1902) | def wrap_tool_call( function wrap_tool_call (line 1913) | def wrap_tool_call( FILE: libs/langchain_v1/langchain/agents/structured_output.py class StructuredOutputError (line 35) | class StructuredOutputError(Exception): class MultipleStructuredOutputsError (line 41) | class MultipleStructuredOutputsError(StructuredOutputError): method __init__ (line 44) | def __init__(self, tool_names: list[str], ai_message: AIMessage) -> None: class StructuredOutputValidationError (line 60) | class StructuredOutputValidationError(StructuredOutputError): method __init__ (line 63) | def __init__(self, tool_name: str, source: Exception, ai_message: AIMe... function _parse_with_schema (line 77) | def _parse_with_schema( class _SchemaSpec (line 106) | class _SchemaSpec(Generic[SchemaT]): method __init__ (line 138) | def __init__( class ToolStrategy (line 195) | class ToolStrategy(Generic[SchemaT]): method __init__ (line 223) | def __init__( class ProviderStrategy (line 261) | class ProviderStrategy(Generic[SchemaT]): method __init__ (line 270) | def __init__( method to_model_kwargs (line 285) | def to_model_kwargs(self) -> dict[str, Any]: class OutputToolBinding (line 308) | class OutputToolBinding(Generic[SchemaT]): method from_schema_spec (line 328) | def from_schema_spec(cls, schema_spec: _SchemaSpec[SchemaT]) -> Self: method parse (line 347) | def parse(self, tool_args: dict[str, Any]) -> SchemaT: class ProviderStrategyBinding (line 363) | class ProviderStrategyBinding(Generic[SchemaT]): method from_schema_spec (line 380) | def from_schema_spec(cls, schema_spec: _SchemaSpec[SchemaT]) -> Self: method parse (line 394) | def parse(self, response: AIMessage) -> SchemaT: method _extract_text_content_from_message (line 423) | def _extract_text_content_from_message(message: AIMessage) -> str: class AutoStrategy (line 447) | class AutoStrategy(Generic[SchemaT]): method __init__ (line 453) | def __init__( FILE: libs/langchain_v1/langchain/chat_models/base.py function _call (line 33) | def _call(cls: type[BaseChatModel], **kwargs: Any) -> BaseChatModel: function _import_module (line 103) | def _import_module(module: str, class_name: str) -> ModuleType: function _get_chat_model_creator (line 131) | def _get_chat_model_creator( function init_chat_model (line 175) | def init_chat_model( function init_chat_model (line 186) | def init_chat_model( function init_chat_model (line 197) | def init_chat_model( function init_chat_model (line 210) | def init_chat_model( function _init_chat_model_helper (line 493) | def _init_chat_model_helper( function _attempt_infer_model_provider (line 504) | def _attempt_infer_model_provider(model_name: str) -> str | None: function _parse_model (line 571) | def _parse_model(model: str, model_provider: str | None) -> tuple[str, s... function _remove_prefix (line 602) | def _remove_prefix(s: str, prefix: str) -> str: class _ConfigurableModel (line 609) | class _ConfigurableModel(Runnable[LanguageModelInput, Any]): method __init__ (line 610) | def __init__( method __getattr__ (line 633) | def __getattr__(self, name: str) -> Any: method _model (line 663) | def _model(self, config: RunnableConfig | None = None) -> Runnable[Any... method _model_params (line 670) | def _model_params(self, config: RunnableConfig | None) -> dict[str, Any]: method with_config (line 681) | def with_config( method InputType (line 716) | def InputType(self) -> TypeAlias: method invoke (line 724) | def invoke( method ainvoke (line 733) | async def ainvoke( method stream (line 742) | def stream( method astream (line 751) | async def astream( method batch (line 760) | def batch( method abatch (line 788) | async def abatch( method batch_as_completed (line 816) | def batch_as_completed( method abatch_as_completed (line 845) | async def abatch_as_completed( method transform (line 879) | def transform( method atransform (line 888) | async def atransform( method astream_log (line 899) | def astream_log( method astream_log (line 917) | def astream_log( method astream_log (line 934) | async def astream_log( method astream_events (line 965) | async def astream_events( method bind_tools (line 994) | def bind_tools( method with_structured_output (line 1002) | def with_structured_output( FILE: libs/langchain_v1/langchain/embeddings/base.py function _call (line 11) | def _call(cls: type[Embeddings], **kwargs: Any) -> Embeddings: function _get_embeddings_class_creator (line 58) | def _get_embeddings_class_creator(provider: str) -> Callable[..., Embedd... function _get_provider_list (line 96) | def _get_provider_list() -> str: function _parse_model_string (line 103) | def _parse_model_string(model_name: str) -> tuple[str, str]: function _infer_model_and_provider (line 158) | def _infer_model_and_provider( function init_embeddings (line 191) | def init_embeddings( FILE: libs/langchain_v1/scripts/check_version.py function get_pyproject_version (line 13) | def get_pyproject_version(pyproject_path: Path) -> str | None: function get_init_version (line 20) | def get_init_version(init_path: Path) -> str | None: function main (line 27) | def main() -> int: FILE: libs/langchain_v1/tests/integration_tests/agents/middleware/test_shell_tool_integration.py function _get_model (line 22) | def _get_model(provider: str) -> Any: function test_shell_tool_basic_execution (line 35) | def test_shell_tool_basic_execution(tmp_path: Path, provider: str) -> None: function test_shell_session_persistence (line 57) | def test_shell_session_persistence(tmp_path: Path) -> None: function test_shell_tool_error_handling (line 84) | def test_shell_tool_error_handling(tmp_path: Path) -> None: function test_shell_tool_with_custom_tools (line 115) | def test_shell_tool_with_custom_tools(tmp_path: Path) -> None: FILE: libs/langchain_v1/tests/integration_tests/cache/fake_embeddings.py class FakeEmbeddings (line 11) | class FakeEmbeddings(Embeddings): method embed_documents (line 15) | def embed_documents(self, texts: list[str]) -> list[list[float]]: method aembed_documents (line 22) | async def aembed_documents(self, texts: list[str]) -> list[list[float]]: method embed_query (line 26) | def embed_query(self, text: str) -> list[float]: method aembed_query (line 35) | async def aembed_query(self, text: str) -> list[float]: class ConsistentFakeEmbeddings (line 39) | class ConsistentFakeEmbeddings(FakeEmbeddings): method __init__ (line 46) | def __init__(self, dimensionality: int = 10) -> None: method embed_documents (line 50) | def embed_documents(self, texts: list[str]) -> list[list[float]]: method embed_query (line 62) | def embed_query(self, text: str) -> list[float]: class AngularTwoDimensionalEmbeddings (line 71) | class AngularTwoDimensionalEmbeddings(Embeddings): method embed_documents (line 74) | def embed_documents(self, texts: list[str]) -> list[list[float]]: method embed_query (line 79) | def embed_query(self, text: str) -> list[float]: FILE: libs/langchain_v1/tests/integration_tests/chat_models/test_base.py class Multiply (line 14) | class Multiply(BaseModel): function test_init_chat_model_chain (line 22) | async def test_init_chat_model_chain() -> None: class TestStandard (line 38) | class TestStandard(ChatModelIntegrationTests): method chat_model_class (line 40) | def chat_model_class(self) -> type[BaseChatModel]: method chat_model_params (line 44) | def chat_model_params(self) -> dict[str, Any]: method supports_image_inputs (line 48) | def supports_image_inputs(self) -> bool: method has_tool_calling (line 52) | def has_tool_calling(self) -> bool: method has_structured_output (line 56) | def has_structured_output(self) -> bool: FILE: libs/langchain_v1/tests/integration_tests/conftest.py function _load_env (line 14) | def _load_env() -> None: function test_dir (line 24) | def test_dir() -> Path: function vcr_cassette_dir (line 31) | def vcr_cassette_dir(request: pytest.FixtureRequest) -> str: FILE: libs/langchain_v1/tests/integration_tests/embeddings/test_base.py function test_init_embedding_model (line 20) | async def test_init_embedding_model(provider: str, model: str) -> None: FILE: libs/langchain_v1/tests/integration_tests/test_compile.py function test_placeholder (line 5) | def test_placeholder() -> None: FILE: libs/langchain_v1/tests/unit_tests/agents/any_str.py class AnyStr (line 4) | class AnyStr(str): method __init__ (line 7) | def __init__(self, prefix: str | re.Pattern[str] = "") -> None: method __eq__ (line 11) | def __eq__(self, other: object) -> bool: method __hash__ (line 18) | def __hash__(self) -> int: FILE: libs/langchain_v1/tests/unit_tests/agents/conftest.py function anyio_backend (line 82) | def anyio_backend() -> str: function deterministic_uuids (line 87) | def deterministic_uuids(mocker: MockerFixture) -> MockerFixture: function sync_store (line 98) | def sync_store(request: pytest.FixtureRequest) -> Iterator[BaseStore | N... function async_store (line 122) | async def async_store(request: pytest.FixtureRequest) -> AsyncIterator[B... function sync_checkpointer (line 146) | def sync_checkpointer( function async_checkpointer (line 173) | async def async_checkpointer( FILE: libs/langchain_v1/tests/unit_tests/agents/conftest_checkpointer.py function _checkpointer_memory (line 10) | def _checkpointer_memory() -> Iterator[BaseCheckpointSaver[str]]: function _checkpointer_memory_aio (line 15) | async def _checkpointer_memory_aio() -> AsyncIterator[BaseCheckpointSave... function _checkpointer_sqlite (line 21) | def _checkpointer_sqlite() -> Iterator[BaseCheckpointSaver[str]]: function _checkpointer_postgres (line 27) | def _checkpointer_postgres() -> Iterator[BaseCheckpointSaver[str]]: function _checkpointer_postgres_pipe (line 33) | def _checkpointer_postgres_pipe() -> Iterator[BaseCheckpointSaver[str]]: function _checkpointer_postgres_pool (line 39) | def _checkpointer_postgres_pool() -> Iterator[BaseCheckpointSaver[str]]: function _checkpointer_sqlite_aio (line 45) | async def _checkpointer_sqlite_aio() -> AsyncIterator[BaseCheckpointSave... function _checkpointer_postgres_aio (line 51) | async def _checkpointer_postgres_aio() -> AsyncIterator[BaseCheckpointSa... function _checkpointer_postgres_aio_pipe (line 57) | async def _checkpointer_postgres_aio_pipe() -> AsyncIterator[BaseCheckpo... function _checkpointer_postgres_aio_pool (line 63) | async def _checkpointer_postgres_aio_pool() -> AsyncIterator[BaseCheckpo... FILE: libs/langchain_v1/tests/unit_tests/agents/conftest_store.py function _store_memory (line 9) | def _store_memory() -> Iterator[BaseStore]: function _store_memory_aio (line 15) | async def _store_memory_aio() -> AsyncIterator[BaseStore]: function _store_postgres (line 22) | def _store_postgres() -> Iterator[BaseStore]: function _store_postgres_pipe (line 29) | def _store_postgres_pipe() -> Iterator[BaseStore]: function _store_postgres_pool (line 36) | def _store_postgres_pool() -> Iterator[BaseStore]: function _store_postgres_aio (line 43) | async def _store_postgres_aio() -> AsyncIterator[BaseStore]: function _store_postgres_aio_pipe (line 50) | async def _store_postgres_aio_pipe() -> AsyncIterator[BaseStore]: function _store_postgres_aio_pool (line 57) | async def _store_postgres_aio_pool() -> AsyncIterator[BaseStore]: FILE: libs/langchain_v1/tests/unit_tests/agents/memory_assert.py class MemorySaverAssertImmutable (line 20) | class MemorySaverAssertImmutable(InMemorySaver): method __init__ (line 23) | def __init__( method put (line 40) | def put( FILE: libs/langchain_v1/tests/unit_tests/agents/messages.py function _AnyIdHumanMessage (line 17) | def _AnyIdHumanMessage(**kwargs: Any) -> HumanMessage: # noqa: N802 function _AnyIdToolMessage (line 24) | def _AnyIdToolMessage(**kwargs: Any) -> ToolMessage: # noqa: N802 FILE: libs/langchain_v1/tests/unit_tests/agents/middleware/core/test_composition.py function create_test_request (line 15) | def create_test_request(**kwargs: Any) -> ModelRequest: function create_mock_base_handler (line 31) | def create_mock_base_handler(content: str = "test") -> Callable[[ModelRe... class TestChainModelCallHandlers (line 40) | class TestChainModelCallHandlers: method test_empty_handlers_returns_none (line 43) | def test_empty_handlers_returns_none(self) -> None: method test_single_handler_returns_unchanged (line 48) | def test_single_handler_returns_unchanged(self) -> None: method test_two_handlers_basic_composition (line 61) | def test_two_handlers_basic_composition(self) -> None: method test_two_handlers_with_commands (line 96) | def test_two_handlers_with_commands(self) -> None: method test_three_handlers_composition (line 128) | def test_three_handlers_composition(self) -> None: method test_inner_handler_retry (line 173) | def test_inner_handler_retry(self) -> None: method test_error_to_success_conversion (line 212) | def test_error_to_success_conversion(self) -> None: method test_request_modification (line 243) | def test_request_modification(self) -> None: method test_composition_preserves_state_and_runtime (line 270) | def test_composition_preserves_state_and_runtime(self) -> None: method test_multiple_yields_in_retry_loop (line 312) | def test_multiple_yields_in_retry_loop(self) -> None: FILE: libs/langchain_v1/tests/unit_tests/agents/middleware/core/test_decorators.py class CustomState (line 38) | class CustomState(AgentState[ResponseT], Generic[ResponseT]): function test_tool (line 45) | def test_tool(value: str) -> str: function test_before_model_decorator (line 50) | def test_before_model_decorator() -> None: function test_after_model_decorator (line 69) | def test_after_model_decorator() -> None: function test_on_model_call_decorator (line 98) | def test_on_model_call_decorator() -> None: function test_all_decorators_integration (line 136) | def test_all_decorators_integration() -> None: function test_decorators_use_function_names_as_default (line 165) | def test_decorators_use_function_names_as_default() -> None: function test_hook_config_decorator_on_class_method (line 189) | def test_hook_config_decorator_on_class_method() -> None: function test_can_jump_to_with_before_model_decorator (line 212) | def test_can_jump_to_with_before_model_decorator() -> None: function test_can_jump_to_with_after_model_decorator (line 228) | def test_can_jump_to_with_after_model_decorator() -> None: function test_can_jump_to_integration (line 247) | def test_can_jump_to_integration() -> None: function test_async_before_model_decorator (line 276) | def test_async_before_model_decorator() -> None: function test_async_after_model_decorator (line 289) | def test_async_after_model_decorator() -> None: function test_async_on_model_call_decorator (line 302) | def test_async_on_model_call_decorator() -> None: function test_mixed_sync_async_decorators (line 320) | def test_mixed_sync_async_decorators() -> None: function test_async_decorators_integration (line 352) | async def test_async_decorators_integration() -> None: function test_mixed_sync_async_decorators_integration (line 382) | async def test_mixed_sync_async_decorators_integration() -> None: function test_async_before_model_preserves_can_jump_to (line 444) | def test_async_before_model_preserves_can_jump_to() -> None: function test_async_after_model_preserves_can_jump_to (line 462) | def test_async_after_model_preserves_can_jump_to() -> None: function test_async_can_jump_to_integration (line 481) | async def test_async_can_jump_to_integration() -> None: function test_get_can_jump_to_no_false_positives (line 509) | def test_get_can_jump_to_no_false_positives() -> None: function test_get_can_jump_to_only_overridden_methods (line 524) | def test_get_can_jump_to_only_overridden_methods() -> None: function test_async_middleware_with_can_jump_to_graph_snapshot (line 556) | def test_async_middleware_with_can_jump_to_graph_snapshot(snapshot: Snap... function test_dynamic_prompt_decorator (line 626) | def test_dynamic_prompt_decorator() -> None: function test_dynamic_prompt_uses_state (line 658) | def test_dynamic_prompt_uses_state() -> None: function test_dynamic_prompt_integration (line 686) | def test_dynamic_prompt_integration() -> None: function test_async_dynamic_prompt_decorator (line 705) | def test_async_dynamic_prompt_decorator() -> None: function test_async_dynamic_prompt_integration (line 718) | async def test_async_dynamic_prompt_integration() -> None: function test_dynamic_prompt_overwrites_system_prompt (line 736) | def test_dynamic_prompt_overwrites_system_prompt() -> None: function test_dynamic_prompt_multiple_in_sequence (line 754) | def test_dynamic_prompt_multiple_in_sequence() -> None: function test_async_dynamic_prompt_skipped_on_sync_invoke (line 774) | def test_async_dynamic_prompt_skipped_on_sync_invoke() -> None: function test_sync_dynamic_prompt_on_async_invoke (line 800) | async def test_sync_dynamic_prompt_on_async_invoke() -> None: FILE: libs/langchain_v1/tests/unit_tests/agents/middleware/core/test_diagram.py function test_create_agent_diagram (line 13) | def test_create_agent_diagram( FILE: libs/langchain_v1/tests/unit_tests/agents/middleware/core/test_dynamic_tools.py function static_tool (line 29) | def static_tool(value: str) -> str: function dynamic_tool (line 35) | def dynamic_tool(value: str) -> str: function another_dynamic_tool (line 41) | def another_dynamic_tool(x: int, y: int) -> str: class DynamicToolMiddleware (line 51) | class DynamicToolMiddleware(AgentMiddleware): method wrap_model_call (line 54) | def wrap_model_call( method awrap_model_call (line 62) | async def awrap_model_call( method wrap_tool_call (line 70) | def wrap_tool_call( method awrap_tool_call (line 79) | async def awrap_tool_call( class MultipleDynamicToolsMiddleware (line 89) | class MultipleDynamicToolsMiddleware(AgentMiddleware): method wrap_model_call (line 92) | def wrap_model_call( method awrap_model_call (line 100) | async def awrap_model_call( method _handle_tool (line 108) | def _handle_tool(self, request: ToolCallRequest) -> ToolCallRequest | ... method wrap_tool_call (line 117) | def wrap_tool_call( method awrap_tool_call (line 125) | async def awrap_tool_call( class DynamicToolMiddlewareWithoutHandler (line 134) | class DynamicToolMiddlewareWithoutHandler(AgentMiddleware): method wrap_model_call (line 137) | def wrap_model_call( method awrap_model_call (line 145) | async def awrap_model_call( class ConditionalDynamicToolMiddleware (line 154) | class ConditionalDynamicToolMiddleware(AgentMiddleware): method _should_add_tool (line 157) | def _should_add_tool(self, request: ModelRequest) -> bool: method wrap_model_call (line 161) | def wrap_model_call( method awrap_model_call (line 170) | async def awrap_model_call( method wrap_tool_call (line 179) | def wrap_tool_call( method awrap_tool_call (line 188) | async def awrap_tool_call( function get_tool_messages (line 203) | def get_tool_messages(result: dict[str, Any]) -> list[ToolMessage]: function invoke_agent (line 208) | async def invoke_agent(agent: Any, message: str, *, use_async: bool) -> ... function test_dynamic_tool_basic (line 232) | async def test_dynamic_tool_basic(*, use_async: bool, tools: list[Any] |... function test_multiple_dynamic_tools_with_static (line 257) | async def test_multiple_dynamic_tools_with_static(*, use_async: bool) ->... function test_dynamic_tool_without_handler_raises_error (line 296) | async def test_dynamic_tool_without_handler_raises_error( function test_conditional_dynamic_tool (line 322) | async def test_conditional_dynamic_tool(*, use_async: bool) -> None: function test_dynamic_tool_chained_middleware (line 347) | async def test_dynamic_tool_chained_middleware(*, use_async: bool) -> None: FILE: libs/langchain_v1/tests/unit_tests/agents/middleware/core/test_framework.py function test_create_agent_invoke (line 39) | def test_create_agent_invoke( function test_create_agent_jump (line 140) | def test_create_agent_jump( function test_simple_agent_graph (line 202) | def test_simple_agent_graph(snapshot: SnapshotAssertion) -> None: function test_agent_graph_with_jump_to_end_as_after_agent (line 219) | def test_agent_graph_with_jump_to_end_as_after_agent(snapshot: SnapshotA... function test_on_model_call (line 250) | def test_on_model_call() -> None: function test_tools_to_model_edge_with_structured_and_regular_tool_calls (line 275) | def test_tools_to_model_edge_with_structured_and_regular_tool_calls() ->... function test_public_private_state_for_custom_middleware (line 353) | def test_public_private_state_for_custom_middleware() -> None: function test_runtime_injected_into_middleware (line 385) | def test_runtime_injected_into_middleware() -> None: class CustomState (line 411) | class CustomState(AgentState[ResponseT], Generic[ResponseT]): function test_state_tool (line 416) | def test_state_tool( class CustomMiddleware (line 424) | class CustomMiddleware(AgentMiddleware): function test_injected_state_in_middleware_agent (line 444) | def test_injected_state_in_middleware_agent() -> None: function test_jump_to_is_ephemeral (line 466) | def test_jump_to_is_ephemeral() -> None: function test_create_agent_sync_invoke_with_only_async_middleware_raises_error (line 481) | def test_create_agent_sync_invoke_with_only_async_middleware_raises_erro... function test_create_agent_sync_invoke_with_mixed_middleware (line 503) | def test_create_agent_sync_invoke_with_mixed_middleware() -> None: function test_create_agent_async_invoke (line 551) | async def test_create_agent_async_invoke() -> None: function test_create_agent_async_invoke_multiple_middleware (line 612) | async def test_create_agent_async_invoke_multiple_middleware() -> None: function test_create_agent_async_jump (line 665) | async def test_create_agent_async_jump() -> None: function test_create_agent_mixed_sync_async_middleware_async_invoke (line 700) | async def test_create_agent_mixed_sync_async_middleware_async_invoke() -... class TestAgentMiddlewareHooks (line 769) | class TestAgentMiddlewareHooks: method test_hook_execution (line 774) | async def test_hook_execution(self, *, is_async: bool, hook_type: str)... method test_hook_with_class_inheritance (line 832) | async def test_hook_with_class_inheritance(self, *, is_async: bool, ho... class TestAgentHooksCombined (line 878) | class TestAgentHooksCombined: method test_execution_order (line 882) | async def test_execution_order(self, *, is_async: bool) -> None: method test_state_passthrough (line 916) | def test_state_passthrough(self) -> None: method test_multiple_middleware_instances (line 930) | def test_multiple_middleware_instances(self) -> None: method test_agent_hooks_run_once_with_multiple_model_calls (line 958) | def test_agent_hooks_run_once_with_multiple_model_calls(self) -> None: FILE: libs/langchain_v1/tests/unit_tests/agents/middleware/core/test_overrides.py class TestModelRequestOverride (line 21) | class TestModelRequestOverride: method test_override_single_attribute (line 24) | def test_override_single_attribute(self) -> None: method test_override_multiple_attributes (line 48) | def test_override_multiple_attributes(self) -> None: method test_override_messages (line 81) | def test_override_messages(self) -> None: method test_override_model_settings (line 105) | def test_override_model_settings(self) -> None: method test_override_with_none_value (line 127) | def test_override_with_none_value(self) -> None: method test_override_preserves_identity_of_unchanged_objects (line 151) | def test_override_preserves_identity_of_unchanged_objects(self) -> None: method test_override_chaining (line 176) | def test_override_chaining(self) -> None: method test_override_raises_on_both_system_prompt_and_system_message (line 208) | def test_override_raises_on_both_system_prompt_and_system_message(self... method test_override_system_prompt_backward_compatibility (line 230) | def test_override_system_prompt_backward_compatibility(self) -> None: class TestToolCallRequestOverride (line 256) | class TestToolCallRequestOverride: method test_override_tool_call (line 259) | def test_override_tool_call(self) -> None: method test_override_state (line 287) | def test_override_state(self) -> None: method test_override_multiple_attributes (line 311) | def test_override_multiple_attributes(self) -> None: method test_override_with_copy_pattern (line 355) | def test_override_with_copy_pattern(self) -> None: method test_override_preserves_identity (line 387) | def test_override_preserves_identity(self) -> None: method test_override_chaining (line 412) | def test_override_chaining(self) -> None: FILE: libs/langchain_v1/tests/unit_tests/agents/middleware/core/test_sync_async_wrappers.py function search (line 24) | def search(query: str) -> str: function calculator (line 30) | def calculator(expression: str) -> str: class TestSyncAsyncMiddlewareComposition (line 35) | class TestSyncAsyncMiddlewareComposition: method test_sync_only_middleware_works_on_sync_path (line 38) | def test_sync_only_middleware_works_on_sync_path(self) -> None: method test_sync_only_middleware_raises_on_async_path (line 75) | async def test_sync_only_middleware_raises_on_async_path(self) -> None: method test_async_only_middleware_works_on_async_path (line 107) | async def test_async_only_middleware_works_on_async_path(self) -> None: method test_async_only_middleware_raises_on_sync_path (line 144) | def test_async_only_middleware_raises_on_sync_path(self) -> None: method test_both_sync_and_async_middleware_uses_appropriate_path (line 175) | def test_both_sync_and_async_middleware_uses_appropriate_path(self) ->... method test_both_sync_and_async_middleware_uses_appropriate_path_async (line 219) | async def test_both_sync_and_async_middleware_uses_appropriate_path_as... method test_mixed_middleware_composition_async_path_fails_with_sync_only (line 265) | async def test_mixed_middleware_composition_async_path_fails_with_sync... method test_mixed_middleware_composition_sync_path_with_async_only_fails (line 314) | def test_mixed_middleware_composition_sync_path_with_async_only_fails(... method test_decorator_sync_only_works_both_paths (line 361) | def test_decorator_sync_only_works_both_paths(self) -> None: method test_decorator_sync_only_raises_on_async_path (line 396) | async def test_decorator_sync_only_raises_on_async_path(self) -> None: method test_decorator_async_only_works_async_path (line 429) | async def test_decorator_async_only_works_async_path(self) -> None: method test_decorator_async_only_raises_on_sync_path (line 462) | def test_decorator_async_only_raises_on_sync_path(self) -> None: FILE: libs/langchain_v1/tests/unit_tests/agents/middleware/core/test_tools.py function test_model_request_tools_are_base_tools (line 23) | def test_model_request_tools_are_base_tools() -> None: function test_middleware_can_modify_tools (line 73) | def test_middleware_can_modify_tools() -> None: function test_unknown_tool_raises_error (line 126) | def test_unknown_tool_raises_error() -> None: function test_middleware_can_add_and_remove_tools (line 162) | def test_middleware_can_add_and_remove_tools() -> None: function test_empty_tools_list_is_valid (line 215) | def test_empty_tools_list_is_valid() -> None: function test_tools_preserved_across_multiple_middleware (line 247) | def test_tools_preserved_across_multiple_middleware() -> None: function test_middleware_with_additional_tools (line 321) | def test_middleware_with_additional_tools() -> None: function test_tool_node_not_accepted (line 363) | def test_tool_node_not_accepted() -> None: FILE: libs/langchain_v1/tests/unit_tests/agents/middleware/core/test_wrap_model_call.py class TestBasicWrapModelCall (line 36) | class TestBasicWrapModelCall: method test_passthrough_middleware (line 39) | def test_passthrough_middleware(self) -> None: method test_logging_middleware (line 58) | def test_logging_middleware(self) -> None: method test_counting_middleware (line 81) | def test_counting_middleware(self) -> None: class TestRetryLogic (line 106) | class TestRetryLogic: method test_simple_retry_on_error (line 109) | def test_simple_retry_on_error(self) -> None: method test_max_retries (line 153) | def test_max_retries(self) -> None: method test_no_retry_propagates_error (line 201) | def test_no_retry_propagates_error(self) -> None: method test_max_attempts_limit (line 235) | def test_max_attempts_limit(self) -> None: class TestResponseRewriting (line 296) | class TestResponseRewriting: method test_uppercase_response (line 299) | def test_uppercase_response(self) -> None: method test_prefix_response (line 321) | def test_prefix_response(self) -> None: method test_multi_stage_transformation (line 346) | def test_multi_stage_transformation(self) -> None: class TestErrorHandling (line 374) | class TestErrorHandling: method test_convert_error_to_response (line 377) | def test_convert_error_to_response(self) -> None: method test_selective_error_handling (line 412) | def test_selective_error_handling(self) -> None: method test_error_handling_with_success_path (line 445) | def test_error_handling_with_success_path(self) -> None: class TestShortCircuit (line 496) | class TestShortCircuit: method test_cache_short_circuit (line 499) | def test_cache_short_circuit(self) -> None: class TestRequestModification (line 559) | class TestRequestModification: method test_add_system_prompt (line 562) | def test_add_system_prompt(self) -> None: class TestStateAndRuntime (line 604) | class TestStateAndRuntime: method test_access_state_in_middleware (line 607) | def test_access_state_in_middleware(self) -> None: method test_retry_with_state_tracking (line 634) | def test_retry_with_state_tracking(self) -> None: class TestMiddlewareComposition (line 678) | class TestMiddlewareComposition: method test_two_middleware_composition (line 681) | def test_two_middleware_composition(self) -> None: method test_three_middleware_composition (line 720) | def test_three_middleware_composition(self) -> None: method test_retry_with_logging (line 776) | def test_retry_with_logging(self) -> None: method test_multiple_transformations (line 840) | def test_multiple_transformations(self) -> None: method test_retry_outer_transform_inner (line 875) | def test_retry_outer_transform_inner(self) -> None: method test_middle_retry_middleware (line 926) | def test_middle_retry_middleware(self) -> None: class TestWrapModelCallDecorator (line 1005) | class TestWrapModelCallDecorator: method test_basic_decorator_usage (line 1008) | def test_basic_decorator_usage(self) -> None: method test_decorator_with_custom_name (line 1029) | def test_decorator_with_custom_name(self) -> None: method test_decorator_retry_logic (line 1042) | def test_decorator_retry_logic(self) -> None: method test_decorator_response_rewriting (line 1080) | def test_decorator_response_rewriting(self) -> None: method test_decorator_error_handling (line 1101) | def test_decorator_error_handling(self) -> None: method test_decorator_with_state_access (line 1133) | def test_decorator_with_state_access(self) -> None: method test_multiple_decorated_middleware (line 1155) | def test_multiple_decorated_middleware(self) -> None: method test_decorator_with_custom_state_schema (line 1191) | def test_decorator_with_custom_state_schema(self) -> None: method test_decorator_with_tools_parameter (line 1209) | def test_decorator_with_tools_parameter(self) -> None: method test_decorator_parentheses_optional (line 1228) | def test_decorator_parentheses_optional(self) -> None: method test_decorator_preserves_function_name (line 1250) | def test_decorator_preserves_function_name(self) -> None: method test_decorator_mixed_with_class_middleware (line 1262) | def test_decorator_mixed_with_class_middleware(self) -> None: method test_decorator_complex_retry_logic (line 1303) | def test_decorator_complex_retry_logic(self) -> None: method test_decorator_request_modification (line 1348) | def test_decorator_request_modification(self) -> None: class TestAsyncWrapModelCall (line 1379) | class TestAsyncWrapModelCall: method test_async_model_with_middleware (line 1382) | async def test_async_model_with_middleware(self) -> None: method test_async_retry (line 1405) | async def test_async_retry(self) -> None: method test_decorator_with_async_agent (line 1443) | async def test_decorator_with_async_agent(self) -> None: class TestSyncAsyncInterop (line 1466) | class TestSyncAsyncInterop: method test_sync_invoke_with_only_async_middleware_raises_error (line 1469) | def test_sync_invoke_with_only_async_middleware_raises_error(self) -> ... method test_sync_invoke_with_mixed_middleware (line 1490) | def test_sync_invoke_with_mixed_middleware(self) -> None: class TestEdgeCases (line 1535) | class TestEdgeCases: method test_middleware_modifies_request (line 1538) | def test_middleware_modifies_request(self) -> None: method test_multiple_yields_retry_different_models (line 1560) | def test_multiple_yields_retry_different_models(self) -> None: FILE: libs/langchain_v1/tests/unit_tests/agents/middleware/core/test_wrap_model_call_state_update.py class TestBasicCommand (line 26) | class TestBasicCommand: method test_command_messages_added_alongside_model_messages (line 29) | def test_command_messages_added_alongside_model_messages(self) -> None: method test_command_with_extra_messages_and_model_response (line 57) | def test_command_with_extra_messages_and_model_response(self) -> None: method test_command_structured_response_conflicts_with_model_response (line 84) | def test_command_structured_response_conflicts_with_model_response(sel... method test_command_with_custom_state_field (line 115) | def test_command_with_custom_state_field(self) -> None: class TestCustomStateField (line 145) | class TestCustomStateField: method test_custom_field_via_state_schema (line 148) | def test_custom_field_via_state_schema(self) -> None: method test_no_command (line 175) | def test_no_command(self) -> None: class TestBackwardsCompatibility (line 198) | class TestBackwardsCompatibility: method test_model_response_return_unchanged (line 201) | def test_model_response_return_unchanged(self) -> None: method test_ai_message_return_unchanged (line 220) | def test_ai_message_return_unchanged(self) -> None: method test_no_middleware_unchanged (line 239) | def test_no_middleware_unchanged(self) -> None: class TestAsyncExtendedModelResponse (line 250) | class TestAsyncExtendedModelResponse: method test_async_command_adds_messages (line 253) | async def test_async_command_adds_messages(self) -> None: method test_async_decorator_command (line 281) | async def test_async_decorator_command(self) -> None: class TestComposition (line 312) | class TestComposition: method test_outer_command_messages_added_alongside_model (line 320) | def test_outer_command_messages_added_alongside_model(self) -> None: method test_inner_command_propagated_through_composition (line 374) | def test_inner_command_propagated_through_composition(self) -> None: method test_non_reducer_key_conflict_raises (line 427) | def test_non_reducer_key_conflict_raises(self) -> None: method test_inner_state_preserved_when_outer_has_no_conflict (line 486) | def test_inner_state_preserved_when_outer_has_no_conflict(self) -> None: method test_inner_command_retry_safe (line 533) | def test_inner_command_retry_safe(self) -> None: method test_decorator_returns_wrap_result (line 580) | def test_decorator_returns_wrap_result(self) -> None: method test_structured_response_preserved (line 610) | def test_structured_response_preserved(self) -> None: class TestAsyncComposition (line 639) | class TestAsyncComposition: method test_async_inner_command_propagated (line 642) | async def test_async_inner_command_propagated(self) -> None: method test_async_both_commands_additive_messages (line 688) | async def test_async_both_commands_additive_messages(self) -> None: method test_async_inner_command_retry_safe (line 735) | async def test_async_inner_command_retry_safe(self) -> None: class TestCommandGotoDisallowed (line 782) | class TestCommandGotoDisallowed: method test_command_goto_raises_not_implemented (line 785) | def test_command_goto_raises_not_implemented(self) -> None: method test_async_command_goto_raises_not_implemented (line 806) | async def test_async_command_goto_raises_not_implemented(self) -> None: class TestCommandResumeDisallowed (line 828) | class TestCommandResumeDisallowed: method test_command_resume_raises_not_implemented (line 831) | def test_command_resume_raises_not_implemented(self) -> None: method test_async_command_resume_raises_not_implemented (line 852) | async def test_async_command_resume_raises_not_implemented(self) -> None: class TestCommandGraphDisallowed (line 874) | class TestCommandGraphDisallowed: method test_command_graph_raises_not_implemented (line 877) | def test_command_graph_raises_not_implemented(self) -> None: method test_async_command_graph_raises_not_implemented (line 898) | async def test_async_command_graph_raises_not_implemented(self) -> None: FILE: libs/langchain_v1/tests/unit_tests/agents/middleware/core/test_wrap_tool_call.py function search (line 22) | def search(query: str) -> str: function calculator (line 28) | def calculator(expression: str) -> str: function failing_tool (line 34) | def failing_tool(value: str) -> str: function test_wrap_tool_call_basic_passthrough (line 40) | def test_wrap_tool_call_basic_passthrough() -> None: function test_wrap_tool_call_logging (line 77) | def test_wrap_tool_call_logging() -> None: function test_wrap_tool_call_modify_args (line 115) | def test_wrap_tool_call_modify_args() -> None: function test_wrap_tool_call_access_state (line 152) | def test_wrap_tool_call_access_state() -> None: function test_wrap_tool_call_access_runtime (line 190) | def test_wrap_tool_call_access_runtime() -> None: function test_wrap_tool_call_retry_on_error (line 228) | def test_wrap_tool_call_retry_on_error() -> None: function test_wrap_tool_call_short_circuit (line 288) | def test_wrap_tool_call_short_circuit() -> None: function test_wrap_tool_call_response_modification (line 330) | def test_wrap_tool_call_response_modification() -> None: function test_wrap_tool_call_multiple_middleware_composition (line 372) | def test_wrap_tool_call_multiple_middleware_composition() -> None: function test_wrap_tool_call_multiple_tools (line 420) | def test_wrap_tool_call_multiple_tools() -> None: function test_wrap_tool_call_with_custom_name (line 463) | def test_wrap_tool_call_with_custom_name() -> None: function test_wrap_tool_call_with_tools_parameter (line 476) | def test_wrap_tool_call_with_tools_parameter() -> None: function test_wrap_tool_call_three_levels_composition (line 494) | def test_wrap_tool_call_three_levels_composition() -> None: function test_wrap_tool_call_outer_intercepts_inner (line 558) | def test_wrap_tool_call_outer_intercepts_inner() -> None: function test_wrap_tool_call_inner_short_circuits (line 618) | def test_wrap_tool_call_inner_short_circuits() -> None: function test_wrap_tool_call_mixed_passthrough_and_intercepting (line 678) | def test_wrap_tool_call_mixed_passthrough_and_intercepting() -> None: function test_wrap_tool_call_uses_function_name_as_default (line 747) | def test_wrap_tool_call_uses_function_name_as_default() -> None: function test_wrap_tool_call_caching_pattern (line 760) | def test_wrap_tool_call_caching_pattern() -> None: function test_wrap_tool_call_monitoring_pattern (line 818) | def test_wrap_tool_call_monitoring_pattern() -> None: FILE: libs/langchain_v1/tests/unit_tests/agents/middleware/implementations/test_context_editing.py class _TokenCountingChatModel (line 33) | class _TokenCountingChatModel(FakeChatModel): method get_num_tokens_from_messages (line 37) | def get_num_tokens_from_messages( function _count_message_tokens (line 45) | def _count_message_tokens(message: MessageLikeRepresentation) -> int: function _count_content (line 53) | def _count_content(content: MessageLikeRepresentation) -> int: function _make_state_and_request (line 63) | def _make_state_and_request( function test_no_edit_when_below_trigger (line 85) | def test_no_edit_when_below_trigger() -> None: function test_clear_tool_outputs_and_inputs (line 117) | def test_clear_tool_outputs_and_inputs() -> None: function test_respects_keep_last_tool_results (line 169) | def test_respects_keep_last_tool_results() -> None: function test_exclude_tools_prevents_clearing (line 223) | def test_exclude_tools_prevents_clearing() -> None: function _fake_runtime (line 275) | def _fake_runtime() -> Runtime: function test_no_edit_when_below_trigger_async (line 279) | async def test_no_edit_when_below_trigger_async() -> None: function test_clear_tool_outputs_and_inputs_async (line 312) | async def test_clear_tool_outputs_and_inputs_async() -> None: function test_respects_keep_last_tool_results_async (line 365) | async def test_respects_keep_last_tool_results_async() -> None: function test_exclude_tools_prevents_clearing_async (line 420) | async def test_exclude_tools_prevents_clearing_async() -> None: FILE: libs/langchain_v1/tests/unit_tests/agents/middleware/implementations/test_file_search.py class TestFilesystemGrepSearch (line 17) | class TestFilesystemGrepSearch: method test_grep_invalid_include_pattern (line 20) | def test_grep_invalid_include_pattern(self, tmp_path: Path) -> None: method test_ripgrep_command_uses_literal_pattern (line 32) | def test_ripgrep_command_uses_literal_pattern( method test_grep_basic_search_python_fallback (line 61) | def test_grep_basic_search_python_fallback(self, tmp_path: Path) -> None: method test_grep_with_include_filter (line 77) | def test_grep_with_include_filter(self, tmp_path: Path) -> None: method test_grep_output_mode_content (line 91) | def test_grep_output_mode_content(self, tmp_path: Path) -> None: method test_grep_output_mode_count (line 103) | def test_grep_output_mode_count(self, tmp_path: Path) -> None: method test_grep_invalid_regex_pattern (line 115) | def test_grep_invalid_regex_pattern(self, tmp_path: Path) -> None: method test_grep_no_matches (line 127) | def test_grep_no_matches(self, tmp_path: Path) -> None: class TestFilesystemGlobSearch (line 140) | class TestFilesystemGlobSearch: method test_glob_basic_pattern (line 143) | def test_glob_basic_pattern(self, tmp_path: Path) -> None: method test_glob_recursive_pattern (line 159) | def test_glob_recursive_pattern(self, tmp_path: Path) -> None: method test_glob_with_subdirectory_path (line 175) | def test_glob_with_subdirectory_path(self, tmp_path: Path) -> None: method test_glob_no_matches (line 191) | def test_glob_no_matches(self, tmp_path: Path) -> None: method test_glob_invalid_path (line 203) | def test_glob_invalid_path(self, tmp_path: Path) -> None: class TestPathTraversalSecurity (line 214) | class TestPathTraversalSecurity: method test_path_traversal_with_double_dots (line 217) | def test_path_traversal_with_double_dots(self, tmp_path: Path) -> None: method test_path_traversal_with_absolute_path (line 236) | def test_path_traversal_with_absolute_path(self, tmp_path: Path) -> None: method test_path_traversal_with_symlink (line 252) | def test_path_traversal_with_symlink(self, tmp_path: Path) -> None: method test_validate_path_blocks_tilde (line 272) | def test_validate_path_blocks_tilde(self, tmp_path: Path) -> None: method test_grep_path_traversal_protection (line 282) | def test_grep_path_traversal_protection(self, tmp_path: Path) -> None: class TestExpandIncludePatterns (line 300) | class TestExpandIncludePatterns: method test_expand_patterns_basic_brace_expansion (line 303) | def test_expand_patterns_basic_brace_expansion(self) -> None: method test_expand_patterns_nested_braces (line 308) | def test_expand_patterns_nested_braces(self) -> None: method test_expand_patterns_invalid_braces (line 324) | def test_expand_patterns_invalid_braces(self, pattern: str) -> None: class TestValidateIncludePattern (line 330) | class TestValidateIncludePattern: method test_validate_invalid_patterns (line 341) | def test_validate_invalid_patterns(self, pattern: str) -> None: class TestMatchIncludePattern (line 346) | class TestMatchIncludePattern: method test_match_pattern_with_braces (line 349) | def test_match_pattern_with_braces(self) -> None: method test_match_pattern_invalid_expansion (line 355) | def test_match_pattern_invalid_expansion(self) -> None: class TestGrepEdgeCases (line 360) | class TestGrepEdgeCases: method test_grep_with_special_chars_in_pattern (line 363) | def test_grep_with_special_chars_in_pattern(self, tmp_path: Path) -> N... method test_grep_case_insensitive (line 375) | def test_grep_case_insensitive(self, tmp_path: Path) -> None: method test_grep_with_large_file_skipping (line 387) | def test_grep_with_large_file_skipping(self, tmp_path: Path) -> None: FILE: libs/langchain_v1/tests/unit_tests/agents/middleware/implementations/test_human_in_the_loop.py function test_human_in_the_loop_middleware_initialization (line 17) | def test_human_in_the_loop_middleware_initialization() -> None: function test_human_in_the_loop_middleware_no_interrupts_needed (line 30) | def test_human_in_the_loop_middleware_no_interrupts_needed() -> None: function test_human_in_the_loop_middleware_single_tool_accept (line 57) | def test_human_in_the_loop_middleware_single_tool_accept() -> None: function test_human_in_the_loop_middleware_single_tool_edit (line 90) | def test_human_in_the_loop_middleware_single_tool_edit() -> None: function test_human_in_the_loop_middleware_single_tool_response (line 124) | def test_human_in_the_loop_middleware_single_tool_response() -> None: function test_human_in_the_loop_middleware_multiple_tools_mixed_responses (line 153) | def test_human_in_the_loop_middleware_multiple_tools_mixed_responses() -... function test_human_in_the_loop_middleware_multiple_tools_edit_responses (line 202) | def test_human_in_the_loop_middleware_multiple_tools_edit_responses() ->... function test_human_in_the_loop_middleware_edit_with_modified_args (line 255) | def test_human_in_the_loop_middleware_edit_with_modified_args() -> None: function test_human_in_the_loop_middleware_unknown_response_type (line 295) | def test_human_in_the_loop_middleware_unknown_response_type() -> None: function test_human_in_the_loop_middleware_disallowed_action (line 325) | def test_human_in_the_loop_middleware_disallowed_action() -> None: function test_human_in_the_loop_middleware_mixed_auto_approved_and_interrupt (line 370) | def test_human_in_the_loop_middleware_mixed_auto_approved_and_interrupt(... function test_human_in_the_loop_middleware_interrupt_request_structure (line 401) | def test_human_in_the_loop_middleware_interrupt_request_structure() -> N... function test_human_in_the_loop_middleware_boolean_configs (line 444) | def test_human_in_the_loop_middleware_boolean_configs() -> None: function test_human_in_the_loop_middleware_sequence_mismatch (line 493) | def test_human_in_the_loop_middleware_sequence_mismatch() -> None: function test_human_in_the_loop_middleware_description_as_callable (line 539) | def test_human_in_the_loop_middleware_description_as_callable() -> None: function test_human_in_the_loop_middleware_preserves_tool_call_order (line 596) | def test_human_in_the_loop_middleware_preserves_tool_call_order() -> None: function test_human_in_the_loop_middleware_preserves_order_with_edits (line 650) | def test_human_in_the_loop_middleware_preserves_order_with_edits() -> None: function test_human_in_the_loop_middleware_preserves_order_with_rejections (line 703) | def test_human_in_the_loop_middleware_preserves_order_with_rejections() ... FILE: libs/langchain_v1/tests/unit_tests/agents/middleware/implementations/test_model_call_limit.py function simple_tool (line 17) | def simple_tool(value: str) -> str: function test_middleware_unit_functionality (line 22) | def test_middleware_unit_functionality() -> None: function test_thread_limit_with_create_agent (line 72) | def test_thread_limit_with_create_agent() -> None: function test_run_limit_with_create_agent (line 110) | def test_run_limit_with_create_agent() -> None: function test_middleware_initialization_validation (line 144) | def test_middleware_initialization_validation() -> None: function test_exception_error_message (line 171) | def test_exception_error_message() -> None: function test_run_limit_resets_between_invocations (line 204) | def test_run_limit_resets_between_invocations() -> None: FILE: libs/langchain_v1/tests/unit_tests/agents/middleware/implementations/test_model_fallback.py function _fake_runtime (line 25) | def _fake_runtime() -> Runtime: function _make_request (line 29) | def _make_request() -> ModelRequest: function test_primary_model_succeeds (line 45) | def test_primary_model_succeeds() -> None: function test_fallback_on_primary_failure (line 65) | def test_fallback_on_primary_failure() -> None: function test_multiple_fallbacks (line 97) | def test_multiple_fallbacks() -> None: function test_all_models_fail (line 130) | def test_all_models_fail() -> None: function test_primary_model_succeeds_async (line 160) | async def test_primary_model_succeeds_async() -> None: function test_fallback_on_primary_failure_async (line 180) | async def test_fallback_on_primary_failure_async() -> None: function test_multiple_fallbacks_async (line 212) | async def test_multiple_fallbacks_async() -> None: function test_all_models_fail_async (line 245) | async def test_all_models_fail_async() -> None: function test_model_fallback_middleware_with_agent (line 275) | def test_model_fallback_middleware_with_agent() -> None: function test_model_fallback_middleware_exhausted_with_agent (line 330) | def test_model_fallback_middleware_exhausted_with_agent() -> None: function test_model_fallback_middleware_initialization (line 369) | def test_model_fallback_middleware_initialization() -> None: function test_model_request_is_frozen (line 384) | def test_model_request_is_frozen() -> None: FILE: libs/langchain_v1/tests/unit_tests/agents/middleware/implementations/test_model_retry.py class TemporaryFailureModel (line 26) | class TemporaryFailureModel(FakeToolCallingModel): method _generate (line 32) | def _generate( class AlwaysFailingModel (line 63) | class AlwaysFailingModel(FakeToolCallingModel): method _generate (line 69) | def _generate( function test_model_retry_initialization_defaults (line 90) | def test_model_retry_initialization_defaults() -> None: function test_model_retry_initialization_custom (line 103) | def test_model_retry_initialization_custom() -> None: function test_model_retry_invalid_max_retries (line 125) | def test_model_retry_invalid_max_retries() -> None: function test_model_retry_invalid_initial_delay (line 131) | def test_model_retry_invalid_initial_delay() -> None: function test_model_retry_invalid_max_delay (line 137) | def test_model_retry_invalid_max_delay() -> None: function test_model_retry_invalid_backoff_factor (line 143) | def test_model_retry_invalid_backoff_factor() -> None: function test_model_retry_working_model_no_retry_needed (line 149) | def test_model_retry_working_model_no_retry_needed() -> None: function test_model_retry_failing_model_returns_message (line 172) | def test_model_retry_failing_model_returns_message() -> None: function test_model_retry_failing_model_raises (line 203) | def test_model_retry_failing_model_raises() -> None: function test_model_retry_custom_failure_formatter (line 229) | def test_model_retry_custom_failure_formatter() -> None: function test_model_retry_succeeds_after_retries (line 261) | def test_model_retry_succeeds_after_retries() -> None: function test_model_retry_specific_exceptions (line 290) | def test_model_retry_specific_exceptions() -> None: function test_model_retry_custom_exception_filter (line 322) | def test_model_retry_custom_exception_filter() -> None: function test_model_retry_backoff_timing (line 401) | def test_model_retry_backoff_timing() -> None: function test_model_retry_constant_backoff (line 434) | def test_model_retry_constant_backoff() -> None: function test_model_retry_max_delay_cap (line 467) | def test_model_retry_max_delay_cap() -> None: function test_model_retry_jitter_variation (line 497) | def test_model_retry_jitter_variation() -> None: function test_model_retry_async_working_model (line 520) | async def test_model_retry_async_working_model() -> None: function test_model_retry_async_failing_model (line 544) | async def test_model_retry_async_failing_model() -> None: function test_model_retry_async_succeeds_after_retries (line 575) | async def test_model_retry_async_succeeds_after_retries() -> None: function test_model_retry_async_backoff_timing (line 603) | async def test_model_retry_async_backoff_timing() -> None: function test_model_retry_zero_retries (line 635) | def test_model_retry_zero_retries() -> None: function test_model_retry_multiple_middleware_composition (line 662) | def test_model_retry_multiple_middleware_composition() -> None: FILE: libs/langchain_v1/tests/unit_tests/agents/middleware/implementations/test_pii.py class TestEmailDetection (line 29) | class TestEmailDetection: method test_detect_valid_email (line 32) | def test_detect_valid_email(self) -> None: method test_detect_multiple_emails (line 42) | def test_detect_multiple_emails(self) -> None: method test_no_email (line 50) | def test_no_email(self) -> None: method test_invalid_email_format (line 55) | def test_invalid_email_format(self) -> None: class TestCreditCardDetection (line 62) | class TestCreditCardDetection: method test_detect_valid_credit_card (line 65) | def test_detect_valid_credit_card(self) -> None: method test_detect_credit_card_with_spaces (line 74) | def test_detect_credit_card_with_spaces(self) -> None: method test_detect_credit_card_with_dashes (line 83) | def test_detect_credit_card_with_dashes(self) -> None: method test_invalid_luhn_not_detected (line 89) | def test_invalid_luhn_not_detected(self) -> None: method test_no_credit_card (line 95) | def test_no_credit_card(self) -> None: class TestIPDetection (line 101) | class TestIPDetection: method test_detect_valid_ipv4 (line 104) | def test_detect_valid_ipv4(self) -> None: method test_detect_multiple_ips (line 112) | def test_detect_multiple_ips(self) -> None: method test_invalid_ip_not_detected (line 120) | def test_invalid_ip_not_detected(self) -> None: method test_version_number_not_detected (line 126) | def test_version_number_not_detected(self) -> None: method test_no_ip (line 134) | def test_no_ip(self) -> None: class TestMACAddressDetection (line 140) | class TestMACAddressDetection: method test_detect_mac_with_colons (line 143) | def test_detect_mac_with_colons(self) -> None: method test_detect_mac_with_dashes (line 151) | def test_detect_mac_with_dashes(self) -> None: method test_detect_lowercase_mac (line 158) | def test_detect_lowercase_mac(self) -> None: method test_no_mac (line 165) | def test_no_mac(self) -> None: method test_partial_mac_not_detected (line 170) | def test_partial_mac_not_detected(self) -> None: class TestURLDetection (line 176) | class TestURLDetection: method test_detect_http_url (line 179) | def test_detect_http_url(self) -> None: method test_detect_https_url (line 187) | def test_detect_https_url(self) -> None: method test_detect_www_url (line 194) | def test_detect_www_url(self) -> None: method test_detect_bare_domain_with_path (line 201) | def test_detect_bare_domain_with_path(self) -> None: method test_detect_multiple_urls (line 208) | def test_detect_multiple_urls(self) -> None: method test_no_url (line 214) | def test_no_url(self) -> None: method test_bare_domain_without_path_not_detected (line 219) | def test_bare_domain_without_path_not_detected(self) -> None: class TestRedactStrategy (line 232) | class TestRedactStrategy: method test_redact_email (line 235) | def test_redact_email(self) -> None: method test_redact_multiple_pii (line 245) | def test_redact_multiple_pii(self) -> None: class TestMaskStrategy (line 258) | class TestMaskStrategy: method test_mask_email (line 261) | def test_mask_email(self) -> None: method test_mask_credit_card (line 272) | def test_mask_credit_card(self) -> None: method test_mask_ip (line 284) | def test_mask_ip(self) -> None: class TestHashStrategy (line 296) | class TestHashStrategy: method test_hash_email (line 299) | def test_hash_email(self) -> None: method test_hash_is_deterministic (line 311) | def test_hash_is_deterministic(self) -> None: class TestBlockStrategy (line 326) | class TestBlockStrategy: method test_block_raises_exception (line 329) | def test_block_raises_exception(self) -> None: method test_block_with_multiple_matches (line 340) | def test_block_with_multiple_matches(self) -> None: class TestPIIMiddlewareIntegration (line 355) | class TestPIIMiddlewareIntegration: method test_apply_to_input_only (line 358) | def test_apply_to_input_only(self) -> None: method test_apply_to_output_only (line 375) | def test_apply_to_output_only(self) -> None: method test_apply_to_both (line 392) | def test_apply_to_both(self) -> None: method test_no_pii_returns_none (line 408) | def test_no_pii_returns_none(self) -> None: method test_empty_messages (line 416) | def test_empty_messages(self) -> None: method test_apply_to_tool_results (line 424) | def test_apply_to_tool_results(self) -> None: method test_apply_to_tool_results_mask_strategy (line 451) | def test_apply_to_tool_results_mask_strategy(self) -> None: method test_apply_to_tool_results_block_strategy (line 475) | def test_apply_to_tool_results_block_strategy(self) -> None: method test_with_agent (line 498) | def test_with_agent(self) -> None: class TestCustomDetector (line 516) | class TestCustomDetector: method test_custom_regex_detector (line 519) | def test_custom_regex_detector(self) -> None: method test_custom_callable_detector (line 533) | def test_custom_callable_detector(self) -> None: method test_custom_callable_detector_with_text_key_hash (line 561) | def test_custom_callable_detector_with_text_key_hash(self) -> None: method test_custom_callable_detector_with_text_key_mask (line 589) | def test_custom_callable_detector_with_text_key_mask(self) -> None: method test_unknown_builtin_type_raises_error (line 612) | def test_unknown_builtin_type_raises_error(self) -> None: method test_custom_type_without_detector_raises_error (line 616) | def test_custom_type_without_detector_raises_error(self) -> None: class TestMultipleMiddleware (line 621) | class TestMultipleMiddleware: method test_sequential_application (line 624) | def test_sequential_application(self) -> None: method test_multiple_pii_middleware_with_create_agent (line 648) | def test_multiple_pii_middleware_with_create_agent(self) -> None: method test_custom_detector_for_multiple_types (line 675) | def test_custom_detector_for_multiple_types(self) -> None: FILE: libs/langchain_v1/tests/unit_tests/agents/middleware/implementations/test_shell_execution_policies.py function _make_resource (line 25) | def _make_resource( function test_host_policy_validations (line 57) | def test_host_policy_validations() -> None: function test_host_policy_requires_resource_for_limits (line 68) | def test_host_policy_requires_resource_for_limits(monkeypatch: pytest.Mo... function test_host_policy_applies_prlimit (line 74) | def test_host_policy_applies_prlimit(monkeypatch: pytest.MonkeyPatch, tm... function test_host_policy_uses_preexec_on_macos (line 112) | def test_host_policy_uses_preexec_on_macos(monkeypatch: pytest.MonkeyPat... function test_host_policy_respects_process_group_flag (line 144) | def test_host_policy_respects_process_group_flag( function test_host_policy_falls_back_to_rlimit_data (line 166) | def test_host_policy_falls_back_to_rlimit_data( function test_codex_policy_spawns_codex_cli (line 192) | def test_codex_policy_spawns_codex_cli(monkeypatch: pytest.MonkeyPatch, ... function test_codex_policy_auto_platform_linux (line 234) | def test_codex_policy_auto_platform_linux(monkeypatch: pytest.MonkeyPatc... function test_codex_policy_auto_platform_macos (line 240) | def test_codex_policy_auto_platform_macos(monkeypatch: pytest.MonkeyPatc... function test_codex_policy_resolve_missing_binary (line 246) | def test_codex_policy_resolve_missing_binary(monkeypatch: pytest.MonkeyP... function test_codex_policy_auto_platform_failure (line 253) | def test_codex_policy_auto_platform_failure(monkeypatch: pytest.MonkeyPa... function test_codex_policy_formats_override_values (line 260) | def test_codex_policy_formats_override_values() -> None: function test_codex_policy_sorts_config_overrides (line 271) | def test_codex_policy_sorts_config_overrides(monkeypatch: pytest.MonkeyP... function test_docker_policy_spawns_docker_run (line 287) | def test_docker_policy_spawns_docker_run(monkeypatch: pytest.MonkeyPatch... function test_docker_policy_rejects_cpu_limit (line 332) | def test_docker_policy_rejects_cpu_limit() -> None: function test_docker_policy_validates_memory (line 337) | def test_docker_policy_validates_memory() -> None: function test_docker_policy_skips_mount_for_temp_workspace (line 342) | def test_docker_policy_skips_mount_for_temp_workspace( function test_docker_policy_validates_cpus (line 373) | def test_docker_policy_validates_cpus() -> None: function test_docker_policy_validates_user (line 378) | def test_docker_policy_validates_user() -> None: function test_docker_policy_read_only_and_user (line 383) | def test_docker_policy_read_only_and_user(monkeypatch: pytest.MonkeyPatc... function test_docker_policy_resolve_missing_binary (line 405) | def test_docker_policy_resolve_missing_binary(monkeypatch: pytest.Monkey... FILE: libs/langchain_v1/tests/unit_tests/agents/middleware/implementations/test_shell_tool.py function _empty_state (line 24) | def _empty_state() -> ShellToolState: function test_executes_command_and_persists_state (line 28) | def test_executes_command_and_persists_state(tmp_path: Path) -> None: function test_restart_resets_session_environment (line 51) | def test_restart_resets_session_environment(tmp_path: Path) -> None: function test_truncation_indicator_present (line 75) | def test_truncation_indicator_present(tmp_path: Path) -> None: function test_timeout_returns_error (line 91) | def test_timeout_returns_error(tmp_path: Path) -> None: function test_redaction_policy_applies (line 110) | def test_redaction_policy_applies(tmp_path: Path) -> None: function test_startup_and_shutdown_commands (line 133) | def test_startup_and_shutdown_commands(tmp_path: Path) -> None: function test_session_resources_finalizer_cleans_up (line 152) | def test_session_resources_finalizer_cleans_up(tmp_path: Path) -> None: function test_shell_tool_input_validation (line 177) | def test_shell_tool_input_validation() -> None: function test_normalize_shell_command_empty (line 198) | def test_normalize_shell_command_empty() -> None: function test_normalize_env_non_string_keys (line 204) | def test_normalize_env_non_string_keys() -> None: function test_normalize_env_coercion (line 210) | def test_normalize_env_coercion(tmp_path: Path) -> None: function test_shell_tool_missing_command_string (line 231) | def test_shell_tool_missing_command_string(tmp_path: Path) -> None: function test_tool_message_formatting_with_id (line 255) | def test_tool_message_formatting_with_id(tmp_path: Path) -> None: function test_nonzero_exit_code_returns_error (line 279) | def test_nonzero_exit_code_returns_error(tmp_path: Path) -> None: function test_truncation_by_bytes (line 304) | def test_truncation_by_bytes(tmp_path: Path) -> None: function test_startup_command_failure (line 325) | def test_startup_command_failure(tmp_path: Path) -> None: function test_shutdown_command_failure_logged (line 337) | def test_shutdown_command_failure_logged(tmp_path: Path) -> None: function test_shutdown_command_timeout_logged (line 356) | def test_shutdown_command_timeout_logged(tmp_path: Path) -> None: function test_empty_output_replaced_with_no_output (line 375) | def test_empty_output_replaced_with_no_output(tmp_path: Path) -> None: function test_stderr_output_labeling (line 397) | def test_stderr_output_labeling(tmp_path: Path) -> None: function test_normalize_commands_string_tuple_list (line 426) | def test_normalize_commands_string_tuple_list( function test_async_methods_delegate_to_sync (line 438) | async def test_async_methods_delegate_to_sync(tmp_path: Path) -> None: function test_shell_middleware_resumable_after_interrupt (line 455) | def test_shell_middleware_resumable_after_interrupt(tmp_path: Path) -> N... function test_get_or_create_resources_creates_when_missing (line 510) | def test_get_or_create_resources_creates_when_missing(tmp_path: Path) ->... function test_get_or_create_resources_reuses_existing (line 531) | def test_get_or_create_resources_reuses_existing(tmp_path: Path) -> None: FILE: libs/langchain_v1/tests/unit_tests/agents/middleware/implementations/test_structured_output_retry.py class StructuredOutputRetryMiddleware (line 21) | class StructuredOutputRetryMiddleware(AgentMiddleware): method __init__ (line 24) | def __init__(self, max_retries: int) -> None: method wrap_model_call (line 32) | def wrap_model_call( class WeatherReport (line 67) | class WeatherReport(BaseModel): function get_weather (line 75) | def get_weather(city: str) -> str: function test_structured_output_retry_first_attempt_invalid (line 87) | def test_structured_output_retry_first_attempt_invalid() -> None: function test_structured_output_retry_exceeds_max_retries (line 139) | def test_structured_output_retry_exceeds_max_retries() -> None: function test_structured_output_retry_succeeds_first_attempt (line 187) | def test_structured_output_retry_succeeds_first_attempt() -> None: function test_structured_output_retry_validation_error (line 227) | def test_structured_output_retry_validation_error() -> None: function test_structured_output_retry_zero_retries (line 275) | def test_structured_output_retry_zero_retries() -> None: function test_structured_output_retry_preserves_messages (line 317) | def test_structured_output_retry_preserves_messages() -> None: FILE: libs/langchain_v1/tests/unit_tests/agents/middleware/implementations/test_summarization.py class MockChatModel (line 35) | class MockChatModel(BaseChatModel): method invoke (line 39) | def invoke( method _generate (line 50) | def _generate( method _llm_type (line 60) | def _llm_type(self) -> str: class ProfileChatModel (line 64) | class ProfileChatModel(BaseChatModel): method _generate (line 68) | def _generate( method _llm_type (line 80) | def _llm_type(self) -> str: function test_summarization_middleware_initialization (line 84) | def test_summarization_middleware_initialization() -> None: function test_summarization_middleware_no_summarization_cases (line 116) | def test_summarization_middleware_no_summarization_cases() -> None: function test_summarization_middleware_helper_methods (line 136) | def test_summarization_middleware_helper_methods() -> None: function test_summarization_middleware_summary_creation (line 171) | def test_summarization_middleware_summary_creation() -> None: function test_summarization_middleware_trim_limit_none_keeps_all_messages (line 223) | def test_summarization_middleware_trim_limit_none_keeps_all_messages() -... function test_summarization_middleware_profile_inference_triggers_summary (line 240) | def test_summarization_middleware_profile_inference_triggers_summary() -... function test_summarization_middleware_token_retention_preserves_ai_tool_pairs (line 346) | def test_summarization_middleware_token_retention_preserves_ai_tool_pair... function test_summarization_middleware_missing_profile (line 390) | def test_summarization_middleware_missing_profile() -> None: function test_summarization_middleware_full_workflow (line 401) | def test_summarization_middleware_full_workflow() -> None: function test_summarization_middleware_full_workflow_async (line 445) | async def test_summarization_middleware_full_workflow_async() -> None: function test_summarization_middleware_keep_messages (line 507) | def test_summarization_middleware_keep_messages() -> None: function test_summarization_middleware_validation_edge_cases (line 572) | def test_summarization_middleware_validation_edge_cases( function test_summarization_middleware_multiple_triggers (line 581) | def test_summarization_middleware_multiple_triggers() -> None: function test_summarization_middleware_profile_edge_cases (line 619) | def test_summarization_middleware_profile_edge_cases() -> None: function test_summarization_middleware_trim_messages_error_fallback (line 712) | def test_summarization_middleware_trim_messages_error_fallback() -> None: function test_summarization_middleware_binary_search_edge_cases (line 730) | def test_summarization_middleware_binary_search_edge_cases() -> None: function test_summarization_middleware_find_safe_cutoff_point (line 760) | def test_summarization_middleware_find_safe_cutoff_point() -> None: function test_summarization_middleware_find_safe_cutoff_point_orphan_tool (line 800) | def test_summarization_middleware_find_safe_cutoff_point_orphan_tool() -... function test_summarization_cutoff_moves_backward_to_include_ai_message (line 819) | def test_summarization_cutoff_moves_backward_to_include_ai_message() -> ... function test_summarization_middleware_zero_and_negative_target_tokens (line 859) | def test_summarization_middleware_zero_and_negative_target_tokens() -> N... function test_summarization_middleware_async_error_handling (line 878) | async def test_summarization_middleware_async_error_handling() -> None: function test_summarization_middleware_cutoff_at_boundary (line 913) | def test_summarization_middleware_cutoff_at_boundary() -> None: function test_summarization_middleware_deprecated_parameters_with_defaults (line 929) | def test_summarization_middleware_deprecated_parameters_with_defaults() ... function test_summarization_middleware_fraction_trigger_with_no_profile (line 946) | def test_summarization_middleware_fraction_trigger_with_no_profile() -> ... function test_summarization_adjust_token_counts (line 965) | def test_summarization_adjust_token_counts() -> None: function test_summarization_middleware_many_parallel_tool_calls_safety (line 982) | def test_summarization_middleware_many_parallel_tool_calls_safety() -> N... function test_summarization_before_model_uses_unscaled_tokens_for_cutoff (line 1008) | def test_summarization_before_model_uses_unscaled_tokens_for_cutoff() ->... function test_summarization_middleware_find_safe_cutoff_preserves_ai_tool_pair (line 1034) | def test_summarization_middleware_find_safe_cutoff_preserves_ai_tool_pai... function test_summarization_middleware_cutoff_at_start_of_tool_sequence (line 1069) | def test_summarization_middleware_cutoff_at_start_of_tool_sequence() -> ... function test_create_summary_uses_get_buffer_string_format (line 1090) | def test_create_summary_uses_get_buffer_string_format() -> None: function test_usage_metadata_trigger (line 1146) | def test_usage_metadata_trigger() -> None: class ConfigCapturingModel (line 1222) | class ConfigCapturingModel(BaseChatModel): method invoke (line 1228) | def invoke( method ainvoke (line 1240) | async def ainvoke( method _generate (line 1252) | def _generate( method _llm_type (line 1262) | def _llm_type(self) -> str: function test_create_summary_passes_lc_source_metadata (line 1267) | async def test_create_summary_passes_lc_source_metadata(use_async: bool)... FILE: libs/langchain_v1/tests/unit_tests/agents/middleware/implementations/test_todo.py function _fake_runtime (line 26) | def _fake_runtime() -> Runtime: function _make_request (line 30) | def _make_request(system_prompt: str | None = None) -> ModelRequest: function test_todo_middleware_initialization (line 51) | def test_todo_middleware_initialization() -> None: function test_has_write_todos_tool (line 59) | def test_has_write_todos_tool() -> None: function test_todo_middleware_default_prompts (line 68) | def test_todo_middleware_default_prompts() -> None: function test_adds_system_prompt_when_none_exists (line 82) | def test_adds_system_prompt_when_none_exists() -> None: function test_appends_to_existing_system_prompt (line 104) | def test_appends_to_existing_system_prompt() -> None: function test_todo_middleware_on_model_call (line 136) | def test_todo_middleware_on_model_call( function test_custom_system_prompt (line 174) | def test_custom_system_prompt() -> None: function test_todo_middleware_custom_system_prompt (line 196) | def test_todo_middleware_custom_system_prompt() -> None: function test_custom_tool_description (line 232) | def test_custom_tool_description() -> None: function test_todo_middleware_custom_tool_description (line 242) | def test_todo_middleware_custom_tool_description() -> None: function test_todo_middleware_custom_system_prompt_and_tool_description (line 252) | def test_todo_middleware_custom_system_prompt_and_tool_description() -> ... function test_todo_middleware_write_todos_tool_execution (line 332) | def test_todo_middleware_write_todos_tool_execution( function test_todo_middleware_write_todos_tool_validation_errors (line 354) | def test_todo_middleware_write_todos_tool_validation_errors( function test_todo_middleware_agent_creation_with_middleware (line 368) | def test_todo_middleware_agent_creation_with_middleware() -> None: function test_todo_middleware_custom_system_prompt_in_agent (line 416) | def test_todo_middleware_custom_system_prompt_in_agent() -> None: function test_adds_system_prompt_when_none_exists_async (line 447) | async def test_adds_system_prompt_when_none_exists_async() -> None: function test_appends_to_existing_system_prompt_async (line 469) | async def test_appends_to_existing_system_prompt_async() -> None: function test_custom_system_prompt_async (line 494) | async def test_custom_system_prompt_async() -> None: function test_parallel_write_todos_calls_rejected (line 514) | def test_parallel_write_todos_calls_rejected() -> None: function test_parallel_write_todos_with_other_tools (line 567) | def test_parallel_write_todos_with_other_tools() -> None: function test_single_write_todos_call_allowed (line 626) | def test_single_write_todos_call_allowed() -> None: function test_todo_middleware_agent_creation_with_middleware_async (line 652) | async def test_todo_middleware_agent_creation_with_middleware_async() ->... function test_parallel_write_todos_calls_rejected_async (line 691) | async def test_parallel_write_todos_calls_rejected_async() -> None: function test_parallel_write_todos_with_other_tools_async (line 744) | async def test_parallel_write_todos_with_other_tools_async() -> None: function test_single_write_todos_call_allowed_async (line 803) | async def test_single_write_todos_call_allowed_async() -> None: function test_handler_called_with_modified_request_async (line 829) | async def test_handler_called_with_modified_request_async() -> None: FILE: libs/langchain_v1/tests/unit_tests/agents/middleware/implementations/test_tool_call_limit.py function test_middleware_initialization_validation (line 17) | def test_middleware_initialization_validation() -> None: function test_middleware_name_property (line 63) | def test_middleware_name_property() -> None: function test_middleware_unit_functionality (line 81) | def test_middleware_unit_functionality() -> None: function test_middleware_end_behavior_with_unrelated_parallel_tool_calls (line 161) | def test_middleware_end_behavior_with_unrelated_parallel_tool_calls() ->... function test_middleware_with_specific_tool (line 196) | def test_middleware_with_specific_tool() -> None: function test_middleware_error_behavior (line 228) | def test_middleware_error_behavior() -> None: function test_multiple_middleware_instances (line 255) | def test_multiple_middleware_instances() -> None: function test_run_limit_with_multiple_human_messages (line 317) | def test_run_limit_with_multiple_human_messages() -> None: function test_exception_error_messages (line 373) | def test_exception_error_messages() -> None: function test_limit_reached_but_not_exceeded (line 393) | def test_limit_reached_but_not_exceeded() -> None: function test_exit_behavior_continue (line 421) | def test_exit_behavior_continue() -> None: function test_thread_count_excludes_blocked_run_calls (line 489) | def test_thread_count_excludes_blocked_run_calls() -> None: function test_unified_error_messages (line 535) | def test_unified_error_messages() -> None: function test_end_behavior_creates_artificial_messages (line 562) | def test_end_behavior_creates_artificial_messages() -> None: function test_parallel_tool_calls_with_limit_continue_mode (line 626) | def test_parallel_tool_calls_with_limit_continue_mode() -> None: function test_parallel_tool_calls_with_limit_end_mode (line 684) | def test_parallel_tool_calls_with_limit_end_mode() -> None: function test_parallel_mixed_tool_calls_with_specific_tool_limit (line 754) | def test_parallel_mixed_tool_calls_with_specific_tool_limit() -> None: FILE: libs/langchain_v1/tests/unit_tests/agents/middleware/implementations/test_tool_emulator.py function get_weather (line 22) | def get_weather(location: str) -> str: function search_web (line 29) | def search_web(query: str) -> str: function calculator (line 36) | def calculator(expression: str) -> str: class FakeModel (line 42) | class FakeModel(GenericFakeChatModel): method bind_tools (line 47) | def bind_tools( class FakeEmulatorModel (line 85) | class FakeEmulatorModel(BaseChatModel): method _generate (line 91) | def _generate( method _agenerate (line 102) | async def _agenerate( method _llm_type (line 114) | def _llm_type(self) -> str: class TestLLMToolEmulatorBasic (line 118) | class TestLLMToolEmulatorBasic: method test_emulates_specified_tool_by_name (line 121) | def test_emulates_specified_tool_by_name(self) -> None: method test_emulates_specified_tool_by_instance (line 154) | def test_emulates_specified_tool_by_instance(self) -> None: method test_non_emulated_tools_execute_normally (line 182) | def test_non_emulated_tools_execute_normally(self) -> None: method test_empty_tools_to_emulate_does_nothing (line 218) | def test_empty_tools_to_emulate_does_nothing(self) -> None: method test_none_tools_emulates_all (line 253) | def test_none_tools_emulates_all(self) -> None: class TestLLMToolEmulatorMultipleTools (line 287) | class TestLLMToolEmulatorMultipleTools: method test_emulate_multiple_tools (line 290) | def test_emulate_multiple_tools(self) -> None: method test_mixed_emulated_and_real_tools (line 324) | def test_mixed_emulated_and_real_tools(self) -> None: class TestLLMToolEmulatorModelConfiguration (line 363) | class TestLLMToolEmulatorModelConfiguration: method test_custom_model_string (line 366) | def test_custom_model_string(self) -> None: method test_custom_model_instance (line 379) | def test_custom_model_instance(self) -> None: method test_default_model_used_when_none (line 408) | def test_default_model_used_when_none(self) -> None: class TestLLMToolEmulatorAsync (line 421) | class TestLLMToolEmulatorAsync: method test_async_emulates_specified_tool_by_name (line 424) | async def test_async_emulates_specified_tool_by_name(self) -> None: method test_async_emulates_specified_tool_by_instance (line 455) | async def test_async_emulates_specified_tool_by_instance(self) -> None: method test_async_non_emulated_tools_execute_normally (line 483) | async def test_async_non_emulated_tools_execute_normally(self) -> None: method test_async_none_tools_emulates_all (line 519) | async def test_async_none_tools_emulates_all(self) -> None: method test_async_emulate_multiple_tools (line 551) | async def test_async_emulate_multiple_tools(self) -> None: method test_async_mixed_emulated_and_real_tools (line 587) | async def test_async_mixed_emulated_and_real_tools(self) -> None: FILE: libs/langchain_v1/tests/unit_tests/agents/middleware/implementations/test_tool_retry.py function working_tool (line 22) | def working_tool(value: str) -> str: function failing_tool (line 28) | def failing_tool(value: str) -> str: class TemporaryFailureTool (line 34) | class TemporaryFailureTool: method __init__ (line 37) | def __init__(self, fail_count: int): method __call__ (line 46) | def __call__(self, value: str) -> str: function test_tool_retry_initialization_defaults (line 65) | def test_tool_retry_initialization_defaults() -> None: function test_tool_retry_initialization_custom (line 79) | def test_tool_retry_initialization_custom() -> None: function test_tool_retry_initialization_with_base_tools (line 103) | def test_tool_retry_initialization_with_base_tools() -> None: function test_tool_retry_initialization_with_mixed_tools (line 116) | def test_tool_retry_initialization_with_mixed_tools() -> None: function test_tool_retry_invalid_max_retries (line 129) | def test_tool_retry_invalid_max_retries() -> None: function test_tool_retry_invalid_initial_delay (line 135) | def test_tool_retry_invalid_initial_delay() -> None: function test_tool_retry_invalid_max_delay (line 141) | def test_tool_retry_invalid_max_delay() -> None: function test_tool_retry_invalid_backoff_factor (line 147) | def test_tool_retry_invalid_backoff_factor() -> None: function test_tool_retry_working_tool_no_retry_needed (line 153) | def test_tool_retry_working_tool_no_retry_needed() -> None: function test_tool_retry_failing_tool_returns_message (line 182) | def test_tool_retry_failing_tool_returns_message() -> None: function test_tool_retry_failing_tool_raises (line 219) | def test_tool_retry_failing_tool_raises() -> None: function test_tool_retry_custom_failure_formatter (line 250) | def test_tool_retry_custom_failure_formatter() -> None: function test_tool_retry_succeeds_after_retries (line 287) | def test_tool_retry_succeeds_after_retries() -> None: function test_tool_retry_specific_tools_only (line 328) | def test_tool_retry_specific_tools_only() -> None: function test_tool_retry_specific_tools_with_base_tool (line 375) | def test_tool_retry_specific_tools_with_base_tool() -> None: function test_tool_retry_specific_exceptions (line 422) | def test_tool_retry_specific_exceptions() -> None: function test_tool_retry_custom_exception_filter (line 480) | def test_tool_retry_custom_exception_filter() -> None: function test_tool_retry_backoff_timing (line 546) | def test_tool_retry_backoff_timing() -> None: function test_tool_retry_constant_backoff (line 591) | def test_tool_retry_constant_backoff() -> None: function test_tool_retry_max_delay_cap (line 636) | def test_tool_retry_max_delay_cap() -> None: function test_tool_retry_jitter_variation (line 666) | def test_tool_retry_jitter_variation() -> None: function test_tool_retry_async_working_tool (line 688) | async def test_tool_retry_async_working_tool() -> None: function test_tool_retry_async_failing_tool (line 716) | async def test_tool_retry_async_failing_tool() -> None: function test_tool_retry_async_succeeds_after_retries (line 751) | async def test_tool_retry_async_succeeds_after_retries() -> None: function test_tool_retry_async_backoff_timing (line 790) | async def test_tool_retry_async_backoff_timing() -> None: function test_tool_retry_zero_retries (line 834) | def test_tool_retry_zero_retries() -> None: function test_tool_retry_multiple_middleware_composition (line 867) | def test_tool_retry_multiple_middleware_composition() -> None: function test_tool_retry_deprecated_raise_keyword (line 912) | def test_tool_retry_deprecated_raise_keyword() -> None: function test_tool_retry_deprecated_return_message_keyword (line 924) | def test_tool_retry_deprecated_return_message_keyword() -> None: function test_tool_retry_deprecated_raise_behavior (line 942) | def test_tool_retry_deprecated_raise_behavior() -> None: function test_tool_retry_deprecated_return_message_behavior (line 974) | def test_tool_retry_deprecated_return_message_behavior() -> None: FILE: libs/langchain_v1/tests/unit_tests/agents/middleware/implementations/test_tool_selection.py function get_weather (line 27) | def get_weather(location: str) -> str: function search_web (line 33) | def search_web(query: str) -> str: function calculate (line 39) | def calculate(expression: str) -> str: function send_email (line 45) | def send_email(to: str, subject: str) -> str: function get_stock_price (line 51) | def get_stock_price(symbol: str) -> str: class FakeModel (line 56) | class FakeModel(GenericFakeChatModel): method bind_tools (line 59) | def bind_tools( class TestLLMToolSelectorBasic (line 97) | class TestLLMToolSelectorBasic: method test_sync_basic_selection (line 100) | def test_sync_basic_selection(self) -> None: method test_async_basic_selection (line 166) | async def test_async_basic_selection(self) -> None: class TestMaxToolsLimiting (line 210) | class TestMaxToolsLimiting: method test_max_tools_limits_selection (line 213) | def test_max_tools_limits_selection(self) -> None: method test_no_max_tools_uses_all_selected (line 273) | def test_no_max_tools_uses_all_selected(self) -> None: class TestAlwaysInclude (line 337) | class TestAlwaysInclude: method test_always_include_tools_present (line 340) | def test_always_include_tools_present(self) -> None: method test_always_include_not_counted_against_max (line 395) | def test_always_include_not_counted_against_max(self) -> None: method test_multiple_always_include_tools (line 454) | def test_multiple_always_include_tools(self) -> None: class TestDuplicateAndInvalidTools (line 513) | class TestDuplicateAndInvalidTools: method test_duplicate_tool_selection_deduplicated (line 516) | def test_duplicate_tool_selection_deduplicated(self) -> None: method test_max_tools_with_duplicates (line 574) | def test_max_tools_with_duplicates(self) -> None: class TestEdgeCases (line 635) | class TestEdgeCases: method test_empty_tools_list_raises_error (line 638) | def test_empty_tools_list_raises_error(self) -> None: FILE: libs/langchain_v1/tests/unit_tests/agents/middleware_typing/test_middleware_backwards_compat.py class OldStyleMiddleware1 (line 39) | class OldStyleMiddleware1(AgentMiddleware): method before_model (line 42) | def before_model(self, state: AgentState[Any], runtime: Runtime[None])... method wrap_model_call (line 46) | def wrap_model_call( class OldStyleMiddleware2 (line 58) | class OldStyleMiddleware2(AgentMiddleware[AgentState[Any], ContextT]): method wrap_model_call (line 61) | def wrap_model_call( class OldStyleMiddleware3 (line 72) | class OldStyleMiddleware3(AgentMiddleware[AgentState[Any], None]): method wrap_model_call (line 75) | def wrap_model_call( class MyContext (line 86) | class MyContext(TypedDict): class OldStyleMiddleware4 (line 90) | class OldStyleMiddleware4(AgentMiddleware[AgentState[Any], MyContext]): method wrap_model_call (line 93) | def wrap_model_call( function old_style_decorator (line 107) | def old_style_decorator(state: AgentState[Any], runtime: Runtime[None]) ... class OldStyleAsyncMiddleware (line 115) | class OldStyleAsyncMiddleware(AgentMiddleware[AgentState[Any], ContextT]): method awrap_model_call (line 118) | async def awrap_model_call( class OldStyleModelResponseMiddleware (line 129) | class OldStyleModelResponseMiddleware(AgentMiddleware): method wrap_model_call (line 132) | def wrap_model_call( function fake_model (line 149) | def fake_model() -> GenericFakeChatModel: function test_old_pattern_1_unparameterized (line 154) | def test_old_pattern_1_unparameterized(fake_model: GenericFakeChatModel)... function test_old_pattern_2_two_params (line 165) | def test_old_pattern_2_two_params(fake_model: GenericFakeChatModel) -> N... function test_old_pattern_3_explicit_none (line 176) | def test_old_pattern_3_explicit_none(fake_model: GenericFakeChatModel) -... function test_old_pattern_4_specific_context (line 187) | def test_old_pattern_4_specific_context(fake_model: GenericFakeChatModel... function test_old_pattern_5_decorator (line 202) | def test_old_pattern_5_decorator(fake_model: GenericFakeChatModel) -> None: function test_old_pattern_6_async (line 213) | async def test_old_pattern_6_async(fake_model: GenericFakeChatModel) -> ... function test_old_pattern_7_model_response_unparameterized (line 224) | def test_old_pattern_7_model_response_unparameterized( function test_multiple_old_style_middlewares (line 237) | def test_multiple_old_style_middlewares(fake_model: GenericFakeChatModel... function test_model_response_backwards_compat (line 254) | def test_model_response_backwards_compat() -> None: function test_model_request_backwards_compat (line 268) | def test_model_request_backwards_compat() -> None: FILE: libs/langchain_v1/tests/unit_tests/agents/middleware_typing/test_middleware_type_errors.py class UserContext (line 38) | class UserContext(TypedDict): class SessionContext (line 43) | class SessionContext(TypedDict): class AnalysisResult (line 48) | class AnalysisResult(BaseModel): class SummaryResult (line 53) | class SummaryResult(BaseModel): class WrongContextFieldsMiddleware (line 61) | class WrongContextFieldsMiddleware(AgentMiddleware[AgentState[Any], User... method wrap_model_call (line 62) | def wrap_model_call( class MismatchedRequestMiddleware (line 76) | class MismatchedRequestMiddleware(AgentMiddleware[AgentState[Any], UserC... method wrap_model_call (line 77) | def wrap_model_call( # type: ignore[override] class SessionContextMiddleware (line 89) | class SessionContextMiddleware(AgentMiddleware[AgentState[Any], SessionC... method wrap_model_call (line 90) | def wrap_model_call( function test_mismatched_context_schema (line 98) | def test_mismatched_context_schema() -> None: class BackwardsCompatibleMiddleware (line 112) | class BackwardsCompatibleMiddleware(AgentMiddleware): method wrap_model_call (line 113) | def wrap_model_call( function test_backwards_compat_with_context_schema (line 121) | def test_backwards_compat_with_context_schema() -> None: class WrongResponseFieldsMiddleware (line 135) | class WrongResponseFieldsMiddleware( method wrap_model_call (line 138) | def wrap_model_call( class MismatchedResponseMiddleware (line 154) | class MismatchedResponseMiddleware( method wrap_model_call (line 157) | def wrap_model_call( # type: ignore[override] class AnalysisMiddleware (line 170) | class AnalysisMiddleware(AgentMiddleware[AgentState[AnalysisResult], Con... method wrap_model_call (line 171) | def wrap_model_call( function test_mismatched_response_format (line 179) | def test_mismatched_response_format() -> None: class WrongReturnTypeMiddleware (line 193) | class WrongReturnTypeMiddleware( method wrap_model_call (line 196) | def wrap_model_call( # type: ignore[override] FILE: libs/langchain_v1/tests/unit_tests/agents/middleware_typing/test_middleware_typing.py class UserContext (line 46) | class UserContext(TypedDict): class SessionContext (line 53) | class SessionContext(TypedDict): class AnalysisResult (line 60) | class AnalysisResult(BaseModel): class SummaryResult (line 67) | class SummaryResult(BaseModel): class BackwardsCompatibleMiddleware (line 78) | class BackwardsCompatibleMiddleware(AgentMiddleware): method before_model (line 81) | def before_model(self, state: AgentState[Any], runtime: Runtime[None])... method wrap_model_call (line 84) | def wrap_model_call( class BackwardsCompatibleMiddleware2 (line 92) | class BackwardsCompatibleMiddleware2(AgentMiddleware): method wrap_model_call (line 95) | def wrap_model_call( function backwards_compatible_decorator (line 105) | def backwards_compatible_decorator( class UserContextMiddleware (line 116) | class UserContextMiddleware(AgentMiddleware[AgentState[Any], UserContext... method before_model (line 119) | def before_model( method wrap_model_call (line 127) | def wrap_model_call( class SessionContextMiddleware (line 137) | class SessionContextMiddleware(AgentMiddleware[AgentState[Any], SessionC... method wrap_model_call (line 140) | def wrap_model_call( class AnalysisResponseMiddleware (line 154) | class AnalysisResponseMiddleware( method wrap_model_call (line 159) | def wrap_model_call( class SummaryResponseMiddleware (line 172) | class SummaryResponseMiddleware( method wrap_model_call (line 177) | def wrap_model_call( class FullyTypedMiddleware (line 192) | class FullyTypedMiddleware( method wrap_model_call (line 197) | def wrap_model_call( class FlexibleMiddleware (line 217) | class FlexibleMiddleware(AgentMiddleware[AgentState[ResponseT], ContextT... method wrap_model_call (line 220) | def wrap_model_call( function fake_model (line 234) | def fake_model() -> GenericFakeChatModel: function test_create_agent_no_context_schema (line 239) | def test_create_agent_no_context_schema(fake_model: GenericFakeChatModel... function test_create_agent_with_user_context (line 253) | def test_create_agent_with_user_context(fake_model: GenericFakeChatModel... function test_create_agent_with_session_context (line 263) | def test_create_agent_with_session_context(fake_model: GenericFakeChatMo... function test_create_agent_with_flexible_middleware (line 273) | def test_create_agent_with_flexible_middleware(fake_model: GenericFakeCh... function test_create_agent_with_response_middleware (line 292) | def test_create_agent_with_response_middleware(fake_model: GenericFakeCh... function test_create_agent_fully_typed (line 302) | def test_create_agent_fully_typed(fake_model: GenericFakeChatModel) -> N... class AsyncUserContextMiddleware (line 316) | class AsyncUserContextMiddleware(AgentMiddleware[AgentState[Any], UserCo... method abefore_model (line 319) | async def abefore_model( method awrap_model_call (line 325) | async def awrap_model_call( class AsyncResponseMiddleware (line 334) | class AsyncResponseMiddleware( method awrap_model_call (line 339) | async def awrap_model_call( function test_async_middleware_with_context (line 350) | def test_async_middleware_with_context(fake_model: GenericFakeChatModel)... function test_async_middleware_with_response (line 360) | def test_async_middleware_with_response(fake_model: GenericFakeChatModel... function test_model_request_preserves_context_type (line 373) | def test_model_request_preserves_context_type() -> None: function test_model_request_backwards_compatible (line 389) | def test_model_request_backwards_compatible() -> None: function test_model_request_explicit_none (line 399) | def test_model_request_explicit_none() -> None: function test_model_response_with_response_type (line 414) | def test_model_response_with_response_type() -> None: function test_model_response_without_structured (line 427) | def test_model_response_without_structured() -> None: function test_model_response_backwards_compatible (line 437) | def test_model_response_backwards_compatible() -> None: FILE: libs/langchain_v1/tests/unit_tests/agents/model.py class FakeToolCallingModel (line 23) | class FakeToolCallingModel(BaseChatModel): method _generate (line 29) | def _generate( method _llm_type (line 70) | def _llm_type(self) -> str: method bind_tools (line 74) | def bind_tools( FILE: libs/langchain_v1/tests/unit_tests/agents/test_agent_name.py function simple_tool (line 20) | def simple_tool(x: int) -> str: function test_agent_name_set_on_ai_message (line 25) | def test_agent_name_set_on_ai_message() -> None: function test_agent_name_not_set_when_none (line 40) | def test_agent_name_not_set_when_none() -> None: function test_agent_name_on_multiple_iterations (line 54) | def test_agent_name_on_multiple_iterations() -> None: function test_agent_name_async (line 72) | async def test_agent_name_async() -> None: function test_agent_name_async_multiple_iterations (line 87) | async def test_agent_name_async_multiple_iterations() -> None: function test_lc_agent_name_in_stream_metadata (line 108) | def test_lc_agent_name_in_stream_metadata() -> None: function test_lc_agent_name_not_in_stream_metadata_when_name_not_provided (line 128) | def test_lc_agent_name_not_in_stream_metadata_when_name_not_provided() -... function test_lc_agent_name_in_stream_metadata_multiple_iterations (line 142) | def test_lc_agent_name_in_stream_metadata_multiple_iterations() -> None: function test_lc_agent_name_in_astream_metadata (line 165) | async def test_lc_agent_name_in_astream_metadata() -> None: function test_lc_agent_name_not_in_astream_metadata_when_name_not_provided (line 185) | async def test_lc_agent_name_not_in_astream_metadata_when_name_not_provi... function test_lc_agent_name_in_astream_metadata_multiple_iterations (line 199) | async def test_lc_agent_name_in_astream_metadata_multiple_iterations() -... FILE: libs/langchain_v1/tests/unit_tests/agents/test_create_agent_tool_validation.py function test_tool_invocation_error_excludes_injected_state (line 19) | def test_tool_invocation_error_excludes_injected_state() -> None: function test_tool_invocation_error_excludes_injected_state_async (line 88) | async def test_tool_invocation_error_excludes_injected_state_async() -> ... function test_create_agent_error_content_with_multiple_params (line 184) | def test_create_agent_error_content_with_multiple_params() -> None: function test_create_agent_error_only_model_controllable_params (line 304) | def test_create_agent_error_only_model_controllable_params() -> None: FILE: libs/langchain_v1/tests/unit_tests/agents/test_fetch_last_ai_and_tool_messages.py function test_fetch_last_ai_and_tool_messages_normal (line 13) | def test_fetch_last_ai_and_tool_messages_normal() -> None: function test_fetch_last_ai_and_tool_messages_multiple_ai (line 30) | def test_fetch_last_ai_and_tool_messages_multiple_ai() -> None: function test_fetch_last_ai_and_tool_messages_no_ai_message (line 48) | def test_fetch_last_ai_and_tool_messages_no_ai_message() -> None: function test_fetch_last_ai_and_tool_messages_empty_list (line 68) | def test_fetch_last_ai_and_tool_messages_empty_list() -> None: function test_fetch_last_ai_and_tool_messages_only_human_messages (line 82) | def test_fetch_last_ai_and_tool_messages_only_human_messages() -> None: function test_fetch_last_ai_and_tool_messages_ai_without_tool_calls (line 95) | def test_fetch_last_ai_and_tool_messages_ai_without_tool_calls() -> None: FILE: libs/langchain_v1/tests/unit_tests/agents/test_injected_runtime_create_agent.py function test_tool_runtime_basic_injection (line 35) | def test_tool_runtime_basic_injection() -> None: function test_tool_runtime_async_injection (line 84) | async def test_tool_runtime_async_injection() -> None: function test_tool_runtime_state_access (line 123) | def test_tool_runtime_state_access() -> None: function test_tool_runtime_with_store (line 153) | def test_tool_runtime_with_store() -> None: function test_tool_runtime_with_multiple_tools (line 199) | def test_tool_runtime_with_multiple_tools() -> None: function test_tool_runtime_config_access (line 246) | def test_tool_runtime_config_access() -> None: function test_tool_runtime_with_custom_state (line 299) | def test_tool_runtime_with_custom_state() -> None: function test_tool_runtime_no_runtime_parameter (line 344) | def test_tool_runtime_no_runtime_parameter() -> None: function test_tool_runtime_parallel_execution (line 380) | async def test_tool_runtime_parallel_execution() -> None: function test_tool_runtime_error_handling (line 428) | def test_tool_runtime_error_handling() -> None: function test_tool_runtime_with_middleware (line 478) | def test_tool_runtime_with_middleware() -> None: function test_tool_runtime_type_hints (line 526) | def test_tool_runtime_type_hints() -> None: function test_tool_runtime_name_based_injection (line 560) | def test_tool_runtime_name_based_injection() -> None: function test_combined_injected_state_runtime_store (line 605) | def test_combined_injected_state_runtime_store() -> None: function test_combined_injected_state_runtime_store_async (line 725) | async def test_combined_injected_state_runtime_store_async() -> None: FILE: libs/langchain_v1/tests/unit_tests/agents/test_kwargs_tool_runtime_injection.py class ArgsSchema (line 15) | class ArgsSchema(BaseModel): function test_config_and_runtime_not_injected_to_kwargs (line 23) | def test_config_and_runtime_not_injected_to_kwargs() -> None: FILE: libs/langchain_v1/tests/unit_tests/agents/test_response_format.py class WeatherBaseModel (line 38) | class WeatherBaseModel(BaseModel): class WeatherDataclass (line 46) | class WeatherDataclass: class WeatherTypedDict (line 53) | class WeatherTypedDict(TypedDict): class LocationResponse (line 71) | class LocationResponse(BaseModel): class LocationTypedDict (line 76) | class LocationTypedDict(TypedDict): function get_weather (line 93) | def get_weather() -> str: function get_location (line 99) | def get_location() -> str: class TestResponseFormatAsModel (line 116) | class TestResponseFormatAsModel: method test_pydantic_model (line 117) | def test_pydantic_model(self) -> None: method test_dataclass (line 138) | def test_dataclass(self) -> None: method test_typed_dict (line 159) | def test_typed_dict(self) -> None: method test_json_schema (line 180) | def test_json_schema(self) -> None: method test_autostrategy_with_anonymous_json_schema (line 201) | def test_autostrategy_with_anonymous_json_schema(self) -> None: class TestResponseFormatAsToolStrategy (line 233) | class TestResponseFormatAsToolStrategy: method test_pydantic_model (line 234) | def test_pydantic_model(self) -> None: method test_dataclass (line 255) | def test_dataclass(self) -> None: method test_typed_dict (line 276) | def test_typed_dict(self) -> None: method test_json_schema (line 297) | def test_json_schema(self) -> None: method test_union_of_json_schemas (line 320) | def test_union_of_json_schemas(self) -> None: method test_union_of_types (line 369) | def test_union_of_types(self) -> None: method test_multiple_structured_outputs_error_without_retry (line 419) | def test_multiple_structured_outputs_error_without_retry(self) -> None: method test_multiple_structured_outputs_with_retry (line 457) | def test_multiple_structured_outputs_with_retry(self) -> None: method test_structured_output_parsing_error_without_retry (line 498) | def test_structured_output_parsing_error_without_retry(self) -> None: method test_structured_output_parsing_error_with_retry (line 531) | def test_structured_output_parsing_error_with_retry(self) -> None: method test_retry_with_custom_function (line 567) | def test_retry_with_custom_function(self) -> None: method test_retry_with_custom_string_message (line 615) | def test_retry_with_custom_string_message(self) -> None: method test_validation_error_with_invalid_response (line 654) | def test_validation_error_with_invalid_response(self) -> None: class TestResponseFormatAsProviderStrategy (line 688) | class TestResponseFormatAsProviderStrategy: method test_pydantic_model (line 689) | def test_pydantic_model(self) -> None: method test_validation_error_with_invalid_response (line 707) | def test_validation_error_with_invalid_response(self) -> None: method test_dataclass (line 733) | def test_dataclass(self) -> None: method test_typed_dict (line 753) | def test_typed_dict(self) -> None: method test_json_schema (line 771) | def test_json_schema(self) -> None: class TestDynamicModelWithResponseFormat (line 790) | class TestDynamicModelWithResponseFormat: method test_middleware_model_swap_provider_to_tool_strategy (line 793) | def test_middleware_model_swap_provider_to_tool_strategy(self) -> None: function test_union_of_types (line 875) | def test_union_of_types() -> None: class TestSupportsProviderStrategy (line 903) | class TestSupportsProviderStrategy: method _make_structured_model (line 907) | def _make_structured_model(model_name: str): method test_blocks_gemini_v2_with_tools (line 921) | def test_blocks_gemini_v2_with_tools(self) -> None: method test_allows_gemini_v3_with_tools (line 926) | def test_allows_gemini_v3_with_tools(self) -> None: method test_blocks_gemini_latest_aliases (line 938) | def test_blocks_gemini_latest_aliases(self, alias: str) -> None: FILE: libs/langchain_v1/tests/unit_tests/agents/test_response_format_integration.py class WeatherBaseModel (line 63) | class WeatherBaseModel(BaseModel): function get_weather (line 70) | def get_weather(city: str) -> str: function test_inference_to_native_output (line 77) | def test_inference_to_native_output(*, use_responses_api: bool) -> None: function test_inference_to_tool_output (line 112) | def test_inference_to_tool_output(*, use_responses_api: bool) -> None: function test_strict_mode (line 148) | def test_strict_mode(*, use_responses_api: bool) -> None: FILE: libs/langchain_v1/tests/unit_tests/agents/test_responses.py class _TestModel (line 16) | class _TestModel(BaseModel): class CustomModel (line 24) | class CustomModel(BaseModel): class EmptyDocModel (line 31) | class EmptyDocModel(BaseModel): class TestToolStrategy (line 36) | class TestToolStrategy: method test_basic_creation (line 39) | def test_basic_creation(self) -> None: method test_multiple_schemas (line 47) | def test_multiple_schemas(self) -> None: method test_schema_with_tool_message_content (line 54) | def test_schema_with_tool_message_content(self) -> None: class TestProviderStrategy (line 63) | class TestProviderStrategy: method test_basic_creation (line 66) | def test_basic_creation(self) -> None: method test_strict (line 73) | def test_strict(self) -> None: method test_to_model_kwargs (line 80) | def test_to_model_kwargs(self) -> None: method test_to_model_kwargs_strict (line 106) | def test_to_model_kwargs_strict(self) -> None: class TestOutputToolBinding (line 134) | class TestOutputToolBinding: method test_from_schema_spec_basic (line 137) | def test_from_schema_spec_basic(self) -> None: method test_from_schema_spec_with_custom_name (line 147) | def test_from_schema_spec_with_custom_name(self) -> None: method test_from_schema_spec_with_custom_description (line 153) | def test_from_schema_spec_with_custom_description(self) -> None: method test_from_schema_spec_with_model_docstring (line 160) | def test_from_schema_spec_with_model_docstring(self) -> None: method test_from_schema_spec_empty_docstring (line 167) | def test_from_schema_spec_empty_docstring(self) -> None: method test_parse_payload_pydantic_success (line 181) | def test_parse_payload_pydantic_success(self) -> None: method test_parse_payload_pydantic_validation_error (line 194) | def test_parse_payload_pydantic_validation_error(self) -> None: class TestProviderStrategyBinding (line 206) | class TestProviderStrategyBinding: method test_from_schema_spec_basic (line 209) | def test_from_schema_spec_basic(self) -> None: method test_parse_payload_pydantic_success (line 217) | def test_parse_payload_pydantic_success(self) -> None: method test_parse_payload_pydantic_validation_error (line 230) | def test_parse_payload_pydantic_validation_error(self) -> None: method test_parse_payload_pydantic_json_error (line 241) | def test_parse_payload_pydantic_json_error(self) -> None: method test_parse_content_list (line 254) | def test_parse_content_list(self) -> None: class TestEdgeCases (line 270) | class TestEdgeCases: method test_single_schema (line 273) | def test_single_schema(self) -> None: method test_empty_docstring_model (line 278) | def test_empty_docstring_model(self) -> None: FILE: libs/langchain_v1/tests/unit_tests/agents/test_responses_spec.py class ToolCalls (line 36) | class ToolCalls(BaseSchema): class AssertionByInvocation (line 41) | class AssertionByInvocation(BaseSchema): class TestCase (line 49) | class TestCase(BaseSchema): class Employee (line 55) | class Employee(BaseModel): function _make_tool (line 70) | def _make_tool(fn: Callable[..., str | None], *, name: str, description:... function test_responses_integration_matrix (line 83) | def test_responses_integration_matrix(case: TestCase) -> None: FILE: libs/langchain_v1/tests/unit_tests/agents/test_return_direct_graph.py function test_agent_graph_without_return_direct_tools (line 10) | def test_agent_graph_without_return_direct_tools(snapshot: SnapshotAsser... function test_agent_graph_with_return_direct_tool (line 30) | def test_agent_graph_with_return_direct_tool(snapshot: SnapshotAssertion... function test_agent_graph_with_mixed_tools (line 50) | def test_agent_graph_with_mixed_tools(snapshot: SnapshotAssertion) -> None: FILE: libs/langchain_v1/tests/unit_tests/agents/test_return_direct_spec.py class TestCase (line 35) | class TestCase(BaseSchema): function _make_tool (line 47) | def _make_tool(*, return_direct: bool) -> dict[str, Any]: function test_return_direct_integration_matrix (line 76) | def test_return_direct_integration_matrix(case: TestCase) -> None: FILE: libs/langchain_v1/tests/unit_tests/agents/test_state_schema.py function simple_tool (line 31) | def simple_tool(x: int) -> str: function test_state_schema_single_custom_field (line 36) | def test_state_schema_single_custom_field() -> None: function test_state_schema_multiple_custom_fields (line 56) | def test_state_schema_multiple_custom_fields() -> None: function test_state_schema_with_tool_runtime (line 87) | def test_state_schema_with_tool_runtime() -> None: function test_state_schema_with_middleware (line 115) | def test_state_schema_with_middleware() -> None: function test_state_schema_none_uses_default (line 155) | def test_state_schema_none_uses_default() -> None: function test_state_schema_async (line 171) | async def test_state_schema_async() -> None: function test_state_schema_with_private_state_field (line 201) | def test_state_schema_with_private_state_field() -> None: FILE: libs/langchain_v1/tests/unit_tests/agents/test_system_message.py function _make_request (line 29) | def _make_request( class TestModelRequestSystemMessage (line 54) | class TestModelRequestSystemMessage: method test_create_with_various_system_inputs (line 73) | def test_create_with_various_system_inputs( method test_system_prompt_property_with_list_content (line 102) | def test_system_prompt_property_with_list_content(self) -> None: method test_override_methods (line 128) | def test_override_methods(self, override_with: str, expected_text: str... method test_override_system_prompt_to_none (line 154) | def test_override_system_prompt_to_none(self) -> None: method test_cannot_set_both_system_prompt_and_system_message (line 180) | def test_cannot_set_both_system_prompt_and_system_message( method test_setattr_system_prompt_deprecated (line 224) | def test_setattr_system_prompt_deprecated( method test_system_message_with_complex_content (line 251) | def test_system_message_with_complex_content(self) -> None: method test_multiple_overrides_with_system_message (line 279) | def test_multiple_overrides_with_system_message(self) -> None: class TestCreateAgentSystemMessage (line 310) | class TestCreateAgentSystemMessage: method test_create_agent_with_various_system_prompts (line 343) | def test_create_agent_with_various_system_prompts( class TestSystemMessageUpdateViaMiddleware (line 362) | class TestSystemMessageUpdateViaMiddleware: method test_middleware_can_set_initial_system_message (line 365) | def test_middleware_can_set_initial_system_message(self) -> None: method test_middleware_can_update_via_system_message_object (line 404) | def test_middleware_can_update_via_system_message_object(self) -> None: class TestMultipleMiddlewareChaining (line 452) | class TestMultipleMiddlewareChaining: method test_multiple_middleware_can_chain_modifications (line 455) | def test_multiple_middleware_can_chain_modifications(self) -> None: method test_middleware_can_mix_string_and_system_message_updates (line 529) | def test_middleware_can_mix_string_and_system_message_updates(self) ->... class TestCacheControlPreservation (line 573) | class TestCacheControlPreservation: method test_middleware_can_add_cache_control (line 576) | def test_middleware_can_add_cache_control(self) -> None: method test_cache_control_preserved_across_middleware (line 624) | def test_cache_control_preserved_across_middleware(self) -> None: class TestMetadataMerging (line 682) | class TestMetadataMerging: method test_metadata_merge_across_updates (line 705) | def test_metadata_merge_across_updates( class TestDynamicSystemPromptMiddleware (line 760) | class TestDynamicSystemPromptMiddleware: method test_middleware_can_return_system_message (line 763) | def test_middleware_can_return_system_message(self) -> None: method test_middleware_can_use_system_message_with_metadata (line 797) | def test_middleware_can_use_system_message_with_metadata(self) -> None: method test_middleware_handles_none_system_message (line 819) | def test_middleware_handles_none_system_message(self) -> None: method test_middleware_with_content_blocks (line 835) | def test_middleware_with_content_blocks(self) -> None: class TestSystemMessageMiddlewareIntegration (line 860) | class TestSystemMessageMiddlewareIntegration: method test_multiple_middleware_can_modify_system_message (line 863) | def test_multiple_middleware_can_modify_system_message(self) -> None: method test_middleware_preserves_system_message_metadata (line 910) | def test_middleware_preserves_system_message_metadata(self) -> None: method test_backward_compatibility_with_string_system_prompt (line 940) | def test_backward_compatibility_with_string_system_prompt(self) -> None: method test_middleware_can_switch_between_formats (line 965) | def test_middleware_can_switch_between_formats( class TestEdgeCasesAndErrorHandling (line 999) | class TestEdgeCasesAndErrorHandling: method test_system_message_content_variations (line 1018) | def test_system_message_content_variations( method test_reset_system_prompt_to_none (line 1044) | def test_reset_system_prompt_to_none(self) -> None: FILE: libs/langchain_v1/tests/unit_tests/agents/utils.py class BaseSchema (line 9) | class BaseSchema(BaseModel): function load_spec (line 20) | def load_spec(spec_name: str, as_model: type[_T]) -> list[_T]: FILE: libs/langchain_v1/tests/unit_tests/chat_models/test_chat_models.py function test_all_imports (line 23) | def test_all_imports() -> None: function test_init_chat_model (line 43) | def test_init_chat_model(model_name: str, model_provider: str | None) ->... function test_init_chat_model_rejects_model_object (line 56) | def test_init_chat_model_rejects_model_object() -> None: function test_init_missing_dep (line 62) | def test_init_missing_dep() -> None: function test_init_unknown_provider (line 67) | def test_init_unknown_provider() -> None: function test_supported_providers_is_sorted (line 72) | def test_supported_providers_is_sorted() -> None: function test_attempt_infer_model_provider (line 104) | def test_attempt_infer_model_provider(model_name: str, expected_provider... function test_configurable (line 114) | def test_configurable() -> None: function test_configurable_with_default (line 245) | def test_configurable_with_default() -> None: FILE: libs/langchain_v1/tests/unit_tests/conftest.py function blockbuster (line 21) | def blockbuster() -> Iterator[BlockBuster]: function remove_request_headers (line 26) | def remove_request_headers(request: Any) -> Any: function remove_response_headers (line 34) | def remove_response_headers(response: dict[str, Any]) -> dict[str, Any]: function vcr_config (line 42) | def vcr_config() -> dict[str, Any]: function _json_body_matcher (line 54) | def _json_body_matcher(r1: Any, r2: Any) -> None: function pytest_recording_configure (line 71) | def pytest_recording_configure(config: dict[str, Any], vcr: VCR) -> None... function pytest_addoption (line 77) | def pytest_addoption(parser: pytest.Parser) -> None: function pytest_collection_modifyitems (line 91) | def pytest_collection_modifyitems(config: pytest.Config, items: Sequence... FILE: libs/langchain_v1/tests/unit_tests/embeddings/test_base.py function test_parse_model_string (line 21) | def test_parse_model_string(model_string: str, expected_provider: str, e... function test_parse_model_string_errors (line 29) | def test_parse_model_string_errors() -> None: function test_infer_model_and_provider (line 54) | def test_infer_model_and_provider() -> None: function test_infer_model_and_provider_errors (line 77) | def test_infer_model_and_provider_errors() -> None: function test_supported_providers_package_names (line 103) | def test_supported_providers_package_names(provider: str) -> None: function test_is_sorted (line 111) | def test_is_sorted() -> None: FILE: libs/langchain_v1/tests/unit_tests/embeddings/test_imports.py function test_all_imports (line 9) | def test_all_imports() -> None: FILE: libs/langchain_v1/tests/unit_tests/test_dependencies.py function uv_conf (line 17) | def uv_conf() -> dict[str, Any]: function test_required_dependencies (line 23) | def test_required_dependencies(uv_conf: Mapping[str, Any]) -> None: FILE: libs/langchain_v1/tests/unit_tests/test_imports.py function test_import_all (line 9) | def test_import_all() -> None: function test_import_all_using_dir (line 35) | def test_import_all_using_dir() -> None: FILE: libs/langchain_v1/tests/unit_tests/test_pytest_config.py function test_socket_disabled (line 6) | def test_socket_disabled() -> None: FILE: libs/langchain_v1/tests/unit_tests/test_version.py function test_version_matches_pyproject (line 10) | def test_version_matches_pyproject() -> None: FILE: libs/langchain_v1/tests/unit_tests/tools/test_imports.py function test_all_imports (line 15) | def test_all_imports() -> None: FILE: libs/model-profiles/langchain_model_profiles/cli.py function _validate_data_dir (line 20) | def _validate_data_dir(data_dir: Path) -> Path: function _load_augmentations (line 58) | def _load_augmentations( function _model_data_to_profile (line 102) | def _model_data_to_profile(model_data: dict[str, Any]) -> dict[str, Any]: function _apply_overrides (line 140) | def _apply_overrides( function _warn_undeclared_profile_keys (line 154) | def _warn_undeclared_profile_keys( function _ensure_safe_output_path (line 186) | def _ensure_safe_output_path(base_dir: Path, output_file: Path) -> None: function _write_profiles_file (line 213) | def _write_profiles_file(output_file: Path, contents: str) -> None: function refresh (line 255) | def refresh(provider: str, data_dir: Path) -> None: # noqa: C901, PLR0915 function main (line 372) | def main() -> None: FILE: libs/model-profiles/tests/integration_tests/test_compile.py function test_placeholder (line 7) | def test_placeholder() -> None: FILE: libs/model-profiles/tests/unit_tests/test_cli.py function mock_models_dev_response (line 20) | def mock_models_dev_response() -> dict: function test_refresh_generates_profiles_file (line 59) | def test_refresh_generates_profiles_file( function test_refresh_raises_error_for_missing_provider (line 103) | def test_refresh_raises_error_for_missing_provider( function test_refresh_works_without_augmentations (line 129) | def test_refresh_works_without_augmentations( function test_refresh_aborts_when_user_declines_external_directory (line 153) | def test_refresh_aborts_when_user_declines_external_directory( function test_refresh_includes_models_defined_only_in_augmentations (line 179) | def test_refresh_includes_models_defined_only_in_augmentations( function test_refresh_generates_sorted_profiles (line 226) | def test_refresh_generates_sorted_profiles( function test_model_data_to_profile_captures_all_models_dev_fields (line 282) | def test_model_data_to_profile_captures_all_models_dev_fields() -> None: function test_model_data_to_profile_omits_absent_fields (line 330) | def test_model_data_to_profile_omits_absent_fields() -> None: function test_model_data_to_profile_text_modalities (line 346) | def test_model_data_to_profile_text_modalities() -> None: function test_model_data_to_profile_keys_subset_of_model_profile (line 376) | def test_model_data_to_profile_keys_subset_of_model_profile() -> None: class TestWarnUndeclaredProfileKeys (line 417) | class TestWarnUndeclaredProfileKeys: method test_warns_on_undeclared_keys (line 420) | def test_warns_on_undeclared_keys(self) -> None: method test_silent_on_declared_keys_only (line 434) | def test_silent_on_declared_keys_only(self) -> None: method test_silent_when_langchain_core_not_installed (line 445) | def test_silent_when_langchain_core_not_installed(self) -> None: method test_survives_get_type_hints_failure (line 465) | def test_survives_get_type_hints_failure(self) -> None: FILE: libs/partners/anthropic/langchain_anthropic/_client_utils.py class _SyncHttpxClientWrapper (line 21) | class _SyncHttpxClientWrapper(anthropic.DefaultHttpxClient): method __del__ (line 24) | def __del__(self) -> None: class _AsyncHttpxClientWrapper (line 34) | class _AsyncHttpxClientWrapper(anthropic.DefaultAsyncHttpxClient): method __del__ (line 37) | def __del__(self) -> None: function _get_default_httpx_client (line 49) | def _get_default_httpx_client( function _get_default_async_httpx_client (line 68) | def _get_default_async_httpx_client( FILE: libs/partners/anthropic/langchain_anthropic/_compat.py function _convert_annotation_from_v1 (line 9) | def _convert_annotation_from_v1(annotation: types.Annotation) -> dict[st... function _convert_from_v1_to_anthropic (line 96) | def _convert_from_v1_to_anthropic( FILE: libs/partners/anthropic/langchain_anthropic/chat_models.py function _get_default_model_profile (line 81) | def _get_default_model_profile(model_name: str) -> ModelProfile: class AnthropicTool (line 99) | class AnthropicTool(TypedDict): function _is_builtin_tool (line 175) | def _is_builtin_tool(tool: Any) -> bool: function _format_image (line 193) | def _format_image(url: str) -> dict: function _merge_messages (line 240) | def _merge_messages( function _format_data_content_block (line 304) | def _format_data_content_block(block: dict) -> dict: function _format_messages (line 430) | def _format_messages( class AnthropicContextOverflowError (line 691) | class AnthropicContextOverflowError(anthropic.BadRequestError, ContextOv... function _handle_anthropic_bad_request (line 695) | def _handle_anthropic_bad_request(e: anthropic.BadRequestError) -> None: class ChatAnthropic (line 708) | class ChatAnthropic(BaseChatModel): method _llm_type (line 890) | def _llm_type(self) -> str: method lc_secrets (line 895) | def lc_secrets(self) -> dict[str, str]: method is_lc_serializable (line 903) | def is_lc_serializable(cls) -> bool: method get_lc_namespace (line 908) | def get_lc_namespace(cls) -> list[str]: method _identifying_params (line 917) | def _identifying_params(self) -> dict[str, Any]: method _get_ls_params (line 932) | def _get_ls_params( method set_default_max_tokens (line 953) | def set_default_max_tokens(cls, values: dict[str, Any]) -> Any: method build_extra (line 965) | def build_extra(cls, values: dict) -> Any: method _resolve_model_profile (line 970) | def _resolve_model_profile(self) -> ModelProfile | None: method _client_params (line 977) | def _client_params(self) -> dict[str, Any]: method _client (line 998) | def _client(self) -> anthropic.Client: method _async_client (line 1013) | def _async_client(self) -> anthropic.AsyncClient: method _get_request_payload (line 1027) | def _get_request_payload( method _create (line 1180) | def _create(self, payload: dict) -> Any: method _acreate (line 1185) | async def _acreate(self, payload: dict) -> Any: method _stream (line 1190) | def _stream( method _astream (line 1227) | async def _astream( method _make_message_chunk_from_anthropic_event (line 1264) | def _make_message_chunk_from_anthropic_event( method _format_output (line 1446) | def _format_output(self, data: Any, **kwargs: Any) -> ChatResult: method _generate (line 1502) | def _generate( method _agenerate (line 1516) | async def _agenerate( method _get_llm_for_structured_output_when_thinking_is_enabled (line 1530) | def _get_llm_for_structured_output_when_thinking_is_enabled( method bind_tools (line 1559) | def bind_tools( method with_structured_output (line 1683) | def with_structured_output( method get_num_tokens_from_messages (line 1846) | def get_num_tokens_from_messages( function convert_to_anthropic_tool (line 1934) | def convert_to_anthropic_tool( function _tools_in_params (line 1990) | def _tools_in_params(params: dict) -> bool: function _thinking_in_params (line 1998) | def _thinking_in_params(params: dict) -> bool: function _documents_in_params (line 2002) | def _documents_in_params(params: dict) -> bool: function _compact_in_params (line 2015) | def _compact_in_params(params: dict) -> bool: class _AnthropicToolUse (line 2021) | class _AnthropicToolUse(TypedDict): function _lc_tool_calls_to_anthropic_tool_use_blocks (line 2029) | def _lc_tool_calls_to_anthropic_tool_use_blocks( function _convert_to_anthropic_output_config_format (line 2043) | def _convert_to_anthropic_output_config_format(schema: dict | type) -> d... function _create_usage_metadata (line 2065) | def _create_usage_metadata(anthropic_usage: BaseModel) -> UsageMetadata: FILE: libs/partners/anthropic/langchain_anthropic/experimental.py function _get_type (line 43) | def _get_type(parameter: dict[str, Any]) -> str: function get_system_message (line 53) | def get_system_message(tools: list[dict]) -> str: function _xml_to_dict (line 85) | def _xml_to_dict(t: Any) -> str | dict[str, Any]: function _xml_to_function_call (line 103) | def _xml_to_function_call(invoke: Any, tools: list[dict]) -> dict[str, A... function _xml_to_tool_calls (line 136) | def _xml_to_tool_calls(elem: Any, tools: list[dict]) -> list[dict[str, A... FILE: libs/partners/anthropic/langchain_anthropic/llms.py class _AnthropicCommon (line 25) | class _AnthropicCommon(BaseLanguageModel): method build_extra (line 84) | def build_extra(cls, values: dict) -> Any: method validate_environment (line 89) | def validate_environment(self) -> Self: method _default_params (line 109) | def _default_params(self) -> Mapping[str, Any]: method _identifying_params (line 124) | def _identifying_params(self) -> Mapping[str, Any]: method _get_anthropic_stop (line 128) | def _get_anthropic_stop(self, stop: list[str] | None = None) -> list[s... class AnthropicLLM (line 134) | class AnthropicLLM(LLM, _AnthropicCommon): method raise_warning (line 155) | def raise_warning(cls, values: dict) -> Any: method _llm_type (line 166) | def _llm_type(self) -> str: method lc_secrets (line 171) | def lc_secrets(self) -> dict[str, str]: method is_lc_serializable (line 176) | def is_lc_serializable(cls) -> bool: method _identifying_params (line 181) | def _identifying_params(self) -> dict[str, Any]: method _get_ls_params (line 195) | def _get_ls_params( method _format_messages (line 210) | def _format_messages(self, prompt: str) -> list[dict[str, str]]: method _call (line 249) | def _call( method convert_prompt (line 298) | def convert_prompt(self, prompt: PromptValue) -> str: method _acall (line 302) | async def _acall( method _stream (line 334) | def _stream( method _astream (line 379) | async def _astream( method get_num_tokens (line 424) | def get_num_tokens(self, text: str) -> int: FILE: libs/partners/anthropic/langchain_anthropic/middleware/anthropic_tools.py class FileData (line 47) | class FileData(TypedDict): function files_reducer (line 60) | def files_reducer( class AnthropicToolsState (line 86) | class AnthropicToolsState(AgentState): function _validate_path (line 96) | def _validate_path(path: str, *, allowed_prefixes: Sequence[str] | None ... function _list_directory (line 134) | def _list_directory(files: dict[str, FileData], path: str) -> list[str]: class _StateClaudeFileToolMiddleware (line 159) | class _StateClaudeFileToolMiddleware(AgentMiddleware): method __init__ (line 164) | def __init__( method wrap_model_call (line 262) | def wrap_model_call( method awrap_model_call (line 292) | async def awrap_model_call( method _handle_view (line 322) | def _handle_view( method _handle_create (line 370) | def _handle_create( method _handle_str_replace (line 408) | def _handle_str_replace( method _handle_insert (line 458) | def _handle_insert( method _handle_delete (line 505) | def _handle_delete( method _handle_rename (line 529) | def _handle_rename( class StateClaudeTextEditorMiddleware (line 572) | class StateClaudeTextEditorMiddleware(_StateClaudeFileToolMiddleware): method __init__ (line 591) | def __init__( class StateClaudeMemoryMiddleware (line 611) | class StateClaudeMemoryMiddleware(_StateClaudeFileToolMiddleware): method __init__ (line 632) | def __init__( class _FilesystemClaudeFileToolMiddleware (line 657) | class _FilesystemClaudeFileToolMiddleware(AgentMiddleware): method __init__ (line 660) | def __init__( method wrap_model_call (line 754) | def wrap_model_call( method awrap_model_call (line 784) | async def awrap_model_call( method _validate_and_resolve_path (line 814) | def _validate_and_resolve_path(self, path: str) -> Path: method _handle_view (line 861) | def _handle_view(self, args: dict, tool_call_id: str | None) -> Command: method _handle_create (line 903) | def _handle_create(self, args: dict, tool_call_id: str | None) -> Comm... method _handle_str_replace (line 928) | def _handle_str_replace(self, args: dict, tool_call_id: str | None) ->... method _handle_insert (line 965) | def _handle_insert(self, args: dict, tool_call_id: str | None) -> Comm... method _handle_delete (line 1010) | def _handle_delete(self, args: dict, tool_call_id: str | None) -> Comm... method _handle_rename (line 1033) | def _handle_rename(self, args: dict, tool_call_id: str | None) -> Comm... class FilesystemClaudeTextEditorMiddleware (line 1064) | class FilesystemClaudeTextEditorMiddleware(_FilesystemClaudeFileToolMidd... method __init__ (line 1083) | def __init__( class FilesystemClaudeMemoryMiddleware (line 1110) | class FilesystemClaudeMemoryMiddleware(_FilesystemClaudeFileToolMiddlewa... method __init__ (line 1132) | def __init__( FILE: libs/partners/anthropic/langchain_anthropic/middleware/bash.py class ClaudeBashToolMiddleware (line 19) | class ClaudeBashToolMiddleware(ShellToolMiddleware): method __init__ (line 22) | def __init__( method wrap_model_call (line 59) | def wrap_model_call( method awrap_model_call (line 71) | async def awrap_model_call( FILE: libs/partners/anthropic/langchain_anthropic/middleware/file_search.py function _expand_include_patterns (line 23) | def _expand_include_patterns(pattern: str) -> list[str] | None: function _is_valid_include_pattern (line 57) | def _is_valid_include_pattern(pattern: str) -> bool: function _match_include_pattern (line 78) | def _match_include_pattern(basename: str, pattern: str) -> bool: class StateFileSearchMiddleware (line 87) | class StateFileSearchMiddleware(AgentMiddleware): method __init__ (line 116) | def __init__( method _handle_glob_search (line 201) | def _handle_glob_search( method _handle_grep_search (line 261) | def _handle_grep_search( method _format_grep_results (line 322) | def _format_grep_results( FILE: libs/partners/anthropic/langchain_anthropic/middleware/prompt_caching.py class AnthropicPromptCachingMiddleware (line 35) | class AnthropicPromptCachingMiddleware(AgentMiddleware): method __init__ (line 55) | def __init__( method _cache_control (line 86) | def _cache_control(self) -> dict[str, str]: method _should_apply_caching (line 89) | def _should_apply_caching(self, request: ModelRequest) -> bool: method _apply_caching (line 119) | def _apply_caching(self, request: ModelRequest) -> ModelRequest: method wrap_model_call (line 146) | def wrap_model_call( method awrap_model_call (line 165) | async def awrap_model_call( function _tag_system_message (line 185) | def _tag_system_message( function _tag_tools (line 225) | def _tag_tools( FILE: libs/partners/anthropic/langchain_anthropic/output_parsers.py class ToolsOutputParser (line 14) | class ToolsOutputParser(BaseGenerationOutputParser): method parse_result (line 28) | def parse_result(self, result: list[Generation], *, partial: bool = Fa... method _pydantic_parse (line 66) | def _pydantic_parse(self, tool_call: dict) -> BaseModel: function _extract_tool_calls_from_message (line 73) | def _extract_tool_calls_from_message(message: AIMessage) -> list[ToolCall]: function extract_tool_calls (line 80) | def extract_tool_calls(content: str | list[str | dict]) -> list[ToolCall]: FILE: libs/partners/anthropic/scripts/check_version.py function get_pyproject_version (line 13) | def get_pyproject_version(pyproject_path: Path) -> str | None: function get_version_py_version (line 20) | def get_version_py_version(version_path: Path) -> str | None: function main (line 27) | def main() -> int: FILE: libs/partners/anthropic/tests/conftest.py function remove_request_headers (line 8) | def remove_request_headers(request: Any) -> Any: function remove_response_headers (line 14) | def remove_response_headers(response: dict) -> dict: function vcr_config (line 21) | def vcr_config() -> dict: function pytest_recording_configure (line 32) | def pytest_recording_configure(config: dict, vcr: VCR) -> None: FILE: libs/partners/anthropic/tests/integration_tests/test_chat_models.py function test_stream (line 41) | def test_stream() -> None: function test_astream (line 87) | async def test_astream() -> None: function test_stream_usage (line 149) | async def test_stream_usage() -> None: function test_stream_usage_override (line 157) | async def test_stream_usage_override() -> None: function test_abatch (line 166) | async def test_abatch() -> None: function test_abatch_tags (line 175) | async def test_abatch_tags() -> None: function test_async_tool_use (line 187) | async def test_async_tool_use() -> None: function test_batch (line 236) | def test_batch() -> None: function test_ainvoke (line 245) | async def test_ainvoke() -> None: function test_invoke (line 254) | def test_invoke() -> None: function test_system_invoke (line 262) | def test_system_invoke() -> None: function test_handle_empty_aimessage (line 283) | def test_handle_empty_aimessage() -> None: function test_anthropic_call (line 330) | def test_anthropic_call() -> None: function test_anthropic_generate (line 339) | def test_anthropic_generate() -> None: function test_anthropic_streaming (line 355) | def test_anthropic_streaming() -> None: function test_anthropic_streaming_callback (line 365) | def test_anthropic_streaming_callback() -> None: function test_anthropic_async_streaming_callback (line 381) | async def test_anthropic_async_streaming_callback() -> None: function test_anthropic_multimodal (line 399) | def test_anthropic_multimodal() -> None: function test_streaming (line 423) | def test_streaming() -> None: function test_astreaming (line 439) | async def test_astreaming() -> None: function test_tool_use (line 455) | def test_tool_use() -> None: function test_builtin_tools_text_editor (line 551) | def test_builtin_tools_text_editor() -> None: function test_builtin_tools_computer_use (line 569) | def test_builtin_tools_computer_use() -> None: class GenerateUsername (line 610) | class GenerateUsername(BaseModel): function test_disable_parallel_tool_calling (line 617) | def test_disable_parallel_tool_calling() -> None: function test_anthropic_with_empty_text_block (line 629) | def test_anthropic_with_empty_text_block() -> None: function test_with_structured_output (line 674) | def test_with_structured_output() -> None: class Person (line 694) | class Person(BaseModel): class PersonDict (line 702) | class PersonDict(TypedDict): function test_response_format (line 711) | def test_response_format(schema: dict | type) -> None: function test_response_format_in_agent (line 728) | def test_response_format_in_agent() -> None: function test_strict_tool_use (line 762) | def test_strict_tool_use() -> None: function test_get_num_tokens_from_messages (line 777) | def test_get_num_tokens_from_messages() -> None: class GetWeather (line 832) | class GetWeather(BaseModel): function test_anthropic_bind_tools_tool_choice (line 839) | def test_anthropic_bind_tools_tool_choice(tool_choice: str) -> None: function test_pdf_document_input (line 848) | def test_pdf_document_input() -> None: function test_agent_loop (line 877) | def test_agent_loop(output_version: Literal["v0", "v1"]) -> None: function test_agent_loop_streaming (line 906) | def test_agent_loop_streaming(output_version: Literal["v0", "v1"]) -> None: function test_citations (line 940) | def test_citations(output_version: Literal["v0", "v1"]) -> None: function test_thinking (line 990) | def test_thinking() -> None: function test_thinking_v1 (line 1032) | def test_thinking_v1() -> None: function test_redacted_thinking (line 1078) | def test_redacted_thinking(output_version: Literal["v0", "v1"]) -> None: function test_structured_output_thinking_enabled (line 1142) | def test_structured_output_thinking_enabled() -> None: function test_structured_output_thinking_force_tool_use (line 1162) | def test_structured_output_thinking_force_tool_use() -> None: function test_effort_parameter (line 1195) | def test_effort_parameter() -> None: function test_image_tool_calling (line 1219) | def test_image_tool_calling() -> None: function test_web_search (line 1283) | def test_web_search(output_version: Literal["v0", "v1"]) -> None: function test_web_fetch (line 1335) | def test_web_fetch() -> None: function test_web_fetch_v1 (line 1599) | def test_web_fetch_v1(output_version: Literal["v0", "v1"]) -> None: function test_code_execution_old (line 1661) | def test_code_execution_old(output_version: Literal["v0", "v1"]) -> None: function test_code_execution (line 1724) | def test_code_execution(output_version: Literal["v0", "v1"]) -> None: function test_remote_mcp (line 1792) | def test_remote_mcp(output_version: Literal["v0", "v1"]) -> None: function test_files_api_image (line 1857) | def test_files_api_image(block_format: str) -> None: function test_files_api_pdf (line 1894) | def test_files_api_pdf(block_format: str) -> None: function test_search_result_tool_message (line 1925) | def test_search_result_tool_message() -> None: function test_search_result_top_level (line 1983) | def test_search_result_top_level() -> None: function test_memory_tool (line 2033) | def test_memory_tool() -> None: function test_context_management (line 2046) | def test_context_management() -> None: function test_tool_search (line 2081) | def test_tool_search(output_version: str) -> None: function test_programmatic_tool_use (line 2153) | def test_programmatic_tool_use(output_version: str) -> None: function test_programmatic_tool_use_streaming (line 2231) | def test_programmatic_tool_use_streaming(output_version: str) -> None: function test_async_shared_client (line 2302) | def test_async_shared_client() -> None: function test_fine_grained_tool_streaming (line 2308) | def test_fine_grained_tool_streaming() -> None: function test_compaction (line 2413) | def test_compaction() -> None: function test_compaction_streaming (line 2467) | def test_compaction_streaming() -> None: FILE: libs/partners/anthropic/tests/integration_tests/test_compile.py function test_placeholder (line 5) | def test_placeholder() -> None: FILE: libs/partners/anthropic/tests/integration_tests/test_llms.py function test_anthropic_model_name_param (line 16) | def test_anthropic_model_name_param() -> None: function test_anthropic_model_param (line 22) | def test_anthropic_model_param() -> None: function test_anthropic_call (line 27) | def test_anthropic_call() -> None: function test_anthropic_streaming (line 34) | def test_anthropic_streaming() -> None: function test_anthropic_streaming_callback (line 45) | def test_anthropic_streaming_callback() -> None: function test_anthropic_async_generate (line 59) | async def test_anthropic_async_generate() -> None: function test_anthropic_async_streaming_callback (line 66) | async def test_anthropic_async_streaming_callback() -> None: FILE: libs/partners/anthropic/tests/integration_tests/test_standard.py class TestAnthropicStandard (line 18) | class TestAnthropicStandard(ChatModelIntegrationTests): method chat_model_class (line 22) | def chat_model_class(self) -> type[BaseChatModel]: method chat_model_params (line 26) | def chat_model_params(self) -> dict: method supports_image_inputs (line 30) | def supports_image_inputs(self) -> bool: method supports_image_urls (line 34) | def supports_image_urls(self) -> bool: method supports_pdf_inputs (line 38) | def supports_pdf_inputs(self) -> bool: method supports_image_tool_message (line 42) | def supports_image_tool_message(self) -> bool: method supports_pdf_tool_message (line 46) | def supports_pdf_tool_message(self) -> bool: method supports_anthropic_inputs (line 50) | def supports_anthropic_inputs(self) -> bool: method enable_vcr_tests (line 54) | def enable_vcr_tests(self) -> bool: method supported_usage_metadata_details (line 58) | def supported_usage_metadata_details( method invoke_with_cache_creation_input (line 77) | def invoke_with_cache_creation_input(self, *, stream: bool = False) ->... method invoke_with_cache_read_input (line 105) | def invoke_with_cache_read_input(self, *, stream: bool = False) -> AIM... function _invoke (line 152) | def _invoke(llm: ChatAnthropic, input_: list, stream: bool) -> AIMessage... class NativeStructuredOutputTests (line 161) | class NativeStructuredOutputTests(TestAnthropicStandard): method chat_model_params (line 163) | def chat_model_params(self) -> dict: method structured_output_kwargs (line 167) | def structured_output_kwargs(self) -> dict: function test_native_structured_output (line 172) | def test_native_structured_output( function test_native_structured_output_async (line 181) | async def test_native_structured_output_async( FILE: libs/partners/anthropic/tests/unit_tests/_utils.py class BaseFakeCallbackHandler (line 11) | class BaseFakeCallbackHandler(BaseModel): class BaseFakeCallbackHandlerMixin (line 44) | class BaseFakeCallbackHandlerMixin(BaseFakeCallbackHandler): method on_llm_start_common (line 47) | def on_llm_start_common(self) -> None: method on_llm_end_common (line 51) | def on_llm_end_common(self) -> None: method on_llm_error_common (line 55) | def on_llm_error_common(self) -> None: method on_llm_new_token_common (line 58) | def on_llm_new_token_common(self) -> None: method on_retry_common (line 61) | def on_retry_common(self) -> None: method on_chain_start_common (line 64) | def on_chain_start_common(self) -> None: method on_chain_end_common (line 68) | def on_chain_end_common(self) -> None: method on_chain_error_common (line 72) | def on_chain_error_common(self) -> None: method on_tool_start_common (line 75) | def on_tool_start_common(self) -> None: method on_tool_end_common (line 79) | def on_tool_end_common(self) -> None: method on_tool_error_common (line 83) | def on_tool_error_common(self) -> None: method on_agent_action_common (line 86) | def on_agent_action_common(self) -> None: method on_agent_finish_common (line 90) | def on_agent_finish_common(self) -> None: method on_chat_model_start_common (line 94) | def on_chat_model_start_common(self) -> None: method on_text_common (line 98) | def on_text_common(self) -> None: method on_retriever_start_common (line 101) | def on_retriever_start_common(self) -> None: method on_retriever_end_common (line 105) | def on_retriever_end_common(self) -> None: method on_retriever_error_common (line 109) | def on_retriever_error_common(self) -> None: class FakeCallbackHandler (line 114) | class FakeCallbackHandler(BaseCallbackHandler, BaseFakeCallbackHandlerMi... method ignore_llm (line 118) | def ignore_llm(self) -> bool: method ignore_chain (line 123) | def ignore_chain(self) -> bool: method ignore_agent (line 128) | def ignore_agent(self) -> bool: method ignore_retriever (line 133) | def ignore_retriever(self) -> bool: method on_llm_start (line 137) | def on_llm_start( method on_llm_new_token (line 144) | def on_llm_new_token( method on_llm_end (line 151) | def on_llm_end( method on_llm_error (line 158) | def on_llm_error( method on_retry (line 165) | def on_retry( method on_chain_start (line 172) | def on_chain_start( method on_chain_end (line 179) | def on_chain_end( method on_chain_error (line 186) | def on_chain_error( method on_tool_start (line 193) | def on_tool_start( method on_tool_end (line 200) | def on_tool_end( method on_tool_error (line 207) | def on_tool_error( method on_agent_action (line 214) | def on_agent_action( method on_agent_finish (line 221) | def on_agent_finish( method on_text (line 228) | def on_text( method on_retriever_start (line 235) | def on_retriever_start( method on_retriever_end (line 242) | def on_retriever_end( method on_retriever_error (line 249) | def on_retriever_error( method __deepcopy__ (line 257) | def __deepcopy__(self, memo: dict) -> FakeCallbackHandler: # type: ig... FILE: libs/partners/anthropic/tests/unit_tests/middleware/test_anthropic_tools.py class TestPathValidation (line 17) | class TestPathValidation: method test_basic_path_normalization (line 20) | def test_basic_path_normalization(self) -> None: method test_path_traversal_blocked (line 27) | def test_path_traversal_blocked(self) -> None: method test_allowed_prefixes (line 38) | def test_allowed_prefixes(self) -> None: method test_memories_prefix (line 55) | def test_memories_prefix(self) -> None: class TestTextEditorMiddleware (line 66) | class TestTextEditorMiddleware: method test_middleware_initialization (line 69) | def test_middleware_initialization(self) -> None: class TestMemoryMiddleware (line 84) | class TestMemoryMiddleware: method test_middleware_initialization (line 87) | def test_middleware_initialization(self) -> None: method test_custom_system_prompt (line 96) | def test_custom_system_prompt(self) -> None: class TestFileOperations (line 103) | class TestFileOperations: method test_view_operation (line 106) | def test_view_operation(self) -> None: method test_create_operation (line 132) | def test_create_operation(self) -> None: method test_path_prefix_enforcement (line 147) | def test_path_prefix_enforcement(self) -> None: method test_memories_prefix_enforcement (line 161) | def test_memories_prefix_enforcement(self) -> None: method test_str_replace_operation (line 173) | def test_str_replace_operation(self) -> None: method test_insert_operation (line 202) | def test_insert_operation(self) -> None: method test_delete_operation (line 230) | def test_delete_operation(self) -> None: method test_rename_operation (line 254) | def test_rename_operation(self) -> None: class TestSystemMessageHandling (line 286) | class TestSystemMessageHandling: method test_text_editor_no_system_message (line 289) | def test_text_editor_no_system_message(self) -> None: method test_memory_middleware_adds_system_message (line 319) | def test_memory_middleware_adds_system_message(self) -> None: method test_memory_middleware_merges_system_message (line 351) | def test_memory_middleware_merges_system_message(self) -> None: method test_async_memory_middleware_merges_system_message (line 385) | async def test_async_memory_middleware_merges_system_message(self) -> ... method test_custom_system_prompt_merges_correctly (line 419) | def test_custom_system_prompt_merges_correctly(self) -> None: FILE: libs/partners/anthropic/tests/unit_tests/middleware/test_bash.py function test_creates_bash_tool (line 14) | def test_creates_bash_tool(monkeypatch: pytest.MonkeyPatch) -> None: function test_replaces_tool_with_claude_descriptor (line 26) | def test_replaces_tool_with_claude_descriptor() -> None: FILE: libs/partners/anthropic/tests/unit_tests/middleware/test_file_search.py class TestSearchMiddlewareInitialization (line 9) | class TestSearchMiddlewareInitialization: method test_middleware_initialization (line 12) | def test_middleware_initialization(self) -> None: method test_custom_state_key (line 18) | def test_custom_state_key(self) -> None: class TestGlobSearch (line 24) | class TestGlobSearch: method test_glob_basic_pattern (line 27) | def test_glob_basic_pattern(self) -> None: method test_glob_recursive_pattern (line 62) | def test_glob_recursive_pattern(self) -> None: method test_glob_with_base_path (line 96) | def test_glob_with_base_path(self) -> None: method test_glob_no_matches (line 124) | def test_glob_no_matches(self) -> None: method test_glob_sorts_by_modified_time (line 144) | def test_glob_sorts_by_modified_time(self) -> None: class TestGrepSearch (line 172) | class TestGrepSearch: method test_grep_files_with_matches_mode (line 175) | def test_grep_files_with_matches_mode(self) -> None: method test_grep_invalid_include_pattern (line 214) | def test_grep_invalid_include_pattern(self) -> None: class TestFilesystemGrepSearch (line 240) | class TestFilesystemGrepSearch: method test_grep_content_mode (line 243) | def test_grep_content_mode(self) -> None: method test_grep_count_mode (line 272) | def test_grep_count_mode(self) -> None: method test_grep_with_include_filter (line 301) | def test_grep_with_include_filter(self) -> None: method test_grep_with_brace_expansion_filter (line 333) | def test_grep_with_brace_expansion_filter(self) -> None: method test_grep_with_base_path (line 371) | def test_grep_with_base_path(self) -> None: method test_grep_no_matches (line 403) | def test_grep_no_matches(self) -> None: method test_grep_invalid_regex (line 429) | def test_grep_invalid_regex(self) -> None: class TestSearchWithDifferentBackends (line 450) | class TestSearchWithDifferentBackends: method test_glob_default_backend (line 453) | def test_glob_default_backend(self) -> None: method test_grep_default_backend (line 482) | def test_grep_default_backend(self) -> None: method test_search_with_single_store (line 517) | def test_search_with_single_store(self) -> None: FILE: libs/partners/anthropic/tests/unit_tests/middleware/test_prompt_caching.py class FakeToolCallingModel (line 23) | class FakeToolCallingModel(BaseChatModel): method _generate (line 26) | def _generate( method _agenerate (line 38) | async def _agenerate( method _llm_type (line 51) | def _llm_type(self) -> str: function test_anthropic_prompt_caching_middleware_initialization (line 55) | def test_anthropic_prompt_caching_middleware_initialization() -> None: function test_anthropic_prompt_caching_middleware_unsupported_model (line 101) | def test_anthropic_prompt_caching_middleware_unsupported_model() -> None: function test_anthropic_prompt_caching_middleware_async (line 149) | async def test_anthropic_prompt_caching_middleware_async() -> None: function test_anthropic_prompt_caching_middleware_async_unsupported_model (line 187) | async def test_anthropic_prompt_caching_middleware_async_unsupported_mod... function test_anthropic_prompt_caching_middleware_async_min_messages (line 234) | async def test_anthropic_prompt_caching_middleware_async_min_messages() ... function test_anthropic_prompt_caching_middleware_async_with_system_prompt (line 265) | async def test_anthropic_prompt_caching_middleware_async_with_system_pro... function test_anthropic_prompt_caching_middleware_async_default_values (line 303) | async def test_anthropic_prompt_caching_middleware_async_default_values(... class TestSystemMessageCaching (line 340) | class TestSystemMessageCaching: method _make_request (line 343) | def _make_request( method _run (line 363) | def _run(self, request: ModelRequest) -> ModelRequest: method _get_content_blocks (line 376) | def _get_content_blocks(self, result: ModelRequest) -> list[dict[str, ... method test_tags_last_block_of_string_system_message (line 382) | def test_tags_last_block_of_string_system_message(self) -> None: method test_tags_only_last_block_of_multi_block_system_message (line 389) | def test_tags_only_last_block_of_multi_block_system_message(self) -> N... method test_does_not_mutate_original_system_message (line 403) | def test_does_not_mutate_original_system_message(self) -> None: method test_passes_through_when_no_system_message (line 412) | def test_passes_through_when_no_system_message(self) -> None: method test_passes_through_when_system_message_has_empty_string (line 416) | def test_passes_through_when_system_message_has_empty_string(self) -> ... method test_passes_through_when_system_message_has_empty_list (line 422) | def test_passes_through_when_system_message_has_empty_list(self) -> None: method test_preserves_non_text_block_types (line 428) | def test_preserves_non_text_block_types(self) -> None: method test_respects_custom_ttl (line 441) | def test_respects_custom_ttl(self) -> None: class TestToolCaching (line 457) | class TestToolCaching: method _make_request (line 460) | def _make_request( method _run (line 480) | def _run(self, request: ModelRequest) -> ModelRequest: method test_tags_only_last_tool_with_cache_control (line 493) | def test_tags_only_last_tool_with_cache_control(self) -> None: method test_does_not_mutate_original_tools (line 515) | def test_does_not_mutate_original_tools(self) -> None: method test_preserves_existing_extras (line 525) | def test_preserves_existing_extras(self) -> None: method test_passes_through_empty_tools (line 542) | def test_passes_through_empty_tools(self) -> None: method test_passes_through_none_tools (line 546) | def test_passes_through_none_tools(self) -> None: method test_respects_custom_ttl (line 550) | def test_respects_custom_ttl(self) -> None: FILE: libs/partners/anthropic/tests/unit_tests/test_chat_models.py function test_initialization (line 41) | def test_initialization() -> None: function test_user_agent_header_in_client_params (line 58) | def test_user_agent_header_in_client_params() -> None: function test_streaming_attribute_should_stream (line 68) | def test_streaming_attribute_should_stream(async_api: bool) -> None: # ... function test_anthropic_client_caching (line 73) | def test_anthropic_client_caching() -> None: function test_anthropic_proxy_support (line 89) | def test_anthropic_proxy_support() -> None: function test_anthropic_proxy_from_environment (line 110) | def test_anthropic_proxy_from_environment() -> None: function test_set_default_max_tokens (line 132) | def test_set_default_max_tokens() -> None: function test_anthropic_model_name_param (line 168) | def test_anthropic_model_name_param() -> None: function test_anthropic_model_param (line 174) | def test_anthropic_model_param() -> None: function test_anthropic_model_kwargs (line 180) | def test_anthropic_model_kwargs() -> None: function test_anthropic_fields_in_model_kwargs (line 186) | def test_anthropic_fields_in_model_kwargs() -> None: function test_anthropic_incorrect_field (line 195) | def test_anthropic_incorrect_field() -> None: function test_anthropic_initialization (line 202) | def test_anthropic_initialization() -> None: function test__format_output (line 209) | def test__format_output() -> None: function test__format_output_cached (line 235) | def test__format_output_cached() -> None: function test__merge_messages (line 267) | def test__merge_messages() -> None: function test__merge_messages_mutation (line 408) | def test__merge_messages_mutation() -> None: function test__merge_messages_tool_message_cache_control (line 427) | def test__merge_messages_tool_message_cache_control() -> None: function test__format_image (line 512) | def test__format_image() -> None: function pydantic (line 519) | def pydantic() -> type[BaseModel]: function function (line 530) | def function() -> Callable: function dummy_tool (line 544) | def dummy_tool() -> BaseTool: function json_schema (line 561) | def json_schema() -> dict: function openai_function (line 579) | def openai_function() -> dict: function test_convert_to_anthropic_tool (line 598) | def test_convert_to_anthropic_tool( function test__format_messages_with_tool_calls (line 627) | def test__format_messages_with_tool_calls() -> None: function test__format_tool_use_block (line 770) | def test__format_tool_use_block() -> None: function test__format_messages_with_str_content_and_tool_calls (line 811) | def test__format_messages_with_str_content_and_tool_calls() -> None: function test__format_messages_with_list_content_and_tool_calls (line 855) | def test__format_messages_with_list_content_and_tool_calls() -> None: function test__format_messages_with_tool_use_blocks_and_tool_calls (line 900) | def test__format_messages_with_tool_use_blocks_and_tool_calls() -> None: function test__format_messages_with_cache_control (line 952) | def test__format_messages_with_cache_control() -> None: function test__format_messages_with_citations (line 1205) | def test__format_messages_with_citations() -> None: function test__format_messages_openai_image_format (line 1242) | def test__format_messages_openai_image_format() -> None: function test__format_messages_with_multiple_system (line 1292) | def test__format_messages_with_multiple_system() -> None: function test_anthropic_api_key_is_secret_string (line 1314) | def test_anthropic_api_key_is_secret_string() -> None: function test_anthropic_api_key_masked_when_passed_from_env (line 1323) | def test_anthropic_api_key_masked_when_passed_from_env( function test_anthropic_api_key_masked_when_passed_via_constructor (line 1338) | def test_anthropic_api_key_masked_when_passed_via_constructor( function test_anthropic_uses_actual_secret_value_from_secretstr (line 1352) | def test_anthropic_uses_actual_secret_value_from_secretstr() -> None: class GetWeather (line 1364) | class GetWeather(BaseModel): function test_anthropic_bind_tools_tool_choice (line 1370) | def test_anthropic_bind_tools_tool_choice() -> None: function test_fine_grained_tool_streaming_beta (line 1401) | def test_fine_grained_tool_streaming_beta() -> None: function test_optional_description (line 1451) | def test_optional_description() -> None: function test_get_num_tokens_from_messages_passes_kwargs (line 1460) | def test_get_num_tokens_from_messages_passes_kwargs() -> None: function test_usage_metadata_standardization (line 1484) | def test_usage_metadata_standardization() -> None: function test_usage_metadata_cache_creation_ttl (line 1523) | def test_usage_metadata_cache_creation_ttl() -> None: class FakeTracer (line 1649) | class FakeTracer(BaseTracer): method __init__ (line 1652) | def __init__(self) -> None: method _persist_run (line 1656) | def _persist_run(self, run: Run) -> None: method on_chat_model_start (line 1659) | def on_chat_model_start(self, *args: Any, **kwargs: Any) -> Run: function test_mcp_tracing (line 1664) | def test_mcp_tracing() -> None: function test_cache_control_kwarg (line 1710) | def test_cache_control_kwarg() -> None: function test_context_management_in_payload (line 1726) | def test_context_management_in_payload() -> None: function test_inference_geo_in_payload (line 1742) | def test_inference_geo_in_payload() -> None: function test_anthropic_model_params (line 1749) | def test_anthropic_model_params() -> None: function test_streaming_cache_token_reporting (line 1765) | def test_streaming_cache_token_reporting() -> None: function test_strict_tool_use (line 1838) | def test_strict_tool_use() -> None: function test_response_format_with_output_config (line 1853) | def test_response_format_with_output_config() -> None: function test_strict_tool_use_payload (line 1880) | def test_strict_tool_use_payload() -> None: function test_auto_append_betas_for_tool_types (line 1905) | def test_auto_append_betas_for_tool_types() -> None: function test_tool_search_is_builtin_tool (line 1980) | def test_tool_search_is_builtin_tool() -> None: function test_tool_search_beta_headers (line 2005) | def test_tool_search_beta_headers() -> None: function test_tool_search_with_deferred_tools (line 2049) | def test_tool_search_with_deferred_tools() -> None: function test_tool_search_result_formatting (line 2097) | def test_tool_search_result_formatting() -> None: function test_auto_append_betas_for_mcp_servers (line 2145) | def test_auto_append_betas_for_mcp_servers() -> None: function test_profile (line 2229) | def test_profile() -> None: function test_profile_1m_context_beta (line 2253) | def test_profile_1m_context_beta() -> None: function test_model_profile_not_blocking (line 2270) | async def test_model_profile_not_blocking() -> None: function test_effort_parameter_validation (line 2276) | def test_effort_parameter_validation() -> None: function test_effort_in_output_config_payload (line 2299) | def test_effort_in_output_config_payload() -> None: function test_effort_in_output_config (line 2309) | def test_effort_in_output_config() -> None: function test_effort_priority (line 2319) | def test_effort_priority() -> None: function test_output_config_without_effort (line 2332) | def test_output_config_without_effort() -> None: function test_extras_with_defer_loading (line 2343) | def test_extras_with_defer_loading() -> None: function test_extras_with_cache_control (line 2371) | def test_extras_with_cache_control() -> None: function test_extras_with_fine_grained_streaming (line 2397) | def test_extras_with_fine_grained_streaming() -> None: function test_extras_with_input_examples (line 2420) | def test_extras_with_input_examples() -> None: function test_extras_with_multiple_fields (line 2462) | def test_extras_with_multiple_fields() -> None: function test__format_messages_filters_non_anthropic_blocks (line 2497) | def test__format_messages_filters_non_anthropic_blocks(block_type: str) ... function test__format_messages_trailing_whitespace (line 2516) | def test__format_messages_trailing_whitespace() -> None: function test_context_overflow_error_invoke_sync (line 2550) | def test_context_overflow_error_invoke_sync() -> None: function test_context_overflow_error_invoke_async (line 2564) | async def test_context_overflow_error_invoke_async() -> None: function test_context_overflow_error_stream_sync (line 2578) | def test_context_overflow_error_stream_sync() -> None: function test_context_overflow_error_stream_async (line 2592) | async def test_context_overflow_error_stream_async() -> None: function test_context_overflow_error_backwards_compatibility (line 2607) | def test_context_overflow_error_backwards_compatibility() -> None: function test_bind_tools_drops_forced_tool_choice_when_thinking_enabled (line 2623) | def test_bind_tools_drops_forced_tool_choice_when_thinking_enabled() -> ... function test_bind_tools_drops_forced_tool_choice_when_adaptive_thinking (line 2679) | def test_bind_tools_drops_forced_tool_choice_when_adaptive_thinking() ->... function test_bind_tools_keeps_forced_tool_choice_when_thinking_disabled (line 2730) | def test_bind_tools_keeps_forced_tool_choice_when_thinking_disabled() ->... function test_thinking_in_params_recognizes_adaptive (line 2760) | def test_thinking_in_params_recognizes_adaptive() -> None: FILE: libs/partners/anthropic/tests/unit_tests/test_client_utils.py function test_sync_client_without_proxy (line 11) | def test_sync_client_without_proxy() -> None: function test_sync_client_with_proxy (line 19) | def test_sync_client_with_proxy() -> None: function test_async_client_without_proxy (line 32) | def test_async_client_without_proxy() -> None: function test_async_client_with_proxy (line 39) | def test_async_client_with_proxy() -> None: function test_client_proxy_none_value (line 50) | def test_client_proxy_none_value() -> None: FILE: libs/partners/anthropic/tests/unit_tests/test_imports.py function test_all_imports (line 11) | def test_all_imports() -> None: FILE: libs/partners/anthropic/tests/unit_tests/test_llms.py function test_anthropic_model_params (line 8) | def test_anthropic_model_params() -> None: FILE: libs/partners/anthropic/tests/unit_tests/test_output_parsers.py class _Foo1 (line 25) | class _Foo1(BaseModel): class _Foo2 (line 29) | class _Foo2(BaseModel): function test_tools_output_parser (line 33) | def test_tools_output_parser() -> None: function test_tools_output_parser_args_only (line 55) | def test_tools_output_parser_args_only() -> None: function test_tools_output_parser_first_tool_only (line 69) | def test_tools_output_parser_first_tool_only() -> None: function test_tools_output_parser_pydantic (line 86) | def test_tools_output_parser_pydantic() -> None: function test_tools_output_parser_empty_content (line 93) | def test_tools_output_parser_empty_content() -> None: FILE: libs/partners/anthropic/tests/unit_tests/test_standard.py class TestAnthropicStandard (line 13) | class TestAnthropicStandard(ChatModelUnitTests): method chat_model_class (line 17) | def chat_model_class(self) -> type[BaseChatModel]: method chat_model_params (line 21) | def chat_model_params(self) -> dict: method init_from_env_params (line 25) | def init_from_env_params(self) -> tuple[dict, dict, dict]: function test_init_time_with_client (line 34) | def test_init_time_with_client(benchmark: BenchmarkFixture) -> None: FILE: libs/partners/deepseek/langchain_deepseek/chat_models.py function _get_default_model_profile (line 42) | def _get_default_model_profile(model_name: str) -> ModelProfile: class ChatDeepSeek (line 47) | class ChatDeepSeek(BaseChatOpenAI): method _is_azure_endpoint (line 203) | def _is_azure_endpoint(self) -> bool: method _llm_type (line 209) | def _llm_type(self) -> str: method lc_secrets (line 214) | def lc_secrets(self) -> dict[str, str]: method _get_ls_params (line 218) | def _get_ls_params( method validate_environment (line 228) | def validate_environment(self) -> Self: method _resolve_model_profile (line 261) | def _resolve_model_profile(self) -> ModelProfile | None: method _get_request_payload (line 264) | def _get_request_payload( method _create_chat_result (line 299) | def _create_chat_result( method _convert_chunk_to_generation_chunk (line 331) | def _convert_chunk_to_generation_chunk( method _stream (line 363) | def _stream( method _generate (line 388) | def _generate( method bind_tools (line 413) | def bind_tools( method with_structured_output (line 457) | def with_structured_output( FILE: libs/partners/deepseek/tests/integration_tests/test_chat_models.py class TestChatDeepSeek (line 16) | class TestChatDeepSeek(ChatModelIntegrationTests): method chat_model_class (line 20) | def chat_model_class(self) -> type[ChatDeepSeek]: method chat_model_params (line 25) | def chat_model_params(self) -> dict: method supports_json_mode (line 33) | def supports_json_mode(self) -> bool: method test_tool_message_histories_list_content (line 38) | def test_tool_message_histories_list_content( function test_reasoning_content (line 48) | def test_reasoning_content() -> None: function test_reasoning_content_streaming (line 66) | def test_reasoning_content_streaming() -> None: FILE: libs/partners/deepseek/tests/integration_tests/test_compile.py function test_placeholder (line 7) | def test_placeholder() -> None: FILE: libs/partners/deepseek/tests/unit_tests/test_chat_models.py class MockOpenAIResponse (line 20) | class MockOpenAIResponse(BaseModel): method model_dump (line 26) | def model_dump( # type: ignore[override] class TestChatDeepSeekUnit (line 66) | class TestChatDeepSeekUnit(ChatModelUnitTests): method chat_model_class (line 70) | def chat_model_class(self) -> type[ChatDeepSeek]: method init_from_env_params (line 75) | def init_from_env_params(self) -> tuple[dict, dict, dict]: method chat_model_params (line 92) | def chat_model_params(self) -> dict: method get_chat_model (line 99) | def get_chat_model(self) -> ChatDeepSeek: class TestChatDeepSeekCustomUnit (line 104) | class TestChatDeepSeekCustomUnit: method test_base_url_alias (line 107) | def test_base_url_alias(self) -> None: method test_create_chat_result_with_reasoning_content (line 116) | def test_create_chat_result_with_reasoning_content(self) -> None: method test_create_chat_result_with_model_extra_reasoning (line 134) | def test_create_chat_result_with_model_extra_reasoning(self) -> None: method test_convert_chunk_with_reasoning_content (line 156) | def test_convert_chunk_with_reasoning_content(self) -> None: method test_convert_chunk_with_reasoning (line 183) | def test_convert_chunk_with_reasoning(self) -> None: method test_convert_chunk_without_reasoning (line 210) | def test_convert_chunk_without_reasoning(self) -> None: method test_convert_chunk_with_empty_delta (line 225) | def test_convert_chunk_with_empty_delta(self) -> None: method test_get_request_payload (line 240) | def test_get_request_payload(self) -> None: class SampleTool (line 257) | class SampleTool(PydanticBaseModel): class TestChatDeepSeekStrictMode (line 263) | class TestChatDeepSeekStrictMode: method test_bind_tools_with_strict_mode_uses_beta_endpoint (line 271) | def test_bind_tools_with_strict_mode_uses_beta_endpoint(self) -> None: method test_bind_tools_without_strict_mode_uses_default_endpoint (line 289) | def test_bind_tools_without_strict_mode_uses_default_endpoint(self) ->... method test_with_structured_output_strict_mode_uses_beta_endpoint (line 304) | def test_with_structured_output_strict_mode_uses_beta_endpoint(self) -... class TestChatDeepSeekAzureToolChoice (line 321) | class TestChatDeepSeekAzureToolChoice: method _get_azure_model (line 333) | def _get_azure_model( method test_is_azure_endpoint_detection (line 344) | def test_is_azure_endpoint_detection(self) -> None: method test_payload_converts_dict_tool_choice_on_azure (line 372) | def test_payload_converts_dict_tool_choice_on_azure(self) -> None: method test_payload_preserves_string_tool_choice_on_azure (line 388) | def test_payload_preserves_string_tool_choice_on_azure(self) -> None: method test_payload_preserves_dict_tool_choice_on_non_azure (line 404) | def test_payload_preserves_dict_tool_choice_on_non_azure(self) -> None: method test_with_structured_output_on_azure (line 419) | def test_with_structured_output_on_azure(self) -> None: method test_bind_tools_azure_with_strict_mode (line 428) | def test_bind_tools_azure_with_strict_mode(self) -> None: function test_profile (line 435) | def test_profile() -> None: FILE: libs/partners/exa/langchain_exa/_utilities.py function initialize_client (line 7) | def initialize_client(values: dict) -> dict: FILE: libs/partners/exa/langchain_exa/retrievers.py function _get_metadata (line 20) | def _get_metadata(result: Any) -> dict[str, Any]: class ExaSearchRetriever (line 39) | class ExaSearchRetriever(BaseRetriever): method validate_environment (line 78) | def validate_environment(cls, values: dict) -> Any: method _get_relevant_documents (line 82) | def _get_relevant_documents( FILE: libs/partners/exa/langchain_exa/tools.py class ExaSearchResults (line 21) | class ExaSearchResults(BaseTool): # type: ignore[override] method validate_environment (line 97) | def validate_environment(cls, values: dict) -> Any: method _run (line 101) | def _run( class ExaFindSimilarResults (line 164) | class ExaFindSimilarResults(BaseTool): # type: ignore[override] method validate_environment (line 179) | def validate_environment(cls, values: dict) -> Any: method _run (line 183) | def _run( FILE: libs/partners/exa/tests/integration_tests/test_compile.py function test_placeholder (line 7) | def test_placeholder() -> None: FILE: libs/partners/exa/tests/integration_tests/test_find_similar_tool.py function test_similarity_tool (line 8) | def test_similarity_tool() -> None: FILE: libs/partners/exa/tests/integration_tests/test_retriever.py function test_exa_retriever (line 10) | def test_exa_retriever() -> None: function test_exa_retriever_highlights (line 20) | def test_exa_retriever_highlights() -> None: function test_exa_retriever_advanced_features (line 35) | def test_exa_retriever_advanced_features() -> None: FILE: libs/partners/exa/tests/integration_tests/test_search_tool.py function test_search_tool (line 8) | def test_search_tool() -> None: function test_search_tool_advanced_features (line 16) | def test_search_tool_advanced_features() -> None: FILE: libs/partners/exa/tests/unit_tests/test_imports.py function test_all_imports (line 14) | def test_all_imports() -> None: FILE: libs/partners/exa/tests/unit_tests/test_standard.py function test_exa_retriever_init_time (line 10) | def test_exa_retriever_init_time(benchmark: BenchmarkFixture) -> None: FILE: libs/partners/fireworks/langchain_fireworks/_compat.py function _convert_from_v1_to_chat_completions (line 8) | def _convert_from_v1_to_chat_completions(message: AIMessage) -> AIMessage: FILE: libs/partners/fireworks/langchain_fireworks/chat_models.py function _get_default_model_profile (line 94) | def _get_default_model_profile(model_name: str) -> ModelProfile: function _convert_dict_to_message (line 99) | def _convert_dict_to_message(_dict: Mapping[str, Any]) -> BaseMessage: function _convert_message_to_dict (line 158) | def _convert_message_to_dict(message: BaseMessage) -> dict: function _convert_chunk_to_message_chunk (line 219) | def _convert_chunk_to_message_chunk( class ChatFireworks (line 281) | class ChatFireworks(BaseChatModel): method lc_secrets (line 299) | def lc_secrets(self) -> dict[str, str]: method get_lc_namespace (line 303) | def get_lc_namespace(cls) -> list[str]: method lc_attributes (line 312) | def lc_attributes(self) -> dict[str, Any]: method is_lc_serializable (line 320) | def is_lc_serializable(cls) -> bool: method model (line 332) | def model(self) -> str: method build_extra (line 393) | def build_extra(cls, values: dict[str, Any]) -> Any: method validate_environment (line 399) | def validate_environment(self) -> Self: method _resolve_model_profile (line 427) | def _resolve_model_profile(self) -> ModelProfile | None: method _default_params (line 431) | def _default_params(self) -> dict[str, Any]: method _get_ls_params (line 446) | def _get_ls_params( method _combine_llm_outputs (line 463) | def _combine_llm_outputs(self, llm_outputs: list[dict | None]) -> dict: method _stream (line 484) | def _stream( method _generate (line 519) | def _generate( method _create_message_dicts (line 542) | def _create_message_dicts( method _create_chat_result (line 551) | def _create_chat_result(self, response: dict | BaseModel) -> ChatResult: method _astream (line 580) | async def _astream( method _agenerate (line 617) | async def _agenerate( method _identifying_params (line 642) | def _identifying_params(self) -> dict[str, Any]: method _get_invocation_params (line 646) | def _get_invocation_params( method _llm_type (line 658) | def _llm_type(self) -> str: method bind_tools (line 662) | def bind_tools( method with_structured_output (line 711) | def with_structured_output( function _is_pydantic_class (line 1059) | def _is_pydantic_class(obj: Any) -> bool: function _lc_tool_call_to_fireworks_tool_call (line 1063) | def _lc_tool_call_to_fireworks_tool_call(tool_call: ToolCall) -> dict: function _lc_invalid_tool_call_to_fireworks_tool_call (line 1074) | def _lc_invalid_tool_call_to_fireworks_tool_call( FILE: libs/partners/fireworks/langchain_fireworks/embeddings.py class FireworksEmbeddings (line 8) | class FireworksEmbeddings(BaseModel, Embeddings): method validate_environment (line 90) | def validate_environment(self) -> Self: method embed_documents (line 98) | def embed_documents(self, texts: list[str]) -> list[list[float]]: method embed_query (line 105) | def embed_query(self, text: str) -> list[float]: FILE: libs/partners/fireworks/langchain_fireworks/llms.py class Fireworks (line 24) | class Fireworks(LLM): method build_extra (line 96) | def build_extra(cls, values: dict[str, Any]) -> Any: method _llm_type (line 102) | def _llm_type(self) -> str: method _format_output (line 106) | def _format_output(self, output: dict) -> str: method get_user_agent (line 110) | def get_user_agent() -> str: method default_params (line 114) | def default_params(self) -> dict[str, Any]: method _call (line 124) | def _call( method _acall (line 177) | async def _acall( FILE: libs/partners/fireworks/tests/integration_tests/test_chat_models.py function test_tool_choice_bool (line 22) | def test_tool_choice_bool(strict: bool | None) -> None: # noqa: FBT001 function test_astream (line 60) | async def test_astream() -> None: function test_abatch_tags (line 97) | async def test_abatch_tags() -> None: function test_ainvoke (line 108) | async def test_ainvoke() -> None: function test_invoke (line 116) | def test_invoke() -> None: function _get_joke_class (line 125) | def _get_joke_class( function test_structured_output_json_schema (line 159) | def test_structured_output_json_schema(schema_type: str) -> None: FILE: libs/partners/fireworks/tests/integration_tests/test_compile.py function test_placeholder (line 5) | def test_placeholder() -> None: FILE: libs/partners/fireworks/tests/integration_tests/test_embeddings.py function test_langchain_fireworks_embedding_documents (line 6) | def test_langchain_fireworks_embedding_documents() -> None: function test_langchain_fireworks_embedding_query (line 15) | def test_langchain_fireworks_embedding_query() -> None: FILE: libs/partners/fireworks/tests/integration_tests/test_llms.py function test_fireworks_call (line 19) | def test_fireworks_call() -> None: function test_fireworks_acall (line 33) | async def test_fireworks_acall() -> None: function test_stream (line 48) | def test_stream() -> None: function test_astream (line 56) | async def test_astream() -> None: function test_abatch (line 64) | async def test_abatch() -> None: function test_abatch_tags (line 73) | async def test_abatch_tags() -> None: function test_batch (line 84) | def test_batch() -> None: function test_ainvoke (line 93) | async def test_ainvoke() -> None: function test_invoke (line 101) | def test_invoke() -> None: FILE: libs/partners/fireworks/tests/integration_tests/test_standard.py class TestFireworksStandard (line 13) | class TestFireworksStandard(ChatModelIntegrationTests): method chat_model_class (line 15) | def chat_model_class(self) -> type[BaseChatModel]: method chat_model_params (line 19) | def chat_model_params(self) -> dict: method test_tool_message_histories_list_content (line 26) | def test_tool_message_histories_list_content( method supports_json_mode (line 32) | def supports_json_mode(self) -> bool: FILE: libs/partners/fireworks/tests/unit_tests/test_chat_models.py function test_fireworks_model_param (line 11) | def test_fireworks_model_param() -> None: function test_convert_dict_to_message_with_reasoning_content (line 20) | def test_convert_dict_to_message_with_reasoning_content() -> None: function test_convert_dict_to_message_without_reasoning_content (line 37) | def test_convert_dict_to_message_without_reasoning_content() -> None: FILE: libs/partners/fireworks/tests/unit_tests/test_embeddings.py function test_initialization (line 6) | def test_initialization() -> None: FILE: libs/partners/fireworks/tests/unit_tests/test_embeddings_standard.py class TestFireworksStandard (line 9) | class TestFireworksStandard(EmbeddingsUnitTests): method embeddings_class (line 11) | def embeddings_class(self) -> type[Embeddings]: method embeddings_params (line 15) | def embeddings_params(self) -> dict: method init_from_env_params (line 19) | def init_from_env_params(self) -> tuple[dict, dict, dict]: FILE: libs/partners/fireworks/tests/unit_tests/test_imports.py function test_all_imports (line 11) | def test_all_imports() -> None: FILE: libs/partners/fireworks/tests/unit_tests/test_llms.py function test_fireworks_api_key_is_secret_string (line 11) | def test_fireworks_api_key_is_secret_string() -> None: function test_fireworks_api_key_masked_when_passed_from_env (line 31) | def test_fireworks_api_key_masked_when_passed_from_env( function test_fireworks_api_key_masked_when_passed_via_constructor (line 47) | def test_fireworks_api_key_masked_when_passed_via_constructor( function test_fireworks_uses_actual_secret_value_from_secretstr (line 63) | def test_fireworks_uses_actual_secret_value_from_secretstr() -> None: function test_fireworks_model_params (line 74) | def test_fireworks_model_params() -> None: FILE: libs/partners/fireworks/tests/unit_tests/test_standard.py class TestFireworksStandard (line 11) | class TestFireworksStandard(ChatModelUnitTests): method chat_model_class (line 13) | def chat_model_class(self) -> type[BaseChatModel]: method chat_model_params (line 17) | def chat_model_params(self) -> dict: method init_from_env_params (line 24) | def init_from_env_params(self) -> tuple[dict, dict, dict]: function test_profile (line 40) | def test_profile() -> None: FILE: libs/partners/groq/langchain_groq/_compat.py function _convert_from_v1_to_groq (line 9) | def _convert_from_v1_to_groq( FILE: libs/partners/groq/langchain_groq/chat_models.py function _get_default_model_profile (line 86) | def _get_default_model_profile(model_name: str) -> ModelProfile: class ChatGroq (line 91) | class ChatGroq(BaseChatModel): method model (line 361) | def model(self) -> str: method build_extra (line 470) | def build_extra(cls, values: dict[str, Any]) -> Any: method validate_environment (line 499) | def validate_environment(self) -> Self: method _resolve_model_profile (line 546) | def _resolve_model_profile(self) -> ModelProfile | None: method lc_secrets (line 553) | def lc_secrets(self) -> dict[str, str]: method is_lc_serializable (line 558) | def is_lc_serializable(cls) -> bool: method _llm_type (line 566) | def _llm_type(self) -> str: method _get_ls_params (line 570) | def _get_ls_params( method _should_stream (line 587) | def _should_stream( method _generate (line 610) | def _generate( method _agenerate (line 630) | async def _agenerate( method _stream (line 651) | def _stream( method _astream (line 703) | async def _astream( method _default_params (line 763) | def _default_params(self) -> dict[str, Any]: method _create_chat_result (line 780) | def _create_chat_result( method _create_message_dicts (line 810) | def _create_message_dicts( method _combine_llm_outputs (line 819) | def _combine_llm_outputs(self, llm_outputs: list[dict | None]) -> dict: method bind_tools (line 855) | def bind_tools( method with_structured_output (line 904) | def with_structured_output( function _is_pydantic_class (line 1291) | def _is_pydantic_class(obj: Any) -> bool: function _format_message_content (line 1298) | def _format_message_content(content: Any) -> Any: function _convert_message_to_dict (line 1321) | def _convert_message_to_dict(message: BaseMessage) -> dict: function _convert_chunk_to_message_chunk (line 1411) | def _convert_chunk_to_message_chunk( function _convert_dict_to_message (line 1478) | def _convert_dict_to_message(_dict: Mapping[str, Any]) -> BaseMessage: function _lc_tool_call_to_groq_tool_call (line 1544) | def _lc_tool_call_to_groq_tool_call(tool_call: ToolCall) -> dict: function _lc_invalid_tool_call_to_groq_tool_call (line 1555) | def _lc_invalid_tool_call_to_groq_tool_call( function _create_usage_metadata (line 1568) | def _create_usage_metadata(groq_token_usage: dict) -> UsageMetadata: FILE: libs/partners/groq/tests/conftest.py function remove_request_headers (line 8) | def remove_request_headers(request: Any) -> Any: function remove_response_headers (line 14) | def remove_response_headers(response: dict) -> dict: function vcr_config (line 21) | def vcr_config() -> dict: function pytest_recording_configure (line 32) | def pytest_recording_configure(config: dict, vcr: VCR) -> None: FILE: libs/partners/groq/tests/integration_tests/test_chat_models.py function test_invoke (line 37) | def test_invoke() -> None: function test_ainvoke (line 59) | async def test_ainvoke() -> None: function test_batch (line 69) | def test_batch() -> None: function test_abatch (line 80) | async def test_abatch() -> None: function test_stream (line 91) | async def test_stream() -> None: function test_astream (line 101) | async def test_astream() -> None: function test_generate (line 141) | def test_generate() -> None: function test_agenerate (line 160) | async def test_agenerate() -> None: function test_invoke_streaming (line 182) | def test_invoke_streaming() -> None: function test_agenerate_streaming (line 199) | async def test_agenerate_streaming() -> None: function test_reasoning_output_invoke (line 227) | def test_reasoning_output_invoke() -> None: function test_reasoning_output_stream (line 246) | def test_reasoning_output_stream() -> None: function test_reasoning_effort_none (line 276) | def test_reasoning_effort_none() -> None: function test_reasoning_effort_levels (line 291) | def test_reasoning_effort_levels(effort: str) -> None: function test_reasoning_effort_invoke_override (line 307) | def test_reasoning_effort_invoke_override(effort: str) -> None: function test_reasoning_effort_invoke_override_different_level (line 323) | def test_reasoning_effort_invoke_override_different_level() -> None: function test_reasoning_effort_streaming (line 341) | def test_reasoning_effort_streaming() -> None: function test_streaming_generation_info (line 366) | def test_streaming_generation_info() -> None: function test_system_message (line 394) | def test_system_message() -> None: function test_tool_choice (line 404) | def test_tool_choice() -> None: function test_tool_choice_bool (line 434) | def test_tool_choice_bool() -> None: function test_streaming_tool_call (line 459) | def test_streaming_tool_call() -> None: function test_astreaming_tool_call (line 497) | async def test_astreaming_tool_call() -> None: function test_json_mode_structured_output (line 535) | def test_json_mode_structured_output() -> None: function test_setting_service_tier_class (line 555) | def test_setting_service_tier_class() -> None: function test_setting_service_tier_request (line 588) | def test_setting_service_tier_request() -> None: function test_setting_service_tier_streaming (line 646) | def test_setting_service_tier_streaming() -> None: function test_setting_service_tier_request_async (line 662) | async def test_setting_service_tier_request_async() -> None: function test_web_search (line 671) | def test_web_search() -> None: function test_web_search_v1 (line 705) | def test_web_search_v1() -> None: function test_code_interpreter (line 739) | def test_code_interpreter() -> None: function test_code_interpreter_v1 (line 775) | def test_code_interpreter_v1() -> None: FILE: libs/partners/groq/tests/integration_tests/test_compile.py function test_placeholder (line 5) | def test_placeholder() -> None: FILE: libs/partners/groq/tests/integration_tests/test_standard.py class TestGroq (line 17) | class TestGroq(ChatModelIntegrationTests): method chat_model_class (line 19) | def chat_model_class(self) -> type[BaseChatModel]: method chat_model_params (line 23) | def chat_model_params(self) -> dict: method test_bind_runnables_as_tools (line 30) | def test_bind_runnables_as_tools(self, model: BaseChatModel) -> None: method test_tool_calling (line 35) | def test_tool_calling(self, model: BaseChatModel) -> None: method test_tool_calling_async (line 40) | async def test_tool_calling_async(self, model: BaseChatModel) -> None: method test_tool_calling_with_no_arguments (line 45) | def test_tool_calling_with_no_arguments(self, model: BaseChatModel) ->... method supports_json_mode (line 49) | def supports_json_mode(self) -> bool: function test_json_schema (line 54) | def test_json_schema( FILE: libs/partners/groq/tests/unit_tests/fake/callbacks.py class BaseFakeCallbackHandler (line 14) | class BaseFakeCallbackHandler(BaseModel): class BaseFakeCallbackHandlerMixin (line 48) | class BaseFakeCallbackHandlerMixin(BaseFakeCallbackHandler): method on_llm_start_common (line 51) | def on_llm_start_common(self) -> None: method on_llm_end_common (line 55) | def on_llm_end_common(self) -> None: method on_llm_error_common (line 59) | def on_llm_error_common(self, *args: Any, **kwargs: Any) -> None: method on_llm_new_token_common (line 63) | def on_llm_new_token_common(self) -> None: method on_retry_common (line 66) | def on_retry_common(self) -> None: method on_chain_start_common (line 69) | def on_chain_start_common(self) -> None: method on_chain_end_common (line 73) | def on_chain_end_common(self) -> None: method on_chain_error_common (line 77) | def on_chain_error_common(self) -> None: method on_tool_start_common (line 80) | def on_tool_start_common(self) -> None: method on_tool_end_common (line 84) | def on_tool_end_common(self) -> None: method on_tool_error_common (line 88) | def on_tool_error_common(self) -> None: method on_agent_action_common (line 91) | def on_agent_action_common(self) -> None: method on_agent_finish_common (line 95) | def on_agent_finish_common(self) -> None: method on_chat_model_start_common (line 99) | def on_chat_model_start_common(self) -> None: method on_text_common (line 103) | def on_text_common(self) -> None: method on_retriever_start_common (line 106) | def on_retriever_start_common(self) -> None: method on_retriever_end_common (line 110) | def on_retriever_end_common(self) -> None: method on_retriever_error_common (line 114) | def on_retriever_error_common(self) -> None: class FakeCallbackHandler (line 119) | class FakeCallbackHandler(BaseCallbackHandler, BaseFakeCallbackHandlerMi... method ignore_llm (line 123) | def ignore_llm(self) -> bool: method ignore_chain (line 128) | def ignore_chain(self) -> bool: method ignore_agent (line 133) | def ignore_agent(self) -> bool: method ignore_retriever (line 138) | def ignore_retriever(self) -> bool: method on_llm_start (line 142) | def on_llm_start( method on_llm_new_token (line 149) | def on_llm_new_token( method on_llm_end (line 156) | def on_llm_end( method on_llm_error (line 163) | def on_llm_error( method on_retry (line 170) | def on_retry( method on_chain_start (line 177) | def on_chain_start( method on_chain_end (line 184) | def on_chain_end( method on_chain_error (line 191) | def on_chain_error( method on_tool_start (line 198) | def on_tool_start( method on_tool_end (line 205) | def on_tool_end( method on_tool_error (line 212) | def on_tool_error( method on_agent_action (line 219) | def on_agent_action( method on_agent_finish (line 226) | def on_agent_finish( method on_text (line 233) | def on_text( method on_retriever_start (line 240) | def on_retriever_start( method on_retriever_end (line 247) | def on_retriever_end( method on_retriever_error (line 254) | def on_retriever_error( method __deepcopy__ (line 262) | def __deepcopy__(self, memo: dict) -> FakeCallbackHandler: # type: ig... class FakeCallbackHandlerWithChatStart (line 266) | class FakeCallbackHandlerWithChatStart(FakeCallbackHandler): method on_chat_model_start (line 267) | def on_chat_model_start( class FakeAsyncCallbackHandler (line 280) | class FakeAsyncCallbackHandler(AsyncCallbackHandler, BaseFakeCallbackHan... method ignore_llm (line 284) | def ignore_llm(self) -> bool: method ignore_chain (line 289) | def ignore_chain(self) -> bool: method ignore_agent (line 294) | def ignore_agent(self) -> bool: method on_retry (line 298) | async def on_retry( method on_llm_start (line 305) | async def on_llm_start( method on_llm_new_token (line 312) | async def on_llm_new_token( method on_llm_end (line 319) | async def on_llm_end( method on_llm_error (line 326) | async def on_llm_error( method on_chain_start (line 333) | async def on_chain_start( method on_chain_end (line 340) | async def on_chain_end( method on_chain_error (line 347) | async def on_chain_error( method on_tool_start (line 354) | async def on_tool_start( method on_tool_end (line 361) | async def on_tool_end( method on_tool_error (line 368) | async def on_tool_error( method on_agent_action (line 375) | async def on_agent_action( method on_agent_finish (line 382) | async def on_agent_finish( method on_text (line 389) | async def on_text( method __deepcopy__ (line 397) | def __deepcopy__(self, memo: dict) -> FakeAsyncCallbackHandler: # typ... FILE: libs/partners/groq/tests/unit_tests/test_chat_models.py function test_groq_model_param (line 34) | def test_groq_model_param() -> None: function test_function_message_dict_to_function_message (line 43) | def test_function_message_dict_to_function_message() -> None: function test__convert_dict_to_message_human (line 58) | def test__convert_dict_to_message_human() -> None: function test__convert_dict_to_message_ai (line 65) | def test__convert_dict_to_message_ai() -> None: function test__convert_dict_to_message_tool_call (line 74) | def test__convert_dict_to_message_tool_call() -> None: function test__convert_dict_to_message_system (line 146) | def test__convert_dict_to_message_system() -> None: function mock_completion (line 154) | def mock_completion() -> dict: function test_groq_invoke (line 173) | def test_groq_invoke(mock_completion: dict) -> None: function test_groq_ainvoke (line 195) | async def test_groq_ainvoke(mock_completion: dict) -> None: function test_chat_groq_extra_kwargs (line 217) | def test_chat_groq_extra_kwargs() -> None: function test_chat_groq_invalid_streaming_params (line 249) | def test_chat_groq_invalid_streaming_params() -> None: function test_with_structured_output_json_schema_strict (line 261) | def test_with_structured_output_json_schema_strict() -> None: function test_with_structured_output_json_schema_strict_ignored_on_unsupported_model (line 284) | def test_with_structured_output_json_schema_strict_ignored_on_unsupporte... function test_chat_groq_secret (line 304) | def test_chat_groq_secret() -> None: function test_groq_serialization (line 315) | def test_groq_serialization() -> None: function test_create_usage_metadata_basic (line 343) | def test_create_usage_metadata_basic() -> None: function test_create_usage_metadata_responses_api_format (line 361) | def test_create_usage_metadata_responses_api_format() -> None: function test_create_usage_metadata_chat_completions_with_details (line 382) | def test_create_usage_metadata_chat_completions_with_details() -> None: function test_create_usage_metadata_with_cached_tokens (line 402) | def test_create_usage_metadata_with_cached_tokens() -> None: function test_create_usage_metadata_with_all_details (line 423) | def test_create_usage_metadata_with_all_details() -> None: function test_create_usage_metadata_missing_total_tokens (line 449) | def test_create_usage_metadata_missing_total_tokens() -> None: function test_create_usage_metadata_empty_details (line 463) | def test_create_usage_metadata_empty_details() -> None: function test_create_usage_metadata_zero_cached_tokens (line 481) | def test_create_usage_metadata_zero_cached_tokens() -> None: function test_create_usage_metadata_with_reasoning_tokens (line 498) | def test_create_usage_metadata_with_reasoning_tokens() -> None: function test_create_usage_metadata_with_cached_and_reasoning_tokens (line 519) | def test_create_usage_metadata_with_cached_and_reasoning_tokens() -> None: function test_create_usage_metadata_zero_reasoning_tokens (line 545) | def test_create_usage_metadata_zero_reasoning_tokens() -> None: function test_create_usage_metadata_empty_completion_details (line 562) | def test_create_usage_metadata_empty_completion_details() -> None: function test_chat_result_with_usage_metadata (line 579) | def test_chat_result_with_usage_metadata() -> None: function test_chat_result_with_reasoning_tokens (line 625) | def test_chat_result_with_reasoning_tokens() -> None: function test_chat_result_with_cached_and_reasoning_tokens (line 671) | def test_chat_result_with_cached_and_reasoning_tokens() -> None: function test_chat_result_backward_compatibility (line 719) | def test_chat_result_backward_compatibility() -> None: function test_streaming_with_usage_metadata (line 760) | def test_streaming_with_usage_metadata() -> None: function test_streaming_with_reasoning_tokens (line 804) | def test_streaming_with_reasoning_tokens() -> None: function test_streaming_with_cached_and_reasoning_tokens (line 848) | def test_streaming_with_cached_and_reasoning_tokens() -> None: function test_streaming_without_usage_metadata (line 894) | def test_streaming_without_usage_metadata() -> None: function test_combine_llm_outputs_with_token_details (line 920) | def test_combine_llm_outputs_with_token_details() -> None: function test_combine_llm_outputs_with_missing_details (line 960) | def test_combine_llm_outputs_with_missing_details() -> None: function test_profile (line 993) | def test_profile() -> None: function test_format_message_content_string (line 998) | def test_format_message_content_string() -> None: function test_format_message_content_none (line 1004) | def test_format_message_content_none() -> None: function test_format_message_content_empty_list (line 1010) | def test_format_message_content_empty_list() -> None: function test_format_message_content_text_and_image_url (line 1016) | def test_format_message_content_text_and_image_url() -> None: function test_format_message_content_langchain_image_base64 (line 1025) | def test_format_message_content_langchain_image_base64() -> None: function test_format_message_content_langchain_image_url (line 1037) | def test_format_message_content_langchain_image_url() -> None: function test_format_message_content_mixed (line 1046) | def test_format_message_content_mixed() -> None: FILE: libs/partners/groq/tests/unit_tests/test_imports.py function test_all_imports (line 6) | def test_all_imports() -> None: FILE: libs/partners/groq/tests/unit_tests/test_standard.py class TestGroqStandard (line 11) | class TestGroqStandard(ChatModelUnitTests): method chat_model_class (line 15) | def chat_model_class(self) -> type[BaseChatModel]: method chat_model_params (line 19) | def chat_model_params(self) -> dict: FILE: libs/partners/huggingface/langchain_huggingface/chat_models/huggingface.py function _get_default_model_profile (line 79) | def _get_default_model_profile(model_name: str) -> ModelProfile: class TGI_RESPONSE (line 85) | class TGI_RESPONSE: class TGI_MESSAGE (line 93) | class TGI_MESSAGE: function _lc_tool_call_to_hf_tool_call (line 101) | def _lc_tool_call_to_hf_tool_call(tool_call: ToolCall) -> dict: function _lc_invalid_tool_call_to_hf_tool_call (line 112) | def _lc_invalid_tool_call_to_hf_tool_call( function _convert_message_to_dict (line 125) | def _convert_message_to_dict(message: BaseMessage) -> dict: function _convert_dict_to_message (line 183) | def _convert_dict_to_message(_dict: Mapping[str, Any]) -> BaseMessage: function _is_huggingface_hub (line 236) | def _is_huggingface_hub(llm: Any) -> bool: function _convert_chunk_to_message_chunk (line 248) | def _convert_chunk_to_message_chunk( function _is_huggingface_textgen_inference (line 304) | def _is_huggingface_textgen_inference(llm: Any) -> bool: function _is_huggingface_endpoint (line 316) | def _is_huggingface_endpoint(llm: Any) -> bool: function _is_huggingface_pipeline (line 320) | def _is_huggingface_pipeline(llm: Any) -> bool: class ChatHuggingFace (line 324) | class ChatHuggingFace(BaseChatModel): method __init__ (line 530) | def __init__(self, **kwargs: Any): method _inherit_llm_properties (line 538) | def _inherit_llm_properties(self) -> None: method validate_llm (line 584) | def validate_llm(self) -> Self: method _resolve_model_profile (line 599) | def _resolve_model_profile(self) -> ModelProfile | None: method from_model_id (line 605) | def from_model_id( method _create_chat_result (line 695) | def _create_chat_result(self, response: dict) -> ChatResult: method _generate (line 721) | def _generate( method _agenerate (line 762) | async def _agenerate( method _should_stream_usage (line 801) | def _should_stream_usage( method _stream (line 820) | def _stream( method _astream (line 889) | async def _astream( method _to_chat_prompt (line 945) | def _to_chat_prompt( method _to_chatml_format (line 964) | def _to_chatml_format(self, message: BaseMessage) -> dict: method _to_chat_result (line 979) | def _to_chat_result(llm_result: LLMResult) -> ChatResult: method _resolve_model_id (line 992) | def _resolve_model_id(self) -> None: method bind_tools (line 1030) | def bind_tools( method with_structured_output (line 1088) | def with_structured_output( method _create_message_dicts (line 1219) | def _create_message_dicts( method _default_params (line 1229) | def _default_params(self) -> dict[str, Any]: method _llm_type (line 1244) | def _llm_type(self) -> str: FILE: libs/partners/huggingface/langchain_huggingface/embeddings/huggingface.py class HuggingFaceEmbeddings (line 18) | class HuggingFaceEmbeddings(BaseModel, Embeddings): method __init__ (line 64) | def __init__(self, **kwargs: Any): method _embed (line 107) | def _embed( method embed_documents (line 145) | def embed_documents(self, texts: list[str]) -> list[list[float]]: method embed_query (line 157) | def embed_query(self, text: str) -> list[float]: FILE: libs/partners/huggingface/langchain_huggingface/embeddings/huggingface_endpoint.py class HuggingFaceEndpointEmbeddings (line 15) | class HuggingFaceEndpointEmbeddings(BaseModel, Embeddings): method validate_environment (line 66) | def validate_environment(self) -> Self: method embed_documents (line 115) | def embed_documents(self, texts: list[str]) -> list[list[float]]: method aembed_documents (line 132) | async def aembed_documents(self, texts: list[str]) -> list[list[float]]: method embed_query (line 150) | def embed_query(self, text: str) -> list[float]: method aembed_query (line 162) | async def aembed_query(self, text: str) -> list[float]: FILE: libs/partners/huggingface/langchain_huggingface/llms/huggingface_endpoint.py function _is_huggingface_hosted_url (line 22) | def _is_huggingface_hosted_url(url: str | None) -> bool: class HuggingFaceEndpoint (line 38) | class HuggingFaceEndpoint(LLM): method build_extra (line 178) | def build_extra(cls, values: dict[str, Any]) -> Any: method validate_environment (line 241) | def validate_environment(self) -> Self: method _default_params (line 297) | def _default_params(self) -> dict[str, Any]: method _identifying_params (line 316) | def _identifying_params(self) -> Mapping[str, Any]: method _llm_type (line 327) | def _llm_type(self) -> str: method _invocation_params (line 331) | def _invocation_params( method _call (line 338) | def _call( method _acall (line 368) | async def _acall( method _stream (line 398) | def _stream( method _astream (line 435) | async def _astream( FILE: libs/partners/huggingface/langchain_huggingface/llms/huggingface_pipeline.py class HuggingFacePipeline (line 37) | class HuggingFacePipeline(BaseLLM): method pre_init_validator (line 96) | def pre_init_validator(cls, values: dict[str, Any]) -> dict[str, Any]: method from_model_id (line 106) | def from_model_id( method _identifying_params (line 304) | def _identifying_params(self) -> Mapping[str, Any]: method _llm_type (line 313) | def _llm_type(self) -> str: method _generate (line 316) | def _generate( method _stream (line 368) | def _stream( FILE: libs/partners/huggingface/langchain_huggingface/utils/import_utils.py function compare_versions (line 45) | def compare_versions( function is_optimum_available (line 76) | def is_optimum_available() -> bool: function is_optimum_intel_available (line 80) | def is_optimum_intel_available() -> bool: function is_ipex_available (line 84) | def is_ipex_available() -> bool: function is_openvino_available (line 88) | def is_openvino_available() -> bool: function is_optimum_version (line 92) | def is_optimum_version(operation: str, reference_version: str) -> bool: function is_optimum_intel_version (line 101) | def is_optimum_intel_version(operation: str, reference_version: str) -> ... FILE: libs/partners/huggingface/tests/integration_tests/test_chat_models.py function test_stream_usage (line 6) | def test_stream_usage() -> None: FILE: libs/partners/huggingface/tests/integration_tests/test_compile.py function test_placeholder (line 5) | def test_placeholder() -> None: FILE: libs/partners/huggingface/tests/integration_tests/test_embeddings_standard.py class TestHuggingFaceEmbeddings (line 11) | class TestHuggingFaceEmbeddings(EmbeddingsIntegrationTests): method embeddings_class (line 13) | def embeddings_class(self) -> type[HuggingFaceEmbeddings]: method embedding_model_params (line 17) | def embedding_model_params(self) -> dict: class TestHuggingFaceEndpointEmbeddings (line 21) | class TestHuggingFaceEndpointEmbeddings(EmbeddingsIntegrationTests): method embeddings_class (line 23) | def embeddings_class(self) -> type[HuggingFaceEndpointEmbeddings]: method embedding_model_params (line 27) | def embedding_model_params(self) -> dict: FILE: libs/partners/huggingface/tests/integration_tests/test_llms.py function test_huggingface_pipeline_streaming (line 6) | def test_huggingface_pipeline_streaming() -> None: FILE: libs/partners/huggingface/tests/integration_tests/test_standard.py class TestHuggingFaceEndpoint (line 13) | class TestHuggingFaceEndpoint(ChatModelIntegrationTests): method chat_model_class (line 15) | def chat_model_class(self) -> type[BaseChatModel]: method chat_model_params (line 19) | def chat_model_params(self) -> dict: method model (line 29) | def model(self, request: Any) -> BaseChatModel: method test_structured_output (line 36) | def test_structured_output( method test_structured_output_async (line 47) | async def test_structured_output_async( method test_structured_output_pydantic_2_v1 (line 55) | def test_structured_output_pydantic_2_v1(self, model: BaseChatModel) -... method test_structured_output_optional_param (line 59) | def test_structured_output_optional_param(self, model: BaseChatModel) ... method test_tool_message_histories_list_content (line 63) | def test_tool_message_histories_list_content( method has_tool_choice (line 71) | def has_tool_choice(self) -> bool: FILE: libs/partners/huggingface/tests/unit_tests/test_chat_models.py function mock_llm (line 23) | def mock_llm() -> Mock: function chat_hugging_face (line 44) | def chat_hugging_face(mock_resolve_id: Any, mock_llm: Any) -> ChatHuggin... function test_create_chat_result (line 48) | def test_create_chat_result(chat_hugging_face: Any) -> None: function test_to_chat_prompt_errors (line 79) | def test_to_chat_prompt_errors( function test_to_chat_prompt_valid_messages (line 87) | def test_to_chat_prompt_valid_messages(chat_hugging_face: Any) -> None: function test_to_chatml_format (line 123) | def test_to_chatml_format( function test_to_chatml_format_with_invalid_type (line 130) | def test_to_chatml_format_with_invalid_type(chat_hugging_face: Any) -> N... function test_convert_dict_to_message (line 162) | def test_convert_dict_to_message( function tool_mock (line 170) | def tool_mock() -> dict: function test_bind_tools_errors (line 193) | def test_bind_tools_errors( function test_bind_tools (line 209) | def test_bind_tools(chat_hugging_face: Any) -> None: function test_property_inheritance_integration (line 225) | def test_property_inheritance_integration(chat_hugging_face: Any) -> None: function test_default_params_includes_inherited_values (line 233) | def test_default_params_includes_inherited_values(chat_hugging_face: Any... function test_create_message_dicts_includes_inherited_params (line 241) | def test_create_message_dicts_includes_inherited_params(chat_hugging_fac... function test_model_kwargs_inheritance (line 257) | def test_model_kwargs_inheritance(mock_llm: Any) -> None: function test_huggingface_endpoint_specific_inheritance (line 266) | def test_huggingface_endpoint_specific_inheritance(mock_llm: Any) -> None: function test_parameter_precedence_explicit_over_inherited (line 283) | def test_parameter_precedence_explicit_over_inherited(mock_llm: Any) -> ... function test_inheritance_with_no_llm_properties (line 294) | def test_inheritance_with_no_llm_properties(mock_llm: Any) -> None: function test_inheritance_with_empty_llm (line 311) | def test_inheritance_with_empty_llm() -> None: function test_profile (line 330) | def test_profile() -> None: function test_init_chat_model_huggingface (line 342) | def test_init_chat_model_huggingface() -> None: FILE: libs/partners/huggingface/tests/unit_tests/test_huggingface_endpoint.py function test_is_huggingface_hosted_url (line 26) | def test_is_huggingface_hosted_url( function test_local_endpoint_does_not_pass_api_key (line 38) | def test_local_endpoint_does_not_pass_api_key( function test_huggingface_hosted_endpoint_keeps_api_key (line 63) | def test_huggingface_hosted_endpoint_keeps_api_key( FILE: libs/partners/huggingface/tests/unit_tests/test_huggingface_pipeline.py function test_initialization_default (line 8) | def test_initialization_default() -> None: function test_initialization_with_pipeline (line 16) | def test_initialization_with_pipeline(mock_pipeline: MagicMock) -> None: function test_initialization_with_from_model_id (line 30) | def test_initialization_with_from_model_id( FILE: libs/partners/mistralai/langchain_mistralai/_compat.py function _convert_from_v1_to_mistral (line 10) | def _convert_from_v1_to_mistral( function _convert_to_v1_from_mistral (line 46) | def _convert_to_v1_from_mistral(message: AIMessage) -> list[types.Conten... function translate_content (line 115) | def translate_content(message: AIMessage) -> list[types.ContentBlock]: function translate_content_chunk (line 120) | def translate_content_chunk(message: AIMessageChunk) -> list[types.Conte... FILE: libs/partners/mistralai/langchain_mistralai/chat_models.py function _get_default_model_profile (line 97) | def _get_default_model_profile(model_name: str) -> ModelProfile: function _create_retry_decorator (line 102) | def _create_retry_decorator( function _is_valid_mistral_tool_call_id (line 113) | def _is_valid_mistral_tool_call_id(tool_call_id: str) -> bool: function _base62_encode (line 118) | def _base62_encode(num: int) -> str: function _convert_tool_call_id_to_mistral_compatible (line 132) | def _convert_tool_call_id_to_mistral_compatible(tool_call_id: str) -> str: function _convert_mistral_chat_message_to_message (line 144) | def _convert_mistral_chat_message_to_message( function _raise_on_error (line 178) | def _raise_on_error(response: httpx.Response) -> None: function _araise_on_error (line 193) | async def _araise_on_error(response: httpx.Response) -> None: function _aiter_sse (line 208) | async def _aiter_sse( function acompletion_with_retry (line 220) | async def acompletion_with_retry( function _convert_chunk_to_message_chunk (line 245) | def _convert_chunk_to_message_chunk( function _format_tool_call_for_mistral (line 329) | def _format_tool_call_for_mistral(tool_call: ToolCall) -> dict: function _format_invalid_tool_call_for_mistral (line 343) | def _format_invalid_tool_call_for_mistral(invalid_tool_call: InvalidTool... function _clean_block (line 357) | def _clean_block(block: dict) -> dict: function _convert_message_to_mistral_chat_message (line 372) | def _convert_message_to_mistral_chat_message( class ChatMistralAI (line 460) | class ChatMistralAI(BaseChatModel): method build_extra (line 514) | def build_extra(cls, values: dict[str, Any]) -> Any: method _default_params (line 520) | def _default_params(self) -> dict[str, Any]: method _get_ls_params (line 533) | def _get_ls_params( method _client_params (line 551) | def _client_params(self) -> dict[str, Any]: method completion_with_retry (line 555) | def completion_with_retry( method _combine_llm_outputs (line 585) | def _combine_llm_outputs(self, llm_outputs: list[dict | None]) -> dict: method validate_environment (line 601) | def validate_environment(self) -> Self: method _resolve_model_profile (line 649) | def _resolve_model_profile(self) -> ModelProfile | None: method _generate (line 652) | def _generate( method _create_chat_result (line 667) | def _create_chat_result(self, response: dict) -> ChatResult: method _create_message_dicts (line 692) | def _create_message_dicts( method _stream (line 705) | def _stream( method _astream (line 735) | async def _astream( method _agenerate (line 765) | async def _agenerate( method bind_tools (line 780) | def bind_tools( method with_structured_output (line 821) | def with_structured_output( method _identifying_params (line 1156) | def _identifying_params(self) -> dict[str, Any]: method _llm_type (line 1161) | def _llm_type(self) -> str: method lc_secrets (line 1166) | def lc_secrets(self) -> dict[str, str]: method is_lc_serializable (line 1170) | def is_lc_serializable(cls) -> bool: method get_lc_namespace (line 1175) | def get_lc_namespace(cls) -> list[str]: function _convert_to_openai_response_format (line 1184) | def _convert_to_openai_response_format( FILE: libs/partners/mistralai/langchain_mistralai/embeddings.py function _is_retryable_error (line 32) | def _is_retryable_error(exception: BaseException) -> bool: class DummyTokenizer (line 51) | class DummyTokenizer: method encode_batch (line 55) | def encode_batch(texts: list[str]) -> list[list[str]]: class MistralAIEmbeddings (line 59) | class MistralAIEmbeddings(BaseModel, Embeddings): method validate_environment (line 178) | def validate_environment(self) -> Self: method _get_batches (line 219) | def _get_batches(self, texts: list[str]) -> Iterable[list[str]]: method _retry (line 242) | def _retry(self, func: Callable) -> Callable: method embed_documents (line 252) | def embed_documents(self, texts: list[str]) -> list[list[float]]: method aembed_documents (line 289) | async def aembed_documents(self, texts: list[str]) -> list[list[float]]: method embed_query (line 324) | def embed_query(self, text: str) -> list[float]: method aembed_query (line 336) | async def aembed_query(self, text: str) -> list[float]: FILE: libs/partners/mistralai/tests/integration_tests/test_chat_models.py function test_astream (line 18) | async def test_astream() -> None: class Book (line 54) | class Book(BaseModel): class BookDict (line 59) | class BookDict(TypedDict): function _check_parsed_result (line 64) | def _check_parsed_result(result: Any, schema: Any) -> None: function test_structured_output_json_schema (line 72) | def test_structured_output_json_schema(schema: Any) -> None: function test_structured_output_json_schema_async (line 93) | async def test_structured_output_json_schema_async(schema: Any) -> None: function test_retry_parameters (line 113) | def test_retry_parameters(caplog: pytest.LogCaptureFixture) -> None: function test_reasoning (line 150) | def test_reasoning() -> None: function test_reasoning_v1 (line 174) | def test_reasoning_v1() -> None: FILE: libs/partners/mistralai/tests/integration_tests/test_compile.py function test_placeholder (line 5) | def test_placeholder() -> None: FILE: libs/partners/mistralai/tests/integration_tests/test_embeddings.py function test_mistralai_embedding_documents (line 12) | def test_mistralai_embedding_documents() -> None: function test_mistralai_embedding_query (line 21) | def test_mistralai_embedding_query() -> None: function test_mistralai_embedding_documents_async (line 29) | async def test_mistralai_embedding_documents_async() -> None: function test_mistralai_embedding_documents_tenacity_error_async (line 38) | async def test_mistralai_embedding_documents_tenacity_error_async() -> N... function test_mistralai_embedding_documents_http_error_async (line 53) | async def test_mistralai_embedding_documents_http_error_async() -> None: function test_mistralai_embedding_query_async (line 68) | async def test_mistralai_embedding_query_async() -> None: function test_mistralai_embedding_documents_long (line 76) | def test_mistralai_embedding_documents_long() -> None: function test_mistralai_embed_query_character (line 85) | def test_mistralai_embed_query_character() -> None: FILE: libs/partners/mistralai/tests/integration_tests/test_standard.py class TestMistralStandard (line 12) | class TestMistralStandard(ChatModelIntegrationTests): method chat_model_class (line 14) | def chat_model_class(self) -> type[BaseChatModel]: method chat_model_params (line 18) | def chat_model_params(self) -> dict: method supports_json_mode (line 22) | def supports_json_mode(self) -> bool: method test_structured_output_pydantic_2_v1 (line 26) | def test_structured_output_pydantic_2_v1(self, model: BaseChatModel) -... FILE: libs/partners/mistralai/tests/unit_tests/test_chat_models.py function test_mistralai_model_param (line 33) | def test_mistralai_model_param() -> None: function test_mistralai_initialization (line 38) | def test_mistralai_initialization() -> None: function test_mistralai_initialization_baseurl (line 56) | def test_mistralai_initialization_baseurl( function test_mistralai_initialization_baseurl_env (line 72) | def test_mistralai_initialization_baseurl_env(env_var_name: str) -> None: function test_convert_message_to_mistral_chat_message (line 107) | def test_convert_message_to_mistral_chat_message( function _make_completion_response_from_token (line 114) | def _make_completion_response_from_token(token: str) -> dict: function mock_chat_stream (line 128) | def mock_chat_stream(*args: Any, **kwargs: Any) -> Generator: function mock_chat_astream (line 136) | async def mock_chat_astream(*args: Any, **kwargs: Any) -> AsyncGenerator: class MyCustomHandler (line 144) | class MyCustomHandler(BaseCallbackHandler): method on_llm_new_token (line 147) | def on_llm_new_token(self, token: str, **kwargs: Any) -> None: function test_stream_with_callback (line 155) | def test_stream_with_callback() -> None: function test_astream_with_callback (line 163) | async def test_astream_with_callback() -> None: function test__convert_dict_to_message_tool_call (line 170) | def test__convert_dict_to_message_tool_call() -> None: function test__convert_dict_to_message_tool_call_with_null_content (line 241) | def test__convert_dict_to_message_tool_call_with_null_content() -> None: function test__convert_dict_to_message_with_missing_content (line 267) | def test__convert_dict_to_message_with_missing_content() -> None: function test_custom_token_counting (line 293) | def test_custom_token_counting() -> None: function test_tool_id_conversion (line 301) | def test_tool_id_conversion() -> None: function test_extra_kwargs (line 316) | def test_extra_kwargs() -> None: function test_retry_with_failure_then_success (line 331) | def test_retry_with_failure_then_success() -> None: function test_no_duplicate_tool_calls_when_multiple_tools (line 374) | def test_no_duplicate_tool_calls_when_multiple_tools() -> None: function test_profile (line 407) | def test_profile() -> None: FILE: libs/partners/mistralai/tests/unit_tests/test_embeddings.py function test_mistral_init (line 17) | def test_mistral_init() -> None: function test_is_retryable_error_timeout (line 26) | def test_is_retryable_error_timeout() -> None: function test_is_retryable_error_rate_limit (line 32) | def test_is_retryable_error_rate_limit() -> None: function test_is_retryable_error_server_error (line 40) | def test_is_retryable_error_server_error() -> None: function test_is_retryable_error_bad_request_not_retryable (line 51) | def test_is_retryable_error_bad_request_not_retryable() -> None: function test_is_retryable_error_other_4xx_not_retryable (line 59) | def test_is_retryable_error_other_4xx_not_retryable() -> None: function test_is_retryable_error_other_exceptions (line 70) | def test_is_retryable_error_other_exceptions() -> None: function test_dummy_tokenizer (line 76) | def test_dummy_tokenizer() -> None: FILE: libs/partners/mistralai/tests/unit_tests/test_imports.py function test_all_imports (line 6) | def test_all_imports() -> None: FILE: libs/partners/mistralai/tests/unit_tests/test_standard.py class TestMistralStandard (line 11) | class TestMistralStandard(ChatModelUnitTests): method chat_model_class (line 13) | def chat_model_class(self) -> type[BaseChatModel]: FILE: libs/partners/nomic/langchain_nomic/embeddings.py class NomicEmbeddings (line 13) | class NomicEmbeddings(Embeddings): method __init__ (line 25) | def __init__( method __init__ (line 35) | def __init__( method __init__ (line 46) | def __init__( method __init__ (line 56) | def __init__( method embed (line 97) | def embed(self, texts: list[str], *, task_type: str) -> list[list[floa... method embed_documents (line 116) | def embed_documents(self, texts: list[str]) -> list[list[float]]: method embed_query (line 128) | def embed_query(self, text: str) -> list[float]: method embed_image (line 140) | def embed_image(self, uris: list[str]) -> list[list[float]]: FILE: libs/partners/nomic/tests/integration_tests/test_compile.py function test_placeholder (line 7) | def test_placeholder() -> None: FILE: libs/partners/nomic/tests/integration_tests/test_embeddings.py function test_langchain_nomic_embedding_documents (line 6) | def test_langchain_nomic_embedding_documents() -> None: function test_langchain_nomic_embedding_query (line 15) | def test_langchain_nomic_embedding_query() -> None: function test_langchain_nomic_embedding_dimensionality (line 23) | def test_langchain_nomic_embedding_dimensionality() -> None: FILE: libs/partners/nomic/tests/unit_tests/test_embeddings.py function test_initialization (line 6) | def test_initialization() -> None: FILE: libs/partners/nomic/tests/unit_tests/test_imports.py function test_all_imports (line 10) | def test_all_imports() -> None: FILE: libs/partners/nomic/tests/unit_tests/test_standard.py function test_nomic_embeddings_init_time (line 10) | def test_nomic_embeddings_init_time(benchmark: BenchmarkFixture) -> None: FILE: libs/partners/ollama/langchain_ollama/__init__.py function _raise_package_not_found_error (line 24) | def _raise_package_not_found_error() -> None: FILE: libs/partners/ollama/langchain_ollama/_compat.py function _convert_from_v1_to_ollama (line 8) | def _convert_from_v1_to_ollama( FILE: libs/partners/ollama/langchain_ollama/_utils.py function validate_model (line 12) | def validate_model(client: Client, model_name: str) -> None: function parse_url_with_auth (line 50) | def parse_url_with_auth( function merge_auth_headers (line 101) | def merge_auth_headers( FILE: libs/partners/ollama/langchain_ollama/chat_models.py function _get_usage_metadata_from_generation_info (line 101) | def _get_usage_metadata_from_generation_info( function _parse_json_string (line 118) | def _parse_json_string( function _parse_arguments_from_tool_call (line 170) | def _parse_arguments_from_tool_call( function _get_tool_calls_from_response (line 207) | def _get_tool_calls_from_response( function _lc_tool_call_to_openai_tool_call (line 228) | def _lc_tool_call_to_openai_tool_call(tool_call_: ToolCall) -> dict: function _get_image_from_data_content_block (line 240) | def _get_image_from_data_content_block(block: dict) -> str: function _is_pydantic_class (line 256) | def _is_pydantic_class(obj: Any) -> bool: class ChatOllama (line 260) | class ChatOllama(BaseChatModel): method _chat_params (line 720) | def _chat_params( method _set_clients (line 791) | def _set_clients(self) -> Self: method _convert_messages_to_ollama_messages (line 812) | def _convert_messages_to_ollama_messages( method _acreate_chat_stream (line 931) | async def _acreate_chat_stream( method _create_chat_stream (line 951) | def _create_chat_stream( method _chat_stream_with_aggregation (line 970) | def _chat_stream_with_aggregation( method _achat_stream_with_aggregation (line 996) | async def _achat_stream_with_aggregation( method _get_ls_params (line 1022) | def _get_ls_params( method _generate (line 1037) | def _generate( method _iterate_over_stream (line 1061) | def _iterate_over_stream( method _stream (line 1123) | def _stream( method _aiterate_over_stream (line 1138) | async def _aiterate_over_stream( method _astream (line 1200) | async def _astream( method _agenerate (line 1215) | async def _agenerate( method _llm_type (line 1240) | def _llm_type(self) -> str: method bind_tools (line 1244) | def bind_tools( method with_structured_output (line 1267) | def with_structured_output( FILE: libs/partners/ollama/langchain_ollama/embeddings.py class OllamaEmbeddings (line 19) | class OllamaEmbeddings(BaseModel, Embeddings): method _default_params (line 257) | def _default_params(self) -> dict[str, Any]: method _set_clients (line 276) | def _set_clients(self) -> Self: method embed_documents (line 297) | def embed_documents(self, texts: list[str]) -> list[list[float]]: method embed_query (line 309) | def embed_query(self, text: str) -> list[float]: method aembed_documents (line 313) | async def aembed_documents(self, texts: list[str]) -> list[list[float]]: method aembed_query (line 330) | async def aembed_query(self, text: str) -> list[float]: FILE: libs/partners/ollama/langchain_ollama/llms.py class OllamaLLM (line 25) | class OllamaLLM(BaseLLM): method _generate_params (line 264) | def _generate_params( method _llm_type (line 309) | def _llm_type(self) -> str: method _get_ls_params (line 313) | def _get_ls_params( method _set_clients (line 323) | def _set_clients(self) -> Self: method _acreate_generate_stream (line 344) | async def _acreate_generate_stream( method _create_generate_stream (line 361) | def _create_generate_stream( method _astream_with_aggregation (line 377) | async def _astream_with_aggregation( method _stream_with_aggregation (line 419) | def _stream_with_aggregation( method _generate (line 461) | def _generate( method _agenerate (line 480) | async def _agenerate( method _stream (line 499) | def _stream( method _astream (line 530) | async def _astream( FILE: libs/partners/ollama/tests/integration_tests/chat_models/test_chat_models.py function get_current_weather (line 25) | def get_current_weather(location: str) -> dict: function test_init_model_not_found (line 33) | def test_init_model_not_found(mock_list: MagicMock) -> None: function test_init_connection_error (line 42) | def test_init_connection_error(mock_list: MagicMock) -> None: function test_init_response_error (line 52) | def test_init_response_error(mock_list: MagicMock) -> None: function test_structured_output (line 62) | def test_structured_output(method: str) -> None: function test_structured_output_deeply_nested (line 116) | def test_structured_output_deeply_nested(model: str) -> None: function test_tool_streaming (line 149) | def test_tool_streaming(model: str) -> None: function test_tool_astreaming (line 196) | async def test_tool_astreaming(model: str) -> None: function test_agent_loop (line 246) | def test_agent_loop(model: str, output_version: str | None) -> None: FILE: libs/partners/ollama/tests/integration_tests/chat_models/test_chat_models_reasoning.py function test_stream_no_reasoning (line 15) | async def test_stream_no_reasoning(model: str, use_async: bool) -> None: function test_stream_reasoning_none (line 48) | async def test_stream_reasoning_none(model: str, use_async: bool) -> None: function test_reasoning_stream (line 80) | async def test_reasoning_stream(model: str, use_async: bool) -> None: function test_invoke_no_reasoning (line 124) | async def test_invoke_no_reasoning(model: str, use_async: bool) -> None: function test_invoke_reasoning_none (line 140) | async def test_invoke_reasoning_none(model: str, use_async: bool) -> None: function test_reasoning_invoke (line 155) | async def test_reasoning_invoke(model: str, use_async: bool) -> None: function test_reasoning_modes_behavior (line 181) | def test_reasoning_modes_behavior(model: str) -> None: FILE: libs/partners/ollama/tests/integration_tests/chat_models/test_chat_models_standard.py class TestChatOllama (line 12) | class TestChatOllama(ChatModelIntegrationTests): method chat_model_class (line 14) | def chat_model_class(self) -> type[ChatOllama]: method chat_model_params (line 18) | def chat_model_params(self) -> dict: method supports_json_mode (line 22) | def supports_json_mode(self) -> bool: method has_tool_choice (line 26) | def has_tool_choice(self) -> bool: method supports_image_inputs (line 32) | def supports_image_inputs(self) -> bool: method test_tool_calling (line 41) | def test_tool_calling(self, model: BaseChatModel) -> None: method test_tool_calling_async (line 50) | async def test_tool_calling_async(self, model: BaseChatModel) -> None: method test_tool_calling_with_no_arguments (line 61) | def test_tool_calling_with_no_arguments(self, model: BaseChatModel) ->... FILE: libs/partners/ollama/tests/integration_tests/test_compile.py function test_placeholder (line 5) | def test_placeholder() -> None: FILE: libs/partners/ollama/tests/integration_tests/test_embeddings.py class TestOllamaEmbeddings (line 12) | class TestOllamaEmbeddings(EmbeddingsIntegrationTests): method embeddings_class (line 14) | def embeddings_class(self) -> type[OllamaEmbeddings]: method embedding_model_params (line 18) | def embedding_model_params(self) -> dict: FILE: libs/partners/ollama/tests/integration_tests/test_llms.py function test_invoke (line 16) | def test_invoke() -> None: function test_ainvoke (line 23) | async def test_ainvoke() -> None: function test_batch (line 31) | def test_batch() -> None: function test_abatch (line 40) | async def test_abatch() -> None: function test_batch_tags (line 49) | def test_batch_tags() -> None: function test_abatch_tags (line 60) | async def test_abatch_tags() -> None: function test_stream_text_tokens (line 71) | def test_stream_text_tokens() -> None: function test_astream_text_tokens (line 79) | async def test_astream_text_tokens() -> None: function test__stream_no_reasoning (line 88) | def test__stream_no_reasoning(model: str) -> None: function test__astream_no_reasoning (line 108) | async def test__astream_no_reasoning(model: str) -> None: function test__stream_with_reasoning (line 128) | def test__stream_with_reasoning(model: str) -> None: function test__astream_with_reasoning (line 156) | async def test__astream_with_reasoning(model: str) -> None: FILE: libs/partners/ollama/tests/unit_tests/test_auth.py class TestParseUrlWithAuth (line 14) | class TestParseUrlWithAuth: method test_parse_url_with_auth_none_input (line 17) | def test_parse_url_with_auth_none_input(self) -> None: method test_parse_url_with_auth_no_credentials (line 22) | def test_parse_url_with_auth_no_credentials(self) -> None: method test_parse_url_with_auth_with_credentials (line 28) | def test_parse_url_with_auth_with_credentials(self) -> None: method test_parse_url_with_auth_with_path_and_query (line 40) | def test_parse_url_with_auth_with_path_and_query(self) -> None: method test_parse_url_with_auth_special_characters (line 52) | def test_parse_url_with_auth_special_characters(self) -> None: method test_parse_url_with_auth_only_username (line 65) | def test_parse_url_with_auth_only_username(self) -> None: method test_parse_url_with_auth_empty_password (line 77) | def test_parse_url_with_auth_empty_password(self) -> None: class TestChatOllamaUrlAuth (line 90) | class TestChatOllamaUrlAuth: method test_chat_ollama_url_auth_integration (line 95) | def test_chat_ollama_url_auth_integration( method test_chat_ollama_url_auth_with_existing_headers (line 118) | def test_chat_ollama_url_auth_with_existing_headers( class TestOllamaLLMUrlAuth (line 145) | class TestOllamaLLMUrlAuth: method test_ollama_llm_url_auth_integration (line 150) | def test_ollama_llm_url_auth_integration( class TestOllamaEmbeddingsUrlAuth (line 171) | class TestOllamaEmbeddingsUrlAuth: method test_ollama_embeddings_url_auth_integration (line 176) | def test_ollama_embeddings_url_auth_integration( class TestUrlAuthEdgeCases (line 197) | class TestUrlAuthEdgeCases: method test_parse_url_with_auth_malformed_url (line 200) | def test_parse_url_with_auth_malformed_url(self) -> None: method test_parse_url_with_auth_no_port (line 207) | def test_parse_url_with_auth_no_port(self) -> None: method test_parse_url_with_auth_complex_password (line 219) | def test_parse_url_with_auth_complex_password(self) -> None: FILE: libs/partners/ollama/tests/unit_tests/test_chat_models.py function _mock_httpx_client_stream (line 26) | def _mock_httpx_client_stream( class TestChatOllama (line 41) | class TestChatOllama(ChatModelUnitTests): method chat_model_class (line 43) | def chat_model_class(self) -> type[ChatOllama]: method chat_model_params (line 47) | def chat_model_params(self) -> dict: function test__parse_arguments_from_tool_call (line 51) | def test__parse_arguments_from_tool_call() -> None: function test__parse_arguments_from_tool_call_with_function_name_metadata (line 74) | def test__parse_arguments_from_tool_call_with_function_name_metadata() -... function test_arbitrary_roles_accepted_in_chatmessages (line 108) | def test_arbitrary_roles_accepted_in_chatmessages( function test_validate_model_on_init (line 130) | def test_validate_model_on_init(mock_validate_model: Any) -> None: function test_parse_json_string_success_cases (line 155) | def test_parse_json_string_success_cases( function test_parse_json_string_failure_case_raises_exception (line 164) | def test_parse_json_string_failure_case_raises_exception() -> None: function test_parse_json_string_skip_returns_input_on_failure (line 176) | def test_parse_json_string_skip_returns_input_on_failure() -> None: function test_load_response_with_empty_content_is_skipped (line 188) | def test_load_response_with_empty_content_is_skipped( function test_load_response_with_whitespace_content_is_skipped (line 218) | def test_load_response_with_whitespace_content_is_skipped( function test_load_followed_by_content_response (line 247) | def test_load_followed_by_content_response( function test_load_response_with_actual_content_is_not_skipped (line 286) | def test_load_response_with_actual_content_is_not_skipped( function test_none_parameters_excluded_from_options (line 315) | def test_none_parameters_excluded_from_options() -> None: function test_all_none_parameters_results_in_empty_options (line 354) | def test_all_none_parameters_results_in_empty_options() -> None: function test_explicit_options_dict_preserved (line 383) | def test_explicit_options_dict_preserved() -> None: function test_reasoning_param_passed_to_client (line 415) | def test_reasoning_param_passed_to_client() -> None: function test_create_chat_stream_raises_when_client_none (line 452) | def test_create_chat_stream_raises_when_client_none() -> None: function test_acreate_chat_stream_raises_when_client_none (line 464) | async def test_acreate_chat_stream_raises_when_client_none() -> None: function test_invoke_raises_when_client_none (line 477) | def test_invoke_raises_when_client_none() -> None: function test_chat_ollama_ignores_strict_arg (line 488) | def test_chat_ollama_ignores_strict_arg() -> None: FILE: libs/partners/ollama/tests/unit_tests/test_embeddings.py function test_initialization (line 13) | def test_initialization() -> None: function test_validate_model_on_init (line 19) | def test_validate_model_on_init(mock_validate_model: Any) -> None: function test_embed_documents_passes_options (line 32) | def test_embed_documents_passes_options(mock_client_class: Any) -> None: function test_embed_documents_raises_when_client_none (line 57) | def test_embed_documents_raises_when_client_none() -> None: function test_aembed_documents_raises_when_client_none (line 68) | async def test_aembed_documents_raises_when_client_none() -> None: FILE: libs/partners/ollama/tests/unit_tests/test_imports.py function test_all_imports (line 11) | def test_all_imports() -> None: FILE: libs/partners/ollama/tests/unit_tests/test_llms.py function test_initialization (line 13) | def test_initialization() -> None: function test_model_params (line 18) | def test_model_params() -> None: function test_validate_model_on_init (line 39) | def test_validate_model_on_init(mock_validate_model: Any) -> None: function test_reasoning_aggregation (line 51) | def test_reasoning_aggregation() -> None: function test_create_generate_stream_raises_when_client_none (line 72) | def test_create_generate_stream_raises_when_client_none() -> None: function test_acreate_generate_stream_raises_when_client_none (line 83) | async def test_acreate_generate_stream_raises_when_client_none() -> None: FILE: libs/partners/openai/langchain_openai/chat_models/_client_utils.py class _SyncHttpxClientWrapper (line 22) | class _SyncHttpxClientWrapper(openai.DefaultHttpxClient): method __del__ (line 25) | def __del__(self) -> None: class _AsyncHttpxClientWrapper (line 35) | class _AsyncHttpxClientWrapper(openai.DefaultAsyncHttpxClient): method __del__ (line 38) | def __del__(self) -> None: function _build_sync_httpx_client (line 49) | def _build_sync_httpx_client( function _build_async_httpx_client (line 60) | def _build_async_httpx_client( function _cached_sync_httpx_client (line 72) | def _cached_sync_httpx_client( function _cached_async_httpx_client (line 79) | def _cached_async_httpx_client( function _get_default_httpx_client (line 85) | def _get_default_httpx_client( function _get_default_async_httpx_client (line 100) | def _get_default_async_httpx_client( function _resolve_sync_and_async_api_keys (line 115) | def _resolve_sync_and_async_api_keys( FILE: libs/partners/openai/langchain_openai/chat_models/_compat.py function _convert_to_v03_ai_message (line 81) | def _convert_to_v03_ai_message( function _convert_from_v1_to_chat_completions (line 156) | def _convert_from_v1_to_chat_completions(message: AIMessage) -> AIMessage: function _convert_annotation_from_v1 (line 178) | def _convert_annotation_from_v1(annotation: types.Annotation) -> dict[st... function _implode_reasoning_blocks (line 213) | def _implode_reasoning_blocks(blocks: list[dict[str, Any]]) -> Iterable[... function _consolidate_calls (line 264) | def _consolidate_calls(items: Iterable[dict[str, Any]]) -> Iterator[dict... function _convert_from_v1_to_responses (line 405) | def _convert_from_v1_to_responses( FILE: libs/partners/openai/langchain_openai/chat_models/azure.py function _is_pydantic_class (line 33) | def _is_pydantic_class(obj: Any) -> bool: class AzureChatOpenAI (line 37) | class AzureChatOpenAI(BaseChatOpenAI): method get_lc_namespace (line 577) | def get_lc_namespace(cls) -> list[str]: method lc_secrets (line 586) | def lc_secrets(self) -> dict[str, str]: method is_lc_serializable (line 594) | def is_lc_serializable(cls) -> bool: method validate_environment (line 599) | def validate_environment(self) -> Self: method _resolve_model_profile (line 707) | def _resolve_model_profile(self) -> ModelProfile | None: method _identifying_params (line 713) | def _identifying_params(self) -> dict[str, Any]: method _llm_type (line 721) | def _llm_type(self) -> str: method lc_attributes (line 725) | def lc_attributes(self) -> dict[str, Any]: method _default_params (line 733) | def _default_params(self) -> dict[str, Any]: method _get_ls_params (line 741) | def _get_ls_params( method _create_chat_result (line 758) | def _create_chat_result( method _get_request_payload (line 797) | def _get_request_payload( method _stream (line 817) | def _stream(self, *args: Any, **kwargs: Any) -> Iterator[ChatGeneratio... method _astream (line 823) | async def _astream( method with_structured_output (line 834) | def with_structured_output( FILE: libs/partners/openai/langchain_openai/chat_models/base.py function _get_default_model_profile (line 156) | def _get_default_model_profile(model_name: str) -> ModelProfile: function _convert_dict_to_message (line 173) | def _convert_dict_to_message(_dict: Mapping[str, Any]) -> BaseMessage: function _sanitize_chat_completions_content (line 240) | def _sanitize_chat_completions_content(content: str | list[dict]) -> str... function _format_message_content (line 260) | def _format_message_content( function _convert_message_to_dict (line 321) | def _convert_message_to_dict( function _convert_delta_to_message_chunk (line 403) | def _convert_delta_to_message_chunk( function _update_token_usage (line 459) | def _update_token_usage( class OpenAIContextOverflowError (line 487) | class OpenAIContextOverflowError(openai.BadRequestError, ContextOverflow... class OpenAIAPIContextOverflowError (line 491) | class OpenAIAPIContextOverflowError(openai.APIError, ContextOverflowError): function _handle_openai_bad_request (line 495) | def _handle_openai_bad_request(e: openai.BadRequestError) -> None: function _handle_openai_api_error (line 527) | def _handle_openai_api_error(e: openai.APIError) -> None: function _model_prefers_responses_api (line 543) | def _model_prefers_responses_api(model_name: str | None) -> bool: class BaseChatOpenAI (line 554) | class BaseChatOpenAI(BaseChatModel): method model (line 929) | def model(self) -> str: method build_extra (line 935) | def build_extra(cls, values: dict[str, Any]) -> Any: method validate_temperature (line 942) | def validate_temperature(cls, values: dict[str, Any]) -> Any: method validate_environment (line 973) | def validate_environment(self) -> Self: method _resolve_model_profile (line 1097) | def _resolve_model_profile(self) -> ModelProfile | None: method _default_params (line 1101) | def _default_params(self) -> dict[str, Any]: method _combine_llm_outputs (line 1133) | def _combine_llm_outputs(self, llm_outputs: list[dict | None]) -> dict: method _convert_chunk_to_generation_chunk (line 1158) | def _convert_chunk_to_generation_chunk( method _ensure_sync_client_available (line 1220) | def _ensure_sync_client_available(self) -> None: method _stream_responses (line 1230) | def _stream_responses( method _astream_responses (line 1289) | async def _astream_responses( method _should_stream_usage (line 1351) | def _should_stream_usage( method _stream (line 1370) | def _stream( method _generate (line 1445) | def _generate( method _use_responses_api (line 1501) | def _use_responses_api(self, payload: dict) -> bool: method _get_request_payload (line 1516) | def _get_request_payload( method _create_chat_result (line 1547) | def _create_chat_result( method _astream (line 1630) | async def _astream( method _agenerate (line 1706) | async def _agenerate( method _identifying_params (line 1770) | def _identifying_params(self) -> dict[str, Any]: method _get_invocation_params (line 1774) | def _get_invocation_params( method _get_ls_params (line 1795) | def _get_ls_params( method _llm_type (line 1815) | def _llm_type(self) -> str: method _get_encoding_model (line 1822) | def _get_encoding_model(self) -> tuple[str, tiktoken.Encoding]: method get_token_ids (line 1838) | def get_token_ids(self, text: str) -> list[int]: method get_num_tokens_from_messages (line 1848) | def get_num_tokens_from_messages( method bind_tools (line 1948) | def bind_tools( method with_structured_output (line 2050) | def with_structured_output( method _filter_disabled_params (line 2314) | def _filter_disabled_params(self, **kwargs: Any) -> dict[str, Any]: method _get_generation_chunk_from_completion (line 2328) | def _get_generation_chunk_from_completion( class ChatOpenAI (line 2351) | class ChatOpenAI(BaseChatOpenAI): # type: ignore[override] method lc_secrets (line 3113) | def lc_secrets(self) -> dict[str, str]: method get_lc_namespace (line 3118) | def get_lc_namespace(cls) -> list[str]: method lc_attributes (line 3127) | def lc_attributes(self) -> dict[str, Any]: method is_lc_serializable (line 3143) | def is_lc_serializable(cls) -> bool: method _default_params (line 3148) | def _default_params(self) -> dict[str, Any]: method _get_request_payload (line 3156) | def _get_request_payload( method _stream (line 3176) | def _stream(self, *args: Any, **kwargs: Any) -> Iterator[ChatGeneratio... method _astream (line 3182) | async def _astream( method with_structured_output (line 3193) | def with_structured_output( function _is_pydantic_class (line 3603) | def _is_pydantic_class(obj: Any) -> bool: function _lc_tool_call_to_openai_tool_call (line 3607) | def _lc_tool_call_to_openai_tool_call(tool_call: ToolCall) -> dict: function _lc_invalid_tool_call_to_openai_tool_call (line 3618) | def _lc_invalid_tool_call_to_openai_tool_call( function _url_to_size (line 3631) | def _url_to_size(image_source: str) -> tuple[int, int] | None: function _count_image_tokens (line 3714) | def _count_image_tokens(width: int, height: int) -> int: function _is_url (line 3722) | def _is_url(s: str) -> bool: function _is_b64 (line 3731) | def _is_b64(s: str) -> bool: function _resize (line 3735) | def _resize(width: int, height: int) -> tuple[int, int]: function _convert_to_openai_response_format (line 3755) | def _convert_to_openai_response_format( function _oai_structured_outputs_parser (line 3795) | def _oai_structured_outputs_parser( class OpenAIRefusalError (line 3827) | class OpenAIRefusalError(Exception): function _create_usage_metadata (line 3837) | def _create_usage_metadata( function _create_usage_metadata_responses (line 3884) | def _create_usage_metadata_responses( function _is_builtin_tool (line 3925) | def _is_builtin_tool(tool: dict) -> bool: function _use_responses_api (line 3929) | def _use_responses_api(payload: dict) -> bool: function _get_last_messages (line 3944) | def _get_last_messages( function _construct_responses_api_payload (line 3969) | def _construct_responses_api_payload( function _format_annotation_to_lc (line 4077) | def _format_annotation_to_lc(annotation: dict[str, Any]) -> dict[str, Any]: function _format_annotation_from_lc (line 4087) | def _format_annotation_from_lc(annotation: dict[str, Any]) -> dict[str, ... function _convert_chat_completions_blocks_to_responses (line 4095) | def _convert_chat_completions_blocks_to_responses( function _ensure_valid_tool_message_content (line 4121) | def _ensure_valid_tool_message_content(tool_output: Any) -> str | list[d... function _make_computer_call_output_from_message (line 4144) | def _make_computer_call_output_from_message( function _make_custom_tool_output_from_message (line 4186) | def _make_custom_tool_output_from_message(message: ToolMessage) -> dict ... function _pop_index_and_sub_index (line 4207) | def _pop_index_and_sub_index(block: dict) -> dict: function _construct_responses_api_input (line 4222) | def _construct_responses_api_input(messages: Sequence[BaseMessage]) -> l... function _get_output_text (line 4401) | def _get_output_text(response: Response) -> str: function _construct_lc_result_from_responses_api (line 4418) | def _construct_lc_result_from_responses_api( function _convert_responses_chunk_to_generation_chunk (line 4598) | def _convert_responses_chunk_to_generation_chunk( FILE: libs/partners/openai/langchain_openai/embeddings/azure.py class AzureOpenAIEmbeddings (line 16) | class AzureOpenAIEmbeddings(OpenAIEmbeddings): # type: ignore[override] method validate_environment (line 163) | def validate_environment(self) -> Self: method _llm_type (line 229) | def _llm_type(self) -> str: FILE: libs/partners/openai/langchain_openai/embeddings/base.py function _process_batched_chunked_embeddings (line 26) | def _process_batched_chunked_embeddings( class OpenAIEmbeddings (line 86) | class OpenAIEmbeddings(BaseModel, Embeddings): method build_extra (line 346) | def build_extra(cls, values: dict[str, Any]) -> Any: method validate_environment (line 374) | def validate_environment(self) -> Self: method _invocation_params (line 455) | def _invocation_params(self) -> dict[str, Any]: method _ensure_sync_client_available (line 461) | def _ensure_sync_client_available(self) -> None: method _tokenize (line 471) | def _tokenize( method _get_len_safe_embeddings (line 571) | def _get_len_safe_embeddings( method _aget_len_safe_embeddings (line 643) | async def _aget_len_safe_embeddings( method embed_documents (line 719) | def embed_documents( method aembed_documents (line 755) | async def aembed_documents( method embed_query (line 790) | def embed_query(self, text: str, **kwargs: Any) -> list[float]: method aembed_query (line 803) | async def aembed_query(self, text: str, **kwargs: Any) -> list[float]: FILE: libs/partners/openai/langchain_openai/llms/azure.py class AzureOpenAI (line 20) | class AzureOpenAI(BaseOpenAI): method get_lc_namespace (line 99) | def get_lc_namespace(cls) -> list[str]: method lc_secrets (line 108) | def lc_secrets(self) -> dict[str, str]: method is_lc_serializable (line 116) | def is_lc_serializable(cls) -> bool: method validate_environment (line 121) | def validate_environment(self) -> Self: method _identifying_params (line 199) | def _identifying_params(self) -> Mapping[str, Any]: method _invocation_params (line 206) | def _invocation_params(self) -> dict[str, Any]: method _get_ls_params (line 210) | def _get_ls_params( method _llm_type (line 222) | def _llm_type(self) -> str: method lc_attributes (line 227) | def lc_attributes(self) -> dict[str, Any]: FILE: libs/partners/openai/langchain_openai/llms/base.py function _update_token_usage (line 26) | def _update_token_usage( function _stream_response_to_generation_chunk (line 38) | def _stream_response_to_generation_chunk( class BaseOpenAI (line 53) | class BaseOpenAI(BaseLLM): method build_extra (line 297) | def build_extra(cls, values: dict[str, Any]) -> Any: method validate_environment (line 303) | def validate_environment(self) -> Self: method _default_params (line 345) | def _default_params(self) -> dict[str, Any]: method _stream (line 373) | def _stream( method _astream (line 400) | async def _astream( method _generate (line 429) | def _generate( method _agenerate (line 513) | async def _agenerate( method get_sub_prompts (line 572) | def get_sub_prompts( method create_llm_result (line 591) | def create_llm_result( method _invocation_params (line 623) | def _invocation_params(self) -> dict[str, Any]: method _identifying_params (line 628) | def _identifying_params(self) -> Mapping[str, Any]: method _llm_type (line 633) | def _llm_type(self) -> str: method get_token_ids (line 637) | def get_token_ids(self, text: str) -> list[int]: method modelname_to_contextsize (line 658) | def modelname_to_contextsize(modelname: str) -> int: method max_context_size (line 728) | def max_context_size(self) -> int: method max_tokens_for_prompt (line 732) | def max_tokens_for_prompt(self, prompt: str) -> int: class OpenAI (line 750) | class OpenAI(BaseOpenAI): method get_lc_namespace (line 847) | def get_lc_namespace(cls) -> list[str]: method is_lc_serializable (line 856) | def is_lc_serializable(cls) -> bool: method _invocation_params (line 861) | def _invocation_params(self) -> dict[str, Any]: method lc_secrets (line 865) | def lc_secrets(self) -> dict[str, str]: method lc_attributes (line 870) | def lc_attributes(self) -> dict[str, Any]: FILE: libs/partners/openai/langchain_openai/middleware/openai_moderation.py class OpenAIModerationError (line 24) | class OpenAIModerationError(RuntimeError): method __init__ (line 27) | def __init__( class OpenAIModerationMiddleware (line 49) | class OpenAIModerationMiddleware(AgentMiddleware[AgentState[Any], Any]): method __init__ (line 52) | def __init__( method before_model (line 91) | def before_model( method after_model (line 113) | def after_model( method abefore_model (line 135) | async def abefore_model( method aafter_model (line 157) | async def aafter_model( method _moderate_inputs (line 178) | def _moderate_inputs( method _amoderate_inputs (line 205) | async def _amoderate_inputs( method _moderate_output (line 232) | def _moderate_output( method _amoderate_output (line 252) | async def _amoderate_output( method _moderate_tool_messages (line 272) | def _moderate_tool_messages( method _amoderate_tool_messages (line 309) | async def _amoderate_tool_messages( method _moderate_user_message (line 346) | def _moderate_user_message( method _amoderate_user_message (line 366) | async def _amoderate_user_message( method _apply_violation (line 386) | def _apply_violation( method _moderate (line 418) | def _moderate(self, text: str) -> Moderation: method _amoderate (line 424) | async def _amoderate(self, text: str) -> Moderation: method _build_client (line 432) | def _build_client(self) -> OpenAI: method _build_async_client (line 436) | def _build_async_client(self) -> AsyncOpenAI: method _format_violation_message (line 440) | def _format_violation_message(self, content: str, result: Moderation) ... method _find_last_index (line 463) | def _find_last_index( method _extract_text (line 471) | def _extract_text(self, message: BaseMessage) -> str | None: FILE: libs/partners/openai/langchain_openai/tools/custom_tool.py function _make_wrapped_func (line 10) | def _make_wrapped_func(func: Callable[..., str]) -> Callable[..., list[d... function _make_wrapped_coroutine (line 17) | def _make_wrapped_coroutine( function custom_tool (line 27) | def custom_tool(*args: Any, **kwargs: Any) -> Any: FILE: libs/partners/openai/tests/conftest.py function remove_request_headers (line 15) | def remove_request_headers(request: Any) -> Any: function remove_response_headers (line 23) | def remove_response_headers(response: dict) -> dict: function vcr_config (line 31) | def vcr_config() -> dict: function _json_body_matcher (line 45) | def _json_body_matcher(r1: Any, r2: Any) -> None: function pytest_recording_configure (line 62) | def pytest_recording_configure(config: dict, vcr: VCR) -> None: FILE: libs/partners/openai/tests/integration_tests/chat_models/test_azure.py function _get_llm (line 32) | def _get_llm(**kwargs: Any) -> AzureChatOpenAI: function llm (line 44) | def llm() -> AzureChatOpenAI: function test_chat_openai (line 48) | def test_chat_openai(llm: AzureChatOpenAI) -> None: function test_chat_openai_generate (line 57) | def test_chat_openai_generate() -> None: function test_chat_openai_multiple_completions (line 73) | def test_chat_openai_multiple_completions() -> None: function test_chat_openai_streaming (line 86) | def test_chat_openai_streaming() -> None: function test_chat_openai_streaming_generation_info (line 104) | def test_chat_openai_streaming_generation_info() -> None: function test_async_chat_openai (line 124) | async def test_async_chat_openai() -> None: function test_async_chat_openai_streaming (line 140) | async def test_async_chat_openai_streaming() -> None: function test_openai_streaming (line 165) | def test_openai_streaming(llm: AzureChatOpenAI) -> None: function test_openai_astream (line 176) | async def test_openai_astream(llm: AzureChatOpenAI) -> None: function test_openai_abatch (line 188) | async def test_openai_abatch(llm: AzureChatOpenAI) -> None: function test_openai_abatch_tags (line 197) | async def test_openai_abatch_tags(llm: AzureChatOpenAI) -> None: function test_openai_batch (line 208) | def test_openai_batch(llm: AzureChatOpenAI) -> None: function test_openai_ainvoke (line 217) | async def test_openai_ainvoke(llm: AzureChatOpenAI) -> None: function test_openai_invoke (line 226) | def test_openai_invoke(llm: AzureChatOpenAI) -> None: function test_json_mode (line 234) | def test_json_mode(llm: AzureChatOpenAI) -> None: function test_json_mode_async (line 252) | async def test_json_mode_async(llm: AzureChatOpenAI) -> None: class Foo (line 270) | class Foo(BaseModel): function test_stream_response_format (line 274) | def test_stream_response_format(llm: AzureChatOpenAI) -> None: function test_astream_response_format (line 289) | async def test_astream_response_format(llm: AzureChatOpenAI) -> None: FILE: libs/partners/openai/tests/integration_tests/chat_models/test_azure_standard.py class TestAzureOpenAIStandard (line 15) | class TestAzureOpenAIStandard(ChatModelIntegrationTests): method chat_model_class (line 17) | def chat_model_class(self) -> type[BaseChatModel]: method chat_model_params (line 21) | def chat_model_params(self) -> dict: method supports_image_inputs (line 29) | def supports_image_inputs(self) -> bool: method supports_image_urls (line 33) | def supports_image_urls(self) -> bool: method supports_json_mode (line 37) | def supports_json_mode(self) -> bool: class TestAzureOpenAIResponses (line 41) | class TestAzureOpenAIResponses(ChatModelIntegrationTests): method chat_model_class (line 43) | def chat_model_class(self) -> type[BaseChatModel]: method chat_model_params (line 47) | def chat_model_params(self) -> dict: method supports_image_inputs (line 56) | def supports_image_inputs(self) -> bool: method supports_image_urls (line 60) | def supports_image_urls(self) -> bool: method supports_json_mode (line 64) | def supports_json_mode(self) -> bool: method test_stop_sequence (line 68) | def test_stop_sequence(self, model: BaseChatModel) -> None: class TestAzureOpenAIStandardLegacy (line 72) | class TestAzureOpenAIStandardLegacy(ChatModelIntegrationTests): method chat_model_class (line 76) | def chat_model_class(self) -> type[BaseChatModel]: method chat_model_params (line 80) | def chat_model_params(self) -> dict: method structured_output_kwargs (line 88) | def structured_output_kwargs(self) -> dict: FILE: libs/partners/openai/tests/integration_tests/chat_models/test_base.py function test_chat_openai (line 35) | def test_chat_openai() -> None: function test_chat_openai_model (line 56) | def test_chat_openai_model() -> None: function test_callable_api_key (line 64) | def test_callable_api_key(monkeypatch: pytest.MonkeyPatch) -> None: function test_callable_api_key_async (line 81) | async def test_callable_api_key_async(monkeypatch: pytest.MonkeyPatch) -... function test_chat_openai_system_message (line 116) | def test_chat_openai_system_message(use_responses_api: bool) -> None: function test_chat_openai_generate (line 127) | def test_chat_openai_generate() -> None: function test_chat_openai_multiple_completions (line 144) | def test_chat_openai_multiple_completions() -> None: function test_chat_openai_streaming (line 158) | def test_chat_openai_streaming(use_responses_api: bool) -> None: function test_chat_openai_streaming_generation_info (line 177) | def test_chat_openai_streaming_generation_info() -> None: function test_chat_openai_llm_output_contains_model_name (line 196) | def test_chat_openai_llm_output_contains_model_name() -> None: function test_chat_openai_streaming_llm_output_contains_model_name (line 205) | def test_chat_openai_streaming_llm_output_contains_model_name() -> None: function test_chat_openai_invalid_streaming_params (line 214) | def test_chat_openai_invalid_streaming_params() -> None: function test_openai_abatch_tags (line 222) | async def test_openai_abatch_tags(use_responses_api: bool) -> None: function test_openai_invoke (line 234) | def test_openai_invoke() -> None: function test_stream (line 267) | def test_stream() -> None: function test_astream (line 324) | async def test_astream() -> None: function test_flex_usage_responses (line 395) | def test_flex_usage_responses(streaming: bool) -> None: function test_abatch_tags (line 416) | async def test_abatch_tags() -> None: function test_response_metadata (line 427) | def test_response_metadata() -> None: function test_async_response_metadata (line 445) | async def test_async_response_metadata() -> None: function test_response_metadata_streaming (line 463) | def test_response_metadata_streaming() -> None: function test_async_response_metadata_streaming (line 476) | async def test_async_response_metadata_streaming() -> None: class GenerateUsername (line 489) | class GenerateUsername(BaseModel): class MakeASandwich (line 496) | class MakeASandwich(BaseModel): function test_tool_use (line 505) | def test_tool_use() -> None: function test_manual_tool_call_msg (line 545) | def test_manual_tool_call_msg(use_responses_api: bool) -> None: function test_bind_tools_tool_choice (line 594) | def test_bind_tools_tool_choice(use_responses_api: bool) -> None: function test_disable_parallel_tool_calling (line 611) | def test_disable_parallel_tool_calling() -> None: function test_openai_structured_output (line 624) | def test_openai_structured_output(model: str) -> None: function test_openai_proxy (line 638) | def test_openai_proxy() -> None: function test_openai_response_headers (line 659) | def test_openai_response_headers(use_responses_api: bool) -> None: function test_openai_response_headers_async (line 683) | async def test_openai_response_headers_async(use_responses_api: bool) ->... function test_image_token_counting_jpeg (line 706) | def test_image_token_counting_jpeg() -> None: function test_image_token_counting_png (line 740) | def test_image_token_counting_png() -> None: function test_structured_output_strict (line 779) | def test_structured_output_strict( function test_nested_structured_output_strict (line 821) | def test_nested_structured_output_strict( function test_json_schema_openai_format (line 864) | def test_json_schema_openai_format( function test_audio_output_modality (line 895) | def test_audio_output_modality() -> None: function test_audio_input_modality (line 923) | def test_audio_input_modality() -> None: function test_prediction_tokens (line 964) | def test_prediction_tokens() -> None: function test_stream_o_series (line 1009) | def test_stream_o_series(use_responses_api: bool) -> None: function test_astream_o_series (line 1018) | async def test_astream_o_series(use_responses_api: bool) -> None: class Foo (line 1025) | class Foo(BaseModel): function test_stream_response_format (line 1029) | def test_stream_response_format() -> None: function test_astream_response_format (line 1046) | async def test_astream_response_format() -> None: function test_o1 (line 1065) | def test_o1(use_max_completion_tokens: bool, use_responses_api: bool) ->... function test_o1_stream_default_works (line 1089) | def test_o1_stream_default_works() -> None: function test_multi_party_conversation (line 1095) | def test_multi_party_conversation() -> None: class ResponseFormat (line 1106) | class ResponseFormat(BaseModel): class ResponseFormatDict (line 1111) | class ResponseFormatDict(TypedDict): function test_structured_output_and_tools (line 1120) | def test_structured_output_and_tools(schema: Any) -> None: function test_tools_and_structured_output (line 1148) | def test_tools_and_structured_output() -> None: function test_prompt_cache_key_invoke (line 1180) | def test_prompt_cache_key_invoke() -> None: function test_prompt_cache_key_usage_methods_integration (line 1201) | def test_prompt_cache_key_usage_methods_integration() -> None: class BadModel (line 1222) | class BadModel(BaseModel): method validate_response (line 1227) | def validate_response(cls, v: str) -> str: function test_schema_parsing_failures (line 1236) | def test_schema_parsing_failures() -> None: function test_schema_parsing_failures_responses_api (line 1248) | def test_schema_parsing_failures_responses_api() -> None: function test_schema_parsing_failures_async (line 1260) | async def test_schema_parsing_failures_async() -> None: function test_schema_parsing_failures_responses_api_async (line 1272) | async def test_schema_parsing_failures_responses_api_async() -> None: FILE: libs/partners/openai/tests/integration_tests/chat_models/test_base_standard.py class TestOpenAIStandard (line 18) | class TestOpenAIStandard(ChatModelIntegrationTests): method chat_model_class (line 20) | def chat_model_class(self) -> type[BaseChatModel]: method chat_model_params (line 24) | def chat_model_params(self) -> dict: method supports_image_inputs (line 28) | def supports_image_inputs(self) -> bool: method supports_image_urls (line 32) | def supports_image_urls(self) -> bool: method supports_json_mode (line 36) | def supports_json_mode(self) -> bool: method supports_anthropic_inputs (line 40) | def supports_anthropic_inputs(self) -> bool: method supported_usage_metadata_details (line 44) | def supported_usage_metadata_details( method enable_vcr_tests (line 61) | def enable_vcr_tests(self) -> bool: method invoke_with_cache_read_input (line 64) | def invoke_with_cache_read_input(self, *, stream: bool = False) -> AIM... method invoke_with_reasoning_output (line 77) | def invoke_with_reasoning_output(self, *, stream: bool = False) -> AIM... method supports_pdf_inputs (line 86) | def supports_pdf_inputs(self) -> bool: method test_openai_pdf_inputs (line 92) | def test_openai_pdf_inputs(self, model: BaseChatModel) -> None: function _invoke (line 128) | def _invoke(llm: ChatOpenAI, input_: str, stream: bool) -> AIMessage: function test_audio_model (line 138) | def test_audio_model() -> None: FILE: libs/partners/openai/tests/integration_tests/chat_models/test_responses_api.py function _check_response (line 37) | def _check_response(response: BaseMessage | None) -> None: function test_incomplete_response (line 73) | def test_incomplete_response() -> None: function test_web_search (line 95) | def test_web_search(output_version: Literal["responses/v1", "v1"]) -> None: function test_web_search_async (line 148) | async def test_web_search_async() -> None: function test_function_calling (line 178) | def test_function_calling(output_version: Literal["v0", "responses/v1", ... function test_agent_loop (line 209) | def test_agent_loop(output_version: Literal["responses/v1", "v1"]) -> None: function test_agent_loop_streaming (line 242) | def test_agent_loop_streaming(output_version: Literal["responses/v1", "v... class Foo (line 274) | class Foo(BaseModel): class FooDict (line 278) | class FooDict(TypedDict): function test_parsed_pydantic_schema (line 285) | def test_parsed_pydantic_schema( function test_parsed_pydantic_schema_async (line 307) | async def test_parsed_pydantic_schema_async() -> None: function test_parsed_dict_schema (line 327) | def test_parsed_dict_schema(schema: Any) -> None: function test_parsed_strict (line 347) | def test_parsed_strict() -> None: function test_parsed_dict_schema_async (line 380) | async def test_parsed_dict_schema_async(schema: Any) -> None: function test_function_calling_and_structured_output (line 401) | def test_function_calling_and_structured_output(schema: Any) -> None: function test_reasoning (line 428) | def test_reasoning(output_version: Literal["v0", "responses/v1", "v1"]) ... function test_stateful_api (line 453) | def test_stateful_api() -> None: function test_route_from_model_kwargs (line 465) | def test_route_from_model_kwargs() -> None: function test_computer_calls (line 473) | def test_computer_calls() -> None: function test_file_search (line 484) | def test_file_search( function test_stream_reasoning_summary (line 547) | def test_stream_reasoning_summary( function test_code_interpreter (line 614) | def test_code_interpreter(output_version: Literal["v0", "responses/v1", ... function test_mcp_builtin (line 705) | def test_mcp_builtin() -> None: function test_mcp_builtin_zdr (line 745) | def test_mcp_builtin_zdr() -> None: function test_mcp_builtin_zdr_v1 (line 799) | def test_mcp_builtin_zdr_v1() -> None: function test_image_generation_streaming (line 858) | def test_image_generation_streaming( function test_image_generation_streaming_v1 (line 927) | def test_image_generation_streaming_v1() -> None: function test_image_generation_multi_turn (line 966) | def test_image_generation_multi_turn( function test_image_generation_multi_turn_v1 (line 1073) | def test_image_generation_multi_turn_v1() -> None: function test_verbosity_parameter (line 1140) | def test_verbosity_parameter() -> None: function test_custom_tool (line 1156) | def test_custom_tool(output_version: Literal["responses/v1", "v1"]) -> N... function test_compaction (line 1187) | def test_compaction(output_version: Literal["responses/v1", "v1"]) -> None: function test_compaction_streaming (line 1233) | def test_compaction_streaming(output_version: Literal["responses/v1", "v... function test_csv_input (line 1277) | def test_csv_input() -> None: function test_phase (line 1346) | def test_phase(output_version: str) -> None: function test_phase_streaming (line 1385) | def test_phase_streaming(output_version: str) -> None: function test_tool_search (line 1438) | def test_tool_search(output_version: str) -> None: function test_tool_search_streaming (line 1485) | def test_tool_search_streaming(output_version: str) -> None: function test_client_executed_tool_search (line 1531) | def test_client_executed_tool_search() -> None: FILE: libs/partners/openai/tests/integration_tests/chat_models/test_responses_standard.py class TestOpenAIResponses (line 18) | class TestOpenAIResponses(TestOpenAIStandard): method chat_model_class (line 20) | def chat_model_class(self) -> type[BaseChatModel]: method chat_model_params (line 24) | def chat_model_params(self) -> dict: method supports_image_tool_message (line 28) | def supports_image_tool_message(self) -> bool: method test_stop_sequence (line 32) | def test_stop_sequence(self, model: BaseChatModel) -> None: method invoke_with_cache_read_input (line 35) | def invoke_with_cache_read_input(self, *, stream: bool = False) -> AIM... method invoke_with_reasoning_output (line 48) | def invoke_with_reasoning_output(self, *, stream: bool = False) -> AIM... method test_openai_pdf_inputs (line 58) | def test_openai_pdf_inputs(self, model: BaseChatModel) -> None: method supports_pdf_tool_message (line 82) | def supports_pdf_tool_message(self) -> bool: method test_openai_pdf_tool_messages (line 87) | def test_openai_pdf_tool_messages(self, model: BaseChatModel) -> None: function _invoke (line 132) | def _invoke(llm: ChatOpenAI, input_: str, stream: bool) -> AIMessage: FILE: libs/partners/openai/tests/integration_tests/embeddings/test_azure.py function _get_embeddings (line 22) | def _get_embeddings(**kwargs: Any) -> AzureOpenAIEmbeddings: function test_azure_openai_embedding_documents (line 33) | def test_azure_openai_embedding_documents() -> None: function test_azure_openai_embedding_documents_multiple (line 43) | def test_azure_openai_embedding_documents_multiple() -> None: function test_azure_openai_embedding_documents_chunk_size (line 57) | def test_azure_openai_embedding_documents_chunk_size() -> None: function test_azure_openai_embedding_documents_async_multiple (line 70) | async def test_azure_openai_embedding_documents_async_multiple() -> None: function test_azure_openai_embedding_query (line 83) | def test_azure_openai_embedding_query() -> None: function test_azure_openai_embedding_async_query (line 92) | async def test_azure_openai_embedding_async_query() -> None: function test_azure_openai_embedding_with_empty_string (line 101) | def test_azure_openai_embedding_with_empty_string() -> None: function test_embed_documents_normalized (line 125) | def test_embed_documents_normalized() -> None: function test_embed_query_normalized (line 131) | def test_embed_query_normalized() -> None: FILE: libs/partners/openai/tests/integration_tests/embeddings/test_base.py function test_langchain_openai_embedding_documents (line 12) | def test_langchain_openai_embedding_documents() -> None: function test_langchain_openai_embedding_query (line 21) | def test_langchain_openai_embedding_query() -> None: function test_langchain_openai_embeddings_dimensions (line 29) | def test_langchain_openai_embeddings_dimensions() -> None: function test_langchain_openai_embeddings_equivalent_to_raw (line 38) | def test_langchain_openai_embeddings_equivalent_to_raw() -> None: function test_langchain_openai_embeddings_equivalent_to_raw_async (line 52) | async def test_langchain_openai_embeddings_equivalent_to_raw_async() -> ... function test_langchain_openai_embeddings_dimensions_large_num (line 66) | def test_langchain_openai_embeddings_dimensions_large_num() -> None: function test_callable_api_key (line 75) | def test_callable_api_key(monkeypatch: pytest.MonkeyPatch) -> None: function test_callable_api_key_async (line 93) | async def test_callable_api_key_async(monkeypatch: pytest.MonkeyPatch) -... FILE: libs/partners/openai/tests/integration_tests/embeddings/test_base_standard.py class TestOpenAIStandard (line 9) | class TestOpenAIStandard(EmbeddingsIntegrationTests): method embeddings_class (line 11) | def embeddings_class(self) -> type[Embeddings]: method embedding_model_params (line 15) | def embedding_model_params(self) -> dict: FILE: libs/partners/openai/tests/integration_tests/llms/test_azure.py function _get_llm (line 32) | def _get_llm(**kwargs: Any) -> AzureOpenAI: function llm (line 43) | def llm() -> AzureOpenAI: function test_openai_call (line 48) | def test_openai_call(llm: AzureOpenAI) -> None: function test_openai_streaming (line 55) | def test_openai_streaming(llm: AzureOpenAI) -> None: function test_openai_astream (line 69) | async def test_openai_astream(llm: AzureOpenAI) -> None: function test_openai_abatch (line 76) | async def test_openai_abatch(llm: AzureOpenAI) -> None: function test_openai_abatch_tags (line 83) | async def test_openai_abatch_tags(llm: AzureOpenAI) -> None: function test_openai_batch (line 93) | def test_openai_batch(llm: AzureOpenAI) -> None: function test_openai_ainvoke (line 101) | async def test_openai_ainvoke(llm: AzureOpenAI) -> None: function test_openai_invoke (line 108) | def test_openai_invoke(llm: AzureOpenAI) -> None: function test_openai_multiple_prompts (line 115) | def test_openai_multiple_prompts(llm: AzureOpenAI) -> None: function test_openai_streaming_best_of_error (line 123) | def test_openai_streaming_best_of_error() -> None: function test_openai_streaming_n_error (line 129) | def test_openai_streaming_n_error() -> None: function test_openai_streaming_multiple_prompts_error (line 135) | def test_openai_streaming_multiple_prompts_error() -> None: function test_openai_streaming_call (line 142) | def test_openai_streaming_call() -> None: function test_openai_streaming_callback (line 149) | def test_openai_streaming_callback() -> None: function test_openai_async_generate (line 165) | async def test_openai_async_generate() -> None: function test_openai_async_streaming_callback (line 172) | async def test_openai_async_streaming_callback() -> None: FILE: libs/partners/openai/tests/integration_tests/llms/test_base.py function test_stream (line 13) | def test_stream() -> None: function test_astream (line 21) | async def test_astream() -> None: function test_abatch (line 29) | async def test_abatch() -> None: function test_abatch_tags (line 38) | async def test_abatch_tags() -> None: function test_batch (line 49) | def test_batch() -> None: function test_ainvoke (line 58) | async def test_ainvoke() -> None: function test_invoke (line 66) | def test_invoke() -> None: function test_openai_call (line 75) | def test_openai_call() -> None: function test_openai_llm_output_contains_model_name (line 82) | def test_openai_llm_output_contains_model_name() -> None: function test_openai_stop_valid (line 90) | def test_openai_stop_valid() -> None: function test_openai_streaming (line 102) | def test_openai_streaming() -> None: function test_openai_astream (line 114) | async def test_openai_astream() -> None: function test_openai_abatch (line 123) | async def test_openai_abatch() -> None: function test_openai_abatch_tags (line 132) | async def test_openai_abatch_tags() -> None: function test_openai_batch (line 144) | def test_openai_batch() -> None: function test_openai_ainvoke (line 154) | async def test_openai_ainvoke() -> None: function test_openai_invoke (line 163) | def test_openai_invoke() -> None: function test_openai_multiple_prompts (line 172) | def test_openai_multiple_prompts() -> None: function test_openai_streaming_best_of_error (line 181) | def test_openai_streaming_best_of_error() -> None: function test_openai_streaming_n_error (line 187) | def test_openai_streaming_n_error() -> None: function test_openai_streaming_multiple_prompts_error (line 193) | def test_openai_streaming_multiple_prompts_error() -> None: function test_openai_streaming_call (line 200) | def test_openai_streaming_call() -> None: function test_openai_streaming_callback (line 207) | def test_openai_streaming_callback() -> None: function test_openai_async_generate (line 225) | async def test_openai_async_generate() -> None: function test_openai_async_streaming_callback (line 232) | async def test_openai_async_streaming_callback() -> None: function test_openai_modelname_to_contextsize_valid (line 250) | def test_openai_modelname_to_contextsize_valid() -> None: function test_openai_modelname_to_contextsize_invalid (line 255) | def test_openai_modelname_to_contextsize_invalid() -> None: function mock_completion (line 262) | def mock_completion() -> dict: FILE: libs/partners/openai/tests/integration_tests/test_compile.py function test_placeholder (line 5) | def test_placeholder() -> None: FILE: libs/partners/openai/tests/unit_tests/chat_models/test_azure.py function test_initialize_azure_openai (line 14) | def test_initialize_azure_openai() -> None: function test_initialize_more (line 25) | def test_initialize_more() -> None: function test_initialize_azure_openai_with_openai_api_base_set (line 48) | def test_initialize_azure_openai_with_openai_api_base_set() -> None: function test_structured_output_old_model (line 70) | def test_structured_output_old_model() -> None: function test_max_completion_tokens_in_payload (line 89) | def test_max_completion_tokens_in_payload() -> None: function test_responses_api_uses_deployment_name (line 106) | def test_responses_api_uses_deployment_name() -> None: function test_chat_completions_api_uses_model_name (line 125) | def test_chat_completions_api_uses_model_name() -> None: function test_max_completion_tokens_parameter (line 145) | def test_max_completion_tokens_parameter() -> None: function test_max_tokens_converted_to_max_completion_tokens (line 162) | def test_max_tokens_converted_to_max_completion_tokens() -> None: FILE: libs/partners/openai/tests/unit_tests/chat_models/test_azure_standard.py class TestOpenAIStandard (line 11) | class TestOpenAIStandard(ChatModelUnitTests): method chat_model_class (line 13) | def chat_model_class(self) -> type[BaseChatModel]: method chat_model_params (line 17) | def chat_model_params(self) -> dict: method test_bind_tool_pydantic (line 25) | def test_bind_tool_pydantic( method init_from_env_params (line 31) | def init_from_env_params(self) -> tuple[dict, dict, dict]: FILE: libs/partners/openai/tests/unit_tests/chat_models/test_base.py function test_openai_model_param (line 86) | def test_openai_model_param() -> None: function test_streaming_attribute_should_stream (line 101) | def test_streaming_attribute_should_stream(async_api: bool) -> None: function test_openai_client_caching (line 106) | def test_openai_client_caching() -> None: function test_profile (line 130) | def test_profile() -> None: function test_openai_o1_temperature (line 158) | def test_openai_o1_temperature() -> None: function test_function_message_dict_to_function_message (line 165) | def test_function_message_dict_to_function_message() -> None: function test__convert_dict_to_message_human (line 176) | def test__convert_dict_to_message_human() -> None: function test__convert_dict_to_message_human_with_name (line 184) | def test__convert_dict_to_message_human_with_name() -> None: function test__convert_dict_to_message_ai (line 192) | def test__convert_dict_to_message_ai() -> None: function test__convert_dict_to_message_ai_with_name (line 200) | def test__convert_dict_to_message_ai_with_name() -> None: function test__convert_dict_to_message_system (line 208) | def test__convert_dict_to_message_system() -> None: function test__convert_dict_to_message_developer (line 216) | def test__convert_dict_to_message_developer() -> None: function test__convert_dict_to_message_system_with_name (line 226) | def test__convert_dict_to_message_system_with_name() -> None: function test__convert_dict_to_message_tool (line 234) | def test__convert_dict_to_message_tool() -> None: function test__convert_dict_to_message_tool_call (line 242) | def test__convert_dict_to_message_tool_call() -> None: class MockAsyncContextManager (line 319) | class MockAsyncContextManager: method __init__ (line 320) | def __init__(self, chunk_list: list) -> None: method __aenter__ (line 325) | async def __aenter__(self) -> Self: method __aexit__ (line 328) | async def __aexit__( method __aiter__ (line 336) | def __aiter__(self) -> MockAsyncContextManager: method __anext__ (line 339) | async def __anext__(self) -> dict: class MockSyncContextManager (line 347) | class MockSyncContextManager: method __init__ (line 348) | def __init__(self, chunk_list: list) -> None: method __enter__ (line 353) | def __enter__(self) -> Self: method __exit__ (line 356) | def __exit__( method __iter__ (line 364) | def __iter__(self) -> MockSyncContextManager: method __next__ (line 367) | def __next__(self) -> dict: function mock_glm4_completion (line 388) | def mock_glm4_completion() -> list: function test_glm4_astream (line 398) | async def test_glm4_astream(mock_glm4_completion: list) -> None: function test_glm4_stream (line 423) | def test_glm4_stream(mock_glm4_completion: list) -> None: function mock_deepseek_completion (line 469) | def mock_deepseek_completion() -> list[dict]: function test_deepseek_astream (line 479) | async def test_deepseek_astream(mock_deepseek_completion: list) -> None: function test_deepseek_stream (line 503) | def test_deepseek_stream(mock_deepseek_completion: list) -> None: function mock_openai_completion (line 537) | def mock_openai_completion() -> list[dict]: function test_openai_astream (line 547) | async def test_openai_astream(mock_openai_completion: list) -> None: function test_openai_stream (line 572) | def test_openai_stream(mock_openai_completion: list) -> None: function mock_completion (line 620) | def mock_completion() -> dict: function mock_client (line 637) | def mock_client(mock_completion: dict) -> MagicMock: function mock_async_client (line 653) | def mock_async_client(mock_completion: dict) -> AsyncMock: function test_openai_invoke (line 666) | def test_openai_invoke(mock_client: MagicMock) -> None: function test_openai_ainvoke (line 678) | async def test_openai_ainvoke(mock_async_client: AsyncMock) -> None: function test__get_encoding_model (line 701) | def test__get_encoding_model(model: str) -> None: function test_openai_invoke_name (line 705) | def test_openai_invoke_name(mock_client: MagicMock) -> None: function test_function_calls_with_tool_calls (line 724) | def test_function_calls_with_tool_calls(mock_client: MagicMock) -> None: function test_custom_token_counting (line 768) | def test_custom_token_counting() -> None: function test_format_message_content (line 776) | def test_format_message_content() -> None: class GenerateUsername (line 882) | class GenerateUsername(BaseModel): class MakeASandwich (line 889) | class MakeASandwich(BaseModel): function test_bind_tools_tool_choice (line 912) | def test_bind_tools_tool_choice(tool_choice: Any, strict: bool | None) -... function test_with_structured_output (line 926) | def test_with_structured_output( function test_get_num_tokens_from_messages (line 941) | def test_get_num_tokens_from_messages() -> None: class Foo (line 1036) | class Foo(BaseModel): function test_schema_from_with_structured_output (line 1051) | def test_schema_from_with_structured_output(schema: type) -> None: function test__create_usage_metadata (line 1070) | def test__create_usage_metadata() -> None: function test__create_usage_metadata_responses (line 1088) | def test__create_usage_metadata_responses() -> None: function test__resize_caps_dimensions_preserving_ratio (line 1107) | def test__resize_caps_dimensions_preserving_ratio() -> None: function test__convert_to_openai_response_format (line 1113) | def test__convert_to_openai_response_format() -> None: function test_structured_output_strict (line 1158) | def test_structured_output_strict( function test_nested_structured_output_strict (line 1176) | def test_nested_structured_output_strict() -> None: function test__get_request_payload (line 1195) | def test__get_request_payload() -> None: function test_sanitize_chat_completions_text_blocks (line 1269) | def test_sanitize_chat_completions_text_blocks() -> None: function test_init_o1 (line 1286) | def test_init_o1() -> None: function test_init_minimal_reasoning_effort (line 1294) | def test_init_minimal_reasoning_effort() -> None: function test_minimal_reasoning_effort_payload (line 1304) | def test_minimal_reasoning_effort_payload( function test_output_version_compat (line 1345) | def test_output_version_compat() -> None: function test_verbosity_parameter_payload (line 1350) | def test_verbosity_parameter_payload() -> None: function test_structured_output_old_model (line 1360) | def test_structured_output_old_model() -> None: function test_structured_outputs_parser (line 1373) | def test_structured_outputs_parser() -> None: function test_create_chat_result_avoids_parsed_model_dump_warning (line 1391) | def test_create_chat_result_avoids_parsed_model_dump_warning() -> None: function test_structured_outputs_parser_valid_falsy_response (line 1434) | def test_structured_outputs_parser_valid_falsy_response() -> None: function test__construct_lc_result_from_responses_api_error_handling (line 1454) | def test__construct_lc_result_from_responses_api_error_handling() -> None: function test__construct_lc_result_from_responses_api_basic_text_response (line 1474) | def test__construct_lc_result_from_responses_api_basic_text_response() -... function test__construct_lc_result_from_responses_api_multiple_text_blocks (line 1533) | def test__construct_lc_result_from_responses_api_multiple_text_blocks() ... function test__construct_lc_result_from_responses_api_multiple_messages (line 1570) | def test__construct_lc_result_from_responses_api_multiple_messages() -> ... function test__construct_lc_result_from_responses_api_refusal_response (line 1638) | def test__construct_lc_result_from_responses_api_refusal_response() -> N... function test__construct_lc_result_from_responses_api_function_call_valid_json (line 1681) | def test__construct_lc_result_from_responses_api_function_call_valid_jso... function test__construct_lc_result_from_responses_api_function_call_invalid_json (line 1734) | def test__construct_lc_result_from_responses_api_function_call_invalid_j... function test__construct_lc_result_from_responses_api_complex_response (line 1771) | def test__construct_lc_result_from_responses_api_complex_response() -> N... function test__construct_lc_result_from_responses_api_no_usage_metadata (line 1859) | def test__construct_lc_result_from_responses_api_no_usage_metadata() -> ... function test__construct_lc_result_from_responses_api_web_search_response (line 1890) | def test__construct_lc_result_from_responses_api_web_search_response() -... function test__construct_lc_result_from_responses_api_file_search_response (line 1944) | def test__construct_lc_result_from_responses_api_file_search_response() ... function test__construct_lc_result_from_responses_api_mixed_search_responses (line 2035) | def test__construct_lc_result_from_responses_api_mixed_search_responses(... function test__construct_responses_api_input_human_message_with_text_blocks_conversion (line 2144) | def test__construct_responses_api_input_human_message_with_text_blocks_c... function test__construct_responses_api_input_multiple_message_components (line 2162) | def test__construct_responses_api_input_multiple_message_components() ->... function test__construct_responses_api_input_skips_blocks_without_text (line 2218) | def test__construct_responses_api_input_skips_blocks_without_text() -> N... function test__construct_responses_api_input_human_message_with_image_url_conversion (line 2250) | def test__construct_responses_api_input_human_message_with_image_url_con... function test__construct_responses_api_input_ai_message_with_tool_calls (line 2286) | def test__construct_responses_api_input_ai_message_with_tool_calls() -> ... function test__construct_responses_api_input_ai_message_with_tool_calls_and_content (line 2332) | def test__construct_responses_api_input_ai_message_with_tool_calls_and_c... function test__construct_responses_api_input_tool_message_conversion (line 2404) | def test__construct_responses_api_input_tool_message_conversion() -> None: function test__construct_responses_api_input_multiple_message_types (line 2421) | def test__construct_responses_api_input_multiple_message_types() -> None: function test__construct_responses_api_input_message_type_on_all_roles (line 2538) | def test__construct_responses_api_input_message_type_on_all_roles() -> N... function test_service_tier (line 2569) | def test_service_tier() -> None: class FakeTracer (line 2575) | class FakeTracer(BaseTracer): method __init__ (line 2576) | def __init__(self) -> None: method _persist_run (line 2580) | def _persist_run(self, run: Run) -> None: method on_chat_model_start (line 2583) | def on_chat_model_start(self, *args: Any, **kwargs: Any) -> Run: function test_mcp_tracing (line 2588) | def test_mcp_tracing() -> None: function test_compat_responses_v03 (line 2652) | def test_compat_responses_v03() -> None: function test_convert_from_v1_to_chat_completions (line 2745) | def test_convert_from_v1_to_chat_completions( function test_convert_from_v1_to_responses (line 2866) | def test_convert_from_v1_to_responses( function test_get_last_messages (line 2885) | def test_get_last_messages() -> None: function test_get_last_messages_with_mixed_response_metadata (line 2955) | def test_get_last_messages_with_mixed_response_metadata() -> None: function test_get_request_payload_use_previous_response_id (line 2991) | def test_get_request_payload_use_previous_response_id() -> None: function test_make_computer_call_output_from_message (line 3022) | def test_make_computer_call_output_from_message() -> None: function test_lc_tool_call_to_openai_tool_call_unicode (line 3095) | def test_lc_tool_call_to_openai_tool_call_unicode() -> None: function test_extra_body_parameter (line 3121) | def test_extra_body_parameter() -> None: function test_extra_body_with_model_kwargs (line 3140) | def test_extra_body_with_model_kwargs() -> None: function test_structured_output_verbosity (line 3164) | def test_structured_output_verbosity( function test_gpt_5_temperature (line 3208) | def test_gpt_5_temperature(use_responses_api: bool) -> None: function test_gpt_5_temperature_case_insensitive (line 3235) | def test_gpt_5_temperature_case_insensitive( function test_gpt_5_1_temperature_with_reasoning_effort_none (line 3256) | def test_gpt_5_1_temperature_with_reasoning_effort_none( function test_model_prefers_responses_api (line 3315) | def test_model_prefers_responses_api() -> None: function test_openai_structured_output_refusal_handling_responses_api (line 3340) | def test_openai_structured_output_refusal_handling_responses_api() -> None: function test_context_overflow_error_invoke_sync (line 3401) | def test_context_overflow_error_invoke_sync() -> None: function test_context_overflow_error_invoke_sync_responses_api (line 3415) | def test_context_overflow_error_invoke_sync_responses_api() -> None: function test_context_overflow_error_invoke_async (line 3429) | async def test_context_overflow_error_invoke_async() -> None: function test_context_overflow_error_invoke_async_responses_api (line 3443) | async def test_context_overflow_error_invoke_async_responses_api() -> None: function test_context_overflow_error_stream_sync (line 3459) | def test_context_overflow_error_stream_sync() -> None: function test_context_overflow_error_stream_sync_responses_api (line 3473) | def test_context_overflow_error_stream_sync_responses_api() -> None: function test_context_overflow_error_stream_async (line 3487) | async def test_context_overflow_error_stream_async() -> None: function test_context_overflow_error_stream_async_responses_api (line 3502) | async def test_context_overflow_error_stream_async_responses_api() -> None: function test_context_overflow_error_backwards_compatibility (line 3517) | def test_context_overflow_error_backwards_compatibility() -> None: function test_tool_search_passthrough (line 3533) | def test_tool_search_passthrough() -> None: function test_tool_search_with_defer_loading_extras (line 3546) | def test_tool_search_with_defer_loading_extras() -> None: function test_namespace_passthrough (line 3571) | def test_namespace_passthrough() -> None: function test_defer_loading_in_responses_api_payload (line 3608) | def test_defer_loading_in_responses_api_payload() -> None: FILE: libs/partners/openai/tests/unit_tests/chat_models/test_base_standard.py class TestOpenAIStandard (line 9) | class TestOpenAIStandard(ChatModelUnitTests): method chat_model_class (line 11) | def chat_model_class(self) -> type[BaseChatModel]: method init_from_env_params (line 15) | def init_from_env_params(self) -> tuple[dict, dict, dict]: FILE: libs/partners/openai/tests/unit_tests/chat_models/test_imports.py function test_all_imports (line 6) | def test_all_imports() -> None: FILE: libs/partners/openai/tests/unit_tests/chat_models/test_prompt_cache_key.py function test_prompt_cache_key_parameter_inclusion (line 8) | def test_prompt_cache_key_parameter_inclusion() -> None: function test_prompt_cache_key_parameter_exclusion (line 18) | def test_prompt_cache_key_parameter_exclusion() -> None: function test_prompt_cache_key_per_call (line 29) | def test_prompt_cache_key_per_call() -> None: function test_prompt_cache_key_model_kwargs (line 50) | def test_prompt_cache_key_model_kwargs() -> None: function test_prompt_cache_key_responses_api (line 71) | def test_prompt_cache_key_responses_api() -> None: FILE: libs/partners/openai/tests/unit_tests/chat_models/test_responses_standard.py class TestOpenAIResponses (line 9) | class TestOpenAIResponses(ChatModelUnitTests): method chat_model_class (line 11) | def chat_model_class(self) -> type[BaseChatModel]: method chat_model_params (line 15) | def chat_model_params(self) -> dict: method init_from_env_params (line 19) | def init_from_env_params(self) -> tuple[dict, dict, dict]: FILE: libs/partners/openai/tests/unit_tests/chat_models/test_responses_stream.py function _strip_none (line 620) | def _strip_none(obj: Any) -> Any: function test_responses_stream (line 723) | def test_responses_stream(output_version: str, expected_content: list[di... function test_responses_stream_with_image_generation_multiple_calls (line 764) | def test_responses_stream_with_image_generation_multiple_calls() -> None: function test_responses_stream_function_call_preserves_namespace (line 799) | def test_responses_stream_function_call_preserves_namespace() -> None: FILE: libs/partners/openai/tests/unit_tests/embeddings/test_azure_embeddings.py function test_initialize_azure_openai (line 7) | def test_initialize_azure_openai() -> None: function test_initialize_azure_openai_with_base_set (line 18) | def test_initialize_azure_openai_with_base_set() -> None: FILE: libs/partners/openai/tests/unit_tests/embeddings/test_azure_standard.py class TestAzureOpenAIStandard (line 7) | class TestAzureOpenAIStandard(EmbeddingsUnitTests): method embeddings_class (line 9) | def embeddings_class(self) -> type[Embeddings]: method embedding_model_params (line 13) | def embedding_model_params(self) -> dict: method init_from_env_params (line 17) | def init_from_env_params(self) -> tuple[dict, dict, dict]: FILE: libs/partners/openai/tests/unit_tests/embeddings/test_base.py function test_openai_invalid_model_kwargs (line 13) | def test_openai_invalid_model_kwargs() -> None: function test_openai_incorrect_field (line 18) | def test_openai_incorrect_field() -> None: function test_embed_documents_with_custom_chunk_size (line 24) | def test_embed_documents_with_custom_chunk_size() -> None: function test_embed_documents_with_custom_chunk_size_no_check_ctx_length (line 44) | def test_embed_documents_with_custom_chunk_size_no_check_ctx_length() ->... function test_embed_with_kwargs (line 64) | def test_embed_with_kwargs() -> None: function test_embed_with_kwargs_async (line 82) | async def test_embed_with_kwargs_async() -> None: function test_embeddings_respects_token_limit (line 103) | def test_embeddings_respects_token_limit() -> None: FILE: libs/partners/openai/tests/unit_tests/embeddings/test_base_standard.py class TestOpenAIStandard (line 9) | class TestOpenAIStandard(EmbeddingsUnitTests): method embeddings_class (line 11) | def embeddings_class(self) -> type[Embeddings]: method init_from_env_params (line 15) | def init_from_env_params(self) -> tuple[dict, dict, dict]: FILE: libs/partners/openai/tests/unit_tests/embeddings/test_imports.py function test_all_imports (line 6) | def test_all_imports() -> None: FILE: libs/partners/openai/tests/unit_tests/fake/callbacks.py class BaseFakeCallbackHandler (line 14) | class BaseFakeCallbackHandler(BaseModel): class BaseFakeCallbackHandlerMixin (line 48) | class BaseFakeCallbackHandlerMixin(BaseFakeCallbackHandler): method on_llm_start_common (line 51) | def on_llm_start_common(self) -> None: method on_llm_end_common (line 55) | def on_llm_end_common(self) -> None: method on_llm_error_common (line 59) | def on_llm_error_common(self, *args: Any, **kwargs: Any) -> None: method on_llm_new_token_common (line 63) | def on_llm_new_token_common(self) -> None: method on_retry_common (line 66) | def on_retry_common(self) -> None: method on_chain_start_common (line 69) | def on_chain_start_common(self) -> None: method on_chain_end_common (line 73) | def on_chain_end_common(self) -> None: method on_chain_error_common (line 77) | def on_chain_error_common(self) -> None: method on_tool_start_common (line 80) | def on_tool_start_common(self) -> None: method on_tool_end_common (line 84) | def on_tool_end_common(self) -> None: method on_tool_error_common (line 88) | def on_tool_error_common(self) -> None: method on_agent_action_common (line 91) | def on_agent_action_common(self) -> None: method on_agent_finish_common (line 95) | def on_agent_finish_common(self) -> None: method on_chat_model_start_common (line 99) | def on_chat_model_start_common(self) -> None: method on_text_common (line 103) | def on_text_common(self) -> None: method on_retriever_start_common (line 106) | def on_retriever_start_common(self) -> None: method on_retriever_end_common (line 110) | def on_retriever_end_common(self) -> None: method on_retriever_error_common (line 114) | def on_retriever_error_common(self) -> None: class FakeCallbackHandler (line 119) | class FakeCallbackHandler(BaseCallbackHandler, BaseFakeCallbackHandlerMi... method ignore_llm (line 123) | def ignore_llm(self) -> bool: method ignore_chain (line 128) | def ignore_chain(self) -> bool: method ignore_agent (line 133) | def ignore_agent(self) -> bool: method ignore_retriever (line 138) | def ignore_retriever(self) -> bool: method on_llm_start (line 142) | def on_llm_start(self, *args: Any, **kwargs: Any) -> Any: method on_llm_new_token (line 145) | def on_llm_new_token(self, *args: Any, **kwargs: Any) -> Any: method on_llm_end (line 148) | def on_llm_end(self, *args: Any, **kwargs: Any) -> Any: method on_llm_error (line 151) | def on_llm_error(self, *args: Any, **kwargs: Any) -> Any: method on_retry (line 154) | def on_retry(self, *args: Any, **kwargs: Any) -> Any: method on_chain_start (line 157) | def on_chain_start(self, *args: Any, **kwargs: Any) -> Any: method on_chain_end (line 160) | def on_chain_end(self, *args: Any, **kwargs: Any) -> Any: method on_chain_error (line 163) | def on_chain_error(self, *args: Any, **kwargs: Any) -> Any: method on_tool_start (line 166) | def on_tool_start(self, *args: Any, **kwargs: Any) -> Any: method on_tool_end (line 169) | def on_tool_end(self, *args: Any, **kwargs: Any) -> Any: method on_tool_error (line 172) | def on_tool_error(self, *args: Any, **kwargs: Any) -> Any: method on_agent_action (line 175) | def on_agent_action(self, *args: Any, **kwargs: Any) -> Any: method on_agent_finish (line 178) | def on_agent_finish(self, *args: Any, **kwargs: Any) -> Any: method on_text (line 181) | def on_text(self, *args: Any, **kwargs: Any) -> Any: method on_retriever_start (line 184) | def on_retriever_start(self, *args: Any, **kwargs: Any) -> Any: method on_retriever_end (line 187) | def on_retriever_end(self, *args: Any, **kwargs: Any) -> Any: method on_retriever_error (line 190) | def on_retriever_error(self, *args: Any, **kwargs: Any) -> Any: method __deepcopy__ (line 193) | def __deepcopy__(self, memo: dict) -> FakeCallbackHandler: # type: ig... class FakeCallbackHandlerWithChatStart (line 197) | class FakeCallbackHandlerWithChatStart(FakeCallbackHandler): method on_chat_model_start (line 198) | def on_chat_model_start( class FakeAsyncCallbackHandler (line 211) | class FakeAsyncCallbackHandler(AsyncCallbackHandler, BaseFakeCallbackHan... method ignore_llm (line 215) | def ignore_llm(self) -> bool: method ignore_chain (line 220) | def ignore_chain(self) -> bool: method ignore_agent (line 225) | def ignore_agent(self) -> bool: method on_retry (line 229) | async def on_retry(self, *args: Any, **kwargs: Any) -> Any: method on_llm_start (line 232) | async def on_llm_start(self, *args: Any, **kwargs: Any) -> None: method on_llm_new_token (line 235) | async def on_llm_new_token(self, *args: Any, **kwargs: Any) -> None: method on_llm_end (line 238) | async def on_llm_end(self, *args: Any, **kwargs: Any) -> None: method on_llm_error (line 241) | async def on_llm_error(self, *args: Any, **kwargs: Any) -> None: method on_chain_start (line 244) | async def on_chain_start(self, *args: Any, **kwargs: Any) -> None: method on_chain_end (line 247) | async def on_chain_end(self, *args: Any, **kwargs: Any) -> None: method on_chain_error (line 250) | async def on_chain_error(self, *args: Any, **kwargs: Any) -> None: method on_tool_start (line 253) | async def on_tool_start(self, *args: Any, **kwargs: Any) -> None: method on_tool_end (line 256) | async def on_tool_end(self, *args: Any, **kwargs: Any) -> None: method on_tool_error (line 259) | async def on_tool_error(self, *args: Any, **kwargs: Any) -> None: method on_agent_action (line 262) | async def on_agent_action(self, *args: Any, **kwargs: Any) -> None: method on_agent_finish (line 265) | async def on_agent_finish(self, *args: Any, **kwargs: Any) -> None: method on_text (line 268) | async def on_text(self, *args: Any, **kwargs: Any) -> None: method __deepcopy__ (line 271) | def __deepcopy__(self, memo: dict) -> FakeAsyncCallbackHandler: # typ... FILE: libs/partners/openai/tests/unit_tests/llms/test_azure.py function test_azure_model_param (line 6) | def test_azure_model_param(monkeypatch: Any) -> None: FILE: libs/partners/openai/tests/unit_tests/llms/test_base.py function test_openai_model_param (line 12) | def test_openai_model_param() -> None: function test_openai_model_kwargs (line 32) | def test_openai_model_kwargs() -> None: function test_openai_fields_in_model_kwargs (line 37) | def test_openai_fields_in_model_kwargs() -> None: function test_openai_incorrect_field (line 45) | def test_openai_incorrect_field() -> None: function mock_completion (line 52) | def mock_completion() -> dict: function test_get_token_ids (line 66) | def test_get_token_ids(model: str) -> None: function test_custom_token_counting (line 70) | def test_custom_token_counting() -> None: function test_stream_response_to_generation_chunk (line 78) | def test_stream_response_to_generation_chunk() -> None: function test_generate_streaming_multiple_prompts_error (line 113) | def test_generate_streaming_multiple_prompts_error() -> None: FILE: libs/partners/openai/tests/unit_tests/llms/test_imports.py function test_all_imports (line 6) | def test_all_imports() -> None: FILE: libs/partners/openai/tests/unit_tests/middleware/test_openai_moderation_middleware.py function flagged_result (line 70) | def flagged_result() -> Moderation: class StubModerationMiddleware (line 78) | class StubModerationMiddleware(OpenAIModerationMiddleware): method __init__ (line 81) | def __init__(self, decisions: Mapping[str, Moderation], **kwargs: Any)... method _moderate (line 85) | def _moderate(self, text: str) -> Moderation: method _amoderate (line 88) | async def _amoderate(self, text: str) -> Moderation: function make_state (line 92) | def make_state( function test_before_model_allows_clean_input (line 98) | def test_before_model_allows_clean_input() -> None: function test_before_model_errors_on_flagged_input (line 105) | def test_before_model_errors_on_flagged_input() -> None: function test_before_model_jump_on_end_behavior (line 118) | def test_before_model_jump_on_end_behavior() -> None: function test_custom_violation_message_template (line 133) | def test_custom_violation_message_template() -> None: function test_after_model_replaces_flagged_message (line 148) | def test_after_model_replaces_flagged_message() -> None: function test_tool_messages_are_moderated_when_enabled (line 162) | def test_tool_messages_are_moderated_when_enabled() -> None: function test_async_before_model_uses_async_moderation (line 187) | async def test_async_before_model_uses_async_moderation() -> None: FILE: libs/partners/openai/tests/unit_tests/test_imports.py function test_all_imports (line 14) | def test_all_imports() -> None: FILE: libs/partners/openai/tests/unit_tests/test_load.py function test_loads_openai_llm (line 9) | def test_loads_openai_llm() -> None: function test_load_openai_llm (line 24) | def test_load_openai_llm() -> None: function test_loads_openai_chat (line 38) | def test_loads_openai_chat() -> None: function test_load_openai_chat (line 53) | def test_load_openai_chat() -> None: function test_loads_runnable_sequence_prompt_model (line 67) | def test_loads_runnable_sequence_prompt_model() -> None: function test_load_runnable_sequence_prompt_model (line 105) | def test_load_runnable_sequence_prompt_model() -> None: FILE: libs/partners/openai/tests/unit_tests/test_secrets.py function test_chat_openai_secrets (line 20) | def test_chat_openai_secrets() -> None: function test_openai_secrets (line 26) | def test_openai_secrets() -> None: function test_openai_embeddings_secrets (line 32) | def test_openai_embeddings_secrets() -> None: function test_azure_chat_openai_secrets (line 38) | def test_azure_chat_openai_secrets() -> None: function test_azure_openai_secrets (line 50) | def test_azure_openai_secrets() -> None: function test_azure_openai_embeddings_secrets (line 62) | def test_azure_openai_embeddings_secrets() -> None: function test_azure_openai_api_key_is_secret_string (line 77) | def test_azure_openai_api_key_is_secret_string(model_class: type) -> None: function test_azure_openai_api_key_masked_when_passed_from_env (line 92) | def test_azure_openai_api_key_masked_when_passed_from_env( function test_azure_openai_api_key_masked_when_passed_via_constructor (line 113) | def test_azure_openai_api_key_masked_when_passed_via_constructor( function test_azure_openai_uses_actual_secret_value_from_secretstr (line 137) | def test_azure_openai_uses_actual_secret_value_from_secretstr( function test_openai_api_key_is_secret_string (line 152) | def test_openai_api_key_is_secret_string(model_class: type) -> None: function test_openai_api_key_masked_when_passed_from_env (line 159) | def test_openai_api_key_masked_when_passed_from_env( function test_openai_api_key_masked_when_passed_via_constructor (line 172) | def test_openai_api_key_masked_when_passed_via_constructor( function test_openai_uses_actual_secret_value_from_secretstr (line 184) | def test_openai_uses_actual_secret_value_from_secretstr(model_class: typ... function test_openai_api_key_accepts_callable (line 191) | def test_openai_api_key_accepts_callable(model_class: type) -> None: function test_azure_serialized_secrets (line 203) | def test_azure_serialized_secrets(model_class: type) -> None: FILE: libs/partners/openai/tests/unit_tests/test_token_counts.py function test_openai_get_num_tokens (line 24) | def test_openai_get_num_tokens(model: str) -> None: function test_chat_openai_get_num_tokens (line 31) | def test_chat_openai_get_num_tokens(model: str) -> None: FILE: libs/partners/openai/tests/unit_tests/test_tools.py function test_custom_tool (line 7) | def test_custom_tool() -> None: function test_async_custom_tool (line 99) | async def test_async_custom_tool() -> None: FILE: libs/partners/openrouter/langchain_openrouter/chat_models.py function _get_default_model_profile (line 80) | def _get_default_model_profile(model_name: str) -> ModelProfile: class ChatOpenRouter (line 85) | class ChatOpenRouter(BaseChatModel): method model (line 215) | def model(self) -> str: method build_extra (line 299) | def build_extra(cls, values: dict[str, Any]) -> Any: method _build_client (line 327) | def _build_client(self) -> Any: method validate_environment (line 376) | def validate_environment(self) -> Self: method _resolve_model_profile (line 398) | def _resolve_model_profile(self) -> ModelProfile | None: method lc_secrets (line 405) | def lc_secrets(self) -> dict[str, str]: method is_lc_serializable (line 410) | def is_lc_serializable(cls) -> bool: method _llm_type (line 418) | def _llm_type(self) -> str: method _identifying_params (line 423) | def _identifying_params(self) -> dict[str, Any]: method _get_ls_params (line 437) | def _get_ls_params( method _generate (line 456) | def _generate( method _agenerate (line 475) | async def _agenerate( method _stream (line 494) | def _stream( # noqa: C901, PLR0912 method _astream (line 580) | async def _astream( # noqa: C901, PLR0912 method _default_params (line 672) | def _default_params(self) -> dict[str, Any]: # noqa: C901, PLR0912 method _create_message_dicts (line 708) | def _create_message_dicts( method _create_chat_result (line 717) | def _create_chat_result(self, response: Any) -> ChatResult: # noqa: C... method bind_tools (line 785) | def bind_tools( method with_structured_output (line 833) | def with_structured_output( # type: ignore[override] function _is_pydantic_class (line 948) | def _is_pydantic_class(obj: Any) -> bool: function _strip_internal_kwargs (line 952) | def _strip_internal_kwargs(params: dict[str, Any]) -> None: function _has_file_content_blocks (line 958) | def _has_file_content_blocks(message_dicts: list[dict[str, Any]]) -> bool: function _wrap_messages_for_sdk (line 969) | def _wrap_messages_for_sdk( function _convert_video_block_to_openrouter (line 1029) | def _convert_video_block_to_openrouter(block: dict[str, Any]) -> dict[st... function _convert_file_block_to_openrouter (line 1054) | def _convert_file_block_to_openrouter(block: dict[str, Any]) -> dict[str... function _format_message_content (line 1100) | def _format_message_content(content: Any) -> Any: function _convert_message_to_dict (line 1127) | def _convert_message_to_dict(message: BaseMessage) -> dict[str, Any]: #... function _convert_dict_to_message (line 1202) | def _convert_dict_to_message(_dict: Mapping[str, Any]) -> BaseMessage: ... function _convert_chunk_to_message_chunk (line 1269) | def _convert_chunk_to_message_chunk( # noqa: C901, PLR0911, PLR0912 function _lc_tool_call_to_openrouter_tool_call (line 1347) | def _lc_tool_call_to_openrouter_tool_call(tool_call: ToolCall) -> dict[s... function _lc_invalid_tool_call_to_openrouter_tool_call (line 1362) | def _lc_invalid_tool_call_to_openrouter_tool_call( function _create_usage_metadata (line 1380) | def _create_usage_metadata(token_usage: dict[str, Any]) -> UsageMetadata: FILE: libs/partners/openrouter/tests/conftest.py function remove_request_headers (line 10) | def remove_request_headers(request: Any) -> Any: function remove_response_headers (line 17) | def remove_response_headers(response: dict) -> dict: function vcr_config (line 25) | def vcr_config() -> dict: function pytest_recording_configure (line 36) | def pytest_recording_configure(config: dict, vcr: VCR) -> None: # noqa:... FILE: libs/partners/openrouter/tests/integration_tests/test_chat_models.py function test_basic_invoke (line 12) | def test_basic_invoke() -> None: function test_streaming (line 20) | def test_streaming() -> None: function test_tool_calling (line 30) | def test_tool_calling() -> None: function test_structured_output (line 44) | def test_structured_output() -> None: function test_reasoning_content (line 62) | def test_reasoning_content() -> None: FILE: libs/partners/openrouter/tests/integration_tests/test_compile.py function test_placeholder (line 7) | def test_placeholder() -> None: FILE: libs/partners/openrouter/tests/integration_tests/test_standard.py class TestChatOpenRouter (line 11) | class TestChatOpenRouter(ChatModelIntegrationTests): method chat_model_class (line 15) | def chat_model_class(self) -> type[ChatOpenRouter]: method chat_model_params (line 20) | def chat_model_params(self) -> dict: method returns_usage_metadata (line 28) | def returns_usage_metadata(self) -> bool: method supports_json_mode (line 33) | def supports_json_mode(self) -> bool: method supports_image_inputs (line 37) | def supports_image_inputs(self) -> bool: method supports_image_urls (line 41) | def supports_image_urls(self) -> bool: method supports_video_inputs (line 45) | def supports_video_inputs(self) -> bool: method model_override_value (line 49) | def model_override_value(self) -> str: class TestChatOpenRouterMultiModal (line 57) | class TestChatOpenRouterMultiModal(ChatModelIntegrationTests): method chat_model_class (line 65) | def chat_model_class(self) -> type[ChatOpenRouter]: method chat_model_params (line 69) | def chat_model_params(self) -> dict: method returns_usage_metadata (line 76) | def returns_usage_metadata(self) -> bool: method supports_json_mode (line 81) | def supports_json_mode(self) -> bool: method supports_image_inputs (line 85) | def supports_image_inputs(self) -> bool: method supports_image_urls (line 89) | def supports_image_urls(self) -> bool: method supports_audio_inputs (line 93) | def supports_audio_inputs(self) -> bool: method supports_video_inputs (line 97) | def supports_video_inputs(self) -> bool: method model_override_value (line 101) | def model_override_value(self) -> str: method invoke_with_reasoning_output (line 104) | def invoke_with_reasoning_output(self, *, stream: bool = False) -> AIM... FILE: libs/partners/openrouter/tests/unit_tests/test_chat_models.py function _make_model (line 41) | def _make_model(**kwargs: Any) -> ChatOpenRouter: class GetWeather (line 53) | class GetWeather(BaseModel): class GenerateUsername (line 59) | class GenerateUsername(BaseModel): function _make_sdk_response (line 150) | def _make_sdk_response(response_dict: dict[str, Any]) -> MagicMock: class _MockSyncStream (line 157) | class _MockSyncStream: method __init__ (line 160) | def __init__(self, chunks: list[dict[str, Any]]) -> None: method __iter__ (line 163) | def __iter__(self) -> _MockSyncStream: method __next__ (line 166) | def __next__(self) -> MagicMock: class _MockAsyncStream (line 175) | class _MockAsyncStream: method __init__ (line 178) | def __init__(self, chunks: list[dict[str, Any]]) -> None: method __aiter__ (line 181) | def __aiter__(self) -> _MockAsyncStream: method __anext__ (line 184) | async def __anext__(self) -> MagicMock: class TestChatOpenRouterInstantiation (line 198) | class TestChatOpenRouterInstantiation: method test_basic_instantiation (line 201) | def test_basic_instantiation(self) -> None: method test_api_key_from_field (line 208) | def test_api_key_from_field(self) -> None: method test_api_key_from_env (line 214) | def test_api_key_from_env(self, monkeypatch: pytest.MonkeyPatch) -> None: method test_missing_api_key_raises (line 221) | def test_missing_api_key_raises(self, monkeypatch: pytest.MonkeyPatch)... method test_model_required (line 227) | def test_model_required(self) -> None: method test_secret_masking (line 232) | def test_secret_masking(self) -> None: method test_secret_masking_repr (line 238) | def test_secret_masking_repr(self) -> None: method test_api_key_is_secret_str (line 243) | def test_api_key_is_secret_str(self) -> None: method test_llm_type (line 248) | def test_llm_type(self) -> None: method test_ls_params (line 253) | def test_ls_params(self) -> None: method test_ls_params_includes_max_tokens (line 259) | def test_ls_params_includes_max_tokens(self) -> None: method test_ls_params_stop_string_wrapped_in_list (line 265) | def test_ls_params_stop_string_wrapped_in_list(self) -> None: method test_ls_params_stop_list_passthrough (line 271) | def test_ls_params_stop_list_passthrough(self) -> None: method test_client_created (line 277) | def test_client_created(self) -> None: method test_client_reused_for_same_params (line 282) | def test_client_reused_for_same_params(self) -> None: method test_app_url_passed_to_client (line 290) | def test_app_url_passed_to_client(self) -> None: method test_app_title_passed_to_client (line 302) | def test_app_title_passed_to_client(self) -> None: method test_default_attribution_headers (line 314) | def test_default_attribution_headers(self) -> None: method test_user_attribution_overrides_defaults (line 327) | def test_user_attribution_overrides_defaults(self) -> None: method test_app_categories_passed_to_client (line 342) | def test_app_categories_passed_to_client(self) -> None: method test_app_categories_none_no_categories_header (line 365) | def test_app_categories_none_no_categories_header(self) -> None: method test_app_categories_empty_list_no_categories_header (line 378) | def test_app_categories_empty_list_no_categories_header(self) -> None: method test_app_categories_with_other_attribution (line 391) | def test_app_categories_with_other_attribution(self) -> None: method test_app_title_none_no_x_title_header (line 408) | def test_app_title_none_no_x_title_header(self) -> None: method test_app_url_none_no_referer_header (line 421) | def test_app_url_none_no_referer_header(self) -> None: method test_no_attribution_no_custom_clients (line 434) | def test_no_attribution_no_custom_clients(self) -> None: method test_reasoning_in_params (line 449) | def test_reasoning_in_params(self) -> None: method test_openrouter_provider_in_params (line 455) | def test_openrouter_provider_in_params(self) -> None: method test_route_in_params (line 461) | def test_route_in_params(self) -> None: method test_optional_params_excluded_when_none (line 467) | def test_optional_params_excluded_when_none(self) -> None: method test_temperature_included_when_set (line 476) | def test_temperature_included_when_set(self) -> None: class TestSerialization (line 488) | class TestSerialization: method test_is_lc_serializable (line 491) | def test_is_lc_serializable(self) -> None: method test_dumpd_load_roundtrip (line 495) | def test_dumpd_load_roundtrip(self) -> None: method test_dumps_does_not_leak_secrets (line 511) | def test_dumps_does_not_leak_secrets(self) -> None: class TestMockedGenerate (line 523) | class TestMockedGenerate: method test_invoke_basic (line 526) | def test_invoke_basic(self) -> None: method test_invoke_with_tool_response (line 537) | def test_invoke_with_tool_response(self) -> None: method test_invoke_passes_correct_messages (line 548) | def test_invoke_passes_correct_messages(self) -> None: method test_invoke_strips_internal_kwargs (line 558) | def test_invoke_strips_internal_kwargs(self) -> None: method test_invoke_usage_metadata (line 571) | def test_invoke_usage_metadata(self) -> None: method test_stream_basic (line 584) | def test_stream_basic(self) -> None: method test_stream_passes_stream_true (line 600) | def test_stream_passes_stream_true(self) -> None: method test_invoke_with_streaming_flag (line 612) | def test_invoke_with_streaming_flag(self) -> None: method test_ainvoke_basic (line 625) | async def test_ainvoke_basic(self) -> None: method test_astream_basic (line 638) | async def test_astream_basic(self) -> None: method test_stream_response_metadata_fields (line 650) | def test_stream_response_metadata_fields(self) -> None: method test_astream_response_metadata_fields (line 700) | async def test_astream_response_metadata_fields(self) -> None: class TestRequestPayload (line 757) | class TestRequestPayload: method test_message_format_in_payload (line 760) | def test_message_format_in_payload(self) -> None: method test_model_kwargs_forwarded (line 778) | def test_model_kwargs_forwarded(self) -> None: method test_stop_sequences_in_payload (line 788) | def test_stop_sequences_in_payload(self) -> None: method test_tool_format_in_payload (line 798) | def test_tool_format_in_payload(self) -> None: method test_openrouter_params_in_payload (line 813) | def test_openrouter_params_in_payload(self) -> None: class TestBindTools (line 835) | class TestBindTools: method test_bind_tools_tool_choice (line 849) | def test_bind_tools_tool_choice(self, tool_choice: Any) -> None: method test_bind_tools_bool_true_single_tool (line 857) | def test_bind_tools_bool_true_single_tool(self) -> None: method test_bind_tools_bool_true_multiple_tools_raises (line 868) | def test_bind_tools_bool_true_multiple_tools_raises(self) -> None: method test_bind_tools_any_maps_to_required (line 874) | def test_bind_tools_any_maps_to_required(self) -> None: method test_bind_tools_string_name_becomes_dict (line 881) | def test_bind_tools_string_name_becomes_dict(self) -> None: method test_bind_tools_formats_tools_correctly (line 891) | def test_bind_tools_formats_tools_correctly(self) -> None: method test_bind_tools_no_choice_omits_key (line 901) | def test_bind_tools_no_choice_omits_key(self) -> None: method test_bind_tools_strict_forwarded (line 908) | def test_bind_tools_strict_forwarded(self) -> None: method test_bind_tools_strict_none_by_default (line 916) | def test_bind_tools_strict_none_by_default(self) -> None: class TestWithStructuredOutput (line 930) | class TestWithStructuredOutput: method test_with_structured_output_pydantic (line 935) | def test_with_structured_output_pydantic( method test_with_structured_output_dict_schema (line 948) | def test_with_structured_output_dict_schema( method test_with_structured_output_none_schema_function_calling_raises (line 958) | def test_with_structured_output_none_schema_function_calling_raises(se... method test_with_structured_output_none_schema_json_schema_raises (line 964) | def test_with_structured_output_none_schema_json_schema_raises(self) -... method test_with_structured_output_invalid_method_raises (line 970) | def test_with_structured_output_invalid_method_raises(self) -> None: method test_with_structured_output_json_schema_sets_response_format (line 979) | def test_with_structured_output_json_schema_sets_response_format(self)... method test_with_structured_output_json_mode_warns_and_falls_back (line 992) | def test_with_structured_output_json_mode_warns_and_falls_back(self) -... method test_with_structured_output_strict_function_calling (line 1005) | def test_with_structured_output_strict_function_calling(self) -> None: method test_with_structured_output_strict_json_schema (line 1016) | def test_with_structured_output_strict_json_schema(self) -> None: method test_with_structured_output_json_mode_with_strict_warns_and_forwards (line 1027) | def test_with_structured_output_json_mode_with_strict_warns_and_forwards( class TestMessageConversion (line 1050) | class TestMessageConversion: method test_human_message_to_dict (line 1053) | def test_human_message_to_dict(self) -> None: method test_system_message_to_dict (line 1059) | def test_system_message_to_dict(self) -> None: method test_ai_message_to_dict (line 1065) | def test_ai_message_to_dict(self) -> None: method test_ai_message_with_reasoning_content_to_dict (line 1071) | def test_ai_message_with_reasoning_content_to_dict(self) -> None: method test_ai_message_with_reasoning_details_to_dict (line 1082) | def test_ai_message_with_reasoning_details_to_dict(self) -> None: method test_ai_message_with_both_reasoning_fields_to_dict (line 1096) | def test_ai_message_with_both_reasoning_fields_to_dict(self) -> None: method test_reasoning_roundtrip_through_dict (line 1110) | def test_reasoning_roundtrip_through_dict(self) -> None: method test_tool_message_to_dict (line 1123) | def test_tool_message_to_dict(self) -> None: method test_chat_message_to_dict (line 1133) | def test_chat_message_to_dict(self) -> None: method test_ai_message_with_tool_calls_to_dict (line 1139) | def test_ai_message_with_tool_calls_to_dict(self) -> None: method test_dict_to_ai_message (line 1158) | def test_dict_to_ai_message(self) -> None: method test_dict_to_ai_message_with_reasoning (line 1165) | def test_dict_to_ai_message_with_reasoning(self) -> None: method test_dict_to_ai_message_with_tool_calls (line 1176) | def test_dict_to_ai_message_with_tool_calls(self) -> None: method test_dict_to_ai_message_with_invalid_tool_calls (line 1197) | def test_dict_to_ai_message_with_invalid_tool_calls(self) -> None: method test_dict_to_human_message (line 1219) | def test_dict_to_human_message(self) -> None: method test_dict_to_system_message (line 1225) | def test_dict_to_system_message(self) -> None: method test_dict_to_tool_message (line 1231) | def test_dict_to_tool_message(self) -> None: method test_dict_to_chat_message_unknown_role (line 1245) | def test_dict_to_chat_message_unknown_role(self) -> None: method test_ai_message_with_list_content_filters_non_text (line 1254) | def test_ai_message_with_list_content_filters_non_text(self) -> None: class TestCreateChatResult (line 1271) | class TestCreateChatResult: method test_model_provider_in_response_metadata (line 1274) | def test_model_provider_in_response_metadata(self) -> None: method test_reasoning_from_response (line 1283) | def test_reasoning_from_response(self) -> None: method test_usage_metadata_created (line 1304) | def test_usage_metadata_created(self) -> None: method test_tool_calls_in_response (line 1316) | def test_tool_calls_in_response(self) -> None: method test_response_model_in_llm_output (line 1325) | def test_response_model_in_llm_output(self) -> None: method test_response_model_propagated_to_llm_output (line 1332) | def test_response_model_propagated_to_llm_output(self) -> None: method test_system_fingerprint_in_metadata (line 1343) | def test_system_fingerprint_in_metadata(self) -> None: method test_native_finish_reason_in_metadata (line 1355) | def test_native_finish_reason_in_metadata(self) -> None: method test_cost_in_response_metadata (line 1374) | def test_cost_in_response_metadata(self) -> None: method test_cost_absent_when_not_in_usage (line 1399) | def test_cost_absent_when_not_in_usage(self) -> None: method test_stream_cost_survives_final_chunk (line 1408) | def test_stream_cost_survives_final_chunk(self) -> None: method test_astream_cost_survives_final_chunk (line 1460) | async def test_astream_cost_survives_final_chunk(self) -> None: method test_missing_optional_metadata_excluded (line 1511) | def test_missing_optional_metadata_excluded(self) -> None: method test_id_created_object_in_llm_output (line 1533) | def test_id_created_object_in_llm_output(self) -> None: method test_float_token_usage_normalized_to_int_in_usage_metadata (line 1542) | def test_float_token_usage_normalized_to_int_in_usage_metadata(self) -... class TestStreamingChunks (line 1583) | class TestStreamingChunks: method test_reasoning_in_streaming_chunk (line 1586) | def test_reasoning_in_streaming_chunk(self) -> None: method test_model_provider_in_streaming_chunk (line 1605) | def test_model_provider_in_streaming_chunk(self) -> None: method test_chunk_without_reasoning (line 1618) | def test_chunk_without_reasoning(self) -> None: method test_chunk_with_empty_delta (line 1625) | def test_chunk_with_empty_delta(self) -> None: method test_chunk_with_tool_calls (line 1632) | def test_chunk_with_tool_calls(self) -> None: method test_chunk_with_malformed_tool_call_skips_bad_keeps_good (line 1661) | def test_chunk_with_malformed_tool_call_skips_bad_keeps_good(self) -> ... method test_chunk_with_user_role (line 1700) | def test_chunk_with_user_role(self) -> None: method test_chunk_with_system_role (line 1708) | def test_chunk_with_system_role(self) -> None: method test_chunk_with_unknown_role (line 1717) | def test_chunk_with_unknown_role(self) -> None: method test_chunk_with_usage (line 1726) | def test_chunk_with_usage(self) -> None: class TestUsageMetadata (line 1747) | class TestUsageMetadata: method test_basic_usage (line 1750) | def test_basic_usage(self) -> None: method test_float_tokens_cast_to_int (line 1759) | def test_float_tokens_cast_to_int(self) -> None: method test_missing_tokens_default_to_zero (line 1767) | def test_missing_tokens_default_to_zero(self) -> None: method test_total_tokens_computed_if_missing (line 1774) | def test_total_tokens_computed_if_missing(self) -> None: method test_token_details (line 1779) | def test_token_details(self) -> None: method test_cache_creation_details (line 1795) | def test_cache_creation_details(self) -> None: method test_zero_token_details_preserved (line 1811) | def test_zero_token_details_preserved(self) -> None: method test_alternative_token_key_names (line 1827) | def test_alternative_token_key_names(self) -> None: class TestErrorPaths (line 1846) | class TestErrorPaths: method test_n_less_than_1_raises (line 1849) | def test_n_less_than_1_raises(self) -> None: method test_n_greater_than_1_with_streaming_raises (line 1854) | def test_n_greater_than_1_with_streaming_raises(self) -> None: method test_n_forwarded_in_params (line 1859) | def test_n_forwarded_in_params(self) -> None: method test_n_default_excluded_from_params (line 1864) | def test_n_default_excluded_from_params(self) -> None: method test_error_response_raises (line 1869) | def test_error_response_raises(self) -> None: method test_error_response_without_message (line 1881) | def test_error_response_without_message(self) -> None: method test_empty_choices_raises (line 1890) | def test_empty_choices_raises(self) -> None: method test_missing_role_raises (line 1900) | def test_missing_role_raises(self) -> None: method test_unknown_message_type_raises (line 1906) | def test_unknown_message_type_raises(self) -> None: method test_duplicate_model_kwargs_raises (line 1914) | def test_duplicate_model_kwargs_raises(self) -> None: method test_known_field_in_model_kwargs_raises (line 1919) | def test_known_field_in_model_kwargs_raises(self) -> None: method test_max_retries_zero_disables_retries (line 1924) | def test_max_retries_zero_disables_retries(self) -> None: method test_max_retries_scales_elapsed_time (line 1936) | def test_max_retries_scales_elapsed_time(self) -> None: class TestReasoningDetails (line 1955) | class TestReasoningDetails: method test_reasoning_details_in_non_streaming_response (line 1963) | def test_reasoning_details_in_non_streaming_response(self) -> None: method test_reasoning_details_in_streaming_chunk (line 1978) | def test_reasoning_details_in_streaming_chunk(self) -> None: method test_reasoning_and_reasoning_details_coexist (line 1995) | def test_reasoning_and_reasoning_details_coexist(self) -> None: method test_reasoning_in_full_invoke_flow (line 2010) | def test_reasoning_in_full_invoke_flow(self) -> None: method test_reasoning_in_streaming_flow (line 2043) | def test_reasoning_in_streaming_flow(self) -> None: class TestOpenRouterSpecificParams (line 2107) | class TestOpenRouterSpecificParams: method test_plugins_in_params (line 2110) | def test_plugins_in_params(self) -> None: method test_plugins_excluded_when_none (line 2117) | def test_plugins_excluded_when_none(self) -> None: method test_plugins_in_payload (line 2123) | def test_plugins_in_payload(self) -> None: method test_max_completion_tokens_in_params (line 2134) | def test_max_completion_tokens_in_params(self) -> None: method test_max_completion_tokens_excluded_when_none (line 2140) | def test_max_completion_tokens_excluded_when_none(self) -> None: method test_base_url_passed_to_client (line 2146) | def test_base_url_passed_to_client(self) -> None: method test_timeout_passed_to_client (line 2158) | def test_timeout_passed_to_client(self) -> None: method test_all_openrouter_params_in_single_payload (line 2170) | def test_all_openrouter_params_in_single_payload(self) -> None: class TestFormatMessageContent (line 2197) | class TestFormatMessageContent: method test_string_content_passthrough (line 2200) | def test_string_content_passthrough(self) -> None: method test_empty_string_passthrough (line 2204) | def test_empty_string_passthrough(self) -> None: method test_none_passthrough (line 2208) | def test_none_passthrough(self) -> None: method test_text_block_passthrough (line 2212) | def test_text_block_passthrough(self) -> None: method test_image_url_block_passthrough (line 2218) | def test_image_url_block_passthrough(self) -> None: method test_image_base64_block (line 2232) | def test_image_base64_block(self) -> None: method test_audio_base64_block (line 2246) | def test_audio_base64_block(self) -> None: method test_video_url_block (line 2263) | def test_video_url_block(self) -> None: method test_video_base64_block (line 2280) | def test_video_base64_block(self) -> None: method test_video_base64_default_mime_type (line 2294) | def test_video_base64_default_mime_type(self) -> None: method test_video_base64_source_type_format (line 2305) | def test_video_base64_source_type_format(self) -> None: method test_video_block_missing_source_raises (line 2317) | def test_video_block_missing_source_raises(self) -> None: method test_file_url_block (line 2325) | def test_file_url_block(self) -> None: method test_file_url_block_with_filename (line 2343) | def test_file_url_block_with_filename(self) -> None: method test_file_base64_block (line 2360) | def test_file_base64_block(self) -> None: method test_file_base64_source_type_format (line 2380) | def test_file_base64_source_type_format(self) -> None: method test_file_filename_from_extras (line 2396) | def test_file_filename_from_extras(self) -> None: method test_file_filename_from_metadata (line 2406) | def test_file_filename_from_metadata(self) -> None: method test_file_id_block_raises (line 2416) | def test_file_id_block_raises(self) -> None: method test_file_block_missing_source_raises (line 2422) | def test_file_block_missing_source_raises(self) -> None: method test_mixed_multimodal_content (line 2428) | def test_mixed_multimodal_content(self) -> None: class TestWrapMessagesForSdk (line 2449) | class TestWrapMessagesForSdk: method test_no_file_blocks_returns_dicts (line 2452) | def test_no_file_blocks_returns_dicts(self) -> None: method test_has_file_content_blocks_detection (line 2462) | def test_has_file_content_blocks_detection(self) -> None: method test_wraps_as_pydantic_models (line 2488) | def test_wraps_as_pydantic_models(self) -> None: method test_wrapped_serializes_correctly (line 2513) | def test_wrapped_serializes_correctly(self) -> None: method test_all_roles_wrapped (line 2542) | def test_all_roles_wrapped(self) -> None: class TestStructuredOutputIntegration (line 2579) | class TestStructuredOutputIntegration: method test_structured_output_function_calling_invokes_with_tools (line 2582) | def test_structured_output_function_calling_invokes_with_tools(self) -... method test_structured_output_json_schema_no_beta_parse (line 2598) | def test_structured_output_json_schema_no_beta_parse(self) -> None: method test_response_format_json_schema_reaches_sdk (line 2608) | def test_response_format_json_schema_reaches_sdk(self) -> None: method test_response_format_json_mode_falls_back_to_json_schema_in_sdk (line 2634) | def test_response_format_json_mode_falls_back_to_json_schema_in_sdk(se... method test_include_raw_returns_raw_and_parsed_on_success (line 2664) | def test_include_raw_returns_raw_and_parsed_on_success(self) -> None: method test_include_raw_preserves_raw_on_parse_failure (line 2684) | def test_include_raw_preserves_raw_on_parse_failure(self) -> None: class TestMultipleChoices (line 2735) | class TestMultipleChoices: method test_multiple_choices_in_response (line 2738) | def test_multiple_choices_in_response(self) -> None: class TestEnvironmentConfiguration (line 2767) | class TestEnvironmentConfiguration: method test_base_url_from_env (line 2770) | def test_base_url_from_env(self, monkeypatch: pytest.MonkeyPatch) -> N... method test_app_url_from_env (line 2777) | def test_app_url_from_env(self, monkeypatch: pytest.MonkeyPatch) -> None: method test_app_title_from_env (line 2784) | def test_app_title_from_env(self, monkeypatch: pytest.MonkeyPatch) -> ... class TestStreamingErrors (line 2797) | class TestStreamingErrors: method test_stream_error_chunk_raises (line 2800) | def test_stream_error_chunk_raises(self) -> None: method test_stream_error_chunk_without_message (line 2813) | def test_stream_error_chunk_without_message(self) -> None: method test_stream_heartbeat_chunk_skipped (line 2826) | def test_stream_heartbeat_chunk_skipped(self) -> None: method test_astream_error_chunk_raises (line 2841) | async def test_astream_error_chunk_raises(self) -> None: method test_astream_heartbeat_chunk_skipped (line 2856) | async def test_astream_heartbeat_chunk_skipped(self) -> None: method test_ainvoke_with_streaming_flag (line 2871) | async def test_ainvoke_with_streaming_flag(self) -> None: method test_stream_logprobs_in_response_metadata (line 2884) | def test_stream_logprobs_in_response_metadata(self) -> None: method test_stream_malformed_tool_call_with_null_function (line 2918) | def test_stream_malformed_tool_call_with_null_function(self) -> None: class TestStreamUsage (line 2945) | class TestStreamUsage: method test_stream_options_passed_by_default (line 2948) | def test_stream_options_passed_by_default(self) -> None: method test_stream_options_not_passed_when_disabled (line 2959) | def test_stream_options_not_passed_when_disabled(self) -> None: method test_usage_only_chunk_emitted (line 2970) | def test_usage_only_chunk_emitted(self) -> None: method test_astream_options_passed_by_default (line 3019) | async def test_astream_options_passed_by_default(self) -> None: method test_astream_usage_only_chunk_emitted (line 3030) | async def test_astream_usage_only_chunk_emitted(self) -> None: function test_profile (line 3077) | def test_profile() -> None: FILE: libs/partners/openrouter/tests/unit_tests/test_imports.py function test_all_imports (line 10) | def test_all_imports() -> None: FILE: libs/partners/openrouter/tests/unit_tests/test_standard.py class TestChatOpenRouterUnit (line 10) | class TestChatOpenRouterUnit(ChatModelUnitTests): method chat_model_class (line 14) | def chat_model_class(self) -> type[ChatOpenRouter]: method init_from_env_params (line 19) | def init_from_env_params(self) -> tuple[dict, dict, dict]: method chat_model_params (line 34) | def chat_model_params(self) -> dict: method supports_image_inputs (line 42) | def supports_image_inputs(self) -> bool: method supports_image_urls (line 46) | def supports_image_urls(self) -> bool: method supports_audio_inputs (line 50) | def supports_audio_inputs(self) -> bool: method supports_video_inputs (line 54) | def supports_video_inputs(self) -> bool: method supports_pdf_inputs (line 58) | def supports_pdf_inputs(self) -> bool: method model_override_value (line 62) | def model_override_value(self) -> str: FILE: libs/partners/perplexity/langchain_perplexity/_utils.py function initialize_client (line 8) | def initialize_client(values: dict[str, Any]) -> dict[str, Any]: FILE: libs/partners/perplexity/langchain_perplexity/chat_models.py function _get_default_model_profile (line 68) | def _get_default_model_profile(model_name: str) -> ModelProfile: function _is_pydantic_class (line 73) | def _is_pydantic_class(obj: Any) -> bool: function _create_usage_metadata (line 77) | def _create_usage_metadata(token_usage: dict) -> UsageMetadata: class ChatPerplexity (line 105) | class ChatPerplexity(BaseChatModel): method lc_secrets (line 263) | def lc_secrets(self) -> dict[str, str]: method build_extra (line 268) | def build_extra(cls, values: dict[str, Any]) -> Any: method validate_environment (line 294) | def validate_environment(self) -> Self: method _resolve_model_profile (line 308) | def _resolve_model_profile(self) -> ModelProfile | None: method _default_params (line 312) | def _default_params(self) -> dict[str, Any]: method _convert_message_to_dict (line 358) | def _convert_message_to_dict(self, message: BaseMessage) -> dict[str, ... method _create_message_dicts (line 371) | def _create_message_dicts( method _convert_delta_to_message_chunk (line 382) | def _convert_delta_to_message_chunk( method _stream (line 411) | def _stream( method _astream (line 500) | async def _astream( method _generate (line 585) | def _generate( method _agenerate (line 642) | async def _agenerate( method _invocation_params (line 702) | def _invocation_params(self) -> Mapping[str, Any]: method _llm_type (line 708) | def _llm_type(self) -> str: method with_structured_output (line 712) | def with_structured_output( FILE: libs/partners/perplexity/langchain_perplexity/output_parsers.py function strip_think_tags (line 9) | def strip_think_tags(text: str) -> str: class ReasoningJsonOutputParser (line 38) | class ReasoningJsonOutputParser(JsonOutputParser): method parse_result (line 46) | def parse_result(self, result: list[Generation], *, partial: bool = Fa... class ReasoningStructuredOutputParser (line 67) | class ReasoningStructuredOutputParser( method parse_result (line 76) | def parse_result(self, result: list[Generation], *, partial: bool = Fa... FILE: libs/partners/perplexity/langchain_perplexity/retrievers.py class PerplexitySearchRetriever (line 13) | class PerplexitySearchRetriever(BaseRetriever): method validate_environment (line 36) | def validate_environment(cls, values: dict) -> Any: method _get_relevant_documents (line 40) | def _get_relevant_documents( FILE: libs/partners/perplexity/langchain_perplexity/tools.py class PerplexitySearchResults (line 12) | class PerplexitySearchResults(BaseTool): method validate_environment (line 26) | def validate_environment(cls, values: dict) -> Any: method _run (line 30) | def _run( FILE: libs/partners/perplexity/langchain_perplexity/types.py class UserLocation (line 8) | class UserLocation(BaseModel): class WebSearchOptions (line 16) | class WebSearchOptions(BaseModel): class MediaResponseOverrides (line 23) | class MediaResponseOverrides(BaseModel): class MediaResponse (line 28) | class MediaResponse(BaseModel): FILE: libs/partners/perplexity/tests/integration_tests/test_chat_models.py class TestChatPerplexityIntegration (line 12) | class TestChatPerplexityIntegration: method test_standard_generation (line 13) | def test_standard_generation(self) -> None: method test_async_generation (line 21) | async def test_async_generation(self) -> None: method test_pro_search (line 29) | def test_pro_search(self) -> None: method test_streaming (line 53) | async def test_streaming(self) -> None: method test_citations_and_search_results (line 60) | def test_citations_and_search_results(self) -> None: method test_search_control (line 73) | def test_search_control(self) -> None: method test_search_recency_filter (line 86) | def test_search_recency_filter(self) -> None: method test_search_domain_filter (line 93) | def test_search_domain_filter(self) -> None: method test_media_and_metadata (line 103) | def test_media_and_metadata(self) -> None: FILE: libs/partners/perplexity/tests/integration_tests/test_chat_models_standard.py class TestPerplexityStandard (line 10) | class TestPerplexityStandard(ChatModelIntegrationTests): method chat_model_class (line 12) | def chat_model_class(self) -> type[BaseChatModel]: method chat_model_params (line 16) | def chat_model_params(self) -> dict: method test_double_messages_conversation (line 20) | def test_double_messages_conversation(self, model: BaseChatModel) -> N... method test_stop_sequence (line 24) | def test_stop_sequence(self, model: BaseChatModel) -> None: FILE: libs/partners/perplexity/tests/integration_tests/test_compile.py function test_placeholder (line 5) | def test_placeholder() -> None: FILE: libs/partners/perplexity/tests/integration_tests/test_search_api.py class TestPerplexitySearchAPI (line 12) | class TestPerplexitySearchAPI: method test_search_retriever_basic (line 13) | def test_search_retriever_basic(self) -> None: method test_search_retriever_with_filters (line 23) | def test_search_retriever_with_filters(self) -> None: method test_search_tool_basic (line 34) | def test_search_tool_basic(self) -> None: method test_search_tool_multi_query (line 47) | def test_search_tool_multi_query(self) -> None: FILE: libs/partners/perplexity/tests/unit_tests/test_chat_models.py function test_perplexity_model_name_param (line 11) | def test_perplexity_model_name_param() -> None: function test_perplexity_model_kwargs (line 16) | def test_perplexity_model_kwargs() -> None: function test_perplexity_initialization (line 21) | def test_perplexity_initialization() -> None: function test_perplexity_new_params (line 44) | def test_perplexity_new_params() -> None: function test_perplexity_stream_includes_citations (line 70) | def test_perplexity_stream_includes_citations(mocker: MockerFixture) -> ... function test_perplexity_stream_includes_videos_and_reasoning (line 117) | def test_perplexity_stream_includes_videos_and_reasoning(mocker: MockerF... function test_create_usage_metadata_basic (line 147) | def test_create_usage_metadata_basic() -> None: function test_perplexity_invoke_includes_num_search_queries (line 166) | def test_perplexity_invoke_includes_num_search_queries(mocker: MockerFix... function test_profile (line 211) | def test_profile() -> None: FILE: libs/partners/perplexity/tests/unit_tests/test_chat_models_standard.py class TestPerplexityStandard (line 9) | class TestPerplexityStandard(ChatModelUnitTests): method chat_model_class (line 11) | def chat_model_class(self) -> type[BaseChatModel]: method init_from_env_params (line 15) | def init_from_env_params(self) -> tuple[dict, dict, dict]: FILE: libs/partners/perplexity/tests/unit_tests/test_imports.py function test_all_imports (line 17) | def test_all_imports() -> None: FILE: libs/partners/perplexity/tests/unit_tests/test_output_parsers.py class TestStripThinkTags (line 15) | class TestStripThinkTags: method test_strip_simple_think_tags (line 18) | def test_strip_simple_think_tags(self) -> None: method test_strip_multiple_think_tags (line 24) | def test_strip_multiple_think_tags(self) -> None: method test_strip_nested_like_think_tags (line 31) | def test_strip_nested_like_think_tags(self) -> None: method test_strip_think_tags_no_closing_tag (line 39) | def test_strip_think_tags_no_closing_tag(self) -> None: method test_strip_think_tags_empty_content (line 46) | def test_strip_think_tags_empty_content(self) -> None: method test_strip_think_tags_no_tags (line 52) | def test_strip_think_tags_no_tags(self) -> None: method test_strip_think_tags_only_tags (line 58) | def test_strip_think_tags_only_tags(self) -> None: method test_strip_think_tags_multiline (line 64) | def test_strip_think_tags_multiline(self) -> None: method test_strip_think_tags_with_special_chars (line 75) | def test_strip_think_tags_with_special_chars(self) -> None: class TestReasoningJsonOutputParser (line 82) | class TestReasoningJsonOutputParser: method test_parse_json_without_think_tags (line 85) | def test_parse_json_without_think_tags(self) -> None: method test_parse_json_with_think_tags (line 93) | def test_parse_json_with_think_tags(self) -> None: method test_parse_json_with_multiple_think_tags (line 101) | def test_parse_json_with_multiple_think_tags(self) -> None: method test_parse_markdown_json_with_think_tags (line 109) | def test_parse_markdown_json_with_think_tags(self) -> None: method test_parse_complex_json_with_think_tags (line 120) | def test_parse_complex_json_with_think_tags(self) -> None: method test_parse_invalid_json_with_think_tags (line 141) | def test_parse_invalid_json_with_think_tags(self) -> None: method test_parse_empty_string_after_stripping (line 149) | def test_parse_empty_string_after_stripping(self) -> None: method test_parse_json_array_with_think_tags (line 157) | def test_parse_json_array_with_think_tags(self) -> None: method test_partial_json_parsing_with_think_tags (line 165) | def test_partial_json_parsing_with_think_tags(self) -> None: class MockPerson (line 175) | class MockPerson(BaseModel): class MockCompany (line 183) | class MockCompany(BaseModel): class TestReasoningStructuredOutputParser (line 191) | class TestReasoningStructuredOutputParser: method test_parse_structured_output_without_think_tags (line 194) | def test_parse_structured_output_without_think_tags(self) -> None: method test_parse_structured_output_with_think_tags (line 207) | def test_parse_structured_output_with_think_tags(self) -> None: method test_parse_structured_output_with_multiple_think_tags (line 221) | def test_parse_structured_output_with_multiple_think_tags(self) -> None: method test_parse_structured_output_markdown_with_think_tags (line 235) | def test_parse_structured_output_markdown_with_think_tags(self) -> None: method test_parse_nested_structured_output_with_think_tags (line 251) | def test_parse_nested_structured_output_with_think_tags(self) -> None: method test_parse_invalid_structured_output_with_think_tags (line 274) | def test_parse_invalid_structured_output_with_think_tags(self) -> None: method test_parse_structured_wrong_type_with_think_tags (line 285) | def test_parse_structured_wrong_type_with_think_tags(self) -> None: method test_parse_empty_after_stripping_think_tags (line 296) | def test_parse_empty_after_stripping_think_tags(self) -> None: method test_get_format_instructions (line 306) | def test_get_format_instructions(self) -> None: method test_partial_structured_parsing_with_think_tags (line 315) | def test_partial_structured_parsing_with_think_tags(self) -> None: method test_parser_with_think_tags_in_json_values (line 327) | def test_parser_with_think_tags_in_json_values(self) -> None: method test_multiline_think_tags_with_structured_output (line 340) | def test_multiline_think_tags_with_structured_output(self) -> None: FILE: libs/partners/perplexity/tests/unit_tests/test_retrievers.py function test_search_retriever_initialization (line 8) | def test_search_retriever_initialization() -> None: function test_search_retriever_get_relevant_documents (line 14) | def test_search_retriever_get_relevant_documents(mocker: MockerFixture) ... FILE: libs/partners/perplexity/tests/unit_tests/test_secrets.py function test_chat_perplexity_secrets (line 4) | def test_chat_perplexity_secrets() -> None: FILE: libs/partners/perplexity/tests/unit_tests/test_tools.py function test_search_tool_run (line 8) | def test_search_tool_run(mocker: MockerFixture) -> None: FILE: libs/partners/qdrant/langchain_qdrant/_utils.py function maximal_marginal_relevance (line 8) | def maximal_marginal_relevance( function cosine_similarity (line 42) | def cosine_similarity(X: Matrix, Y: Matrix) -> np.ndarray: # noqa: N803 FILE: libs/partners/qdrant/langchain_qdrant/fastembed_sparse.py class FastEmbedSparse (line 11) | class FastEmbedSparse(SparseEmbeddings): method __init__ (line 14) | def __init__( method embed_documents (line 70) | def embed_documents(self, texts: list[str]) -> list[SparseVector]: method embed_query (line 79) | def embed_query(self, text: str) -> SparseVector: FILE: libs/partners/qdrant/langchain_qdrant/qdrant.py class QdrantVectorStoreError (line 24) | class QdrantVectorStoreError(Exception): class RetrievalMode (line 28) | class RetrievalMode(str, Enum): class QdrantVectorStore (line 36) | class QdrantVectorStore(VectorStore): method __init__ (line 210) | def __init__( method client (line 263) | def client(self) -> QdrantClient: method embeddings (line 273) | def embeddings(self) -> Embeddings | None: method _get_retriever_tags (line 282) | def _get_retriever_tags(self) -> list[str]: method _require_embeddings (line 302) | def _require_embeddings(self, operation: str) -> Embeddings: method sparse_embeddings (line 320) | def sparse_embeddings(self) -> SparseEmbeddings: method from_texts (line 339) | def from_texts( method from_existing_collection (line 434) | def from_existing_collection( method add_texts (line 495) | def add_texts( # type: ignore[override] method similarity_search (line 520) | def similarity_search( method similarity_search_with_score (line 551) | def similarity_search_with_score( method similarity_search_with_score_by_vector (line 645) | def similarity_search_with_score_by_vector( method similarity_search_by_vector (line 699) | def similarity_search_by_vector( method max_marginal_relevance_search (line 728) | def max_marginal_relevance_search( method max_marginal_relevance_search_by_vector (line 771) | def max_marginal_relevance_search_by_vector( method max_marginal_relevance_search_with_score_by_vector (line 805) | def max_marginal_relevance_search_with_score_by_vector( method delete (line 856) | def delete( # type: ignore[override] method get_by_ids (line 877) | def get_by_ids(self, ids: Sequence[str | int], /) -> list[Document]: method construct_instance (line 891) | def construct_instance( method _cosine_relevance_score_fn (line 1000) | def _cosine_relevance_score_fn(distance: float) -> float: method _select_relevance_score_fn (line 1004) | def _select_relevance_score_fn(self) -> Callable[[float], float]: method _document_from_point (line 1023) | def _document_from_point( method _generate_batches (line 1038) | def _generate_batches( method _build_payloads (line 1074) | def _build_payloads( method _build_vectors (line 1098) | def _build_vectors( method _validate_collection_config (line 1150) | def _validate_collection_config( method _validate_collection_for_dense (line 1179) | def _validate_collection_for_dense( method _validate_collection_for_sparse (line 1252) | def _validate_collection_for_sparse( method _validate_embeddings (line 1274) | def _validate_embeddings( FILE: libs/partners/qdrant/langchain_qdrant/sparse_embeddings.py class SparseVector (line 7) | class SparseVector(BaseModel, extra="forbid"): class SparseEmbeddings (line 16) | class SparseEmbeddings(ABC): method embed_documents (line 20) | def embed_documents(self, texts: list[str]) -> list[SparseVector]: method embed_query (line 24) | def embed_query(self, text: str) -> SparseVector: method aembed_documents (line 27) | async def aembed_documents(self, texts: list[str]) -> list[SparseVector]: method aembed_query (line 31) | async def aembed_query(self, text: str) -> SparseVector: FILE: libs/partners/qdrant/langchain_qdrant/vectorstores.py class QdrantException (line 31) | class QdrantException(Exception): # noqa: N818 function sync_call_fallback (line 35) | def sync_call_fallback(method: Callable) -> Callable: class Qdrant (line 60) | class Qdrant(VectorStore): method __init__ (line 77) | def __init__( method embeddings (line 143) | def embeddings(self) -> Embeddings | None: method add_texts (line 146) | def add_texts( method aadd_texts (line 183) | async def aadd_texts( method similarity_search (line 225) | def similarity_search( method asimilarity_search (line 284) | async def asimilarity_search( method similarity_search_with_score (line 306) | def similarity_search_with_score( method asimilarity_search_with_score (line 364) | async def asimilarity_search_with_score( method similarity_search_by_vector (line 423) | def similarity_search_by_vector( method asimilarity_search_by_vector (line 482) | async def asimilarity_search_by_vector( method similarity_search_with_score_by_vector (line 541) | def similarity_search_with_score_by_vector( method asimilarity_search_with_score_by_vector (line 630) | async def asimilarity_search_with_score_by_vector( method max_marginal_relevance_search (line 724) | def max_marginal_relevance_search( method amax_marginal_relevance_search (line 788) | async def amax_marginal_relevance_search( method max_marginal_relevance_search_by_vector (line 853) | def max_marginal_relevance_search_by_vector( method amax_marginal_relevance_search_by_vector (line 918) | async def amax_marginal_relevance_search_by_vector( method max_marginal_relevance_search_with_score_by_vector (line 984) | def max_marginal_relevance_search_with_score_by_vector( method amax_marginal_relevance_search_with_score_by_vector (line 1073) | async def amax_marginal_relevance_search_with_score_by_vector( method delete (line 1150) | def delete(self, ids: list[str] | None = None, **kwargs: Any) -> bool ... method adelete (line 1168) | async def adelete(self, ids: list[str] | None = None, **kwargs: Any) -... method from_texts (line 1193) | def from_texts( method from_existing_collection (line 1373) | def from_existing_collection( method afrom_texts (line 1430) | async def afrom_texts( method construct_instance (line 1614) | def construct_instance( method aconstruct_instance (line 1779) | async def aconstruct_instance( method _cosine_relevance_score_fn (line 1946) | def _cosine_relevance_score_fn(distance: float) -> float: method _select_relevance_score_fn (line 1950) | def _select_relevance_score_fn(self) -> Callable[[float], float]: method _similarity_search_with_relevance_scores (line 1970) | def _similarity_search_with_relevance_scores( method _asimilarity_search_with_relevance_scores (line 1995) | async def _asimilarity_search_with_relevance_scores( method _build_payloads (line 2020) | def _build_payloads( method _document_from_scored_point (line 2046) | def _document_from_scored_point( method _build_condition (line 2061) | def _build_condition(self, key: str, value: Any) -> list[models.FieldC... method _qdrant_filter_from_dict (line 2083) | def _qdrant_filter_from_dict( method _embed_query (line 2097) | def _embed_query(self, query: str) -> list[float]: method _aembed_query (line 2118) | async def _aembed_query(self, query: str) -> list[float]: method _embed_texts (line 2139) | def _embed_texts(self, texts: Iterable[str]) -> list[list[float]]: method _aembed_texts (line 2168) | async def _aembed_texts(self, texts: Iterable[str]) -> list[list[float]]: method _generate_rest_batches (line 2197) | def _generate_rest_batches( method _agenerate_rest_batches (line 2238) | async def _agenerate_rest_batches( method _generate_clients (line 2280) | def _generate_clients( FILE: libs/partners/qdrant/tests/integration_tests/async_api/test_add_texts.py function test_qdrant_aadd_texts_returns_all_ids (line 17) | async def test_qdrant_aadd_texts_returns_all_ids( function test_qdrant_aadd_texts_stores_duplicated_texts (line 35) | async def test_qdrant_aadd_texts_stores_duplicated_texts( function test_qdrant_aadd_texts_stores_ids (line 63) | async def test_qdrant_aadd_texts_stores_ids( function test_qdrant_aadd_texts_stores_embeddings_as_named_vectors (line 97) | async def test_qdrant_aadd_texts_stores_embeddings_as_named_vectors( FILE: libs/partners/qdrant/tests/integration_tests/async_api/test_from_texts.py function test_qdrant_from_texts_stores_duplicated_texts (line 21) | async def test_qdrant_from_texts_stores_duplicated_texts(qdrant_location... function test_qdrant_from_texts_stores_ids (line 39) | async def test_qdrant_from_texts_stores_ids( function test_qdrant_from_texts_stores_embeddings_as_named_vectors (line 66) | async def test_qdrant_from_texts_stores_embeddings_as_named_vectors( function test_qdrant_from_texts_reuses_same_collection (line 91) | async def test_qdrant_from_texts_reuses_same_collection( function test_qdrant_from_texts_raises_error_on_different_dimensionality (line 120) | async def test_qdrant_from_texts_raises_error_on_different_dimensionality( function test_qdrant_from_texts_raises_error_on_different_vector_name (line 156) | async def test_qdrant_from_texts_raises_error_on_different_vector_name( function test_qdrant_from_texts_raises_error_on_different_distance (line 183) | async def test_qdrant_from_texts_raises_error_on_different_distance( function test_qdrant_from_texts_recreates_collection_on_force_recreate (line 209) | async def test_qdrant_from_texts_recreates_collection_on_force_recreate( function test_qdrant_from_texts_stores_metadatas (line 247) | async def test_qdrant_from_texts_stores_metadatas( FILE: libs/partners/qdrant/tests/integration_tests/async_api/test_max_marginal_relevance.py function test_qdrant_max_marginal_relevance_search (line 21) | async def test_qdrant_max_marginal_relevance_search( FILE: libs/partners/qdrant/tests/integration_tests/async_api/test_similarity_search.py function test_qdrant_similarity_search (line 20) | async def test_qdrant_similarity_search( function test_qdrant_similarity_search_by_vector (line 47) | async def test_qdrant_similarity_search_by_vector( function test_qdrant_similarity_search_with_score_by_vector (line 75) | async def test_qdrant_similarity_search_with_score_by_vector( function test_qdrant_similarity_search_filters (line 104) | async def test_qdrant_similarity_search_filters( function test_qdrant_similarity_search_with_relevance_score_no_threshold (line 138) | async def test_qdrant_similarity_search_with_relevance_score_no_threshold( function test_qdrant_similarity_search_with_relevance_score_with_threshold (line 166) | async def test_qdrant_similarity_search_with_relevance_score_with_thresh... function test_similarity_search_with_relevance_score_with_threshold_and_filter (line 195) | async def test_similarity_search_with_relevance_score_with_threshold_and... function test_qdrant_similarity_search_filters_with_qdrant_filters (line 230) | async def test_qdrant_similarity_search_filters_with_qdrant_filters( function test_qdrant_similarity_search_with_relevance_scores (line 283) | async def test_qdrant_similarity_search_with_relevance_scores( FILE: libs/partners/qdrant/tests/integration_tests/common.py function qdrant_running_locally (line 8) | def qdrant_running_locally() -> bool: function assert_documents_equals (line 18) | def assert_documents_equals(actual: list[Document], expected: list[Docum... class ConsistentFakeEmbeddings (line 33) | class ConsistentFakeEmbeddings(Embeddings): method __init__ (line 38) | def __init__(self, dimensionality: int = 10) -> None: method embed_documents (line 42) | def embed_documents(self, texts: list[str]) -> list[list[float]]: method embed_query (line 54) | def embed_query(self, text: str) -> list[float]: class ConsistentFakeSparseEmbeddings (line 61) | class ConsistentFakeSparseEmbeddings(SparseEmbeddings): method __init__ (line 66) | def __init__(self, dimensionality: int = 25) -> None: method embed_documents (line 70) | def embed_documents(self, texts: list[str]) -> list[SparseVector]: method embed_query (line 82) | def embed_query(self, text: str) -> SparseVector: FILE: libs/partners/qdrant/tests/integration_tests/conftest.py function pytest_runtest_teardown (line 8) | def pytest_runtest_teardown() -> None: FILE: libs/partners/qdrant/tests/integration_tests/fastembed/test_fastembed_sparse.py function test_attention_embeddings (line 12) | def test_attention_embeddings(model_name: str) -> None: FILE: libs/partners/qdrant/tests/integration_tests/fixtures.py function qdrant_locations (line 10) | def qdrant_locations(use_in_memory: bool = True) -> list[str]: # noqa: ... function retrieval_modes (line 28) | def retrieval_modes( FILE: libs/partners/qdrant/tests/integration_tests/qdrant_vector_store/test_add_texts.py function test_qdrant_add_documents_extends_existing_collection (line 24) | def test_qdrant_add_documents_extends_existing_collection( function test_qdrant_add_texts_returns_all_ids (line 55) | def test_qdrant_add_texts_returns_all_ids( function test_qdrant_add_texts_stores_duplicated_texts (line 82) | def test_qdrant_add_texts_stores_duplicated_texts( function test_qdrant_add_texts_stores_ids (line 113) | def test_qdrant_add_texts_stores_ids( FILE: libs/partners/qdrant/tests/integration_tests/qdrant_vector_store/test_from_existing.py function test_qdrant_from_existing_collection_uses_same_collection (line 19) | def test_qdrant_from_existing_collection_uses_same_collection( FILE: libs/partners/qdrant/tests/integration_tests/qdrant_vector_store/test_from_texts.py function test_vectorstore_from_texts (line 21) | def test_vectorstore_from_texts(location: str, retrieval_mode: Retrieval... function test_qdrant_from_texts_stores_ids (line 44) | def test_qdrant_from_texts_stores_ids( function test_qdrant_from_texts_stores_embeddings_as_named_vectors (line 81) | def test_qdrant_from_texts_stores_embeddings_as_named_vectors( function test_qdrant_from_texts_reuses_same_collection (line 119) | def test_qdrant_from_texts_reuses_same_collection( function test_qdrant_from_texts_raises_error_on_different_dimensionality (line 158) | def test_qdrant_from_texts_raises_error_on_different_dimensionality( function test_qdrant_from_texts_raises_error_on_different_vector_name (line 201) | def test_qdrant_from_texts_raises_error_on_different_vector_name( function test_qdrant_from_texts_raises_error_on_different_distance (line 237) | def test_qdrant_from_texts_raises_error_on_different_distance( function test_qdrant_from_texts_recreates_collection_on_force_recreate (line 275) | def test_qdrant_from_texts_recreates_collection_on_force_recreate( function test_qdrant_from_texts_stores_metadatas (line 318) | def test_qdrant_from_texts_stores_metadatas( function test_from_texts_passed_optimizers_config_and_on_disk_payload (line 353) | def test_from_texts_passed_optimizers_config_and_on_disk_payload( FILE: libs/partners/qdrant/tests/integration_tests/qdrant_vector_store/test_mmr.py function test_qdrant_mmr_search (line 26) | def test_qdrant_mmr_search( function test_invalid_qdrant_mmr_with_sparse (line 89) | def test_invalid_qdrant_mmr_with_sparse( FILE: libs/partners/qdrant/tests/integration_tests/qdrant_vector_store/test_search.py function test_similarity_search (line 18) | def test_similarity_search( function test_similarity_search_by_vector (line 46) | def test_similarity_search_by_vector( function test_similarity_search_with_score_by_vector (line 76) | def test_similarity_search_with_score_by_vector( function test_similarity_search_filters (line 107) | def test_similarity_search_filters( function test_similarity_relevance_search_no_threshold (line 150) | def test_similarity_relevance_search_no_threshold( function test_relevance_search_with_threshold (line 178) | def test_relevance_search_with_threshold( function test_relevance_search_with_threshold_and_filter (line 209) | def test_relevance_search_with_threshold_and_filter( function test_similarity_search_filters_with_qdrant_filters (line 260) | def test_similarity_search_filters_with_qdrant_filters( function test_embeddings_property_sparse_mode (line 315) | def test_embeddings_property_sparse_mode(location: str) -> None: function test_embeddings_property_dense_mode (line 333) | def test_embeddings_property_dense_mode(location: str) -> None: function test_as_retriever_sparse_mode (line 350) | def test_as_retriever_sparse_mode(location: str) -> None: function test_as_retriever_sparse_mode_with_search_kwargs (line 386) | def test_as_retriever_sparse_mode_with_search_kwargs(location: str) -> N... FILE: libs/partners/qdrant/tests/integration_tests/test_add_texts.py function test_qdrant_add_documents_extends_existing_collection (line 17) | def test_qdrant_add_documents_extends_existing_collection( function test_qdrant_add_texts_returns_all_ids (line 42) | def test_qdrant_add_texts_returns_all_ids(batch_size: int) -> None: function test_qdrant_add_texts_stores_duplicated_texts (line 57) | def test_qdrant_add_texts_stores_duplicated_texts(vector_name: str | Non... function test_qdrant_add_texts_stores_ids (line 82) | def test_qdrant_add_texts_stores_ids(batch_size: int) -> None: function test_qdrant_add_texts_stores_embeddings_as_named_vectors (line 111) | def test_qdrant_add_texts_stores_embeddings_as_named_vectors(vector_name... FILE: libs/partners/qdrant/tests/integration_tests/test_compile.py function test_placeholder (line 5) | def test_placeholder() -> None: FILE: libs/partners/qdrant/tests/integration_tests/test_embedding_interface.py function test_qdrant_embedding_interface (line 24) | def test_qdrant_embedding_interface( function test_qdrant_embedding_interface_raises_value_error (line 48) | def test_qdrant_embedding_interface_raises_value_error( FILE: libs/partners/qdrant/tests/integration_tests/test_from_existing_collection.py function test_qdrant_from_existing_collection_uses_same_collection (line 11) | def test_qdrant_from_existing_collection_uses_same_collection(vector_nam... FILE: libs/partners/qdrant/tests/integration_tests/test_from_texts.py function test_qdrant_from_texts_stores_duplicated_texts (line 18) | def test_qdrant_from_texts_stores_duplicated_texts() -> None: function test_qdrant_from_texts_stores_ids (line 39) | def test_qdrant_from_texts_stores_ids(batch_size: int, vector_name: str ... function test_qdrant_from_texts_stores_embeddings_as_named_vectors (line 67) | def test_qdrant_from_texts_stores_embeddings_as_named_vectors(vector_nam... function test_qdrant_from_texts_reuses_same_collection (line 91) | def test_qdrant_from_texts_reuses_same_collection(vector_name: str | Non... function test_qdrant_from_texts_raises_error_on_different_dimensionality (line 121) | def test_qdrant_from_texts_raises_error_on_different_dimensionality( function test_qdrant_from_texts_raises_error_on_different_vector_name (line 154) | def test_qdrant_from_texts_raises_error_on_different_vector_name( function test_qdrant_from_texts_raises_error_on_different_distance (line 180) | def test_qdrant_from_texts_raises_error_on_different_distance() -> None: function test_qdrant_from_texts_recreates_collection_on_force_recreate (line 210) | def test_qdrant_from_texts_recreates_collection_on_force_recreate( function test_qdrant_from_texts_stores_metadatas (line 244) | def test_qdrant_from_texts_stores_metadatas( function test_from_texts_passed_optimizers_config_and_on_disk_payload (line 266) | def test_from_texts_passed_optimizers_config_and_on_disk_payload(locatio... FILE: libs/partners/qdrant/tests/integration_tests/test_max_marginal_relevance.py function test_qdrant_max_marginal_relevance_search (line 18) | def test_qdrant_max_marginal_relevance_search( FILE: libs/partners/qdrant/tests/integration_tests/test_similarity_search.py function test_qdrant_similarity_search (line 19) | def test_qdrant_similarity_search( function test_qdrant_similarity_search_by_vector (line 44) | def test_qdrant_similarity_search_by_vector( function test_qdrant_similarity_search_with_score_by_vector (line 70) | def test_qdrant_similarity_search_with_score_by_vector( function test_qdrant_similarity_search_filters (line 97) | def test_qdrant_similarity_search_filters( function test_qdrant_similarity_search_with_relevance_score_no_threshold (line 131) | def test_qdrant_similarity_search_with_relevance_score_no_threshold( function test_qdrant_similarity_search_with_relevance_score_with_threshold (line 157) | def test_qdrant_similarity_search_with_relevance_score_with_threshold( function test_qdrant_similarity_search_with_relevance_score_with_threshold_and_filter (line 182) | def test_qdrant_similarity_search_with_relevance_score_with_threshold_an... function test_qdrant_similarity_search_filters_with_qdrant_filters (line 213) | def test_qdrant_similarity_search_filters_with_qdrant_filters( function test_qdrant_similarity_search_with_relevance_scores (line 262) | def test_qdrant_similarity_search_with_relevance_scores( FILE: libs/partners/qdrant/tests/unit_tests/test_imports.py function test_all_imports (line 13) | def test_all_imports() -> None: FILE: libs/partners/qdrant/tests/unit_tests/test_standard.py class MockEmbeddings (line 8) | class MockEmbeddings(Embeddings): method embed_documents (line 11) | def embed_documents(self, texts: list[str]) -> list[list[float]]: method embed_query (line 15) | def embed_query(self) -> list[float]: # type: ignore[override] function test_qdrant_vectorstore_init_time (line 21) | def test_qdrant_vectorstore_init_time(benchmark: BenchmarkFixture) -> None: FILE: libs/partners/xai/langchain_xai/chat_models.py function _get_default_model_profile (line 38) | def _get_default_model_profile(model_name: str) -> ModelProfile: class ChatXAI (line 43) | class ChatXAI(BaseChatOpenAI): # type: ignore[override] method lc_secrets (line 435) | def lc_secrets(self) -> dict[str, str]: method get_lc_namespace (line 443) | def get_lc_namespace(cls) -> list[str]: method is_lc_serializable (line 452) | def is_lc_serializable(cls) -> bool: method _llm_type (line 457) | def _llm_type(self) -> str: method _get_ls_params (line 461) | def _get_ls_params( method _warn_search_parameters_deprecated (line 472) | def _warn_search_parameters_deprecated(self) -> Self: method validate_environment (line 485) | def validate_environment(self) -> Self: method _resolve_model_profile (line 535) | def _resolve_model_profile(self) -> ModelProfile | None: method _stream (line 538) | def _stream(self, *args: Any, **kwargs: Any) -> Iterator[ChatGeneratio... method _astream (line 544) | async def _astream( method _create_chat_result (line 555) | def _create_chat_result( method _convert_chunk_to_generation_chunk (line 595) | def _convert_chunk_to_generation_chunk( method with_structured_output (line 642) | def with_structured_output( FILE: libs/partners/xai/tests/integration_tests/test_chat_models.py function test_reasoning (line 16) | def test_reasoning(output_version: Literal["", "v1"]) -> None: function test_web_search (line 100) | def test_web_search() -> None: FILE: libs/partners/xai/tests/integration_tests/test_chat_models_standard.py class TestXAIStandard (line 28) | class TestXAIStandard(ChatModelIntegrationTests): method chat_model_class (line 30) | def chat_model_class(self) -> type[BaseChatModel]: method chat_model_params (line 34) | def chat_model_params(self) -> dict: method test_stop_sequence (line 45) | def test_stop_sequence(self, model: BaseChatModel) -> None: FILE: libs/partners/xai/tests/integration_tests/test_compile.py function test_placeholder (line 5) | def test_placeholder() -> None: FILE: libs/partners/xai/tests/unit_tests/test_chat_models.py function test_initialization (line 22) | def test_initialization() -> None: function test_profile (line 27) | def test_profile() -> None: function test_xai_model_param (line 32) | def test_xai_model_param() -> None: function test_chat_xai_invalid_streaming_params (line 41) | def test_chat_xai_invalid_streaming_params() -> None: function test_chat_xai_extra_kwargs (line 53) | def test_chat_xai_extra_kwargs() -> None: function test_chat_xai_base_url_alias (line 69) | def test_chat_xai_base_url_alias() -> None: function test_chat_xai_api_base_from_env (line 79) | def test_chat_xai_api_base_from_env(monkeypatch: pytest.MonkeyPatch) -> ... function test_function_dict_to_message_function_message (line 90) | def test_function_dict_to_message_function_message() -> None: function test_convert_dict_to_message_human (line 105) | def test_convert_dict_to_message_human() -> None: function test__convert_dict_to_message_human_with_name (line 113) | def test__convert_dict_to_message_human_with_name() -> None: function test_convert_dict_to_message_ai (line 121) | def test_convert_dict_to_message_ai() -> None: function test_convert_dict_to_message_ai_with_name (line 129) | def test_convert_dict_to_message_ai_with_name() -> None: function test_convert_dict_to_message_system (line 137) | def test_convert_dict_to_message_system() -> None: function test_convert_dict_to_message_system_with_name (line 145) | def test_convert_dict_to_message_system_with_name() -> None: function test_convert_dict_to_message_tool (line 153) | def test_convert_dict_to_message_tool() -> None: function test_stream_usage_metadata (line 161) | def test_stream_usage_metadata() -> None: FILE: libs/partners/xai/tests/unit_tests/test_chat_models_standard.py class TestXAIStandard (line 13) | class TestXAIStandard(ChatModelUnitTests): method chat_model_class (line 15) | def chat_model_class(self) -> type[BaseChatModel]: method chat_model_params (line 19) | def chat_model_params(self) -> dict: method init_from_env_params (line 23) | def init_from_env_params(self) -> tuple[dict, dict, dict]: FILE: libs/partners/xai/tests/unit_tests/test_imports.py function test_all_imports (line 6) | def test_all_imports() -> None: FILE: libs/partners/xai/tests/unit_tests/test_secrets.py function test_chat_xai_secrets (line 6) | def test_chat_xai_secrets() -> None: FILE: libs/standard-tests/langchain_tests/base.py class BaseStandardTests (line 4) | class BaseStandardTests: method test_no_overrides_DO_NOT_OVERRIDE (line 7) | def test_no_overrides_DO_NOT_OVERRIDE(self) -> None: # noqa: N802 FILE: libs/standard-tests/langchain_tests/conftest.py class CustomSerializer (line 20) | class CustomSerializer: method serialize (line 32) | def serialize(cassette_dict: dict[str, Any]) -> bytes: method deserialize (line 47) | def deserialize(data: bytes) -> dict[str, Any]: class CustomPersister (line 55) | class CustomPersister: method load_cassette (line 59) | def load_cassette( method save_cassette (line 76) | def save_cassette( function base_vcr_config (line 102) | def base_vcr_config() -> dict[str, Any]: function _base_vcr_config (line 120) | def _base_vcr_config() -> dict[str, Any]: function vcr_config (line 125) | def vcr_config() -> dict[str, Any]: FILE: libs/standard-tests/langchain_tests/integration_tests/base_store.py class BaseStoreSyncTests (line 19) | class BaseStoreSyncTests(BaseStandardTests, Generic[V]): method kv_store (line 32) | def kv_store(self) -> BaseStore[str, V]: method three_values (line 40) | def three_values(self) -> tuple[V, V, V]: method test_three_values (line 43) | def test_three_values(self, three_values: tuple[V, V, V]) -> None: method test_kv_store_is_empty (line 48) | def test_kv_store_is_empty(self, kv_store: BaseStore[str, V]) -> None: method test_set_and_get_values (line 53) | def test_set_and_get_values( method test_store_still_empty (line 65) | def test_store_still_empty(self, kv_store: BaseStore[str, V]) -> None: method test_delete_values (line 76) | def test_delete_values( method test_delete_bulk_values (line 89) | def test_delete_bulk_values( method test_delete_missing_keys (line 101) | def test_delete_missing_keys(self, kv_store: BaseStore[str, V]) -> None: method test_set_values_is_idempotent (line 106) | def test_set_values_is_idempotent( method test_get_can_get_same_value (line 119) | def test_get_can_get_same_value( method test_overwrite_values_by_key (line 131) | def test_overwrite_values_by_key( method test_yield_keys (line 148) | def test_yield_keys( class BaseStoreAsyncTests (line 165) | class BaseStoreAsyncTests(BaseStandardTests, Generic[V]): method kv_store (line 178) | async def kv_store(self) -> BaseStore[str, V]: method three_values (line 186) | def three_values(self) -> tuple[V, V, V]: method test_three_values (line 189) | async def test_three_values(self, three_values: tuple[V, V, V]) -> None: method test_kv_store_is_empty (line 194) | async def test_kv_store_is_empty(self, kv_store: BaseStore[str, V]) ->... method test_set_and_get_values (line 199) | async def test_set_and_get_values( method test_store_still_empty (line 211) | async def test_store_still_empty(self, kv_store: BaseStore[str, V]) ->... method test_delete_values (line 222) | async def test_delete_values( method test_delete_bulk_values (line 235) | async def test_delete_bulk_values( method test_delete_missing_keys (line 247) | async def test_delete_missing_keys(self, kv_store: BaseStore[str, V]) ... method test_set_values_is_idempotent (line 252) | async def test_set_values_is_idempotent( method test_get_can_get_same_value (line 265) | async def test_get_can_get_same_value( method test_overwrite_values_by_key (line 282) | async def test_overwrite_values_by_key( method test_yield_keys (line 299) | async def test_yield_keys( FILE: libs/standard-tests/langchain_tests/integration_tests/cache.py class SyncCacheTestSuite (line 16) | class SyncCacheTestSuite(BaseStandardTests): method cache (line 29) | def cache(self) -> BaseCache: method get_sample_prompt (line 35) | def get_sample_prompt(self) -> str: method get_sample_llm_string (line 39) | def get_sample_llm_string(self) -> str: method get_sample_generation (line 43) | def get_sample_generation(self) -> Generation: method test_cache_is_empty (line 50) | def test_cache_is_empty(self, cache: BaseCache) -> None: method test_update_cache (line 56) | def test_update_cache(self, cache: BaseCache) -> None: method test_cache_still_empty (line 64) | def test_cache_still_empty(self, cache: BaseCache) -> None: method test_clear_cache (line 76) | def test_clear_cache(self, cache: BaseCache) -> None: method test_cache_miss (line 85) | def test_cache_miss(self, cache: BaseCache) -> None: method test_cache_hit (line 89) | def test_cache_hit(self, cache: BaseCache) -> None: method test_update_cache_with_multiple_generations (line 97) | def test_update_cache_with_multiple_generations(self, cache: BaseCache... class AsyncCacheTestSuite (line 109) | class AsyncCacheTestSuite(BaseStandardTests): method cache (line 122) | async def cache(self) -> BaseCache: method get_sample_prompt (line 128) | def get_sample_prompt(self) -> str: method get_sample_llm_string (line 132) | def get_sample_llm_string(self) -> str: method get_sample_generation (line 136) | def get_sample_generation(self) -> Generation: method test_cache_is_empty (line 143) | async def test_cache_is_empty(self, cache: BaseCache) -> None: method test_update_cache (line 150) | async def test_update_cache(self, cache: BaseCache) -> None: method test_cache_still_empty (line 158) | async def test_cache_still_empty(self, cache: BaseCache) -> None: method test_clear_cache (line 171) | async def test_clear_cache(self, cache: BaseCache) -> None: method test_cache_miss (line 180) | async def test_cache_miss(self, cache: BaseCache) -> None: method test_cache_hit (line 187) | async def test_cache_hit(self, cache: BaseCache) -> None: method test_update_cache_with_multiple_generations (line 195) | async def test_update_cache_with_multiple_generations( FILE: libs/standard-tests/langchain_tests/integration_tests/chat_models.py function _get_joke_class (line 46) | def _get_joke_class( # noqa: RET503 class _TestCallbackHandler (line 77) | class _TestCallbackHandler(BaseCallbackHandler): method __init__ (line 80) | def __init__(self) -> None: method on_chat_model_start (line 85) | def on_chat_model_start( class _MagicFunctionSchema (line 96) | class _MagicFunctionSchema(BaseModel): function magic_function (line 101) | def magic_function(_input: int) -> int: function magic_function_no_args (line 107) | def magic_function_no_args() -> int: function _validate_tool_call_message (line 112) | def _validate_tool_call_message(message: BaseMessage) -> None: function _validate_tool_call_message_no_args (line 132) | def _validate_tool_call_message_no_args(message: BaseMessage) -> None: function _get_base64_from_url (line 143) | def _get_base64_from_url(url: str) -> str: function unicode_customer (line 159) | def unicode_customer(customer_name: str, description: str) -> str: class ChatModelIntegrationTests (line 173) | class ChatModelIntegrationTests(ChatModelTests): method standard_chat_model_params (line 742) | def standard_chat_model_params(self) -> dict[str, Any]: method test_invoke (line 746) | def test_invoke(self, model: BaseChatModel) -> None: method test_ainvoke (line 770) | async def test_ainvoke(self, model: BaseChatModel) -> None: method test_stream (line 801) | def test_stream(self, model: BaseChatModel) -> None: method test_astream (line 861) | async def test_astream(self, model: BaseChatModel) -> None: method test_invoke_with_model_override (line 910) | def test_invoke_with_model_override(self, model: BaseChatModel) -> None: method test_ainvoke_with_model_override (line 952) | async def test_ainvoke_with_model_override(self, model: BaseChatModel)... method test_stream_with_model_override (line 979) | def test_stream_with_model_override(self, model: BaseChatModel) -> None: method test_astream_with_model_override (line 1009) | async def test_astream_with_model_override(self, model: BaseChatModel)... method test_batch (line 1039) | def test_batch(self, model: BaseChatModel) -> None: method test_abatch (line 1067) | async def test_abatch(self, model: BaseChatModel) -> None: method test_conversation (line 1097) | def test_conversation(self, model: BaseChatModel) -> None: method test_double_messages_conversation (line 1129) | def test_double_messages_conversation(self, model: BaseChatModel) -> N... method test_usage_metadata (line 1169) | def test_usage_metadata(self, model: BaseChatModel) -> None: method test_usage_metadata_streaming (line 1345) | def test_usage_metadata_streaming(self, model: BaseChatModel) -> None: method test_stop_sequence (line 1514) | def test_stop_sequence(self, model: BaseChatModel) -> None: method test_tool_calling (line 1553) | def test_tool_calling(self, model: BaseChatModel) -> None: method test_tool_calling_async (line 1615) | async def test_tool_calling_async(self, model: BaseChatModel) -> None: method test_bind_runnables_as_tools (line 1677) | def test_bind_runnables_as_tools(self, model: BaseChatModel) -> None: method test_tool_message_histories_string_content (line 1742) | def test_tool_message_histories_string_content( method test_tool_message_histories_list_content (line 1816) | def test_tool_message_histories_list_content( method test_tool_choice (line 1913) | def test_tool_choice(self, model: BaseChatModel) -> None: method test_tool_calling_with_no_arguments (line 1966) | def test_tool_calling_with_no_arguments(self, model: BaseChatModel) ->... method test_tool_message_error_status (line 2026) | def test_tool_message_error_status( method test_structured_few_shot_examples (line 2093) | def test_structured_few_shot_examples( method test_structured_output (line 2156) | def test_structured_output( method test_structured_output_async (line 2240) | async def test_structured_output_async( method test_structured_output_pydantic_2_v1 (line 2323) | def test_structured_output_pydantic_2_v1(self, model: BaseChatModel) -... method test_structured_output_optional_param (line 2395) | def test_structured_output_optional_param(self, model: BaseChatModel) ... method test_json_mode (line 2470) | def test_json_mode(self, model: BaseChatModel) -> None: method test_pdf_inputs (line 2533) | def test_pdf_inputs(self, model: BaseChatModel) -> None: method test_audio_inputs (line 2623) | def test_audio_inputs(self, model: BaseChatModel) -> None: method test_image_inputs (line 2718) | def test_image_inputs(self, model: BaseChatModel) -> None: method test_image_tool_message (line 2831) | def test_image_tool_message(self, model: BaseChatModel) -> None: method test_pdf_tool_message (line 2949) | def test_pdf_tool_message(self, model: BaseChatModel) -> None: method test_anthropic_inputs (line 3035) | def test_anthropic_inputs(self, model: BaseChatModel) -> None: method test_message_with_name (line 3218) | def test_message_with_name(self, model: BaseChatModel) -> None: method test_agent_loop (line 3243) | def test_agent_loop(self, model: BaseChatModel) -> None: method test_stream_time (line 3314) | def test_stream_time( method invoke_with_audio_input (line 3352) | def invoke_with_audio_input(self, *, stream: bool = False) -> AIMessage: method invoke_with_audio_output (line 3356) | def invoke_with_audio_output(self, *, stream: bool = False) -> AIMessage: method invoke_with_reasoning_output (line 3360) | def invoke_with_reasoning_output(self, *, stream: bool = False) -> AIM... method invoke_with_cache_read_input (line 3364) | def invoke_with_cache_read_input(self, *, stream: bool = False) -> AIM... method invoke_with_cache_creation_input (line 3368) | def invoke_with_cache_creation_input(self, *, stream: bool = False) ->... method test_unicode_tool_call_integration (line 3372) | def test_unicode_tool_call_integration( FILE: libs/standard-tests/langchain_tests/integration_tests/embeddings.py class EmbeddingsIntegrationTests (line 8) | class EmbeddingsIntegrationTests(EmbeddingsTests): method test_embed_query (line 39) | def test_embed_query(self, model: Embeddings) -> None: method test_embed_documents (line 60) | def test_embed_documents(self, model: Embeddings) -> None: method test_aembed_query (line 80) | async def test_aembed_query(self, model: Embeddings) -> None: method test_aembed_documents (line 101) | async def test_aembed_documents(self, model: Embeddings) -> None: FILE: libs/standard-tests/langchain_tests/integration_tests/indexer.py class DocumentIndexerTestSuite (line 19) | class DocumentIndexerTestSuite(ABC): method index (line 28) | def index(self) -> Generator[DocumentIndex, None, None]: method test_upsert_documents_has_no_ids (line 31) | def test_upsert_documents_has_no_ids(self, index: DocumentIndex) -> None: method test_upsert_no_ids (line 36) | def test_upsert_no_ids(self, index: DocumentIndex) -> None: method test_upsert_some_ids (line 67) | def test_upsert_some_ids(self, index: DocumentIndex) -> None: method test_upsert_overwrites (line 93) | def test_upsert_overwrites(self, index: DocumentIndex) -> None: method test_delete_missing_docs (line 114) | def test_delete_missing_docs(self, index: DocumentIndex) -> None: method test_delete_semantics (line 134) | def test_delete_semantics(self, index: DocumentIndex) -> None: method test_bulk_delete (line 160) | def test_bulk_delete(self, index: DocumentIndex) -> None: method test_delete_no_args (line 174) | def test_delete_no_args(self, index: DocumentIndex) -> None: method test_delete_missing_content (line 179) | def test_delete_missing_content(self, index: DocumentIndex) -> None: method test_get_with_missing_ids (line 184) | def test_get_with_missing_ids(self, index: DocumentIndex) -> None: method test_get_missing (line 202) | def test_get_missing(self, index: DocumentIndex) -> None: class AsyncDocumentIndexTestSuite (line 209) | class AsyncDocumentIndexTestSuite(ABC): method index (line 218) | async def index(self) -> AsyncGenerator[DocumentIndex, None]: method test_upsert_documents_has_no_ids (line 221) | async def test_upsert_documents_has_no_ids(self, index: DocumentIndex)... method test_upsert_no_ids (line 226) | async def test_upsert_no_ids(self, index: DocumentIndex) -> None: method test_upsert_some_ids (line 257) | async def test_upsert_some_ids(self, index: DocumentIndex) -> None: method test_upsert_overwrites (line 283) | async def test_upsert_overwrites(self, index: DocumentIndex) -> None: method test_delete_missing_docs (line 306) | async def test_delete_missing_docs(self, index: DocumentIndex) -> None: method test_delete_semantics (line 326) | async def test_delete_semantics(self, index: DocumentIndex) -> None: method test_bulk_delete (line 352) | async def test_bulk_delete(self, index: DocumentIndex) -> None: method test_delete_no_args (line 366) | async def test_delete_no_args(self, index: DocumentIndex) -> None: method test_delete_missing_content (line 371) | async def test_delete_missing_content(self, index: DocumentIndex) -> N... method test_get_with_missing_ids (line 376) | async def test_get_with_missing_ids(self, index: DocumentIndex) -> None: method test_get_missing (line 394) | async def test_get_missing(self, index: DocumentIndex) -> None: FILE: libs/standard-tests/langchain_tests/integration_tests/retrievers.py class RetrieversIntegrationTests (line 13) | class RetrieversIntegrationTests(BaseStandardTests): method retriever_constructor (line 18) | def retriever_constructor(self) -> type[BaseRetriever]: method retriever_constructor_params (line 23) | def retriever_constructor_params(self) -> dict[str, Any]: method retriever_query_example (line 29) | def retriever_query_example(self) -> str: method num_results_arg_name (line 33) | def num_results_arg_name(self) -> str: method retriever (line 42) | def retriever(self) -> BaseRetriever: method test_k_constructor_param (line 46) | def test_k_constructor_param(self) -> None: method test_invoke_with_k_kwarg (line 102) | def test_invoke_with_k_kwarg(self, retriever: BaseRetriever) -> None: method test_invoke_returns_documents (line 153) | def test_invoke_returns_documents(self, retriever: BaseRetriever) -> N... method test_ainvoke_returns_documents (line 170) | async def test_ainvoke_returns_documents(self, retriever: BaseRetrieve... FILE: libs/standard-tests/langchain_tests/integration_tests/sandboxes.py class SandboxIntegrationTests (line 54) | class SandboxIntegrationTests(BaseStandardTests): method sandbox_backend (line 58) | def sandbox_backend( method sandbox (line 72) | def sandbox(self) -> Iterator[SandboxBackendProtocol]: method has_sync (line 76) | def has_sync(self) -> bool: method has_async (line 81) | def has_async(self) -> bool: method _setup_test_dir (line 86) | def _setup_test_dir(self, sandbox_backend: SandboxBackendProtocol) -> ... method test_write_new_file (line 93) | def test_write_new_file(self, sandbox_backend: SandboxBackendProtocol)... method test_read_basic_file (line 105) | def test_read_basic_file(self, sandbox_backend: SandboxBackendProtocol... method test_edit_single_occurrence (line 116) | def test_edit_single_occurrence( method test_ls_info_lists_files (line 132) | def test_ls_info_lists_files(self, sandbox_backend: SandboxBackendProt... method test_glob_info (line 143) | def test_glob_info(self, sandbox_backend: SandboxBackendProtocol) -> N... method test_grep_raw_literal (line 152) | def test_grep_raw_literal(self, sandbox_backend: SandboxBackendProtoco... method test_upload_single_file (line 162) | def test_upload_single_file(self, sandbox_backend: SandboxBackendProto... method test_download_single_file (line 179) | def test_download_single_file( method test_upload_download_roundtrip (line 198) | def test_upload_download_roundtrip( method test_upload_multiple_files_order_preserved (line 216) | def test_upload_multiple_files_order_preserved( method test_download_multiple_files_order_preserved (line 238) | def test_download_multiple_files_order_preserved( method test_upload_binary_content_roundtrip (line 262) | def test_upload_binary_content_roundtrip( method test_download_error_file_not_found (line 280) | def test_download_error_file_not_found( method test_download_error_is_directory (line 297) | def test_download_error_is_directory( method test_download_error_permission_denied (line 314) | def test_download_error_permission_denied( method test_download_error_invalid_path_relative (line 340) | def test_download_error_invalid_path_relative( method test_upload_missing_parent_dir_or_roundtrip (line 358) | def test_upload_missing_parent_dir_or_roundtrip( method test_upload_relative_path_returns_invalid_path (line 391) | def test_upload_relative_path_returns_invalid_path( FILE: libs/standard-tests/langchain_tests/integration_tests/tools.py class ToolsIntegrationTests (line 9) | class ToolsIntegrationTests(ToolsTests): method test_invoke_matches_output_schema (line 12) | def test_invoke_matches_output_schema(self, tool: BaseTool) -> None: method test_async_invoke_matches_output_schema (line 45) | async def test_async_invoke_matches_output_schema(self, tool: BaseTool... method test_invoke_no_tool_call (line 72) | def test_invoke_no_tool_call(self, tool: BaseTool) -> None: method test_async_invoke_no_tool_call (line 86) | async def test_async_invoke_no_tool_call(self, tool: BaseTool) -> None: FILE: libs/standard-tests/langchain_tests/integration_tests/vectorstores.py function _sort_by_id (line 17) | def _sort_by_id(documents: list[Document]) -> list[Document]: class VectorStoreIntegrationTests (line 21) | class VectorStoreIntegrationTests(BaseStandardTests): method vectorstore (line 102) | def vectorstore(self) -> VectorStore: method has_sync (line 109) | def has_sync(self) -> bool: method has_async (line 114) | def has_async(self) -> bool: method has_get_by_ids (line 119) | def has_get_by_ids(self) -> bool: method get_embeddings (line 124) | def get_embeddings() -> Embeddings: method test_vectorstore_is_empty (line 138) | def test_vectorstore_is_empty(self, vectorstore: VectorStore) -> None: method test_add_documents (line 152) | def test_add_documents(self, vectorstore: VectorStore) -> None: method test_vectorstore_still_empty (line 186) | def test_vectorstore_still_empty(self, vectorstore: VectorStore) -> None: method test_deleting_documents (line 205) | def test_deleting_documents(self, vectorstore: VectorStore) -> None: method test_deleting_bulk_documents (line 227) | def test_deleting_bulk_documents(self, vectorstore: VectorStore) -> None: method test_delete_missing_content (line 249) | def test_delete_missing_content(self, vectorstore: VectorStore) -> None: method test_add_documents_with_ids_is_idempotent (line 263) | def test_add_documents_with_ids_is_idempotent( method test_add_documents_by_id_with_mutation (line 289) | def test_add_documents_by_id_with_mutation(self, vectorstore: VectorSt... method test_get_by_ids (line 328) | def test_get_by_ids(self, vectorstore: VectorStore) -> None: method test_get_by_ids_missing (line 369) | def test_get_by_ids_missing(self, vectorstore: VectorStore) -> None: method test_add_documents_documents (line 399) | def test_add_documents_documents(self, vectorstore: VectorStore) -> None: method test_add_documents_with_existing_ids (line 440) | def test_add_documents_with_existing_ids(self, vectorstore: VectorStor... method test_vectorstore_is_empty_async (line 486) | async def test_vectorstore_is_empty_async(self, vectorstore: VectorSto... method test_add_documents_async (line 500) | async def test_add_documents_async(self, vectorstore: VectorStore) -> ... method test_vectorstore_still_empty_async (line 535) | async def test_vectorstore_still_empty_async( method test_deleting_documents_async (line 556) | async def test_deleting_documents_async(self, vectorstore: VectorStore... method test_deleting_bulk_documents_async (line 578) | async def test_deleting_bulk_documents_async( method test_delete_missing_content_async (line 602) | async def test_delete_missing_content_async(self, vectorstore: VectorS... method test_add_documents_with_ids_is_idempotent_async (line 616) | async def test_add_documents_with_ids_is_idempotent_async( method test_add_documents_by_id_with_mutation_async (line 642) | async def test_add_documents_by_id_with_mutation_async( method test_get_by_ids_async (line 683) | async def test_get_by_ids_async(self, vectorstore: VectorStore) -> None: method test_get_by_ids_missing_async (line 724) | async def test_get_by_ids_missing_async(self, vectorstore: VectorStore... method test_add_documents_documents_async (line 753) | async def test_add_documents_documents_async( method test_add_documents_with_existing_ids_async (line 796) | async def test_add_documents_with_existing_ids_async( FILE: libs/standard-tests/langchain_tests/unit_tests/chat_models.py function generate_schema_pydantic (line 27) | def generate_schema_pydantic() -> Any: class ChatModelTests (line 42) | class ChatModelTests(BaseStandardTests): method chat_model_class (line 47) | def chat_model_class(self) -> type[BaseChatModel]: method chat_model_params (line 52) | def chat_model_params(self) -> dict[str, Any]: method standard_chat_model_params (line 57) | def standard_chat_model_params(self) -> dict[str, Any]: method model (line 68) | def model(self, request: Any) -> BaseChatModel: method my_adder_tool (line 80) | def my_adder_tool(self) -> BaseTool: method has_tool_calling (line 94) | def has_tool_calling(self) -> bool: method has_tool_choice (line 99) | def has_tool_choice(self) -> bool: method has_structured_output (line 107) | def has_structured_output(self) -> bool: method structured_output_kwargs (line 115) | def structured_output_kwargs(self) -> dict[str, Any]: method supports_json_mode (line 140) | def supports_json_mode(self) -> bool: method supports_image_inputs (line 145) | def supports_image_inputs(self) -> bool: method supports_image_urls (line 155) | def supports_image_urls(self) -> bool: method supports_pdf_inputs (line 165) | def supports_pdf_inputs(self) -> bool: method supports_audio_inputs (line 170) | def supports_audio_inputs(self) -> bool: method supports_video_inputs (line 179) | def supports_video_inputs(self) -> bool: method returns_usage_metadata (line 189) | def returns_usage_metadata(self) -> bool: method supports_anthropic_inputs (line 199) | def supports_anthropic_inputs(self) -> bool: method supports_image_tool_message (line 204) | def supports_image_tool_message(self) -> bool: method supports_pdf_tool_message (line 213) | def supports_pdf_tool_message(self) -> bool: method enable_vcr_tests (line 222) | def enable_vcr_tests(self) -> bool: method supported_usage_metadata_details (line 232) | def supported_usage_metadata_details( method supports_model_override (line 254) | def supports_model_override(self) -> bool: method model_override_value (line 267) | def model_override_value(self) -> str | None: class ChatModelUnitTests (line 276) | class ChatModelUnitTests(ChatModelTests): method standard_chat_model_params (line 905) | def standard_chat_model_params(self) -> dict[str, Any]: method init_from_env_params (line 912) | def init_from_env_params( method test_init (line 922) | def test_init(self) -> None: method test_init_from_env (line 943) | def test_init_from_env(self) -> None: method test_init_streaming (line 969) | def test_init_streaming( method test_bind_tool_pydantic (line 991) | def test_bind_tool_pydantic( method test_with_structured_output (line 1037) | def test_with_structured_output( method test_standard_params (line 1069) | def test_standard_params(self, model: BaseChatModel) -> None: method test_serdes (line 1108) | def test_serdes(self, model: BaseChatModel, snapshot: SnapshotAssertio... method test_init_time (line 1137) | def test_init_time(self, benchmark: BenchmarkFixture) -> None: FILE: libs/standard-tests/langchain_tests/unit_tests/embeddings.py class EmbeddingsTests (line 15) | class EmbeddingsTests(BaseStandardTests): method embeddings_class (line 20) | def embeddings_class(self) -> type[Embeddings]: method embedding_model_params (line 24) | def embedding_model_params(self) -> dict[str, Any]: method model (line 29) | def model(self) -> Embeddings: class EmbeddingsUnitTests (line 34) | class EmbeddingsUnitTests(EmbeddingsTests): method test_init (line 92) | def test_init(self) -> None: method init_from_env_params (line 104) | def init_from_env_params( method test_init_from_env (line 116) | def test_init_from_env(self) -> None: FILE: libs/standard-tests/langchain_tests/unit_tests/tools.py class ToolsTests (line 17) | class ToolsTests(BaseStandardTests): method tool_constructor (line 26) | def tool_constructor(self) -> type[BaseTool] | BaseTool: method tool_constructor_params (line 31) | def tool_constructor_params(self) -> dict[str, Any]: method tool_invoke_params_example (line 36) | def tool_invoke_params_example(self) -> dict[str, Any]: method tool (line 45) | def tool(self) -> BaseTool: class ToolsUnitTests (line 58) | class ToolsUnitTests(ToolsTests): method init_from_env_params (line 62) | def init_from_env_params( method test_init (line 72) | def test_init(self) -> None: method test_init_from_env (line 85) | def test_init_from_env(self) -> None: method test_has_name (line 98) | def test_has_name(self, tool: BaseTool) -> None: method test_has_input_schema (line 105) | def test_has_input_schema(self, tool: BaseTool) -> None: method test_input_schema_matches_invoke_params (line 116) | def test_input_schema_matches_invoke_params(self, tool: BaseTool) -> N... FILE: libs/standard-tests/langchain_tests/utils/pydantic.py function get_pydantic_major_version (line 4) | def get_pydantic_major_version() -> int: FILE: libs/standard-tests/tests/integration_tests/test_compile.py function test_placeholder (line 5) | def test_placeholder() -> None: FILE: libs/standard-tests/tests/unit_tests/custom_chat_model.py class ChatParrotLink (line 18) | class ChatParrotLink(BaseChatModel): method _generate (line 53) | def _generate( method _stream (line 105) | def _stream( method _llm_type (line 171) | def _llm_type(self) -> str: method _identifying_params (line 176) | def _identifying_params(self) -> dict[str, Any]: FILE: libs/standard-tests/tests/unit_tests/test_basic_retriever.py class ParrotRetriever (line 9) | class ParrotRetriever(BaseRetriever): method _get_relevant_documents (line 13) | def _get_relevant_documents(self, query: str, **kwargs: Any) -> list[D... class TestParrotRetrieverIntegration (line 18) | class TestParrotRetrieverIntegration(RetrieversIntegrationTests): method retriever_constructor (line 20) | def retriever_constructor(self) -> type[ParrotRetriever]: method retriever_constructor_params (line 24) | def retriever_constructor_params(self) -> dict[str, Any]: method retriever_query_example (line 28) | def retriever_query_example(self) -> str: FILE: libs/standard-tests/tests/unit_tests/test_basic_tool.py class ParrotMultiplyTool (line 10) | class ParrotMultiplyTool(BaseTool): method _run (line 17) | def _run(self, a: int, b: int) -> int: class ParrotMultiplyArtifactTool (line 21) | class ParrotMultiplyArtifactTool(BaseTool): method _run (line 29) | def _run(self, a: int, b: int) -> tuple[int, str]: class TestParrotMultiplyToolUnit (line 33) | class TestParrotMultiplyToolUnit(ToolsUnitTests): method tool_constructor (line 35) | def tool_constructor(self) -> type[ParrotMultiplyTool]: method tool_constructor_params (line 39) | def tool_constructor_params(self) -> dict[str, Any]: method tool_invoke_params_example (line 46) | def tool_invoke_params_example(self) -> dict[str, Any]: class TestParrotMultiplyToolIntegration (line 55) | class TestParrotMultiplyToolIntegration(ToolsIntegrationTests): method tool_constructor (line 57) | def tool_constructor(self) -> type[ParrotMultiplyTool]: method tool_constructor_params (line 61) | def tool_constructor_params(self) -> dict[str, Any]: method tool_invoke_params_example (line 68) | def tool_invoke_params_example(self) -> dict[str, Any]: class TestParrotMultiplyArtifactToolIntegration (line 77) | class TestParrotMultiplyArtifactToolIntegration(ToolsIntegrationTests): method tool_constructor (line 79) | def tool_constructor(self) -> type[ParrotMultiplyArtifactTool]: method tool_constructor_params (line 83) | def tool_constructor_params(self) -> dict[str, Any]: method tool_invoke_params_example (line 90) | def tool_invoke_params_example(self) -> dict[str, Any]: FILE: libs/standard-tests/tests/unit_tests/test_custom_chat_model.py class TestChatParrotLinkUnit (line 17) | class TestChatParrotLinkUnit(ChatModelUnitTests): method chat_model_class (line 19) | def chat_model_class(self) -> type[ChatParrotLink]: method chat_model_params (line 23) | def chat_model_params(self) -> dict[str, Any]: class TestChatParrotLinkIntegration (line 27) | class TestChatParrotLinkIntegration(ChatModelIntegrationTests): method chat_model_class (line 29) | def chat_model_class(self) -> type[ChatParrotLink]: method chat_model_params (line 33) | def chat_model_params(self) -> dict[str, Any]: method test_unicode_tool_call_integration (line 37) | def test_unicode_tool_call_integration( FILE: libs/standard-tests/tests/unit_tests/test_decorated_tool.py function parrot_multiply_tool (line 10) | def parrot_multiply_tool(a: int, b: int) -> int: class TestParrotMultiplyToolUnit (line 15) | class TestParrotMultiplyToolUnit(ToolsUnitTests): method tool_constructor (line 17) | def tool_constructor(self) -> BaseTool: method tool_invoke_params_example (line 21) | def tool_invoke_params_example(self) -> dict[str, Any]: class TestParrotMultiplyToolIntegration (line 30) | class TestParrotMultiplyToolIntegration(ToolsIntegrationTests): method tool_constructor (line 32) | def tool_constructor(self) -> BaseTool: method tool_invoke_params_example (line 36) | def tool_invoke_params_example(self) -> dict[str, Any]: FILE: libs/standard-tests/tests/unit_tests/test_embeddings.py class TestFakeEmbeddingsUnit (line 9) | class TestFakeEmbeddingsUnit(EmbeddingsUnitTests): method embeddings_class (line 11) | def embeddings_class(self) -> type[Embeddings]: method embedding_model_params (line 15) | def embedding_model_params(self) -> dict[str, Any]: class TestFakeEmbeddingsIntegration (line 19) | class TestFakeEmbeddingsIntegration(EmbeddingsIntegrationTests): method embeddings_class (line 21) | def embeddings_class(self) -> type[Embeddings]: method embedding_model_params (line 25) | def embedding_model_params(self) -> dict[str, Any]: FILE: libs/standard-tests/tests/unit_tests/test_in_memory_base_store.py class TestInMemoryStore (line 13) | class TestInMemoryStore(BaseStoreSyncTests[str]): method three_values (line 16) | def three_values(self) -> tuple[str, str, str]: method kv_store (line 21) | def kv_store(self) -> InMemoryStore: class TestInMemoryStoreAsync (line 25) | class TestInMemoryStoreAsync(BaseStoreAsyncTests[str]): method three_values (line 28) | def three_values(self) -> tuple[str, str, str]: method kv_store (line 33) | async def kv_store(self) -> InMemoryStore: FILE: libs/standard-tests/tests/unit_tests/test_in_memory_cache.py class TestInMemoryCache (line 11) | class TestInMemoryCache(SyncCacheTestSuite): method cache (line 14) | def cache(self) -> InMemoryCache: class TestInMemoryCacheAsync (line 18) | class TestInMemoryCacheAsync(AsyncCacheTestSuite): method cache (line 21) | async def cache(self) -> InMemoryCache: FILE: libs/standard-tests/tests/unit_tests/test_in_memory_vectorstore.py class TestInMemoryVectorStore (line 12) | class TestInMemoryVectorStore(VectorStoreIntegrationTests): method vectorstore (line 14) | def vectorstore(self) -> VectorStore: class WithoutGetByIdsVectorStore (line 19) | class WithoutGetByIdsVectorStore(InMemoryVectorStore): class TestWithoutGetByIdVectorStore (line 25) | class TestWithoutGetByIdVectorStore(VectorStoreIntegrationTests): method vectorstore (line 27) | def vectorstore(self) -> VectorStore: method has_get_by_ids (line 32) | def has_get_by_ids(self) -> bool: method test_get_by_ids_fails (line 35) | def test_get_by_ids_fails(self, vectorstore: VectorStore) -> None: FILE: libs/text-splitters/langchain_text_splitters/base.py class TextSplitter (line 44) | class TextSplitter(BaseDocumentTransformer, ABC): method __init__ (line 47) | def __init__( method split_text (line 93) | def split_text(self, text: str) -> list[str]: method create_documents (line 103) | def create_documents( method split_documents (line 131) | def split_documents(self, documents: Iterable[Document]) -> list[Docum... method _join_docs (line 146) | def _join_docs(self, docs: list[str], separator: str) -> str | None: method _merge_splits (line 152) | def _merge_splits(self, splits: Iterable[str], separator: str) -> list... method from_huggingface_tokenizer (line 197) | def from_huggingface_tokenizer( method from_tiktoken_encoder (line 230) | def from_tiktoken_encoder( method transform_documents (line 290) | def transform_documents( class TokenTextSplitter (line 304) | class TokenTextSplitter(TextSplitter): method __init__ (line 307) | def __init__( method split_text (line 347) | def split_text(self, text: str) -> list[str]: class Language (line 380) | class Language(str, Enum): class Tokenizer (line 414) | class Tokenizer: function split_text_on_tokens (line 430) | def split_text_on_tokens(*, text: str, tokenizer: Tokenizer) -> list[str]: FILE: libs/text-splitters/langchain_text_splitters/character.py class CharacterTextSplitter (line 11) | class CharacterTextSplitter(TextSplitter): method __init__ (line 14) | def __init__( method split_text (line 25) | def split_text(self, text: str) -> list[str]: function _split_text_with_regex (line 61) | def _split_text_with_regex( class RecursiveCharacterTextSplitter (line 88) | class RecursiveCharacterTextSplitter(TextSplitter): method __init__ (line 95) | def __init__( method _split_text (line 107) | def _split_text(self, text: str, separators: list[str]) -> list[str]: method split_text (line 149) | def split_text(self, text: str) -> list[str]: method from_language (line 161) | def from_language( method get_separators_for_language (line 179) | def get_separators_for_language(language: Language) -> list[str]: FILE: libs/text-splitters/langchain_text_splitters/html.py class ElementType (line 53) | class ElementType(TypedDict): function _find_all_strings (line 66) | def _find_all_strings( function _find_all_tags (line 74) | def _find_all_tags( class HTMLHeaderTextSplitter (line 83) | class HTMLHeaderTextSplitter: method __init__ (line 145) | def __init__( method split_text (line 175) | def split_text(self, text: str) -> list[Document]: method split_text_from_url (line 189) | def split_text_from_url( method split_text_from_file (line 217) | def split_text_from_file(self, file: str | IO[str]) -> list[Document]: method _generate_documents (line 235) | def _generate_documents(self, html_content: str) -> Iterator[Document]: class HTMLSectionSplitter (line 353) | class HTMLSectionSplitter: method __init__ (line 359) | def __init__( method split_documents (line 381) | def split_documents(self, documents: Iterable[Document]) -> list[Docum... method split_text (line 400) | def split_text(self, text: str) -> list[Document]: method create_documents (line 411) | def create_documents( method split_html_by_headers (line 437) | def split_html_by_headers(self, html_doc: str) -> list[dict[str, str |... method convert_possible_tags_to_header (line 498) | def convert_possible_tags_to_header(self, html_content: str) -> str: method split_text_from_file (line 535) | def split_text_from_file(self, file: StringIO) -> list[Document]: class HTMLSemanticPreservingSplitter (line 562) | class HTMLSemanticPreservingSplitter(BaseDocumentTransformer): method __init__ (line 604) | def __init__( method split_text (line 720) | def split_text(self, text: str) -> list[Document]: method transform_documents (line 742) | def transform_documents( method _process_media (line 767) | def _process_media(self, soup: BeautifulSoup) -> None: method _process_links (line 801) | def _process_links(soup: BeautifulSoup) -> None: method _filter_tags (line 815) | def _filter_tags(self, soup: BeautifulSoup) -> None: method _normalize_and_clean_text (line 830) | def _normalize_and_clean_text(self, text: str) -> str: method _process_html (line 851) | def _process_html(self, soup: BeautifulSoup) -> list[Document]: method _create_documents (line 996) | def _create_documents( method _further_split_chunk (line 1020) | def _further_split_chunk( method _reinsert_preserved_elements (line 1051) | def _reinsert_preserved_elements( FILE: libs/text-splitters/langchain_text_splitters/json.py class RecursiveJsonSplitter (line 12) | class RecursiveJsonSplitter: method __init__ (line 29) | def __init__( method _json_size (line 54) | def _json_size(data: dict[str, Any]) -> int: method _set_nested_dict (line 59) | def _set_nested_dict( method _list_to_dict_preprocessing (line 69) | def _list_to_dict_preprocessing( method _json_split (line 85) | def _json_split( method split_json (line 116) | def split_json( method split_text (line 141) | def split_text( method create_documents (line 163) | def create_documents( FILE: libs/text-splitters/langchain_text_splitters/jsx.py class JSFrameworkTextSplitter (line 9) | class JSFrameworkTextSplitter(RecursiveCharacterTextSplitter): method __init__ (line 28) | def __init__( method split_text (line 46) | def split_text(self, text: str) -> list[str]: FILE: libs/text-splitters/langchain_text_splitters/konlpy.py class KonlpyTextSplitter (line 19) | class KonlpyTextSplitter(TextSplitter): method __init__ (line 25) | def __init__( method split_text (line 49) | def split_text(self, text: str) -> list[str]: FILE: libs/text-splitters/langchain_text_splitters/latex.py class LatexTextSplitter (line 11) | class LatexTextSplitter(RecursiveCharacterTextSplitter): method __init__ (line 14) | def __init__(self, **kwargs: Any) -> None: FILE: libs/text-splitters/langchain_text_splitters/markdown.py class MarkdownTextSplitter (line 14) | class MarkdownTextSplitter(RecursiveCharacterTextSplitter): method __init__ (line 17) | def __init__(self, **kwargs: Any) -> None: class MarkdownHeaderTextSplitter (line 23) | class MarkdownHeaderTextSplitter: method __init__ (line 26) | def __init__( method _is_custom_header (line 57) | def _is_custom_header(self, line: str, sep: str) -> bool: method aggregate_lines_to_chunks (line 88) | def aggregate_lines_to_chunks(self, lines: list[LineType]) -> list[Doc... method split_text (line 134) | def split_text(self, text: str) -> list[Document]: class LineType (line 283) | class LineType(TypedDict): class HeaderType (line 290) | class HeaderType(TypedDict): class ExperimentalMarkdownSyntaxTextSplitter (line 298) | class ExperimentalMarkdownSyntaxTextSplitter: method __init__ (line 333) | def __init__( method split_text (line 372) | def split_text(self, text: str) -> list[Document]: method _resolve_header_stack (line 434) | def _resolve_header_stack(self, header_depth: int, header_text: str) -... method _resolve_code_chunk (line 442) | def _resolve_code_chunk(self, current_line: str, raw_lines: list[str])... method _complete_chunk_doc (line 451) | def _complete_chunk_doc(self) -> None: method _match_header (line 464) | def _match_header(self, line: str) -> re.Match[str] | None: method _match_code (line 472) | def _match_code(line: str) -> re.Match[str] | None: method _match_horz (line 477) | def _match_horz(line: str) -> re.Match[str] | None: FILE: libs/text-splitters/langchain_text_splitters/nltk.py class NLTKTextSplitter (line 19) | class NLTKTextSplitter(TextSplitter): method __init__ (line 22) | def __init__( method split_text (line 58) | def split_text(self, text: str) -> list[str]: FILE: libs/text-splitters/langchain_text_splitters/python.py class PythonCodeTextSplitter (line 11) | class PythonCodeTextSplitter(RecursiveCharacterTextSplitter): method __init__ (line 14) | def __init__(self, **kwargs: Any) -> None: FILE: libs/text-splitters/langchain_text_splitters/sentence_transformers.py class SentenceTransformersTokenTextSplitter (line 20) | class SentenceTransformersTokenTextSplitter(TextSplitter): method __init__ (line 23) | def __init__( method _initialize_chunk_configuration (line 60) | def _initialize_chunk_configuration(self, *, tokens_per_chunk: int | N... method split_text (line 77) | def split_text(self, text: str) -> list[str]: method count_tokens (line 104) | def count_tokens(self, *, text: str) -> int: method _encode (line 120) | def _encode(self, text: str) -> list[int]: FILE: libs/text-splitters/langchain_text_splitters/spacy.py class SpacyTextSplitter (line 26) | class SpacyTextSplitter(TextSplitter): method __init__ (line 35) | def __init__( method split_text (line 53) | def split_text(self, text: str) -> list[str]: function _make_spacy_pipeline_for_splitting (line 61) | def _make_spacy_pipeline_for_splitting( FILE: libs/text-splitters/tests/integration_tests/test_compile.py function test_placeholder (line 5) | def test_placeholder() -> None: FILE: libs/text-splitters/tests/integration_tests/test_nlp_text_splitters.py function setup_module (line 13) | def setup_module() -> None: function spacy (line 18) | def spacy() -> None: function test_nltk_text_splitting_args (line 33) | def test_nltk_text_splitting_args() -> None: function test_spacy_text_splitting_args (line 45) | def test_spacy_text_splitting_args() -> None: function test_nltk_text_splitter (line 56) | def test_nltk_text_splitter() -> None: function test_spacy_text_splitter (line 68) | def test_spacy_text_splitter(pipeline: str) -> None: function test_spacy_text_splitter_strip_whitespace (line 80) | def test_spacy_text_splitter_strip_whitespace(pipeline: str) -> None: function test_nltk_text_splitter_args (line 92) | def test_nltk_text_splitter_args() -> None: function test_nltk_text_splitter_with_add_start_index (line 105) | def test_nltk_text_splitter_with_add_start_index() -> None: FILE: libs/text-splitters/tests/integration_tests/test_text_splitter.py function test_huggingface_type_check (line 15) | def test_huggingface_type_check() -> None: function test_huggingface_tokenizer (line 24) | def test_huggingface_tokenizer() -> None: function test_token_text_splitter (line 34) | def test_token_text_splitter() -> None: function test_token_text_splitter_overlap (line 42) | def test_token_text_splitter_overlap() -> None: function test_token_text_splitter_from_tiktoken (line 50) | def test_token_text_splitter_from_tiktoken() -> None: function test_sentence_transformers_count_tokens (line 58) | def test_sentence_transformers_count_tokens() -> None: function test_sentence_transformers_split_text (line 74) | def test_sentence_transformers_split_text() -> None: function test_sentence_transformers_multiple_tokens (line 85) | def test_sentence_transformers_multiple_tokens() -> None: function test_sentence_transformers_with_additional_model_kwargs (line 118) | def test_sentence_transformers_with_additional_model_kwargs() -> None: FILE: libs/text-splitters/tests/unit_tests/conftest.py function pytest_addoption (line 9) | def pytest_addoption(parser: pytest.Parser) -> None: function pytest_collection_modifyitems (line 23) | def pytest_collection_modifyitems( FILE: libs/text-splitters/tests/unit_tests/test_html_security.py class TestHTMLSectionSplitterSecurity (line 9) | class TestHTMLSectionSplitterSecurity: method test_xxe_entity_attack_blocked (line 12) | def test_xxe_entity_attack_blocked(self) -> None: method test_xxe_document_function_blocked (line 29) | def test_xxe_document_function_blocked(self) -> None: method test_secure_parser_configuration (line 47) | def test_secure_parser_configuration(self) -> None: method test_no_network_access (line 61) | def test_no_network_access(self) -> None: method test_dtd_processing_disabled (line 84) | def test_dtd_processing_disabled(self) -> None: method test_safe_default_xslt_usage (line 110) | def test_safe_default_xslt_usage(self) -> None: FILE: libs/text-splitters/tests/unit_tests/test_text_splitters.py function test_character_text_splitter (line 56) | def test_character_text_splitter() -> None: function test_character_text_splitter_empty_doc (line 65) | def test_character_text_splitter_empty_doc() -> None: function test_character_text_splitter_separtor_empty_doc (line 74) | def test_character_text_splitter_separtor_empty_doc() -> None: function test_character_text_splitter_long (line 83) | def test_character_text_splitter_long() -> None: function test_character_text_splitter_short_words_first (line 92) | def test_character_text_splitter_short_words_first() -> None: function test_character_text_splitter_longer_words (line 101) | def test_character_text_splitter_longer_words() -> None: function test_character_text_splitter_no_separator_in_text (line 111) | def test_character_text_splitter_no_separator_in_text() -> None: function test_character_text_splitter_handle_chunksize_equal_to_chunkoverlap (line 120) | def test_character_text_splitter_handle_chunksize_equal_to_chunkoverlap(... function test_character_text_splitter_empty_input (line 129) | def test_character_text_splitter_empty_input() -> None: function test_character_text_splitter_whitespace_only (line 138) | def test_character_text_splitter_whitespace_only() -> None: function test_character_text_splitter_keep_separator_regex (line 150) | def test_character_text_splitter_keep_separator_regex( function test_character_text_splitter_keep_separator_regex_start (line 174) | def test_character_text_splitter_keep_separator_regex_start( function test_character_text_splitter_keep_separator_regex_end (line 198) | def test_character_text_splitter_keep_separator_regex_end( function test_character_text_splitter_discard_separator_regex (line 222) | def test_character_text_splitter_discard_separator_regex( function test_recursive_character_text_splitter_keep_separators (line 243) | def test_recursive_character_text_splitter_keep_separators() -> None: function test_character_text_splitting_args (line 267) | def test_character_text_splitting_args() -> None: function test_merge_splits (line 283) | def test_merge_splits() -> None: function test_create_documents (line 292) | def test_create_documents() -> None: function test_create_documents_with_metadata (line 305) | def test_create_documents_with_metadata() -> None: function test_create_documents_with_start_index (line 350) | def test_create_documents_with_start_index( function test_metadata_not_shallow (line 361) | def test_metadata_not_shallow() -> None: function test_iterative_text_splitter_keep_separator (line 376) | def test_iterative_text_splitter_keep_separator() -> None: function test_iterative_text_splitter_discard_separator (line 389) | def test_iterative_text_splitter_discard_separator() -> None: function __test_iterative_text_splitter (line 402) | def __test_iterative_text_splitter( function test_iterative_text_splitter (line 420) | def test_iterative_text_splitter() -> None: function test_split_documents (line 451) | def test_split_documents() -> None: function test_python_text_splitter (line 473) | def test_python_text_splitter() -> None: function test_jsx_text_splitter (line 510) | def test_jsx_text_splitter() -> None: function test_vue_text_splitter (line 565) | def test_vue_text_splitter() -> None: function test_svelte_text_splitter (line 613) | def test_svelte_text_splitter() -> None: function test_jsx_splitter_separator_not_mutated_across_calls (line 628) | def test_jsx_splitter_separator_not_mutated_across_calls() -> None: function test_python_code_splitter (line 659) | def test_python_code_splitter() -> None: function test_golang_code_splitter (line 682) | def test_golang_code_splitter() -> None: function test_rst_code_splitter (line 715) | def test_rst_code_splitter() -> None: function test_proto_file_splitter (line 767) | def test_proto_file_splitter() -> None: function test_javascript_code_splitter (line 801) | def test_javascript_code_splitter() -> None: function test_cobol_code_splitter (line 827) | def test_cobol_code_splitter() -> None: function test_typescript_code_splitter (line 862) | def test_typescript_code_splitter() -> None: function test_java_code_splitter (line 889) | def test_java_code_splitter() -> None: function test_kotlin_code_splitter (line 915) | def test_kotlin_code_splitter() -> None: function test_csharp_code_splitter (line 947) | def test_csharp_code_splitter() -> None: function test_cpp_code_splitter (line 1014) | def test_cpp_code_splitter() -> None: function test_scala_code_splitter (line 1039) | def test_scala_code_splitter() -> None: function test_ruby_code_splitter (line 1064) | def test_ruby_code_splitter() -> None: function test_php_code_splitter (line 1085) | def test_php_code_splitter() -> None: function test_swift_code_splitter (line 1112) | def test_swift_code_splitter() -> None: function test_rust_code_splitter (line 1134) | def test_rust_code_splitter() -> None: function test_r_code_splitter (line 1147) | def test_r_code_splitter() -> None: function test_markdown_code_splitter (line 1176) | def test_markdown_code_splitter() -> None: function test_latex_code_splitter (line 1241) | def test_latex_code_splitter() -> None: function test_html_code_splitter (line 1253) | def test_html_code_splitter() -> None: function test_md_header_text_splitter_1 (line 1289) | def test_md_header_text_splitter_1() -> None: function test_md_header_text_splitter_2 (line 1320) | def test_md_header_text_splitter_2() -> None: function test_md_header_text_splitter_3 (line 1359) | def test_md_header_text_splitter_3() -> None: function test_md_header_text_splitter_preserve_headers_1 (line 1413) | def test_md_header_text_splitter_preserve_headers_1() -> None: function test_md_header_text_splitter_preserve_headers_2 (line 1446) | def test_md_header_text_splitter_preserve_headers_2() -> None: function test_md_header_text_splitter_fenced_code_block (line 1493) | def test_md_header_text_splitter_fenced_code_block(fence: str) -> None: function test_md_header_text_splitter_fenced_code_block_interleaved (line 1520) | def test_md_header_text_splitter_fenced_code_block_interleaved( function test_md_header_text_splitter_with_invisible_characters (line 1557) | def test_md_header_text_splitter_with_invisible_characters(characters: s... function test_md_header_text_splitter_with_custom_headers (line 1585) | def test_md_header_text_splitter_with_custom_headers() -> None: function test_md_header_text_splitter_mixed_headers (line 1641) | def test_md_header_text_splitter_mixed_headers() -> None: function test_experimental_markdown_syntax_text_splitter (line 1727) | def test_experimental_markdown_syntax_text_splitter() -> None: function test_experimental_markdown_syntax_text_splitter_header_configuration (line 1780) | def test_experimental_markdown_syntax_text_splitter_header_configuration... function test_experimental_markdown_syntax_text_splitter_with_headers (line 1825) | def test_experimental_markdown_syntax_text_splitter_with_headers() -> None: function test_experimental_markdown_syntax_text_splitter_split_lines (line 1883) | def test_experimental_markdown_syntax_text_splitter_split_lines() -> None: function test_experimental_markdown_syntax_text_splitter_on_multi_files (line 1991) | def test_experimental_markdown_syntax_text_splitter_on_multi_files() -> ... function test_experimental_markdown_syntax_text_splitter_split_lines_on_multi_files (line 2074) | def test_experimental_markdown_syntax_text_splitter_split_lines_on_multi... function test_experimental_markdown_syntax_text_splitter_with_header_on_multi_files (line 2202) | def test_experimental_markdown_syntax_text_splitter_with_header_on_multi... function test_experimental_markdown_syntax_text_splitter_header_config_on_multi_files (line 2291) | def test_experimental_markdown_syntax_text_splitter_header_config_on_mul... function test_solidity_code_splitter (line 2367) | def test_solidity_code_splitter() -> None: function test_lua_code_splitter (line 2395) | def test_lua_code_splitter() -> None: function test_haskell_code_splitter (line 2442) | def test_haskell_code_splitter() -> None: function html_header_splitter_splitter_factory (line 2475) | def html_header_splitter_splitter_factory() -> Callable[ function test_html_header_text_splitter (line 2680) | def test_html_header_text_splitter( function test_additional_html_header_text_splitter (line 2836) | def test_additional_html_header_text_splitter( function test_html_no_headers_with_multiple_splitters (line 2908) | def test_html_no_headers_with_multiple_splitters( function test_split_text_on_tokens (line 2952) | def test_split_text_on_tokens() -> None: function test_decode_returns_no_chunks (line 2967) | def test_decode_returns_no_chunks() -> None: function test_section_aware_happy_path_splitting_based_on_header_1_2 (line 2984) | def test_section_aware_happy_path_splitting_based_on_header_1_2() -> None: function test_happy_path_splitting_based_on_header_with_font_size (line 3038) | def test_happy_path_splitting_based_on_header_with_font_size() -> None: function test_happy_path_splitting_based_on_header_with_whitespace_chars (line 3089) | def test_happy_path_splitting_based_on_header_with_whitespace_chars() ->... function test_happy_path_splitting_with_duplicate_header_tag (line 3140) | def test_happy_path_splitting_with_duplicate_header_tag() -> None: function test_split_json (line 3191) | def test_split_json() -> None: function test_split_json_with_lists (line 3213) | def test_split_json_with_lists() -> None: function test_split_json_many_calls (line 3236) | def test_split_json_many_calls() -> None: function test_split_json_with_empty_dict_values (line 3257) | def test_split_json_with_empty_dict_values() -> None: function test_split_json_with_nested_empty_dicts (line 3275) | def test_split_json_with_nested_empty_dicts() -> None: function test_split_json_empty_dict_only (line 3293) | def test_split_json_empty_dict_only() -> None: function test_split_json_mixed_empty_and_nonempty_dicts (line 3306) | def test_split_json_mixed_empty_and_nonempty_dicts() -> None: function test_split_json_empty_dict_value_in_large_payload (line 3329) | def test_split_json_empty_dict_value_in_large_payload() -> None: function test_powershell_code_splitter_short_code (line 3360) | def test_powershell_code_splitter_short_code() -> None: function test_powershell_code_splitter_longer_code (line 3382) | def test_powershell_code_splitter_longer_code() -> None: function test_visualbasic6_code_splitter (line 3440) | def test_visualbasic6_code_splitter() -> None: function custom_iframe_extractor (line 3489) | def custom_iframe_extractor(iframe_tag: Tag) -> str: function test_html_splitter_with_custom_extractor (line 3495) | def test_html_splitter_with_custom_extractor() -> None: function test_html_splitter_with_href_links (line 3522) | def test_html_splitter_with_href_links() -> None: function test_html_splitter_with_nested_elements (line 3547) | def test_html_splitter_with_nested_elements() -> None: function test_html_splitter_with_preserved_elements (line 3575) | def test_html_splitter_with_preserved_elements() -> None: function test_html_splitter_with_nested_preserved_elements (line 3611) | def test_html_splitter_with_nested_preserved_elements() -> None: function test_html_splitter_with_nested_div_preserved (line 3652) | def test_html_splitter_with_nested_div_preserved() -> None: function test_html_splitter_preserve_nested_in_paragraph (line 3682) | def test_html_splitter_preserve_nested_in_paragraph() -> None: function test_html_splitter_with_no_further_splits (line 3705) | def test_html_splitter_with_no_further_splits() -> None: function test_html_splitter_with_small_chunk_size (line 3728) | def test_html_splitter_with_small_chunk_size() -> None: function test_html_splitter_with_denylist_tags (line 3756) | def test_html_splitter_with_denylist_tags() -> None: function test_html_splitter_with_external_metadata (line 3782) | def test_html_splitter_with_external_metadata() -> None: function test_html_splitter_with_text_normalization (line 3807) | def test_html_splitter_with_text_normalization() -> None: function test_html_splitter_with_allowlist_tags (line 3832) | def test_html_splitter_with_allowlist_tags() -> None: function test_html_splitter_with_mixed_preserve_and_filter (line 3859) | def test_html_splitter_with_mixed_preserve_and_filter() -> None: function test_html_splitter_with_no_headers (line 3895) | def test_html_splitter_with_no_headers() -> None: function test_html_splitter_with_media_preservation (line 3920) | def test_html_splitter_with_media_preservation() -> None: function test_html_splitter_keep_separator_true (line 3961) | def test_html_splitter_keep_separator_true() -> None: function test_html_splitter_keep_separator_false (line 3991) | def test_html_splitter_keep_separator_false() -> None: function test_html_splitter_keep_separator_start (line 4021) | def test_html_splitter_keep_separator_start() -> None: function test_html_splitter_keep_separator_end (line 4051) | def test_html_splitter_keep_separator_end() -> None: function test_html_splitter_keep_separator_default (line 4081) | def test_html_splitter_keep_separator_default() -> None: function test_html_splitter_preserved_elements_reverse_order (line 4110) | def test_html_splitter_preserved_elements_reverse_order() -> None: function test_html_splitter_replacement_order (line 4151) | def test_html_splitter_replacement_order() -> None: function test_character_text_splitter_discard_regex_separator_on_merge (line 4182) | def test_character_text_splitter_discard_regex_separator_on_merge() -> N... function test_character_text_splitter_chunk_size_effect (line 4213) | def test_character_text_splitter_chunk_size_effect(