X-Git-Url: https://git.giacomolli.uk/onechat/blobdiff_plain/b1be0ee8530df5db8973bfe355f2f6d3149383a0..c781f79f3c8cb9a7577ee1574d196988da2719b3:/prompt.go?ds=inline diff --git a/prompt.go b/prompt.go index 0852bec..0571ecf 100644 --- a/prompt.go +++ b/prompt.go @@ -34,9 +34,6 @@ const ( promptInstructionsHeading = "\n\n# The user's instructions\n\n" ) -// promptEfforts are the reasoning efforts that spawn can give a subagent. -var promptEfforts = []string{"low", "medium", "high", "xhigh"} - // promptText is the system prompt of the reference, nearly word for word, with // one added paragraph on the user's instructions file. The reference names its // own agent, so promptText has the name of the agent and the kind reply in its @@ -197,6 +194,9 @@ date(id) gives the date and time of message id. zoom("Name") gives an agent's whole chat. An [image FILE] line names a stored image. Use zoom(id, 1) to see its pixels.` +// promptEfforts are the reasoning efforts that spawn can give a subagent. +var promptEfforts = []string{"low", "medium", "high", "xhigh"} + // prompt returns the system prompt of the reference with one added paragraph on // the user's instructions file at instructionsPath. It uses the agent name and // ends with the user's instructions. Without instructions it has neither them @@ -223,6 +223,7 @@ message outside your area. Your final reply is your report to the parent. End your turn with an empty reply when nothing needs the parent or the user. Send nothing to WhatsApp. Draft replies in your report instead, so the parent can ask the user before sending.`, 1) + text = strings.Replace(text, promptChildrenText, "", 1) return promptWithInstructions(text, "Do the tasks of your area yourself, with your tools.", promptInstructionsClause, instructions)