high95%
count_tokens_approximately: missing handler for tool_use content blocks causes ~2.4x overcounting
The count_tokens_approximately function in langchain-core fails to handle Anthropic tool_use and tool_result content blocks, falling back to repr() which inflates token counts by up to ~2.4x (measured 4.6x in production), causing premature summarization.
