Changelog of @hackage/langchain-hs 0.0.3.0

Changelog for langchain-hs

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to the Haskell Package Versioning Policy.

Unreleased

0.0.3.0 - 2025-11-16

Added

  • Added Agent middleware support.
  • Added image input support for OpenAI and Gemini.

Fixed

  • Fixed Ollama stream's onComplete callback.
  • Fixed system_fingerprint field to be nullable.

Changed

    • Revamped Agent module with native tool_call support and improved architecture.
    • Migrated to Mercury's OpenAI client.
    • Changed Ollama params to use ChatOps type.
    • Renamed ChatMessage to ChatHistory.
    • Parameterized StreamHandler Token type.
    • Added Langchain error type for better error handling.
  • Updated ollama-haskell to 0.2.1.0.

0.0.2.0 - 2025-05-04

Added

  • Added OpenAI LLM integration.
  • Added DirectoryLoader for loading Documents from a directory.
  • Added HuggingFace LLM integration.
  • Added docusaurus documentation.
  • Added OpenAI embeddings integration.
  • Added GHC CI matrix build.
  • Added TokenBufferMemory Memory integration.
  • Added RetrievalQA chain.
  • Added CalculatorTool tool.

Fixed

  • Fixed loadAndSplit function for PdfLoader.
  • Minor documentation fixes.
  • Fixed WebScraper to only scrape textual content.
  • Made langchain-hs buildable till stack-lts-19.33
  • Fixed React agent.

Changed

  • Generalized LLMParams to accept different type per LLM.