Avatar for the langchain-ai user
langchain-ai
langchain
Instrumentation
Wall Time
BlogDocsChangelog

fix(core): correctly resolve list indices in JSON Pointer refs and improve docs

#32041
Comparing
anmol-aidora:patch-1
(
d072dcc
) with
master
(
02d0a9a
)
CodSpeed Performance Gauge
-6%
Improvements
0
Regressions
0
Untouched
13
New
0
Dropped
0
Ignored
0

Benchmarks

Passed

test_async_callbacks_in_sync
libs/core/tests/benchmarks/test_async_callbacks.py::test_async_callbacks_in_sync
CodSpeed Performance Gauge
-1%
23.8 ms
24 ms
test_import_time[HumanMessage]
libs/core/tests/benchmarks/test_imports.py::test_import_time[HumanMessage]
CodSpeed Performance Gauge
-4%
209.5 ms
219.4 ms
test_import_time[ChatPromptTemplate]
libs/core/tests/benchmarks/test_imports.py::test_import_time[ChatPromptTemplate]
CodSpeed Performance Gauge
-6%
404.2 ms
428.3 ms
test_import_time[Document]
libs/core/tests/benchmarks/test_imports.py::test_import_time[Document]
CodSpeed Performance Gauge
-6%
210.6 ms
224.4 ms
test_import_time[InMemoryRateLimiter]
libs/core/tests/benchmarks/test_imports.py::test_import_time[InMemoryRateLimiter]
CodSpeed Performance Gauge
-6%
164.2 ms
175.5 ms
test_import_time[BaseChatModel]
libs/core/tests/benchmarks/test_imports.py::test_import_time[BaseChatModel]
CodSpeed Performance Gauge
-7%
489.3 ms
524.7 ms
test_import_time[InMemoryVectorStore]
libs/core/tests/benchmarks/test_imports.py::test_import_time[InMemoryVectorStore]
CodSpeed Performance Gauge
-7%
240.6 ms
258.2 ms
test_import_time[Runnable]
libs/core/tests/benchmarks/test_imports.py::test_import_time[Runnable]
CodSpeed Performance Gauge
-7%
229 ms
246.5 ms
test_import_time[PydanticOutputParser]
libs/core/tests/benchmarks/test_imports.py::test_import_time[PydanticOutputParser]
CodSpeed Performance Gauge
-8%
362 ms
391.7 ms
test_import_time[RunnableLambda]
libs/core/tests/benchmarks/test_imports.py::test_import_time[RunnableLambda]
CodSpeed Performance Gauge
-8%
230.3 ms
250.1 ms
test_import_time[LangChainTracer]
libs/core/tests/benchmarks/test_imports.py::test_import_time[LangChainTracer]
CodSpeed Performance Gauge
-8%
406 ms
441.1 ms
test_import_time[tool]
libs/core/tests/benchmarks/test_imports.py::test_import_time[tool]
CodSpeed Performance Gauge
-8%
469.6 ms
510.9 ms
test_import_time[CallbackManager]
libs/core/tests/benchmarks/test_imports.py::test_import_time[CallbackManager]
CodSpeed Performance Gauge
-8%
418.9 ms
456.1 ms

Commits

Click on a commit to change the comparison range
Base
master
02d0a9a
-1%
fix(schema-utils): correctly resolve list indices in JSON Pointer refs and add thorough docs * Handle numeric path tokens as zero-based list indices when the current node is a list, preventing false-negative look-ups and KeyErrors. * Raise explicit “index out of range” errors for invalid indices. * Keep existing dict-key resolution behaviour intact. * Tighten validation: ensure every $ref starts with “#”. * Return a deep copy of the resolved fragment to avoid accidental mutation. * Added detailed doc-string and inline comments to clarify control flow, pointer semantics, and error cases.
4b32f4c
7 days ago
by anmol-aidora
0%
Added typing
43cd638
7 days ago
by anmol-aidora
-1%
fix failing test problems
bd4790d
7 days ago
by anmol-aidora
-5%
fix remaining linting errors
d072dcc
7 days ago
by anmol-aidora
© 2025 CodSpeed Technology
Home Terms Privacy Docs