langchain/libs/core/tests/unit_tests
CtrlMj 1e56c66f86
core: Fix issue 31035 alias fields in base tool langchain core (#31112)
**Description**: The 'inspect' package in python skips over the aliases
set in the schema of a pydantic model. This is a workound to include the
aliases from the original input.
**issue**: #31035 


Cc: @ccurme @eyurtsev

---------

Co-authored-by: Chester Curme <chester.curme@gmail.com>
2025-05-12 11:04:13 -04:00
..
_api core: Add ruff rules PT (pytest) (#29381) 2025-04-01 13:31:07 -04:00
caches core: Add ruff rules PT (pytest) (#29381) 2025-04-01 13:31:07 -04:00
callbacks core: Improve mypy config (#30737) 2025-04-11 16:35:13 -04:00
chat_history core: Bump ruff version to 0.9 (#29201) 2025-01-22 00:20:09 +00:00
data
dependencies
document_loaders core: Add ruff rules ARG (#30732) 2025-04-09 14:39:36 -04:00
documents
embeddings core: Bump ruff version to 0.9 (#29201) 2025-01-22 00:20:09 +00:00
example_selectors core: Improve mypy config (#30737) 2025-04-11 16:35:13 -04:00
examples
fake core: Specify code when ignoring type issue (ruff PGH003) (#30675) 2025-04-10 22:23:52 -04:00
indexing core[patch]: Raise AttributeError (instead of ModuleNotFoundError) in custom __getattr__ (#30905) 2025-04-17 14:15:28 -04:00
language_models core[patch]: fix edge cases for _is_openai_data_block (#30997) 2025-04-24 10:48:52 -04:00
load core, openai[patch]: support serialization of pydantic models in messages (#29940) 2025-02-24 09:34:27 -05:00
messages fix(core): Permit OpenAI style blocks to be passed into convert_to_openai_messages (#31140) 2025-05-07 10:57:37 -04:00
output_parsers core: Improve OutputParser error messaging when model output is truncated (max_tokens) (#30936) 2025-04-21 10:06:18 -04:00
outputs
prompts core[patch]: update dict prompt template (#30967) 2025-04-23 10:04:50 -07:00
rate_limiters
runnables core: Removing unnecessary pydantic core schema rebuilds (#30848) 2025-04-16 12:00:08 -04:00
stores core: Specify code when ignoring type issue (ruff PGH003) (#30675) 2025-04-10 22:23:52 -04:00
tracers core: Specify code when ignoring type issue (ruff PGH003) (#30675) 2025-04-10 22:23:52 -04:00
utils core: Improve mypy config (#30737) 2025-04-11 16:35:13 -04:00
vectorstores core: Specify code when ignoring type issue (ruff PGH003) (#30675) 2025-04-10 22:23:52 -04:00
__init__.py
conftest.py core: Add ruff rules PLR (#30696) 2025-04-09 15:15:38 -04:00
prompt_file.txt
pydantic_utils.py core: Add ruff rules FBT001 and FBT002 (#30695) 2025-04-11 16:26:33 -04:00
stubs.py core: Add ruff rules PYI (#29335) 2025-04-04 19:59:44 +00:00
test_globals.py
test_imports.py core[patch]: Add ruff rules for PLW (Pylint Warnings) (#29288) 2025-03-27 10:26:12 +00:00
test_messages.py core, openai[patch]: prefer provider-assigned IDs when aggregating message chunks (#31080) 2025-05-02 11:18:18 -04:00
test_outputs.py core: Bump ruff version to 0.9 (#29201) 2025-01-22 00:20:09 +00:00
test_prompt_values.py
test_pydantic_imports.py core: Removing unnecessary pydantic core schema rebuilds (#30848) 2025-04-16 12:00:08 -04:00
test_pydantic_serde.py core: Auto-fix some docstrings (#29337) 2025-01-21 13:29:53 -05:00
test_retrievers.py core, tests: more tolerant _aget_relevant_documents function (#28462) 2024-12-06 00:49:30 +00:00
test_setup.py core[patch]: Use Blockbuster to detect blocking calls in asyncio during tests (#29043) 2025-01-31 10:06:34 -05:00
test_sys_info.py
test_tools.py core: Fix issue 31035 alias fields in base tool langchain core (#31112) 2025-05-12 11:04:13 -04:00