@@ -25717,7 +25717,7 @@ else
2571725717 type: "array",
2571825718 }
2571925719 },
25720- "enabled": true ,
25720+ "enabled": false ,
2572125721 "outputVisibleToUser": true,
2572225722 "executor": (action) => {
2572325723 let suggestions = action?.args?.suggestionsToPickFrom
@@ -25736,20 +25736,43 @@ else
2573625736 },
2573725737 {
2573825738 "name": "send_message",
25739- "description": "Send a message to the user without waiting for their response. Does not return anything .",
25739+ "description": "Sends text to the user. When asking for user input include suggestions for them to respond with .",
2574025740 "args": {
2574125741 "whoToSendMessageAs": {
2574225742 description: "<whose perspective is the response written from>",
2574325743 pattern: (localsettings.inject_chatnames_instruct ? `^${getChatOpponentRandomly()}$` : undefined),
2574425744 type: "string",
2574525745 skip: !localsettings.inject_chatnames_instruct
2574625746 },
25747- "message": "<message to send>",
25747+ "messages": {
25748+ description: "<text to send>",
25749+ type: "array",
25750+ itemType: "string"
25751+ },
25752+ "suggestionsToPickFrom": {
25753+ description: "<suggestions written from the user's perspective which they can pick from for their next action>",
25754+ type: "array",
25755+ }
2574825756 },
2574925757 "enabled": true,
2575025758 "outputVisibleToUser": true,
2575125759 "executor": (action) => {
25752- addThought(createAIPrompt, localsettings.inject_chatnames_instruct ? `${action?.args?.whoToSendMessageAs}: ${action?.args?.message}` : action?.args?.message)
25760+ if (!!action?.args?.messages)
25761+ {
25762+ action?.args?.messages.forEach(message => {
25763+ addThought(createAIPrompt, localsettings.inject_chatnames_instruct ? `${action?.args?.whoToSendMessageAs}: ${message}` : message)
25764+ })
25765+
25766+ let suggestions = action?.args?.suggestionsToPickFrom
25767+ if (!!suggestions && Array.isArray(suggestions)) {
25768+ try {
25769+ setSuggestions(suggestions.map(String))
25770+ }
25771+ catch {
25772+ // Do not care about an error here, it's a nice to have if the suggestions show
25773+ }
25774+ }
25775+ }
2575325776 }
2575425777 },
2575525778 {
@@ -25860,8 +25883,10 @@ else
2586025883 "args": {
2586125884 "text": "<text to add>",
2586225885 "keywords": {
25863- description: "<keywords to help with searching>",
25864- type: "array"
25886+ description: "<keywords to help with searching>",
25887+ type: "array",
25888+ itemType: "string"
25889+ minItems: 1,
2586525890 }
2586625891 },
2586725892 "enabled": documentdb_enabled,
@@ -25886,7 +25911,9 @@ else
2588625911 "text": "<descriptive text which by itself provides all needed information to define the entity>",
2588725912 "keywords": {
2588825913 description: "<keywords to help with searching>",
25889- type: "array"
25914+ type: "array",
25915+ itemType: "string"
25916+ minItems: 1,
2589025917 }
2589125918 },
2589225919 "enabled": true,
0 commit comments