langchain-ai
langchain
BlogDocsChangelog

fix(core): `NotRequired` in TypedDict causes TypeError when converting to OpenAI function schema

#34349
Comparing
Abhinavexists:type-error-fix-openai-function
(
aa39ba1
) with
master
(
75b07b3
)
CodSpeed Performance Gauge
+12%
Improvements
4
Untouched
9
Skipped
21

Benchmarks

Skipped (21)

Improved

test_import_time[RunnableLambda]
libs/core/tests/benchmarks/test_imports.py
CodSpeed Performance Gauge
+12%
540.6 ms484.1 ms
test_import_time[PydanticOutputParser]
libs/core/tests/benchmarks/test_imports.py
CodSpeed Performance Gauge
+11%
582.7 ms525 ms
test_import_time[LangChainTracer]
libs/core/tests/benchmarks/test_imports.py
CodSpeed Performance Gauge
+11%
480 ms433.7 ms
test_import_time[BaseChatModel]
libs/core/tests/benchmarks/test_imports.py
CodSpeed Performance Gauge
+10%
574.2 ms521.1 ms

Passed

test_import_time[Runnable]
libs/core/tests/benchmarks/test_imports.py
CodSpeed Performance Gauge
+10%
533.9 ms485.5 ms
test_import_time[ChatPromptTemplate]
libs/core/tests/benchmarks/test_imports.py
CodSpeed Performance Gauge
+10%
646.1 ms588.5 ms
test_import_time[InMemoryVectorStore]
libs/core/tests/benchmarks/test_imports.py
CodSpeed Performance Gauge
+9%
660.5 ms603.7 ms
test_import_time[tool]
libs/core/tests/benchmarks/test_imports.py
CodSpeed Performance Gauge
+9%
555.8 ms510.4 ms
test_import_time[InMemoryRateLimiter]
libs/core/tests/benchmarks/test_imports.py
CodSpeed Performance Gauge
+8%
186 ms172.8 ms
test_import_time[CallbackManager]
libs/core/tests/benchmarks/test_imports.py
CodSpeed Performance Gauge
+6%
482 ms452.9 ms
test_import_time[Document]
libs/core/tests/benchmarks/test_imports.py
CodSpeed Performance Gauge
+6%
196.2 ms184.7 ms
test_import_time[HumanMessage]
libs/core/tests/benchmarks/test_imports.py
CodSpeed Performance Gauge
+5%
273.9 ms261.4 ms
test_async_callbacks_in_sync
libs/core/tests/benchmarks/test_async_callbacks.py
CodSpeed Performance Gauge
0%
24.4 ms24.5 ms

Commits

Click on a commit to change the comparison range
Base
master
75b07b3
-1.34%
fix: not required typedict causes type error -> use typeAdapter
8ae2626
12 days ago
by Abhinavexists
+2.57%
fix: added missing type annotation for adapter
1a5b254
12 days ago
by Abhinavexists
-1.22%
fix: use typing_extension -> typing for NotRequired
2563dc0
12 days ago
by Abhinavexists
+5.78%
Merge branch 'master' into type-error-fix-openai-function
d2c41d9
7 hours ago
by Abhinavexists
-2.58%
Merge branch 'type-error-fix-openai-function' of github.com:Abhinavexists/langchain into type-error-fix-openai-function
b583868
7 hours ago
by Abhinavexists
+7.29%
lint fix
6eb1a2b
7 hours ago
by Abhinavexists
+0.78%
lint fix
fcd8233
6 hours ago
by Abhinavexists
+0.39%
lint fix -> remove dummy functions unused
aa39ba1
6 hours ago
by Abhinavexists
© 2025 CodSpeed Technology
Home Terms Privacy Docs