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
(
d74be81
) with
master
(
11df1be
)
CodSpeed Performance Gauge
-6%
Untouched
13
Skipped
21

Benchmarks

34 total
test_async_callbacks_in_sync
libs/core/tests/benchmarks/test_async_callbacks.py
CodSpeed Performance Gauge
+2%
23.4 ms23.1 ms
test_import_time[InMemoryRateLimiter]
libs/core/tests/benchmarks/test_imports.py
CodSpeed Performance Gauge
-4%
174.5 ms182 ms
test_import_time[HumanMessage]
libs/core/tests/benchmarks/test_imports.py
CodSpeed Performance Gauge
-5%
262.9 ms277 ms
test_import_time[Document]
libs/core/tests/benchmarks/test_imports.py
CodSpeed Performance Gauge
-6%
187.8 ms199.2 ms
test_import_time[Runnable]
libs/core/tests/benchmarks/test_imports.py
CodSpeed Performance Gauge
-6%
507.6 ms539 ms
test_import_time[tool]
libs/core/tests/benchmarks/test_imports.py
CodSpeed Performance Gauge
-7%
528.2 ms566.5 ms
test_import_time[BaseChatModel]
libs/core/tests/benchmarks/test_imports.py
CodSpeed Performance Gauge
-7%
545.3 ms587.6 ms
test_import_time[CallbackManager]
libs/core/tests/benchmarks/test_imports.py
CodSpeed Performance Gauge
-8%
473.3 ms514.7 ms
test_import_time[LangChainTracer]
libs/core/tests/benchmarks/test_imports.py
CodSpeed Performance Gauge
-8%
450.3 ms490 ms
test_import_time[ChatPromptTemplate]
libs/core/tests/benchmarks/test_imports.py
CodSpeed Performance Gauge
-8%
640.7 ms697.9 ms
test_import_time[PydanticOutputParser]
libs/core/tests/benchmarks/test_imports.py
CodSpeed Performance Gauge
-8%
544.9 ms594.4 ms
test_import_time[RunnableLambda]
libs/core/tests/benchmarks/test_imports.py
CodSpeed Performance Gauge
-8%
503.8 ms549.7 ms
test_import_time[InMemoryVectorStore]
libs/core/tests/benchmarks/test_imports.py
CodSpeed Performance Gauge
-9%
609.1 ms672.9 ms
test_create_chat_prompt_init_time
libs/partners/prompty/tests/unit_tests/test_standard.py
Skipped
311.9 µs*
test_init_time
libs/partners/groq/tests/unit_tests/test_standard.py::TestGroqStandard
Skipped
1.6 s*
test_exa_retriever_init_time
libs/partners/exa/tests/unit_tests/test_standard.py
Skipped
316.9 µs*
test_init_time
libs/partners/ollama/tests/unit_tests/test_chat_models.py::TestChatOllama
Skipped
1.6 s*
test_init_time
libs/partners/deepseek/tests/unit_tests/test_chat_models.py::TestChatDeepSeekUnit
Skipped
1.6 s*
test_nomic_embeddings_init_time
libs/partners/nomic/tests/unit_tests/test_standard.py
Skipped
1.5 ms*
test_init_time
libs/partners/anthropic/tests/unit_tests/test_standard.py::TestAnthropicStandard
Skipped
804.2 µs*
test_stream_time
libs/partners/anthropic/tests/integration_tests/test_standard.py::TestAnthropicStandard
Skipped
32 ms*
test_init_time_with_client
libs/partners/anthropic/tests/unit_tests/test_standard.py
Skipped
2.3 ms*
test_init_time
libs/partners/xai/tests/unit_tests/test_chat_models_standard.py::TestXAIStandard
Skipped
3.3 s*
test_stream_time
libs/partners/openai/tests/integration_tests/chat_models/test_base_standard.py::TestOpenAIStandard
Skipped
1.1 s*
test_init_time
libs/partners/openai/tests/unit_tests/chat_models/test_responses_standard.py::TestOpenAIResponses
Skipped
12.2 ms*

Commits

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