Unverified50% confidenceFactExact time
After LangChain wrapping, the stop_reason of an Anthropic response can usually be read via the message's response_metadata["stop_reason"].
1
Sources
50%
Confidence
Long-term
Relevance
11/13/2026
First Seen
Sources
Related Entities
Related Claims
UnverifiedFinish reason (finish_reason/stop_reason) is a model response metadata field indicating why generation ended: normal completion, reaching the max_tokens limit, triggering content filtering, or a tool call request, etc.76% similarUnverifiedOpenAI 流式响应以 data: [DONE] 标记结束,Anthropic 则使用 event: message_stop 事件类型73% similarUnverifiedIn practice, stop_reason === 'tool_use' does not reliably reflect message structure: a response may contain a real tool call block yet report end_turn.71% similarUnverifiedIn Ollama's logs, if the generation stop reason is `stop` and occurs at the thinking marker, the stop-word configuration can be confirmed as the problem; if it is `length`, num_predict needs to be adjusted.64% similarUnverifiedOnly responses with a finish_reason of stop or tool_calls should be cached; responses truncated by length or those that errored should not be cached.63% similar
Cite This Claim
Stable URI
https://kongchang.com/claim/1167617API
curl https://kongchang.com/api/v1/knowledge/claims/1167617MCP
get_claim(id=1167617)