releases.shpreview

LangChain citations now emitted as source parts

@ai-sdk/langchain@3.0.0-canary.166

1 fixThis release1 fixBug fixesAI-tallied from the release notes

Patch Changes

  • c231e42: Surface LangChain citation annotations as spec-compliant source-url / source-document UI message parts. Previously, citations attached to text content blocks (e.g. from web search or RAG) were dropped entirely instead of being emitted as AI SDK source parts. Citation metadata (citedText, startIndex, endIndex, source) is preserved under providerMetadata.langchain.
  • Updated dependencies [19736ee]
  • Updated dependencies [d66ae02]
  • Updated dependencies [e4182bd]
    • ai@7.0.0-canary.166

Fetched June 8, 2026