]> git.giacomolli.uk - onechat/blobdiff - tools.go
Reflow comments over the reflow width
[onechat] / tools.go
index 9f2905acb8b32ef61a6c96dbc3cc4365d086d4aa..621cd84185be0ef06458bb6984e2e59915d5bd4a 100644 (file)
--- a/tools.go
+++ b/tools.go
@@ -260,7 +260,7 @@ func (b *Toolbox) run(ctx context.Context, name, arguments string) string {
                case b.whatsapp == nil:
                        err = fmt.Errorf("unknown tool %q", name)
                case err == nil:
                case b.whatsapp == nil:
                        err = fmt.Errorf("unknown tool %q", name)
                case err == nil:
-                       output, err = b.whatsapp.Send(ctx, args.ID, args.Chat, args.Text)
+                       output, err = b.whatsapp.Send(ctx, args.ID, args.Chat, args.Text, args.Image)
                }
        case "schedule_set":
                var args ToolScheduleSetArguments
                }
        case "schedule_set":
                var args ToolScheduleSetArguments
@@ -573,9 +573,10 @@ type ToolWhatsAppFindArguments struct {
 
 // ToolWhatsAppSendArguments are the arguments of whatsapp_send.
 type ToolWhatsAppSendArguments struct {
 
 // ToolWhatsAppSendArguments are the arguments of whatsapp_send.
 type ToolWhatsAppSendArguments struct {
-       ID   string `json:"id"`
-       Chat string `json:"chat"`
-       Text string `json:"text"`
+       ID    string `json:"id"`
+       Chat  string `json:"chat"`
+       Text  string `json:"text"`
+       Image string `json:"image"`
 }
 
 // ToolScheduleSetArguments are the arguments of schedule_set. Exactly one of At
 }
 
 // ToolScheduleSetArguments are the arguments of schedule_set. Exactly one of At