Skip to content

core: Fix some missing generic types #31658

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

cbornet
Copy link
Collaborator

@cbornet cbornet commented Jun 18, 2025

Copy link

vercel bot commented Jun 18, 2025

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

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
langchain ⬜️ Ignored (Inspect) Visit Preview Jun 20, 2025 3:12pm

@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. 🤖:nit Small modifications/deletions, fixes, deps or improvements to existing code or docs labels Jun 18, 2025
Copy link

codspeed-hq bot commented Jun 18, 2025

CodSpeed WallTime Performance Report

Merging #31658 will not alter performance

Comparing cbornet:fix-missing-generic-types (966b653) with master (5d0bea8)

⚠️ 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 Jun 18, 2025

CodSpeed Instrumentation Performance Report

Merging #31658 will not alter performance

Comparing cbornet:fix-missing-generic-types (966b653) with master (5d0bea8)

Summary

✅ 13 untouched benchmarks

@cbornet cbornet force-pushed the fix-missing-generic-types branch from b16dda7 to d96c3e6 Compare June 19, 2025 00:15
messages = convert_to_messages(messages)
messages_: Iterable[MessageLikeRepresentation] = (
[messages]
if (is_single := isinstance(messages, (BaseMessage, dict, str, tuple)))
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it correct to add tuple to the type check ? It seems to be missing.

@cbornet cbornet force-pushed the fix-missing-generic-types branch 2 times, most recently from e6f2672 to e304d63 Compare June 19, 2025 00:35
@eyurtsev eyurtsev self-assigned this Jun 20, 2025
@cbornet cbornet force-pushed the fix-missing-generic-types branch from e304d63 to 966b653 Compare June 20, 2025 15:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🤖:nit Small modifications/deletions, fixes, deps or improvements to existing code or docs size:L This PR changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants