@sprucelabs/sprucebot-llm 11.1.11 → 11.1.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -104,7 +104,10 @@ class ResponseParser {
104
104
  }
105
105
  assertAtMostOneCallback(invocations) {
106
106
  if (invocations > 1) {
107
- throw new SpruceError({ code: 'CALLBACK_ERROR' });
107
+ throw new SpruceError({
108
+ code: 'CALLBACK_ERROR',
109
+ friendlyMessage: 'You can only invoke one callback per message.',
110
+ });
108
111
  }
109
112
  }
110
113
  }
@@ -94,7 +94,10 @@ class ResponseParser {
94
94
  }
95
95
  assertAtMostOneCallback(invocations) {
96
96
  if (invocations > 1) {
97
- throw new SpruceError_1.default({ code: 'CALLBACK_ERROR' });
97
+ throw new SpruceError_1.default({
98
+ code: 'CALLBACK_ERROR',
99
+ friendlyMessage: 'You can only invoke one callback per message.',
100
+ });
98
101
  }
99
102
  }
100
103
  }
package/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  "eta"
9
9
  ]
10
10
  },
11
- "version": "11.1.11",
11
+ "version": "11.1.12",
12
12
  "files": [
13
13
  "build"
14
14
  ],