Skip to main content

may_follow_reasoning

Function may_follow_reasoning 

Source
fn may_follow_reasoning(
    reasoning: &ChatbotConversationMessageReasoning,
    next: &ChatbotConversationMessage,
) -> bool
Expand 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.