LoadScanDefault parses the embedded scan_template.json.
()
| 155 | |
| 156 | // LoadScanDefault parses the embedded scan_template.json. |
| 157 | func LoadScanDefault() (*ScanTemplate, error) { |
| 158 | var tpl ScanTemplate |
| 159 | if err := json.Unmarshal(defaultScanTemplate, &tpl); err != nil { |
| 160 | return nil, fmt.Errorf("unmarshal default scan template: %w", err) |
| 161 | } |
| 162 | return &tpl, nil |
| 163 | } |
| 164 | |
| 165 | // applyLanguage appends instruction to all system-role messages in conv. |
| 166 | func applyLanguage(conv *LlmConversation, instruction string) { |
no outgoing calls