Skip to content

Commit 7d6a982

Browse files
committed
v13.6.7
1 parent fa029db commit 7d6a982

File tree

7 files changed

+10
-15
lines changed

7 files changed

+10
-15
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: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,10 @@ Gleap.setFrameUrl("http://0.0.0.0:3001");
55
Gleap.setApiUrl("http://0.0.0.0:9000");
66
Gleap.setWSApiUrl("ws://0.0.0.0:9000");
77

8-
/*
98
Gleap.setAiTools([{
109
name: 'send-money',
1110
description: 'Send money to a given contact.',
12-
response: 'The transfer got initiated but not completed yet. The user must confirm the transfer in the banking app.',
11+
executionType: 'button',
1312
parameters: [{
1413
name: 'amount',
1514
description: 'The amount of money to send. Must be positive and provided by the user.',
@@ -25,14 +24,9 @@ Gleap.setAiTools([{
2524
}]);
2625

2726
Gleap.on("tool-execution", (tool) => {
28-
if (tool.name === "send-money") {
29-
const amount = tool.params.amount;
30-
const contact = tool.params.contact;
31-
32-
// Initiate the transfer here.
33-
}
27+
console.log("Tool execution", JSON.stringify(tool, null, 2));
3428
});
3529

36-
Gleap.setTicketAttribute("notes", "This is a test value.");*/
30+
Gleap.setTicketAttribute("notes", "This is a test value.");
3731

3832
Gleap.initialize("ogWhNhuiZcGWrva5nlDS8l7a78OfaLlV");

index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ export namespace Gleap {
8282
function setAiTools(tools: {
8383
name: string;
8484
description: string;
85-
response: string;
86-
executionType: 'button' | 'auto';
85+
executionType?: 'button' | 'auto';
86+
response?: string;
8787
parameters: {
8888
name: string;
8989
description: string;

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": "13.6.6",
3+
"version": "13.6.7",
44
"main": "build/cjs/index.js",
55
"module": "build/esm/index.mjs",
66
"exports": {

published/13.6.7/index.js

Lines changed: 1 addition & 0 deletions
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)