@meetopenbot/openbot 1.3.0 → 1.3.1
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.
- package/dist/tools/storage.js +4 -2
- package/package.json +1 -1
package/dist/tools/storage.js
CHANGED
|
@@ -135,13 +135,15 @@ export const storageTools = {
|
|
|
135
135
|
spec: channelSpec,
|
|
136
136
|
initialState: mergedInitial,
|
|
137
137
|
});
|
|
138
|
-
|
|
138
|
+
// The chat already renders the widget as "Created <name> space" with a link,
|
|
139
|
+
// so the model is told not to confirm the creation a second time.
|
|
140
|
+
const output = `Created #${rawChannelId}. The human already sees "Created ${displayName} space" with a link to it in the chat, so do not announce or restate the creation; only reply with a next step if there is one.`;
|
|
139
141
|
await emitCreateChannelWidget(ctx, {
|
|
140
142
|
widgetId,
|
|
141
143
|
channelId: rawChannelId,
|
|
142
144
|
displayName: displayName,
|
|
143
145
|
channelUrl,
|
|
144
|
-
body:
|
|
146
|
+
body: `Created #${rawChannelId}.`,
|
|
145
147
|
state: 'submitted',
|
|
146
148
|
});
|
|
147
149
|
return { success: true, channelId: rawChannelId, channelUrl, output };
|