Skip to content

Commit 10193fe

Browse files
committed
v14.0.1
1 parent 8bf001d commit 10193fe

File tree

6 files changed

+6
-50
lines changed

6 files changed

+6
-50
lines changed

build/cjs/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/esm/index.mjs

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

demo/main.js

Lines changed: 1 addition & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -4,48 +4,4 @@ Gleap.setFrameUrl("http://0.0.0.0:3001");
44
Gleap.setApiUrl("http://0.0.0.0:9000");
55
Gleap.setWSApiUrl("ws://0.0.0.0:9000");
66

7-
Gleap.initialize("ogWhNhuiZcGWrva5nlDS8l7a78OfaLlV");
8-
9-
const transactionTool = {
10-
// Name the tool. Only lowecase letters and - as well as _ are allowed.
11-
name: "send-money",
12-
// Describe the tool. This can also contain further instructions for the LLM.
13-
description: "Send money to a given contact.",
14-
// Let the LLM know what the tool is doing. This will allow Kai to update the customer accordingly.
15-
response:
16-
"The transfer got initiated but not completed yet. The user must confirm the transfer in the banking app.",
17-
// Set the execution type to auto or button.
18-
executionType: "auto",
19-
// Specify the parameters (it's also possible to pass an empty array)
20-
parameters: [
21-
{
22-
name: "amount",
23-
description:
24-
"The amount of money to send. Must be positive and provided by the user.",
25-
type: "number",
26-
required: true,
27-
},
28-
{
29-
name: "contact",
30-
description: "The contact to send money to.",
31-
type: "string",
32-
enum: ["Alice", "Bob"], // Optional
33-
required: true,
34-
},
35-
],
36-
};
37-
38-
Gleap.on("tool-execution", (tool) => {
39-
console.log(tool);
40-
});
41-
42-
// Add all available tools to the array.
43-
const tools = [transactionTool];
44-
45-
// Set the AI tools.
46-
Gleap.setAiTools(tools);
47-
48-
Gleap.on("outbound-sent", (data) => {
49-
const { outboundId, outbound, formData } = data;
50-
console.log(data);
51-
});
7+
Gleap.initialize("44iWQrD3YuDxqj6aw5HqsKyuaas28ZKu");

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "gleap",
3-
"version": "14.0.0",
3+
"version": "14.0.1",
44
"main": "build/cjs/index.js",
55
"module": "build/esm/index.mjs",
66
"exports": {

published/14.0.0/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

published/latest/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)