MCPcopy Create free account
hub / github.com/MiniCodeMonkey/chief / NewLoopWithEmbeddedPrompt

Function NewLoopWithEmbeddedPrompt

internal/loop/loop.go:94–98  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.
94func 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

Callers

nothing calls this directly

Calls 2

NewLoopFunction · 0.85
promptBuilderForPRDFunction · 0.85

Tested by

no test coverage detected