@botpress/runtime 1.13.4 → 1.13.6
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/definition.js +24 -2
- package/dist/definition.js.map +2 -2
- package/dist/internal.js +24 -2
- package/dist/internal.js.map +2 -2
- package/dist/library.js +24 -2
- package/dist/library.js.map +2 -2
- package/dist/runtime/chat/chat.d.ts.map +1 -1
- package/dist/runtime/chat/components.d.ts +14 -0
- package/dist/runtime/chat/components.d.ts.map +1 -1
- package/dist/runtime.js +28 -3
- package/dist/runtime.js.map +2 -2
- package/package.json +1 -1
package/dist/definition.js
CHANGED
|
@@ -48,7 +48,7 @@ var init_define_BUILD = __esm({
|
|
|
48
48
|
var define_PACKAGE_VERSIONS_default;
|
|
49
49
|
var init_define_PACKAGE_VERSIONS = __esm({
|
|
50
50
|
"<define:__PACKAGE_VERSIONS__>"() {
|
|
51
|
-
define_PACKAGE_VERSIONS_default = { runtime: "1.13.
|
|
51
|
+
define_PACKAGE_VERSIONS_default = { runtime: "1.13.6", adk: "1.13.6", sdk: "5.0.2", llmz: "0.0.35", zai: "2.5.6", cognitive: "0.3.3" };
|
|
52
52
|
}
|
|
53
53
|
});
|
|
54
54
|
|
|
@@ -46190,7 +46190,7 @@ var init_config = __esm({
|
|
|
46190
46190
|
|
|
46191
46191
|
// src/runtime/chat/components.ts
|
|
46192
46192
|
import { messages, z as z26 } from "@botpress/sdk";
|
|
46193
|
-
var DefaultMessageTypes, AudioComponent, ImageComponent, VideoComponent, LocationComponent, ChoiceComponent, DropdownComponent, CarouselComponent;
|
|
46193
|
+
var DefaultMessageTypes, TextComponent, AudioComponent, ImageComponent, VideoComponent, LocationComponent, ChoiceComponent, DropdownComponent, CarouselComponent;
|
|
46194
46194
|
var init_components = __esm({
|
|
46195
46195
|
"src/runtime/chat/components.ts"() {
|
|
46196
46196
|
"use strict";
|
|
@@ -46210,6 +46210,28 @@ var init_components = __esm({
|
|
|
46210
46210
|
video: messages.defaults["video"].schema,
|
|
46211
46211
|
bloc: messages.defaults["bloc"].schema
|
|
46212
46212
|
};
|
|
46213
|
+
TextComponent = new Autonomous.Component({
|
|
46214
|
+
type: "leaf",
|
|
46215
|
+
aliases: ["text", "message"],
|
|
46216
|
+
name: "Text",
|
|
46217
|
+
description: `Send a text message to the user, which can include plain text or markdown formatting.
|
|
46218
|
+
The text message can be used to convey information, ask questions, or provide instructions to the user within the chat interface.`,
|
|
46219
|
+
examples: [
|
|
46220
|
+
{
|
|
46221
|
+
name: " Basic Text Message",
|
|
46222
|
+
description: "Sends a simple text message to the user",
|
|
46223
|
+
code: `
|
|
46224
|
+
yield <Message>
|
|
46225
|
+
Hello! This is a **bold** statement and this is _italicized_.
|
|
46226
|
+
</Message>`
|
|
46227
|
+
}
|
|
46228
|
+
],
|
|
46229
|
+
leaf: {
|
|
46230
|
+
props: z26.object({
|
|
46231
|
+
text: z26.string().describe("The text content of the message to be sent.")
|
|
46232
|
+
})
|
|
46233
|
+
}
|
|
46234
|
+
});
|
|
46213
46235
|
AudioComponent = new Autonomous.Component({
|
|
46214
46236
|
type: "leaf",
|
|
46215
46237
|
aliases: [],
|