LangChain Python: one standard finish reason across providers
LangChain Python adds normalized_finish_reason, so cut-off or blocked replies no longer look finished. Anthropic adds finish_state.
Your keys
0 of 2 ready
Create each key on its own page, paste it below, then copy the finished lines into your project's .env file. Your keys stay in this tab. They are never sent to Wirestack or saved; we only count that the panel was used.
What changed
November 19, 2026: LangChain's Python packages now report why a model stopped in one shared format. It is the Python counterpart of the LangChain.js change, and it adds fields without changing the raw finish_reason.
normalized_finish_reasonis set inresponse_metadataby the provider package. Its values arestop,length,tool_call,content_filter,refusal,context_exceeded,errororother. Values a provider package does not map becomeother, neverstop.finish_stateis Anthropic only:complete, orsuspendedwhen the stop reason ispause_turnand you must send another request to finish the turn.- Tool calls and refusals:
langchain-corecorrects a normalizedstoptotool_callwhen the assembled message carries tool calls, and setsrefusalwhen it carries a refusal block. - Versions:
langchain-core1.8.4,langchain-openai1.8.5,langchain-anthropic1.7.12. All three need Python 3.11 or later on PyPI.
Prerequisites
Affected by this? Start from a checked LangChain integration
Code with pinned versions, checked against the official docs on a schedule.
