(cwd, role string)
| 656 | return time.Now() |
| 657 | } |
| 658 | |
| 659 | func 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 | |
| 672 | func BuildInstructionPrioritySection() (PromptSection, error) { |
| 673 | return getNamedTemplateSection("instruction-priority") |
| 674 | } |
no test coverage detected