]> git.giacomolli.uk - onechat/blobdiff - prompt.go
Show stored images to the user
[onechat] / prompt.go
index df6f17d4a0c898d6ee2a0a448a916d85c0caf3c6..5847ee82742d07b97862db2ac07ca661ed7236c2 100644 (file)
--- a/prompt.go
+++ b/prompt.go
@@ -274,6 +274,15 @@ func promptTools() []ModelTool {
                        "message": promptStringSchema("The message."),
                }),
                Strict: true,
                        "message": promptStringSchema("The message."),
                }),
                Strict: true,
+       }, ModelTool{
+               Type:        "function",
+               Name:        "image_show",
+               Description: "Show a stored image to the user, only when the user asks to see it. Give its stored filename, not a path.",
+               Parameters: promptObjectSchema(map[string]any{
+                       "image":   promptStringSchema("The stored image filename from an [image FILE] line."),
+                       "caption": promptStringSchema("The caption, or an empty string."),
+               }),
+               Strict: true,
        }, ModelTool{
                Type:        "function",
                Name:        "whatsapp_find",
        }, ModelTool{
                Type:        "function",
                Name:        "whatsapp_find",