langchain-core==1.2.10
LangChain's latest update tackles critical context overflow and token counting issues for developers.
LangChain has released version 1.2.10 of its core library, introducing a new `ContextOverflowError` specifically for Anthropic and OpenAI integrations to better handle input limits. The update also improves the `count_tokens_approximately` function to include tokens from tool schemas, provides new `text_inputs` and `text_outputs` features in model profiles, and includes over 50 dependency updates across the project to maintain stability and security.
Why It Matters
This release directly helps developers prevent API errors and manage costs by providing better tools for tracking token usage and context limits.