insertion_point(
messages: Sequence[AnyMessage],
anchor: int,
) -> intIndex after the anchor's tool-result batch and any follow-ups queued behind it.
Anthropic needs the disclosure after a user turn and before an assistant turn, so it may not split a tool-result batch or sit in front of a user message; OpenAI needs it to keep its position. An empty reply is skipped too: Anthropic drops it, leaving no assistant turn there.