langchain breaking changes
Updated December 4, 2026
On this page
Latest version 1.6.10, released December 3, 2026. Source repository
Packages on npm run on Node.js. Node.js end of life dates.
- From 0.3.29 to 1.6.9: 833 breaking changes in 63 versions.
- From 0.1.29 to 1.6.9: 1,474 breaking changes in 85 versions.
langchain 1.6.9 breaking changes
- Behavior changed
thinking
Passing thinking type disabled to Claude Opus 5.5 or Sonnet 5.5 now fails. Remove that setting for these models. github.com - Behavior changed
withStructuredOutput
For Claude Opus 5.5 and Sonnet 5.5, withStructuredOutput no longer forces a tool call, because these models always think. Check structured output results if you use these models. github.com - Default changed
ChatAnthropic
If you rely on the default model, requests now go to claude-sonnet-4-6. Set the model explicitly to keep the previous model. github.com
langchain 1.6.8 breaking changes
- Signature changed
DecisionType
Was const DecisionType: z$1.ZodEnum<["approve", "edit", "reject", "respond"]> type DecisionType = z$1.infer<typeof DecisionType>; now const DecisionType: z.ZodEnum<["approve", "edit", "reject", "respond"]> type DecisionType =... npmjs.com - Signature changed
DescriptionFactory
Was type DescriptionFactory = z$1.infer<typeof DescriptionFunctionSchema>; now type DescriptionFactory = z.infer<typeof DescriptionFunctionSchema>. npmjs.com - Signature changed
FakeToolCallingModel.toolCalls
Was toolCalls: ToolCall$1[][]; now toolCalls: ToolCall[][]. npmjs.com - Signature changed
humanInTheLoopMiddleware
Was function humanInTheLoopMiddleware(options: NonNullable<HumanInTheLoopMiddlewareConfig>): AgentMiddleware<undefined, z$1.ZodObject<{interruptOn: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnion<[z$1.ZodBoolean... npmjs.com - Signature changed
InterruptOnConfig
Was type InterruptOnConfig = z$1.input<typeof InterruptOnConfigSchema>; now type InterruptOnConfig = z.input<typeof InterruptOnConfigSchema>. npmjs.com - Signature changed
Runtime
Was type Runtime$1<TContext = unknown> = Partial<Omit<Runtime<TContext>, "context" | "configurable">> & WithMaybeContext<TContext> & {configurable?: {thread_id?: string; [key: string]: unknown;};}; now type Runtime<TContext = unknown> =... npmjs.com - Signature changed
tool
Was const tool$1: HeadlessToolOverload & typeof tool; now const tool: HeadlessToolOverload & typeof tool$1. npmjs.com - Signature changed
ToolApprovalDecision
Was type ToolApprovalDecision = z.infer<ReturnType<typeof toolApprovalDecisions>[DecisionType]>; now type ToolApprovalDecision = z$1.infer<ReturnType<typeof toolApprovalDecisions>[DecisionType]>. npmjs.com - Signature changed
ToolApprovalRequest
Was type ToolApprovalRequest = z.infer<typeof ToolApprovalRequestSchema>; now type ToolApprovalRequest = z$1.infer<typeof ToolApprovalRequestSchema>. npmjs.com - Signature changed
ToolCall
Was interface ToolCall$1; now interface ToolCall. npmjs.com
And 1 more in this version. Sign up to see every change
langchain 1.6.7 breaking changes
- Behavior changed
ConfigurableModel
Without configurableFields, configurable.model and configurable.modelProvider no longer change the model at invoke time. Pass configurableFields: ["model", "modelProvider"] to keep runtime model swapping. github.com
langchain 1.6.5 breaking changes
- Configuration changed
Installed Zod must now be version 4.6.6 or newer, so projects pinned to older Zod versions must upgrade. Zod v3 schemas remain supported through the bundled zod/v3 entry point. github.com - Signature changed
ModelChoice.criteria
Was criteria: string; now criteria: JsonValue. npmjs.com - Signature changed
OpenAIModelRouterMiddlewareOptions.choices
Was choices: Record<string, ModelChoice>; now choices: Record<string, ModelChoice & {criteria: string;}>. npmjs.com
langchain 1.6.4 breaking changes
- Behavior changed
ModelRefusalError
Middleware now passes ModelRefusalError through unwrapped. Code that catches MiddlewareError to handle model refusals must catch ModelRefusalError instead. github.com - Signature changed
StructuredOutputParsingError.constructor
Was constructor(toolName: string, errors: string[]); now constructor(toolName: string, errors: string[], aiMessage?: AIMessage). npmjs.com - Signature changed
ToolInvocationError.constructor
Was constructor(toolError: unknown, toolCall: ToolCall); now constructor(toolError: unknown, toolCall: ToolCall$1). npmjs.com - Signature changed
ToolInvocationError.toolCall
Was readonly toolCall: ToolCall; now readonly toolCall: ToolCall$1. npmjs.com
langchain 1.6.2 breaking changes
- Removed
chat_models/universal:ConfigurableModelFields
ConfigurableModelFields was removed in langchain 1.6.2 npmjs.com - Removed
chat_models/universal:EventStreamCallbackHandlerInput
EventStreamCallbackHandlerInput was removed in langchain 1.6.2 npmjs.com - Signature changed
createMiddleware
Was function createMiddleware<TSchema extends StateDefinitionInit | undefined = undefined, TContextSchema extends InteropZodObject | undefined = undefined, const TTools extends readonly (ClientTool | ServerTool)[] = readonly (ClientTool |... npmjs.com
Older versions
80 older versions, each with its first changes. Sign up to see every change
Show 80 older versions
langchain 1.5.20 breaking changes
- Behavior changed
ToolNode
When a tool throws GraphDrained, the agent's ToolNode now re-throws it and stops the run, rather than returning an error ToolMessage that lets the agent continue. Code relying on the old continue-on-error behavior must handle the drain... github.com
langchain 1.5.19 breaking changes
- Default changed
The default todo-list system prompt and tool description were changed to match the Python version, including guidance to deliver the final answer after the last write_todos result. Code relying on the previous default prompt text may see... github.com
langchain 1.5.18 breaking changes
- Behavior changed
humanInTheLoopMiddleware
With interruptOn set to { tool: true }, all decisions are now allowed, including respond, matching Python. Code that relied on respond being rejected for this setting will see different behavior. github.com - Signature changed
DecisionType
Was const DecisionType: z.ZodEnum<["approve", "edit", "reject", "respond"]> type DecisionType = z.infer<typeof DecisionType>; now const DecisionType: z$1.ZodEnum<["approve", "edit", "reject", "respond"]> type DecisionType =... npmjs.com
And 5 more in this version.
langchain 1.5.17 breaking changes
- Signature changed
Decision
Was type Decision = ApproveDecision | EditDecision | RejectDecision; now type Decision = ApproveDecision | EditDecision | RejectDecision | RespondDecision. npmjs.com - Signature changed
DecisionType
Was const DecisionType: z.ZodEnum<["approve", "edit", "reject"]>; now const DecisionType: z.ZodEnum<["approve", "edit", "reject", "respond"]>. npmjs.com
And 1 more in this version.
langchain 1.5.14 breaking changes
- Behavior changed
createAgent
A failing returnDirect tool no longer ends the agent run; the error goes back to the model so it can retry. Code that relied on the run ending on tool failure must now handle the retry. github.com - Behavior changed
ToolMessage
Error ToolMessages from the tool node now have status "error", and a ToolMessage returned from a custom handleToolErrors function defaults to that status when it sets none. Code that checks ToolMessage status may see different values. github.com
langchain 1.5.9 breaking changes
- Behavior changed
modelRetryMiddleware
Errors marked non-retryable now fail on the first attempt instead of being retried. Pass retryOn: () => true to restore the old retry-everything default. github.com - Behavior changed
toolRetryMiddleware
Errors marked non-retryable now fail on the first attempt instead of being retried. Pass retryOn: () => true to restore the old retry-everything default. github.com
langchain 1.5.7 breaking changes
- Signature changed
chat_models/universal:MODEL_PROVIDER_CONFIG
Was const MODEL_PROVIDER_CONFIG: {readonly openai: {readonly package: "@langchain/openai"; readonly className: "ChatOpenAI";}; readonly anthropic: {readonly package: "@langchain/anthropic"; readonly className: "ChatAnthropic";}; readonly... npmjs.com
langchain 1.5.6 breaking changes
- Behavior changed
summarizationMiddleware
Bookkeeping model calls from summarizationMiddleware and toolEmulatorMiddleware, and the summary it writes to state, are no longer returned in run.messages or streamMode messages. To still observe them, use streamEvents with version v2 and... github.com
langchain 1.5.5 breaking changes
- Signature changed
anthropicPromptCachingMiddleware
Was function anthropicPromptCachingMiddleware(middlewareOptions?: PromptCachingMiddlewareConfig): AgentMiddleware<undefined, z.ZodObject<{enableCaching: z.ZodOptional<z.ZodBoolean>; ttl: z.ZodOptional<z.ZodEnum<["5m", "1h"]>>... npmjs.com - Signature changed
bedrockPromptCachingMiddleware
Was function bedrockPromptCachingMiddleware(middlewareOptions?: BedrockConversePromptCachingMiddlewareConfig): AgentMiddleware<undefined, z.ZodObject<{enableCaching: z.ZodOptional<z.ZodBoolean>; ttl: z.ZodOptional<z.ZodEnum<["5m", "1h"]>>... npmjs.com
And 12 more in this version.
langchain 1.5.3 breaking changes
- Signature changed
MiddlewareError.~brand
Was static readonly "~brand"; now readonly "~brand". npmjs.com
langchain 1.5.2 breaking changes
- Behavior changed
Strict tool calling is now separated from strict structured output response handling. Code that relied on strict tools also making structured output strict must now enable that setting explicitly. github.com
langchain 1.5.0 breaking changes
- Configuration changed
Agent stream transformers moved into agents/transformers/, and the package entry now exports only the public stream types. Code importing other internal transformer types from the package entry may need to change. github.com - Signature changed
AgentRunStream
Was type AgentRunStream<TValues = Record<string, unknown>, TTools extends readonly (ClientTool | ServerTool)[] = readonly (ClientTool | ServerTool)[], TExtensions extends Record<string, unknown> = Record<string, unknown>> =... npmjs.com
langchain 1.4.6 breaking changes
- Signature changed
chat_models/universal:ConfigurableModel.streamEvents
Was streamEvents(input: RunInput, options: Partial<CallOptions> & {version: "v1" | "v2"; encoding: "text/event-stream";}, streamOptions?: Omit<EventStreamCallbackHandlerInput, "autoClose">): IterableReadableStream<Uint8Array>... npmjs.com - Signature changed
humanInTheLoopMiddleware
Was function humanInTheLoopMiddleware(options: NonNullable<HumanInTheLoopMiddlewareConfig>): AgentMiddleware<undefined, z.ZodObject<{interruptOn: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodBoolean... npmjs.com
langchain 1.4.4 breaking changes
- Signature changed
AgentMiddleware
Was interface AgentMiddleware<TSchema extends StateDefinitionInit | undefined = any, TContextSchema extends InteropZodObject | InteropZodDefault<InteropZodObject> | InteropZodOptional<InteropZodObject> | undefined = any, TFullContext =... npmjs.com - Signature changed
AgentMiddleware.~middlewareTypes
Was readonly "~middlewareTypes"?: MiddlewareTypeConfig<TSchema, TContextSchema, TFullContext, TTools>; now readonly "~middlewareTypes"?: MiddlewareTypeConfig<TSchema, TContextSchema, TFullContext, TTools, TStreamTransformers>. npmjs.com
And 38 more in this version.
langchain 1.4.1 breaking changes
- Behavior changed
createAgent
When a structured response cannot be parsed or validated, createAgent now throws StructuredOutputParsingError instead of returning with structuredResponse undefined. Code that relied on the silent undefined result must now handle the... github.com
langchain 1.4.0 breaking changes
- Signature changed
AgentTypeConfig
Was interface AgentTypeConfig<TResponse extends Record<string, any> | ResponseFormatUndefined = Record<string, any> | ResponseFormatUndefined, TState extends StateDefinitionInit | undefined = StateDefinitionInit | undefined, TContext... npmjs.com - Signature changed
createAgent
Was function createAgent<StructuredResponseFormat extends Record<string, any> = Record<string, any>, TStateSchema extends StateDefinitionInit | undefined = undefined, ContextSchema extends AnyAnnotationRoot | InteropZodObject =... npmjs.com
And 3 more in this version.
langchain 1.3.0 breaking changes
- Signature changed
anthropicPromptCachingMiddleware
Was function anthropicPromptCachingMiddleware(middlewareOptions?: PromptCachingMiddlewareConfig): AgentMiddleware<undefined, z.ZodObject<{enableCaching: z.ZodOptional<z.ZodBoolean>; ttl: z.ZodOptional<z.ZodEnum<["5m", "1h"]>>... npmjs.com - Signature changed
chat_models/universal:MODEL_PROVIDER_CONFIG
Was const MODEL_PROVIDER_CONFIG: {readonly openai: {readonly package: "@langchain/openai"; readonly className: "ChatOpenAI";}; readonly anthropic: {readonly package: "@langchain/anthropic"; readonly className: "ChatAnthropic";}; readonly... npmjs.com
And 12 more in this version.
langchain 1.2.39 breaking changes
- Signature changed
CreateAgentParams
Was type CreateAgentParams<StructuredResponseType extends Record<string, any> = Record<string, any>, TStateSchema extends StateDefinitionInit | undefined = undefined, ContextSchema extends AnyAnnotationRoot | InteropZodObject =... npmjs.com - Signature changed
CreateAgentParams.model
Was model: string | LanguageModelLike; now model: string | AgentLanguageModelLike. npmjs.com
And 3 more in this version.
langchain 1.2.37 breaking changes
- Signature changed
chat_models/universal:MODEL_PROVIDER_CONFIG
Was const MODEL_PROVIDER_CONFIG: {readonly openai: {readonly package: "@langchain/openai"; readonly className: "ChatOpenAI";}; readonly anthropic: {readonly package: "@langchain/anthropic"; readonly className: "ChatAnthropic";}; readonly... npmjs.com
langchain 1.2.35 breaking changes
- Renamed
ReactAgent.getSubgraphAsync
The method getSubgraphAsync was renamed to getSubgraphsAsync. Update calls to use the new name. npmjs.com
langchain 1.2.34 breaking changes
- Behavior changed
createAgent
Agents using version v2 together with afterModel middleware now dispatch each tool call as a separate Send task instead of one parallel ToolNode call. Set version to "v1" to keep the previous single-node parallel behavior. github.com
langchain 1.2.31 breaking changes
- Signature changed
CreateAgentParams
Was type CreateAgentParams<StructuredResponseType extends Record<string, any> = Record<string, any>, TStateSchema extends StateDefinitionInit | undefined = undefined, ContextSchema extends AnyAnnotationRoot | InteropZodObject =... npmjs.com - Signature changed
todoListMiddleware
Was function todoListMiddleware(options?: TodoListMiddlewareOptions): AgentMiddleware<z.ZodObject<{todos: z.ZodDefault<z.ZodArray<z.ZodObject<{content: z.ZodString; status: z.ZodEnum<["pending", "in_progress", "completed"]>;}, "strip"... npmjs.com
langchain 1.2.30 breaking changes
- Removed
fakeModel
fakeModel is no longer exported from utils/testing. Import it from the testing namespace instead. github.com - Signature changed
AIMessage
Was export {AIMessage, AIMessageChunk, Action, ActionRequest, AfterAgentHook, AfterModelHook, AgentMiddleware, AgentTypeConfig, AnyAnnotationRoot, ApproveDecision, BaseMessage, BaseMessageChunk, BeforeAgentHook, BeforeModelHook... npmjs.com
And 22 more in this version.
langchain 1.2.29 breaking changes
- Signature changed
MIDDLEWARE_BRAND
Was const MIDDLEWARE_BRAND: unique symbol; now const MIDDLEWARE_BRAND: symbol. npmjs.com
langchain 1.2.27 breaking changes
- Signature changed
AfterAgentHook
Was type AfterAgentHook<TSchema extends StateDefinitionInit | undefined = undefined, TContext = unknown> = AfterAgentHandler<NormalizedSchemaInput<TSchema>, TContext> | {hook: AfterAgentHandler<NormalizedSchemaInput<TSchema>, TContext>... npmjs.com - Signature changed
AfterModelHook
Was type AfterModelHook<TSchema extends StateDefinitionInit | undefined = undefined, TContext = unknown> = AfterModelHandler<NormalizedSchemaInput<TSchema>, TContext> | {hook: AfterModelHandler<NormalizedSchemaInput<TSchema>, TContext>... npmjs.com
And 15 more in this version.
langchain 1.2.26 breaking changes
- Default changed
ChatAnthropic
The default model in ChatAnthropic changed from claude-3-5-sonnet-latest to claude-sonnet-4-5-20250929. Code that relies on the default should set the model explicitly if it needs the old one. github.com
langchain 1.2.25 breaking changes
- Signature changed
AfterAgentHook
Was type AfterAgentHook<TSchema$1 extends StateDefinitionInit | undefined = undefined, TContext = unknown> = AfterAgentHandler<NormalizedSchemaInput<TSchema$1>, TContext> | {hook: AfterAgentHandler<NormalizedSchemaInput<TSchema$1>... npmjs.com - Signature changed
AfterModelHook
Was type AfterModelHook<TSchema$1 extends StateDefinitionInit | undefined = undefined, TContext = unknown> = AfterModelHandler<NormalizedSchemaInput<TSchema$1>, TContext> | {hook: AfterModelHandler<NormalizedSchemaInput<TSchema$1>... npmjs.com
And 33 more in this version.
langchain 1.2.24 breaking changes
- Signature changed
ReactAgent.stream
Was stream<TStreamMode extends StreamMode | StreamMode[] | undefined, TEncoding extends "text/event-stream" | undefined>(state: InvokeStateParameter<Types>, config?: StreamConfiguration<InferContextInput<Types["Context"] extends... npmjs.com - Signature changed
ReactAgent.streamEvents
Was streamEvents(state: InvokeStateParameter<Types>, config?: StreamConfiguration<InferContextInput<Types["Context"] extends AnyAnnotationRoot | InteropZodObject ? Types["Context"] : AnyAnnotationRoot> &... npmjs.com
langchain 1.2.22 breaking changes
- Signature changed
modelCallLimitMiddleware
Was function modelCallLimitMiddleware(middlewareOptions?: ModelCallLimitMiddlewareConfig): AgentMiddleware<z.ZodObject<{threadModelCallCount: z.ZodDefault<z.ZodNumber>; runModelCallCount: z.ZodDefault<z.ZodNumber>;}, "strip", z.ZodTypeAny... npmjs.com - Signature changed
todoListMiddleware
Was function todoListMiddleware(options?: TodoListMiddlewareOptions): AgentMiddleware<z.ZodObject<{todos: z.ZodDefault<z.ZodArray<z.ZodObject<{content: z.ZodString; status: z.ZodEnum<["pending", "in_progress", "completed"]>;}, "strip"... npmjs.com
langchain 1.2.21 breaking changes
- Signature changed
modelCallLimitMiddleware
Was function modelCallLimitMiddleware(middlewareOptions?: ModelCallLimitMiddlewareConfig): AgentMiddleware<z.ZodObject<{threadModelCallCount: z.ZodDefault<z.ZodNumber>; runModelCallCount: z.ZodDefault<z.ZodNumber>;}, "strip", z.ZodTypeAny... npmjs.com - Signature changed
todoListMiddleware
Was function todoListMiddleware(options?: TodoListMiddlewareOptions): AgentMiddleware<z.ZodObject<{todos: z.ZodDefault<z.ZodArray<z.ZodObject<{content: z.ZodString; status: z.ZodEnum<["pending", "in_progress", "completed"]>;}, "strip"... npmjs.com
langchain 1.2.20 breaking changes
- Behavior changed
agentNode
Concurrent agentNode dynamic prompts are handled correctly in this release; review code that relied on the previous concurrent behavior. github.com - Behavior changed
wrapModelCall
Middleware hooks that return void no longer re-emit the input state. Code relying on that re-emission must change. github.com
And 3 more in this version.
langchain 1.2.19 breaking changes
- Signature changed
hub:pull
Was function pull<T extends Runnable>(ownerRepoCommit: string, options?: {apiKey?: string; apiUrl?: string; includeModel?: boolean; modelClass?: new (...args: any[]) => BaseLanguageModel; secrets?: Record<string, string>; secretsFromEnv?... npmjs.com - Signature changed
hub:push
Was function basePush(repoFullName: string, runnable: Runnable, options?: {apiKey?: string; apiUrl?: string; parentCommitHash?: string; isPublic?: boolean; description?: string; readme?: string; tags?: string[];}): Promise<string>; now... npmjs.com
And 2 more in this version.
langchain 1.2.18 breaking changes
- Signature changed
chat_models/universal:getChatModelByClassName
Was function getChatModelByClassName(className: string): Promise<any>; now function getChatModelByClassName(className: string, modelProvider?: string): Promise<any>. npmjs.com
langchain 1.2.17 breaking changes
- Signature changed
ReactAgent.constructor
Was constructor(options: CreateAgentParams<Types["Response"], Types["State"], Types["Context"]>); now constructor(options: CreateAgentParams<Types["Response"], Types["State"], Types["Context"]>, defaultConfig?: RunnableConfig). npmjs.com
langchain 1.2.15 breaking changes
- Signature changed
contextEditingMiddleware
Was function contextEditingMiddleware(config?: ContextEditingMiddlewareConfig): AgentMiddleware<undefined, undefined, unknown, readonly (_langchain_core_tools8.ServerTool | _langchain_core_tools8.ClientTool)[]>; now function... npmjs.com - Signature changed
todoListMiddleware
Was function todoListMiddleware(options?: TodoListMiddlewareOptions): AgentMiddleware<z.ZodObject<{todos: z.ZodDefault<z.ZodArray<z.ZodObject<{content: z.ZodString; status: z.ZodEnum<["pending", "in_progress", "completed"]>;}, "strip"... npmjs.com
And 1 more in this version.
langchain 1.2.14 breaking changes
- Signature changed
contextEditingMiddleware
Was function contextEditingMiddleware(config?: ContextEditingMiddlewareConfig): AgentMiddleware<undefined, undefined, unknown, readonly (_langchain_core_tools5.ServerTool | _langchain_core_tools5.ClientTool)[]>; now function... npmjs.com - Signature changed
todoListMiddleware
Was function todoListMiddleware(options?: TodoListMiddlewareOptions): AgentMiddleware<z.ZodObject<{todos: z.ZodDefault<z.ZodArray<z.ZodObject<{content: z.ZodString; status: z.ZodEnum<["pending", "in_progress", "completed"]>;}, "strip"... npmjs.com
And 1 more in this version.
langchain 1.2.13 breaking changes
- Signature changed
AfterAgentHook
Was type AfterAgentHook<TSchema$1 extends InteropZodObject | undefined = undefined, TContext = unknown> = AfterAgentHandler<NormalizedSchemaInput<TSchema$1>, TContext> | {hook: AfterAgentHandler<NormalizedSchemaInput<TSchema$1>, TContext>... npmjs.com - Signature changed
AfterModelHook
Was type AfterModelHook<TSchema$1 extends InteropZodObject | undefined = undefined, TContext = unknown> = AfterModelHandler<NormalizedSchemaInput<TSchema$1>, TContext> | {hook: AfterModelHandler<NormalizedSchemaInput<TSchema$1>, TContext>... npmjs.com
And 20 more in this version.
langchain 1.2.12 breaking changes
- Removed
MiddlewareError.constructor
new MiddlewareError() was removed in langchain 1.2.12 npmjs.com - Signature changed
MiddlewareError.isInstance
Was isInstance(error: unknown): error is MiddlewareError; now static isInstance(error: unknown): error is MiddlewareError. npmjs.com
langchain 1.2.11 breaking changes
- Signature changed
anthropicPromptCachingMiddleware
Was function anthropicPromptCachingMiddleware(middlewareOptions?: PromptCachingMiddlewareConfig): AgentMiddleware<undefined, z.ZodObject<{enableCaching: z.ZodOptional<z.ZodBoolean>; ttl: z.ZodOptional<z.ZodEnum<["5m", "1h"]>>... npmjs.com - Signature changed
contextEditingMiddleware
Was function contextEditingMiddleware(config?: ContextEditingMiddlewareConfig): AgentMiddleware<undefined, undefined, unknown, readonly (_langchain_core_tools11.ServerTool | _langchain_core_tools11.ClientTool)[]>; now function... npmjs.com
And 3 more in this version.
langchain 1.2.10 breaking changes
- Behavior changed
Middleware errors now keep their original error as cause instead of merging it into the error message. Code that reads or matches error.message text may need to be updated. github.com - Signature changed
anthropicPromptCachingMiddleware
Was function anthropicPromptCachingMiddleware(middlewareOptions?: PromptCachingMiddlewareConfig): AgentMiddleware<undefined, z.ZodObject<{enableCaching: z.ZodOptional<z.ZodBoolean>; ttl: z.ZodOptional<z.ZodEnum<["5m", "1h"]>>... npmjs.com
And 4 more in this version.
langchain 1.2.9 breaking changes
- Signature changed
contextEditingMiddleware
Was function contextEditingMiddleware(config?: ContextEditingMiddlewareConfig): AgentMiddleware<undefined, undefined, unknown, readonly (_langchain_core_tools5.ServerTool | _langchain_core_tools5.ClientTool)[]>; now function... npmjs.com - Signature changed
toolCallLimitMiddleware
Was function toolCallLimitMiddleware(options: ToolCallLimitConfig): AgentMiddleware<z.ZodObject<{threadToolCallCount: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodNumber>>; runToolCallCount: z.ZodDefault<z.ZodRecord<z.ZodString... npmjs.com
langchain 1.2.8 breaking changes
- Signature changed
humanInTheLoopMiddleware
Was function humanInTheLoopMiddleware(options: NonNullable<HumanInTheLoopMiddlewareConfig>): AgentMiddleware<undefined, z.ZodObject<{interruptOn: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodBoolean... npmjs.com - Signature changed
summarizationMiddleware
Was function summarizationMiddleware(options: SummarizationMiddlewareConfig): AgentMiddleware<undefined, z.ZodObject<{trigger: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodObject<{fraction: z.ZodOptional<z.ZodNumber>; tokens... npmjs.com
langchain 1.2.7 breaking changes
- Signature changed
AfterAgentHook
Was type AfterAgentHook<TSchema extends InteropZodObject | undefined = undefined, TContext = unknown> = AfterAgentHandler<NormalizedSchemaInput<TSchema>, TContext> | {hook: AfterAgentHandler<NormalizedSchemaInput<TSchema>, TContext>... npmjs.com - Signature changed
AfterModelHook
Was type AfterModelHook<TSchema extends InteropZodObject | undefined = undefined, TContext = unknown> = AfterModelHandler<NormalizedSchemaInput<TSchema>, TContext> | {hook: AfterModelHandler<NormalizedSchemaInput<TSchema>, TContext>... npmjs.com
And 44 more in this version.
langchain 1.2.6 breaking changes
- Signature changed
summarizationMiddleware
Was function summarizationMiddleware(options: SummarizationMiddlewareConfig): AgentMiddleware<undefined, z.ZodObject<{trigger: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodObject<{fraction: z.ZodOptional<z.ZodNumber>; tokens... npmjs.com
langchain 1.2.5 breaking changes
- Signature changed
summarizationMiddleware
Was function summarizationMiddleware(options: SummarizationMiddlewareConfig): AgentMiddleware<undefined, z.ZodObject<{trigger: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodObject<{fraction: z.ZodOptional<z.ZodNumber>; tokens... npmjs.com
langchain 1.2.4 breaking changes
- Default changed
providerStrategy
The strict option in providerStrategy now defaults to true for OpenAI compatibility. Code that relied on the previous non-strict default should set strict explicitly. github.com - Signature changed
hub:pull
Was function pull<T extends Runnable>(ownerRepoCommit: string, options?: {apiKey?: string; apiUrl?: string; includeModel?: boolean; modelClass?: new (...args: any[]) => BaseLanguageModel;}): Promise<T>; now function pull<T extends... npmjs.com
And 2 more in this version.
langchain 1.2.3 breaking changes
- Behavior changed
load
The load function now applies security hardening, which may change what it accepts. The note gives no specifics, so review code that loads untrusted or unusual serialized data. github.com - Signature changed
summarizationMiddleware
Was function summarizationMiddleware(options: SummarizationMiddlewareConfig): AgentMiddleware<undefined, z.ZodObject<{trigger: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodObject<{fraction: z.ZodOptional<z.ZodNumber>; tokens... npmjs.com
langchain 1.2.2 breaking changes
- Signature changed
summarizationMiddleware
Was function summarizationMiddleware(options: SummarizationMiddlewareConfig): AgentMiddleware<undefined, z.ZodObject<{trigger: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodObject<{fraction: z.ZodOptional<z.ZodNumber>; tokens... npmjs.com
langchain 1.1.6 breaking changes
- Signature changed
providerStrategy
Was function providerStrategy(responseFormat: JsonSchemaFormat): ProviderStrategy<Record<string, unknown>> function providerStrategy<T extends InteropZodType<any>>(responseFormat: T): ProviderStrategy<T extends InteropZodType<infer U> ? U... npmjs.com - Signature changed
ProviderStrategy.fromSchema
Was static fromSchema(schema: Record<string, unknown>): ProviderStrategy<Record<string, unknown>> static fromSchema<T>(schema: InteropZodType<T>): ProviderStrategy<T>; now static fromSchema(schema: Record<string, unknown>, strict?... npmjs.com
langchain 1.1.1 breaking changes
- Configuration changed
The release constrains the minimum version of the core peer dependency. Users with an older core installed may need to upgrade it to match. github.com
langchain 1.1.0 breaking changes
- Signature changed
CreateAgentParams
Was type CreateAgentParams<StructuredResponseType extends Record<string, any> = Record<string, any>, StateSchema extends AnyAnnotationRoot | InteropZodObject | undefined = undefined, ContextSchema extends AnyAnnotationRoot |... npmjs.com - Signature changed
CreateAgentParams.systemPrompt
Was systemPrompt?: string; now systemPrompt?: string | SystemMessage. npmjs.com
And 2 more in this version.
langchain 1.0.6 breaking changes
- Behavior changed
AgentNode
The release updated how AgentNode handles errors. Code that depends on the previous error behaviour should be checked. github.com
langchain 1.0.5 breaking changes
- Removed
ClearToolUsesEdit.triggerTokens
ClearToolUsesEdit.triggerTokens was removed in langchain 1.0.5 npmjs.com - Renamed
The exit behavior value 'throw' was renamed to 'error'. Code that passes 'throw' must switch to 'error'. github.com
And 7 more in this version.
langchain 1.0.4 breaking changes
- Signature changed
summarizationMiddleware
Was function summarizationMiddleware(options: SummarizationMiddlewareConfig): AgentMiddleware<undefined, z.ZodObject<{maxTokensBeforeSummary: z.ZodOptional<z.ZodNumber>; messagesToKeep: z.ZodDefault<z.ZodNumber>; tokenCounter... npmjs.com
langchain 1.0.3 breaking changes
- Removed
getContextVariable
getContextVariable was removed in langchain 1.0.3 npmjs.com - Removed
setContextVariable
setContextVariable was removed in langchain 1.0.3 npmjs.com
And 7 more in this version.
langchain 1.0.2 breaking changes
- Signature changed
createAgent
Was function createAgent<StateSchema extends AnyAnnotationRoot | InteropZodObject | undefined = undefined, ContextSchema extends AnyAnnotationRoot | InteropZodObject = AnyAnnotationRoot, TMiddleware extends readonly AgentMiddleware[] =... npmjs.com
langchain 1.0.1 breaking changes
- Removed
agents:Agent
Use https://js.langchain.com/docs/modules/agents/agent_types instead. npmjs.com - Removed
agents:AgentAction
AgentAction was removed in langchain 1.0.1 npmjs.com
And 475 more in this version.
langchain 0.3.29 breaking changes
- Signature changed
agents:AgentExecutor._formatValues
Was protected _formatValues(values: ChainValues & {signal?: AbortSignal; timeout?: number;}): Promise<ChainValues & {signal?: AbortSignal | undefined; timeout?: number | undefined;}>; now protected _formatValues(values: ChainValues &... npmjs.com - Signature changed
chains:AnalyzeDocumentChain._formatValues
Was protected _formatValues(values: ChainValues & {signal?: AbortSignal; timeout?: number;}): Promise<ChainValues & {signal?: AbortSignal | undefined; timeout?: number | undefined;}>; now protected _formatValues(values: ChainValues &... npmjs.com
And 48 more in this version.
langchain 0.3.28 breaking changes
- Signature changed
chains:createExtractionChainFromZod
Was function createExtractionChainFromZod(schema: z.ZodObject<any, any, any, any>, llm: BaseChatModel<BaseFunctionCallOptions>): LLMChain<object, BaseChatModel<BaseFunctionCallOptions, import("@langchain/core/messages").AIMessageChunk>>... npmjs.com - Signature changed
chains:createTaggingChainFromZod
Was function createTaggingChainFromZod(schema: z.ZodObject<any, any, any, any>, llm: BaseChatModel<BaseFunctionCallOptions>, options?: TaggingChainOptions): LLMChain<object, BaseChatModel<BaseFunctionCallOptions... npmjs.com
And 20 more in this version.
langchain 0.3.25 breaking changes
- Signature changed
agents/toolkits:createRetrieverTool
Was function createRetrieverTool(retriever: BaseRetrieverInterface, input: Omit<DynamicStructuredToolInput, "func" | "schema">): DynamicStructuredTool<z.ZodObject<{input: z.ZodString;}, "strip", z.ZodTypeAny, {input: string;}, {input... npmjs.com - Signature changed
tools/retriever:createRetrieverTool
Was function createRetrieverTool(retriever: BaseRetrieverInterface, input: Omit<DynamicStructuredToolInput, "func" | "schema">): DynamicStructuredTool<z.ZodObject<{query: z.ZodString;}, "strip", z.ZodTypeAny, {query: string;}, {query... npmjs.com
langchain 0.3.24 breaking changes
- Signature changed
chat_models/universal:initChatModel
Was function initChatModel<RunInput extends BaseLanguageModelInput = BaseLanguageModelInput, CallOptions extends ConfigurableChatModelCallOptions = ConfigurableChatModelCallOptions>(model: never, options?: Partial<Record<string, any>> &... npmjs.com
langchain 0.3.21 breaking changes
- Signature changed
agents/toolkits:createRetrieverTool
Was function createRetrieverTool(retriever: BaseRetrieverInterface, input: Omit<DynamicStructuredToolInput, "func" | "schema">): DynamicStructuredTool<z.ZodObject<{input: z.ZodString;}, "strip", z.ZodTypeAny, {input: string;}, {input... npmjs.com - Signature changed
tools/retriever:createRetrieverTool
Was function createRetrieverTool(retriever: BaseRetrieverInterface, input: Omit<DynamicStructuredToolInput, "func" | "schema">): DynamicStructuredTool<z.ZodObject<{query: z.ZodString;}, "strip", z.ZodTypeAny, {query: string;}, {query... npmjs.com
langchain 0.3.13 breaking changes
- Signature changed
chains/sql_db:DEFAULT_SQL_DATABASE_PROMPT
Was const DEFAULT_SQL_DATABASE_PROMPT: PromptTemplate<{input: any; dialect: any; table_info: any; top_k: any;}, any>; now const DEFAULT_SQL_DATABASE_PROMPT: PromptTemplate<{dialect: any; table_info: any; input: any; top_k: any;}, any>. npmjs.com - Signature changed
chains/sql_db:SQL_MSSQL_PROMPT
Was const SQL_MSSQL_PROMPT: PromptTemplate<{input: any; dialect: any; table_info: any; top_k: any;}, any>; now const SQL_MSSQL_PROMPT: PromptTemplate<{dialect: any; table_info: any; input: any; top_k: any;}, any>. npmjs.com
And 8 more in this version.
langchain 0.3.3 breaking changes
- Signature changed
chains:createExtractionChain
Was function createExtractionChain(schema: FunctionParameters, llm: BaseChatModel<BaseFunctionCallOptions>): LLMChain<object, BaseChatModel<BaseFunctionCallOptions, import("@langchain/core/messages").BaseMessageChunk>>; now function... npmjs.com - Signature changed
chains:createExtractionChainFromZod
Was function createExtractionChainFromZod(schema: z.ZodObject<any, any, any, any>, llm: BaseChatModel<BaseFunctionCallOptions>): LLMChain<object, BaseChatModel<BaseFunctionCallOptions, import("@langchain/core/messages").BaseMessageChunk>>... npmjs.com
And 11 more in this version.
langchain 0.3.0 breaking changes
- Removed
document_loaders/fs/chatgpt:ChatGPTLoader
ChatGPTLoader was removed in langchain 0.3.0 npmjs.com - Removed
document_loaders/fs/csv:CSVLoader
CSVLoader was removed in langchain 0.3.0 npmjs.com
And 139 more in this version.
langchain 0.2.17 breaking changes
- Signature changed
vectorstores/memory:MemoryVectorStore._queryVectors
Was protected _queryVectors(query: number[], k: number, filter?: this["FilterType"]): Promise<{similarity: number; index: number; metadata: Record<string, any>; content: string; embedding: number[];}[]>; now protected _queryVectors(query... npmjs.com
langchain 0.2.16 breaking changes
- Signature changed
retrievers/self_query/functional:FunctionFilter
Was export {FunctionFilter, FunctionalTranslator} from "@langchain/core/structured_query"; now export {type FunctionFilter, FunctionalTranslator} from "@langchain/core/structured_query". npmjs.com
langchain 0.2.15 breaking changes
- Signature changed
agents:CreateToolCallingAgentParams
Was type CreateToolCallingAgentParams = {llm: BaseChatModel; tools: StructuredToolInterface[] | ToolDefinition[]; prompt: ChatPromptTemplate; streamRunnable?: boolean;}; now type CreateToolCallingAgentParams = {llm: LanguageModelLike... npmjs.com - Signature changed
agents:CreateToolCallingAgentParams.llm
Was llm: BaseChatModel; now llm: LanguageModelLike. npmjs.com
langchain 0.2.13 breaking changes
- Signature changed
hub:pull
Was function pull<T extends Runnable>(ownerRepoCommit: string, options?: ClientConfiguration): Promise<T>; now function pull<T extends Runnable>(ownerRepoCommit: string, options?: {apiKey?: string; apiUrl?: string; includeModel?... npmjs.com - Signature changed
hub:push
Was function push(repoFullName: string, runnable: Runnable, options?: HubPushOptions & ClientConfiguration): Promise<string>; now function push(repoFullName: string, runnable: Runnable, options?: {apiKey?: string; apiUrl?: string... npmjs.com
And 2 more in this version.
langchain 0.2.10 breaking changes
- Signature changed
retrievers/parent_document:ParentDocumentRetriever._storeDocuments
Was _storeDocuments(parentDoc: Document, childDocs: Document[], addToDocstore: boolean): Promise<void>; now _storeDocuments(parentDoc: Record<string, Document>, childDocs: Document[], addToDocstore: boolean): Promise<void>. npmjs.com
langchain 0.2.8 breaking changes
- Signature changed
agents:CreateOpenAIToolsAgentParams
Was type CreateOpenAIToolsAgentParams = {llm: BaseChatModel<BaseChatModelCallOptions & {tools?: StructuredToolInterface[] | OpenAIClient.ChatCompletionTool[] | any[];}>; tools: StructuredToolInterface[]; prompt: ChatPromptTemplate... npmjs.com - Signature changed
agents:CreateOpenAIToolsAgentParams.tools
Was tools: StructuredToolInterface[]; now tools: StructuredToolInterface[] | ToolDefinition[]. npmjs.com
And 6 more in this version.
langchain 0.2.6 breaking changes
- Signature changed
document_loaders/fs/unstructured:UnstructuredLoader.constructor
Was constructor(filePathOrLegacyApiUrl: string, optionsOrLegacyFilePath?: UnstructuredLoaderOptions | string); now constructor(filePathOrLegacyApiUrlOrMemoryBuffer: string | UnstructuredMemoryLoaderOptions, optionsOrLegacyFilePath?... npmjs.com
langchain 0.2.1 breaking changes
- Signature changed
smith:Criteria
Was function Criteria(criteria: CriteriaType, config?: Pick<Partial<LabeledCriteria>, "formatEvaluatorInputs" | "llm" | "feedbackKey">): EvalConfig; now function Criteria(criteria: CriteriaType | Record<string, string>, config?... npmjs.com - Signature changed
smith:LabeledCriteria
Was function LabeledCriteria(criteria: CriteriaType, config?: Pick<Partial<LabeledCriteria>, "formatEvaluatorInputs" | "llm" | "feedbackKey">): LabeledCriteria; now function LabeledCriteria(criteria: CriteriaType | Record<string, string>... npmjs.com
langchain 0.2.0 breaking changes
- Removed
agents:ZapierToolKit
ZapierToolKit was removed in langchain 0.2.0 npmjs.com - Removed
agents/toolkits/aws_sfn:AWSSfnCreatePromptArgs
AWSSfnCreatePromptArgs was removed in langchain 0.2.0 npmjs.com
And 284 more in this version.
langchain 0.1.37 breaking changes
- Signature changed
smith:DynamicRunEvaluatorParams
Was type DynamicRunEvaluatorParams = {input: Record<string, unknown>; prediction?: Record<string, unknown>; reference?: Record<string, unknown>; run: Run; example?: Example;}; now type DynamicRunEvaluatorParams<Input extends Record<string... npmjs.com - Signature changed
smith:DynamicRunEvaluatorParams.input
Was input: Record<string, unknown>; now input: Input. npmjs.com
And 2 more in this version.
langchain 0.1.36 breaking changes
- Removed
chains/query_constructor:loadQueryConstructorChain
loadQueryConstructorChain was removed in langchain 0.1.36 npmjs.com - Removed
chains/query_constructor/ir:AND
AND was removed in langchain 0.1.36 npmjs.com
And 78 more in this version.
langchain 0.1.35 breaking changes
- Signature changed
retrievers/parent_document:ParentDocumentRetrieverFields
Was type ParentDocumentRetrieverFields = MultiVectorRetrieverInput & {childSplitter: TextSplitter; parentSplitter?: TextSplitter; childDocumentRetriever?: VectorStoreRetrieverInterface<VectorStoreInterface>;}; now type... npmjs.com
langchain 0.1.33 breaking changes
- Signature changed
agents/format_scratchpad/openai_tools:formatToOpenAIToolMessages
Was function formatToOpenAIToolMessages(steps: ToolsAgentStep[]): BaseMessage[]; now function formatToToolMessages(steps: ToolsAgentStep[]): BaseMessage[]. npmjs.com - Signature changed
chains:createExtractionChain
Was function createExtractionChain(schema: FunctionParameters, llm: BaseChatModel<BaseFunctionCallOptions>): LLMChain<object, BaseChatModel<BaseFunctionCallOptions>>; now function createExtractionChain(schema: FunctionParameters, llm... npmjs.com
And 5 more in this version.
langchain 0.1.30 breaking changes
- Signature changed
agents:CreateOpenAIToolsAgentParams
Was type CreateOpenAIToolsAgentParams = {llm: BaseChatModel<BaseChatModelCallOptions & {tools?: StructuredToolInterface[] | OpenAIClient.ChatCompletionTool[]; tool_choice?: OpenAIClient.ChatCompletionToolChoiceOption;}>; tools... npmjs.com - Signature changed
agents:CreateOpenAIToolsAgentParams.llm
Was llm: BaseChatModel<BaseChatModelCallOptions & {tools?: StructuredToolInterface[] | OpenAIClient.ChatCompletionTool[]; tool_choice?: OpenAIClient.ChatCompletionToolChoiceOption;}>; now llm: BaseChatModel<BaseChatModelCallOptions &... npmjs.com
langchain 0.1.29 breaking changes
- Removed
tools/calculator:Calculator
Calculator was removed in langchain 0.1.29 npmjs.com - Signature changed
agents:createOpenAIFunctionsAgent
Was function createOpenAIFunctionsAgent({llm, tools, prompt, streamRunnable}: CreateOpenAIFunctionsAgentParams): Promise<RunnableSingleActionAgent>; now function createOpenAIFunctionsAgent({llm, tools, prompt, streamRunnable}... npmjs.com
And 5 more in this version.
Related packages
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.