Releases: langchain-ai/langchainjs
@langchain/classic==1.0.0
What's Changed
This release updates the package for compatibility with LangChain v1.0. See the v1.0 release notes for details on what's new.
@langchain/cerebras==1.0.0
What's Changed
This release updates the package for compatibility with LangChain v1.0. See the v1.0 release notes for details on what's new.
@langchain/baidu-qianfan==1.0.0
What's Changed
This release updates the package for compatibility with LangChain v1.0. See the v1.0 release notes for details on what's new.
@langchain/azure-dynamic-sessions==1.0.0
What's Changed
This release updates the package for compatibility with LangChain v1.0. See the v1.0 release notes for details on what's new.
@langchain/azure-cosmosdb==1.0.0
What's Changed
This release updates the package for compatibility with LangChain v1.0. See the v1.0 release notes for details on what's new.
@langchain/aws==1.0.0
What's Changed
This release updates the package for compatibility with LangChain v1.0. See the v1.0 release notes for details on what's new.
@langchain/anthropic==1.0.0
What's Changed
This release updates the package for compatibility with LangChain v1.0. See the v1.0 release notes for details on what's new.
langchain==1.0.0-alpha.8
π New Features
- Context Editing Middleware (#9118): Added middleware for editing conversation context dynamically
- Tool Call Limit Middleware (#9121): Implemented middleware to limit the number of tool calls during agent execution
- Retry Model Request Hook (#9128): Added retry functionality for model requests in middleware
- Call Count Tracking (#9090): Introduced call counts through private state for better monitoring and control
- Custom Interrupted Tool Descriptions (#9116): Added ability to pass in a description factory for interrupted tool calls
- PII Redaction Middleware (#9058): Added middleware for automatically redacting personally identifiable information
- Perplexity Support: Added Perplexity provider support to universal chat model
π Bug Fixes
- LLM Tool Selector Implementation (#9127): Updated implementation of LLMToolSelector middleware for improved reliability
- LangGraph Integration (#9117): Fixed integration issues with LangGraph
- Tool Instance Handling (#9119): Fixed tools in ModelRequest to return tool instances instead of serialized objects
- TypeScript Type Inference (#9087): Exported all symbols to enable proper TypeScript type inference
- Prompt Caching Immutability (#9086): Fixed PromptCachingMiddleware to return new message objects instead of modifying existing ones
- Input Type Support (#9080): Improved input types to support a wider range of type definitions
- Tools Node Creation (#9074): Fixed to only create tools node for client-provided tools
- Planning Middleware Adjustments (#9070): Minor improvements to planning middleware behavior
- Hub Prompt Schema Binding (#9057): Fixed schema binding for various types of pulled hub prompts
langchain==1.0.0-alpha.7
π New Features
- Todo Middleware (#9051): Added new todo middleware functionality for agent workflows
- LLM Tool Selector Middleware (#9050): Implemented
llmToolSelectorMiddleware(bigTool) for intelligent tool selection - Middleware Tool Definition (#9046): Middleware can now define their own tools dynamically
- Dynamic Prompt Middleware (#8993): Added built-in middleware for dynamic prompt generation
- Unsupported Model Behavior (#9039): Added
unsupportedModelBehaviorproperty to anthropic middleware
π Bug Fixes
- System Prompt Consistency (#9045): Fixed system prompt handling across all agent components
- Zod Interoperability (#9029): Improved compatibility between Zod v3 and v4
- Structured Output Handling (#9033): Improved structured output processing for agents
- Graph Support for Jumps (#9035): Added statically typed graph support for agent jumps
- Tool Configuration Naming (#9034): Renamed
toolConfigstointerruptOnfor clarity - LLM Property Removal (#9017): Removed
llmprop from middleware agent - Message Handling: Fixed grabbing last AIMessage from list instead of just looking at last message
- Memory Saver Export (#8996): Removed incorrect MemorySaver re-export
- Middleware Naming (#8912): Fixed "middlewares" property naming to "middleware"
- Cache Control Verification: Actually verify cache control values in usage response
- Message Instance Checking (#8905): Use
isInstancefor message validation
π¦ Dependency and Build Fixes
@langchain/core==1.0.0-alpha.6
π New Features
- Google AI Standard Content (#9024): Added comprehensive standard content support for Google GenAI and Vertex AI
- AWS Bedrock Standard Content (#9013): Implemented standard content support for AWS Bedrock Converse
- Server Tool Blocks (#9000): Added server tool blocks to standard content system
- Zod Interoperability (#9029): Improved compatibility between Zod v3 and v4
π Bug Fixes
- Response Metadata Type Mismatch (#9010): Fixed type mismatches in response metadata
- Message Index Cleanup (#8972): Refined message exports
π§ Technical Improvements
- Google AI Integration: Significantly enhanced Google GenAI and Vertex AI block translators
- AWS Bedrock Integration: Major improvements to Bedrock Converse support
- Content Index Updates: Enhanced content module exports