Skip to content
所有標籤

#steering

1 篇文章

OMP agent loop:為什麼需要兩層 while?外層的「停了就再被 steering 打醒」在做什麼

omp 的 runLoopBody 用雙層 while:內層跑 model call → tool call 的核心節奏;外層在 agent 本想停下時,排空 queued steering / follow-up / asides,決定要不要再跑一輪。這設計解決了「使用者在 model 跑時打字」與「背景任務悄悄塞訊息」的交付時機問題。