Update dependency @langchain/core to v1.1.39#14106
Closed
renovate[bot] wants to merge 1 commit intomainfrom
Closed
Update dependency @langchain/core to v1.1.39#14106renovate[bot] wants to merge 1 commit intomainfrom
renovate[bot] wants to merge 1 commit intomainfrom
Conversation
175bb9a to
6d3d0da
Compare
6d3d0da to
669f191
Compare
Contributor
Author
Renovate Ignore NotificationBecause you closed this PR without merging, Renovate will ignore this update ( If you accidentally closed this PR, or if you changed your mind: rename this PR to get a fresh replacement PR. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
1.1.29→1.1.39Release Notes
langchain-ai/langchainjs (@langchain/core)
v1.1.39Compare Source
Patch Changes
d3d0922Thanks @christian-bromann! - feat(langchain): support for browser toolsv1.1.38Compare Source
Patch Changes
589ab9bThanks @christian-bromann! - fix(langchain): accept cross-version runnable models in createAgentv1.1.37Compare Source
Patch Changes
#10511
6933769Thanks @hntrl! - cache Zod-to-JSON-Schema conversions in toJsonSchema()#10541
50d5f32Thanks @jacoblee93! - revert: Revert "feat(core): Add all chat model/llm invocation params to metadata"#10509
5552999Thanks @hntrl! - feat(openai): add support for phase parameter on Responses API messagesphasefrom message output items and surface it on text content blocksresponse.output_item.addedeventsextrasdict in the core standard content translator#10528
8331833Thanks @christian-bromann! - fix(core): normalize single-block content in mergeContentv1.1.36Compare Source
Patch Changes
#10512
bbbfea1Thanks @hntrl! - fix(core): fix streaming chunk merge for providers withoutindexon tool call deltas_mergeListsnow falls back toid-based matching when items don't have anindexfield. Previously, providers routing through the OpenAI-compatible API withoutindexon streaming tool call deltas (e.g. Anthropic models viaChatOpenAI) would accumulate hundreds of individual raw deltas intool_call_chunksandadditional_kwargs.tool_callsinstead of merging them into a single entry per tool call. In a real trace with 3 concurrent subagents, this caused a single AI message to balloon from ~4KB to 146KB -- with 826 uncollapsed streaming fragments carrying a few bytes each.Also fixes
SystemMessage.concat()which used...thisto spread all instance properties (includinglc_kwargs) into the new constructor, causing each chainedconcat()call to nest one level deeper. After 7 middlewareconcat()calls (typical in deepagents), a 7KB system prompt would serialize to 81KB due to content being duplicated at every nesting level.v1.1.35Compare Source
Patch Changes
#10327
5dc11b5Thanks @hntrl! - fix(core): replace exported zod type references with structural duck-type interfaces to fix TypeScript OOMReplaces all exported Zod type references (
z3.ZodType,z4.$ZodType, etc.) in@langchain/core's public API with minimal structural ("duck-type") interfaces. This prevents TypeScript from performing expensive deep structural comparisons (~3,400+ lines of mutually recursive generics) when downstream packages resolve a different Zod version than@langchain/core, which was causing OOM crashes and unresponsive language servers in monorepo setups.#10433
7af0b65Thanks @tanushree-sharma! - feat: Add LangSmith integration metadata to createAgent and initChatModelv1.1.34Compare Source
Patch Changes
bfb7944Thanks @jacoblee93! - feat(core): Add all invocation params as part of metadatav1.1.33Compare Source
Patch Changes
#10412
6db417bThanks @pawel-twardziak! - fix(core): respect timeout option in streamEvents v2#10424
d69dfccThanks @pawel-twardziak! - fix(core): preserve multimodal content in getBufferString as placeholdersv1.1.32Compare Source
Patch Changes
#10330
26488b5Thanks @hntrl! - fix(core): treat empty string tool call chunk IDs as missing during mergeFixed
_mergeListsin message base to treat empty string""IDs the same asnull/undefinedwhen merging tool call chunks. This fixes old completions-style streaming where follow-up chunks carryid: ""instead ofundefined, which previously prevented chunks from being merged by index.#10167
ca826f6Thanks @colifran! - feat: implement type inference for tool streams#10334
a602c42Thanks @maahir30! - fix(core): add JSDoc docstrings to fakeModel builder API and export FakeBuiltModel#10254
db7d017Thanks @pawel-twardziak! - fix(core): preserve thoughtSignature in array content during streaming with thinking modelsv1.1.31Compare Source
Patch Changes
#10271
7373b4cThanks @jacoblee93! - feat(core): Use uuid7 instead of v4 for generating run ids#10262
b0175a5Thanks @maahir30! - fix: Move fakeModel from utils/testing to testing namespacemove to updated namespace
#10185
414f6edThanks @maahir30! - feat: add custom Vitest matchers for LangChain message and tool call assertionsAdds a new
@langchain/core/testing/matchersexport containing custom Vitest matchers (toBeHumanMessage,toBeAIMessage,toBeSystemMessage,toBeToolMessage,toHaveToolCalls,toHaveToolCallCount,toContainToolCall,toHaveToolMessages,toHaveBeenInterrupted,toHaveStructuredResponse) that external users can register viaexpect.extend(langchainMatchers)in their Vitest setup files. Re-exported fromlangchainfor convenience.v1.1.30Compare Source
Patch Changes
#10243
96c630dThanks @hntrl! - fix: add explicit: symboltype annotations to Symbol.for() declarations for cross-version compatibilityTypeScript infers
unique symboltype when Symbol.for() is used without an explicit type annotation, causing type incompatibility when multiple versions of the same package are present in a dependency tree. By adding explicit: symbolannotations, all declarations now use the general symbol type, making them compatible across versions while maintaining identical runtime behavior.Changes:
: symboltoMESSAGE_SYMBOLin messages/base.ts: symboltoMIDDLEWARE_BRANDin agents/middleware/types.ts (also changed from Symbol() to Symbol.for() for cross-realm compatibility)#10256
a8b9cccThanks @colifran! - fix(core): standard schema type guards don't support callable schemas#10204
a1f22bbThanks @colifran! - feat(core): implement standard schema support for structured outputConfiguration
📅 Schedule: (in timezone America/Los_Angeles)
* 5 1-7 * 5)🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.