langchain/libs/core/langchain_core/utils
Leonid Ganeline 3ef8b24277
core[patch]: utils.guard_import fix (#21133)
Issues (nit): 
1. `utils.guard_import` prints wrong error message when there is an
import `error.` It prints the whole `module_name` but should be only the
first part as the pip package name. E.i. `langchain_core.utils` -> print
not `langchain-core` but `langchain_core.utils`. Also replace '_' with
'-' in the pip package name.
2. it does not handle the `ModuleNotFoundError` which raised if
`guard_import("wrong_module")`

Fixed issues; added ut-s. Controversial: I've reraised
`ModuleNotFoundError` as `ImportError`, since in case of the error, the
proposed action is the same - we need to install a missed package.
2024-05-03 17:21:36 -04:00
..
__init__.py core[minor]: Image prompt template (#14263) 2024-01-27 17:04:29 -08:00
_merge.py core[minor], ...: add tool calls message (#18947) 2024-04-09 18:41:42 -05:00
aiter.py core[patch[: docstring update (#21036) 2024-04-29 15:35:34 -04:00
env.py
formatting.py core[patch]: docstring update (#16813) 2024-02-09 12:47:41 -08:00
function_calling.py (all): update removal in deprecation warnings from 0.2 to 0.3 (#21265) 2024-05-03 14:29:36 -04:00
html.py core[patch]: Enhance link extraction with query parameters (#20259) 2024-04-27 02:22:36 +00:00
image.py core[minor]: Image prompt template (#14263) 2024-01-27 17:04:29 -08:00
input.py infra: add print rule to ruff (#16221) 2024-02-09 16:13:30 -08:00
interactive_env.py core[patch]: simple prompt pretty printing (#15968) 2024-01-12 21:08:51 -05:00
iter.py core: implement a batch_size parameter for CacheBackedEmbeddings (#18070) 2024-03-19 18:55:43 +00:00
json_schema.py core[patch]: fixed circular dependency with json schema (#18657) 2024-03-12 05:42:45 +00:00
json.py core[minor], ...: add tool calls message (#18947) 2024-04-09 18:41:42 -05:00
loading.py (all): update removal in deprecation warnings from 0.2 to 0.3 (#21265) 2024-05-03 14:29:36 -04:00
mustache.py core[patch[: docstring update (#21036) 2024-04-29 15:35:34 -04:00
pydantic.py
strings.py
utils.py core[patch]: utils.guard_import fix (#21133) 2024-05-03 17:21:36 -04:00