Skip to content

Conversation

Rohanvasudev1
Copy link

Replaces non-serializable lambda functions with serializable class instances in with_structured_output method to fix LangGraph Studio thread deletion.

  • Add SerializableParsingErrorHandler and SerializableNoneAssigner classes
  • Replace lambda _: None functions in RunnablePassthrough.assign calls
  • Maintains backward compatibility and identical functionality

@github-actions github-actions bot added the core Related to the package `langchain-core` label Oct 6, 2025
Copy link

codspeed-hq bot commented Oct 6, 2025

CodSpeed Performance Report

Merging #33291 will not alter performance

Comparing Rohanvasudev1:origin/33128 (bd1163a) with master (cda3362)

⚠️ Unknown Walltime execution environment detected

Using the Walltime instrument on standard Hosted Runners will lead to inconsistent data.

For the most accurate results, we recommend using CodSpeed Macro Runners: bare-metal machines fine-tuned for performance measurement consistency.

Summary

✅ 13 untouched
⏩ 21 skipped1

Footnotes

  1. 21 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports.

@Rohanvasudev1 Rohanvasudev1 changed the title fix(core): replace lambda functions in with_structured_output to enable serialization issue #33128 fix(core): replace lambda functions to enable serialization issue#33128 Oct 7, 2025
@github-actions github-actions bot added the fix label Oct 7, 2025
@Rohanvasudev1 Rohanvasudev1 changed the title fix(core): replace lambda functions to enable serialization issue#33128 fix(core): replace lambda functions to enable serialization (#33128) Oct 7, 2025
@github-actions github-actions bot added fix and removed fix labels Oct 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Related to the package `langchain-core` fix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant