From c1945d875d63bee85f114737584393e584cdf189 Mon Sep 17 00:00:00 2001 From: multipleof4 Date: Tue, 26 Aug 2025 09:56:52 -0700 Subject: [PATCH] Delete readme/FunctionCalling.md --- readme/FunctionCalling.md | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 readme/FunctionCalling.md diff --git a/readme/FunctionCalling.md b/readme/FunctionCalling.md deleted file mode 100644 index 92baa14..0000000 --- a/readme/FunctionCalling.md +++ /dev/null @@ -1,21 +0,0 @@ -Sune function call (have Sunes attach files to their latest bubble) - -In your Sune script, call: -```js -await window.suneAttach(files, { toAPI: false, tree: true }) -``` -files can be File objects or simple objects like: -```js -{ name: 'report.pdf', mime: 'application/pdf', data: '', size: 123456 } -``` -`toAPI: true` adds an assistant message containing the actual file parts (so the API can consume them next turn). - -`tree: true` adds the separate Attachments tree bubble with clickable downloads. - - -Examples: -```js -await window.suneAttach([fileInput.files[0]]) -await window.suneAttach([{name:'cat.png',mime:'image/png',data:''}]) -``` -If you want only the tree bubble and not re-send data to the API, set {toAPI:false, tree:true}.