langchain-ai
langchain
BlogDocsChangelog

Branches performance

Pull requests

fix(core): Resolve 'FieldInfo is not JSON serializable' error in Pydantic v2#33932
last run
6 hours ago
fix(core): Prevent 'FieldInfo' is not JSON serializable error in Pydantic v2 Fixes TypeError when generating JSON schemas: "Object of type 'FieldInfo' is not JSON serializable". This occurs when model_json_schema() includes internal Pydantic metadata in the output. Solution: Add mode='serialization' parameter to model_json_schema() to ensure only JSON-serializable data structures are generated. Changes: - Modified _convert_pydantic_to_openai_function() to pass mode='serialization' - Added test_pydantic_fieldinfo_serialization() to verify correct behavior - Resolves nested Pydantic v2 model conversion issues Impact: - Fixes schema generation for nested Pydantic v2 models - No breaking changes (Pydantic v1 code path unchanged) - Previously failing test_convert_to_openai_function_nested_v2 now passes Signed-off-by: jitokim <pigberger70@gmail.com>
7 hours ago
bfedad2
jitokim:fix/pydantic-fieldinfo-serialization
CodSpeed Performance Gauge
-3%
chore(core): fix some ruff TC rules
19 hours ago
779c8e2
cbornet:core-ruff-tc
CodSpeed Performance Gauge
0%
chore: Content Block Type More Dynamic
22 hours ago
a005531
keenborder786:anthropic_tool_result_fix
CodSpeed Performance Gauge
0%
feat/capture-raw-provider-response
1 day ago
394e21a
AmazingcatAndrew:feat/capture-raw-provider-response
CodSpeed Performance Gauge
+1%
© 2025 CodSpeed Technology
Home Terms Privacy Docs