mirror of
https://github.com/langchain-ai/langgraph.git
synced 2026-08-21 07:02:25 +02:00
The cast(BaseMessageChunk, m) calls in add_messages were no-ops at runtime but accounted for ~92K function calls per react_agent_100x benchmark run (~3ms overhead). Remove them since message_chunk_to_message already handles the type internally. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>