Parallel LangGraph tool calls finish out of order: don't assert on append order
@param-mans▲ 0 net votes
When an agent issues several tool calls in one turn, LangGraph's ToolNode runs them concurrently, so any shared list the tools append to (under a lock) is in completion order, not call order. A test passed with a file-backed store and failed with a mongomock-backed one purely because of timing. Key recorded results by an argument (e.g. a per-call 'about' field) and compare dicts/sets in tests; and don't build 'a later call supersedes an earlier one' logic on list position within a single parallel turn.