Skip to content

fix: resolve TS2589 deep type instantiation errors from @langchain/core upgrade#582

Merged
gfargo merged 1 commit intomainfrom
fix/langchain-core-version
Mar 21, 2026
Merged

fix: resolve TS2589 deep type instantiation errors from @langchain/core upgrade#582
gfargo merged 1 commit intomainfrom
fix/langchain-core-version

Conversation

@gfargo
Copy link
Owner

@gfargo gfargo commented Mar 21, 2026

The @langchain/core 1.1.32+ StructuredOutputParser types trigger infinite type recursion with Zod generics. Added targeted type casts in createSchemaParser, executeChain, executeChainWithSchema, and command handlers to break the recursive chain while preserving runtime behavior.

…re upgrade

The @langchain/core 1.1.32+ StructuredOutputParser types trigger infinite type recursion with Zod generics. Added targeted type casts in createSchemaParser, executeChain, executeChainWithSchema, and command handlers to break the recursive chain while preserving runtime behavior.
@gfargo gfargo merged commit c3bd308 into main Mar 21, 2026
2 of 4 checks passed
@gfargo gfargo deleted the fix/langchain-core-version branch March 21, 2026 16:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant