fn may_follow_reasoning(
reasoning: &ChatbotConversationMessageReasoning,
next: &ChatbotConversationMessage,
) -> boolExpand description
Whether Azure accepts next immediately after the reasoning item reasoning.
Normally that is the item the reasoning reasoned about. The exception is another reasoning item of the same response: a round that reasons more than once emits its items in a run, so replaying the run whole is what keeps the next turn’s prefix matching what that round itself sent.