Skip to content

Conversation

mdrxy
Copy link
Collaborator

@mdrxy mdrxy commented Sep 12, 2025

Implements a raw_response field on AI message responses configurable via include_raw_response=True flag on chat models and per-invocation. Demo'd for OpenAI here.

Defaults to false.

During stream chunk merging, responses are kept as a list from each chunk.

@mdrxy mdrxy added ignore-lint-pr-title ⚠️ Shouldn't be regularly used! Bypasses the Validate PR Title linting action integration Related to a provider partner package integration core Related to the package `langchain-core` labels Sep 12, 2025
Copy link

vercel bot commented Sep 12, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Preview Comments Updated (UTC)
langchain Ignored Ignored Preview Sep 25, 2025 3:19am

Copy link

codspeed-hq bot commented Sep 12, 2025

CodSpeed WallTime Performance Report

Merging #32926 will not alter performance

Comparing mdrxy/spec-raw-response (349a60d) with master (90280d1)1

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

Footnotes

  1. No successful run was found on master (f015526) during the generation of this report, so 90280d1 was used instead as the comparison base. There might be some changes unrelated to this pull request in this report.

Copy link

codspeed-hq bot commented Sep 25, 2025

CodSpeed Instrumentation Performance Report

Merging #32926 will not alter performance

Comparing mdrxy/spec-raw-response (349a60d) with master (b92b394)1

Summary

✅ 6 untouched
⏩ 11 skipped2

Footnotes

  1. No successful run was found on master (f015526) during the generation of this report, so b92b394 was used instead as the comparison base. There might be some changes unrelated to this pull request in this report.

  2. 11 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.

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` ignore-lint-pr-title ⚠️ Shouldn't be regularly used! Bypasses the Validate PR Title linting action integration Related to a provider partner package integration

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant