MCPcopy Create free account
hub / github.com/GongShichen/LuminaCode / BuildBudgetGitSection

Function BuildBudgetGitSection

agentContext/builder.go:658–671  ·  view source on GitHub ↗
(cwd, role string)

Source from the content-addressed store, hash-verified

656 return time.Now()
657}
658
659func getNamedTemplateSection(name string) (PromptSection, error) {
660 sections, err := LoadSystemPromptTemplateSections()
661 if err != nil {
662 return PromptSection{}, err
663 }
664 for _, section := range sections {
665 if section.Name == name {
666 return section, nil
667 }
668 }
669 return PromptSection{}, errors.New(fmt.Sprintf("Missing system prompt section: %s", name))
670}
671
672func BuildInstructionPrioritySection() (PromptSection, error) {
673 return getNamedTemplateSection("instruction-priority")
674}

Callers 1

BuildInitialContextFunction · 0.85

Calls 3

GetGitContextFunction · 0.85
GetPromptBudgetProfileFunction · 0.85

Tested by

no test coverage detected