]> git.giacomolli.uk - onechat/blobdiff - prompt.go
Write the log rules in the Go skill
[onechat] / prompt.go
index e651988105b1aedd49d5dd775ccd412cf44c5639..694ad68cfd5777496739033b5af28b39f0535c7f 100644 (file)
--- a/prompt.go
+++ b/prompt.go
@@ -188,6 +188,7 @@ whole chat.`
 // cache of the turns.
 func prompt(name, instructionsPath, instructions string) string {
        text := strings.NewReplacer(promptName, name, promptInstructionsPath, instructionsPath).Replace(promptText)
+
        return promptWithInstructions(text, promptTaskSentence, promptInstructionsClause, instructions)
 }
 
@@ -195,6 +196,7 @@ func prompt(name, instructionsPath, instructions string) string {
 // with the instructions of the user at its end, as prompt does.
 func promptSubagent(name, instructions string) string {
        text := strings.ReplaceAll(promptSubagentText, promptName, name)
+
        return promptWithInstructions(text, promptSubagentTaskSentence, promptSubagentInstructionsClause, instructions)
 }