Change8

langchain-core==1.2.8

📦 langchainView on GitHub →
2 features🐛 13 fixes🔧 11 symbols

Summary

This release focuses on numerous bug fixes across the core library, including improvements to token counting with multimodal support and adding an XML format option for buffer string generation. Dependency updates and various documentation enhancements were also included.

Migration Steps

  1. If you were relying on `Iterable` for block iteration, update to expect `Iterator`.

✨ New Features

  • Add multimodal support to count_tokens_approximately.
  • Add XML format option for get_buffer_string.

🐛 Bug Fixes

  • Fix nested mustache variable extraction and update docs.
  • Allow base model annotations for empty model.
  • Prevent crash in ParrotFakeChatModel when messages list is empty.
  • Fix google docstring parsing with no arguments/reserved arguments.
  • Replace `Iterable` with `Iterator` for block iteration.
  • yield_blobs returns Iterator.
  • Raise outputparserexception for unknown tools.
  • Fix typo 'use a a' -> 'use as a' in check_version.py.
  • Correctly guard against non-text-block types.
  • Add explicit `tags` parameter to sync `LLMManagerMixin` methods.
  • Add `tool_call_id` to `on_tool_error` event data.
  • Improve error message for missing title in JSON schema functions.
  • Make `yield_keys` keyword-only to match `BaseStore`.

Affected Symbols