Skip to content

Conversation

mdrxy
Copy link
Collaborator

@mdrxy mdrxy commented Aug 7, 2025

Adds backward compat for .text() on messages while keeping .text access

The kicker:

Any previous use of .text() will now need a # type: ignore[operator] to silence type checkers. However, it will still behave as expected at runtime. Deprecating in v0.4.0, to be removed in v2.0.0.

@mdrxy mdrxy requested a review from eyurtsev as a code owner August 7, 2025 03:35
Copy link

vercel bot commented Aug 7, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
langchain ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 7, 2025 4:20pm

Copy link

codspeed-hq bot commented Aug 7, 2025

CodSpeed WallTime Performance Report

Merging #32441 will not alter performance

Comparing mdrxy/text-text (f6a241d) with wip-v0.4 (cc61398)

⚠️ 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 benchmarks

Copy link

codspeed-hq bot commented Aug 7, 2025

CodSpeed Instrumentation Performance Report

Merging #32441 will not alter performance

Comparing mdrxy/text-text (f6a241d) with wip-v0.4 (cc61398)

Summary

✅ 14 untouched benchmarks

@mdrxy mdrxy changed the title feat: add TextAccessor, ensure new messages have each feat: add TextAccessor, deprecate .text() as method Aug 7, 2025
@mdrxy mdrxy merged commit 42c1159 into wip-v0.4 Aug 7, 2025
75 of 76 checks passed
@mdrxy mdrxy deleted the mdrxy/text-text branch August 7, 2025 16:16
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