NewLoopWithEmbeddedPrompt creates a new Loop instance using the embedded agent prompt. The prompt is rebuilt on each iteration to inline the current story context.
(prdPath string, maxIter int, provider Provider)
| 92 | // NewLoopWithEmbeddedPrompt creates a new Loop instance using the embedded agent prompt. |
| 93 | // The prompt is rebuilt on each iteration to inline the current story context. |
| 94 | func NewLoopWithEmbeddedPrompt(prdPath string, maxIter int, provider Provider) *Loop { |
| 95 | l := NewLoop(prdPath, "", maxIter, provider) |
| 96 | l.buildPrompt = promptBuilderForPRD(prdPath) |
| 97 | return l |
| 98 | } |
| 99 | |
| 100 | // promptBuilderForPRD returns a function that loads the PRD and builds a prompt |
| 101 | // with the next story inlined. This is called before each iteration so that |
nothing calls this directly
no test coverage detected