dropOrphanTools removes tool messages that are not part of the contiguous tool run answering the assistant directly before them: sending one alone 400s on every OpenAI-compatible backend ("tool message without preceding tool_calls"). Positional like dropDanglingToolCalls, and for the same reason: a
(kept []Message)
source not stored for this graph (policy: none)