You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
langchain/libs/core/langchain_core/utils
Paresh Chiramel 9be08a1956
Update _retrieve_ref inside json_schema.py to include an isdigit() check (#14745)
- **Description:** Update _retrieve_ref inside json_schema.py to include
an isdigit() check
- **Issue:** This library is used inside dereference_refs inside
langchain_community.agent_toolkits.openapi.spec. When I read in a yaml
file which has references for "400", "401" etc; the line "out =
out[component]" causes a KeyError. The isdigit() check ensures that if
it is an integer like "400" or "401"; it converts it into integer before
using it as a key to prevent the error.
  - **Dependencies:** No dependencies
  - **Tag maintainer:** @baskaryan

---------

Co-authored-by: Harrison Chase <hw.chase.17@gmail.com>
9 months ago
..
__init__.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 10 months ago
aiter.py Separate out langchain_core package (#13577) 11 months ago
env.py Improve: remove extra spaces in get_from_env error (#15064) 10 months ago
formatting.py [core] prompt changes (#15186) 9 months ago
html.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 10 months ago
input.py Separate out langchain_core package (#13577) 11 months ago
iter.py Separate out langchain_core package (#13577) 11 months ago
json_schema.py Update _retrieve_ref inside json_schema.py to include an isdigit() check (#14745) 9 months ago
loading.py Separate out langchain_core package (#13577) 11 months ago
pydantic.py Separate out langchain_core package (#13577) 11 months ago
strings.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 10 months ago
utils.py Separate out langchain_core package (#13577) 11 months ago