]> git.giacomolli.uk - onechat/blobdiff - prompt.go
Give each subagent its own prompt cache key
[onechat] / prompt.go
index ee86ebd74293e0345992cf89cd3fdb7fcb476d92..b9d928467c2d0ebb78f9a56ab17aa96f262c776a 100644 (file)
--- a/prompt.go
+++ b/prompt.go
@@ -185,8 +185,8 @@ func promptSubagent(name, instructions string) string {
 }
 
 // promptTools returns the function tools of every call of the agent: the tools
 }
 
 // promptTools returns the function tools of every call of the agent: the tools
-// of promptSubagentTools, then spawn and tell. A compaction sends them too and never
-// calls them, because a change of the tools ends the shared prompt cache.
+// of promptSubagentTools, then spawn and tell. A compaction sends them too and
+// never calls them, because a change of the tools ends the shared prompt cache.
 func promptTools() []ModelTool {
        return append(promptSubagentTools(), ModelTool{
                Type:        "function",
 func promptTools() []ModelTool {
        return append(promptSubagentTools(), ModelTool{
                Type:        "function",