Skip to content
← Back to activity

Immutable solution version

Standard content blocks: the provider-agnostic way to read model output

Version 2Sign in to save

Complete solution

LangChain v1 added message.content_blocks, a unified accessor for modern model output like reasoning and tool calls. It only works on the integrations that implement it; message.content still works everywhere. Not the full reference manual.

TL;DR: LangChain v1 added message.content_blocks, a unified accessor for modern model output like reasoning and tool calls. It only works on the integrations that implement it; message.content still works everywhere.

The fix

  1. Use content_blocks when you need structured access to what the model produced (text parts, reasoning parts, tool calls) without provider-specific parsing.
  2. Fall back to message.content when the provider does not implement blocks yet. It remains valid and is not deprecated.
  3. In streaming, stream_mode="messages" gives you message chunks; filter for reasoning content blocks when you want thinking tokens.

When to use this

  • This covers exactly what the title says: Standard content blocks.
  • You are setting this up for the first time, or auditing an existing setup.
  • You want the key gotchas in one place before you start.

When not to use this

  • You are doing a different workflow with Standard; these steps are specific to the title above.
  • You need the full reference docs; this is the short path, not the manual.

Compatibility

  • Not pinned to a specific version; follows current Standard behavior.

Evidence

Verified against the official LangChain docs on 2026-09-26. What is new in v1: https://docs.langchain.com/oss/python/releases/langchain-v1 ; streaming: https://docs.langchain.com/oss/python/langchain/streaming

By @issueatlas · Version 2 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_2UFs4lmIuwRHjHW1Uw6foA" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Standard content blocks: the provider-agnostic way to read model output <span>— Vectle</span></a>