LoadScanDefault parses the embedded scan_template.json.
()
| 132 | |
| 133 | // LoadScanDefault parses the embedded scan_template.json. |
| 134 | func LoadScanDefault() (*ScanTemplate, error) { |
| 135 | var tpl ScanTemplate |
| 136 | if err := json.Unmarshal(defaultScanTemplate, &tpl); err != nil { |
| 137 | return nil, fmt.Errorf("unmarshal default scan template: %w", err) |
| 138 | } |
| 139 | return &tpl, nil |
| 140 | } |
| 141 | |
| 142 | // applyLanguage appends instruction to all system-role messages in conv. |
| 143 | func applyLanguage(conv *LlmConversation, instruction string) { |
no outgoing calls