Skip to content

Commit

Permalink
v13.6.7
Browse files Browse the repository at this point in the history
  • Loading branch information
boehlerlukas committed May 16, 2024
1 parent fa029db commit 7d6a982
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 15 deletions.
2 changes: 1 addition & 1 deletion build/cjs/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/esm/index.mjs

Large diffs are not rendered by default.

12 changes: 3 additions & 9 deletions demo/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,10 @@ Gleap.setFrameUrl("http://0.0.0.0:3001");
Gleap.setApiUrl("http://0.0.0.0:9000");
Gleap.setWSApiUrl("ws://0.0.0.0:9000");

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

Gleap.on("tool-execution", (tool) => {
if (tool.name === "send-money") {
const amount = tool.params.amount;
const contact = tool.params.contact;
// Initiate the transfer here.
}
console.log("Tool execution", JSON.stringify(tool, null, 2));
});

Gleap.setTicketAttribute("notes", "This is a test value.");*/
Gleap.setTicketAttribute("notes", "This is a test value.");

Gleap.initialize("ogWhNhuiZcGWrva5nlDS8l7a78OfaLlV");
4 changes: 2 additions & 2 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ export namespace Gleap {
function setAiTools(tools: {
name: string;
description: string;
response: string;
executionType: 'button' | 'auto';
executionType?: 'button' | 'auto';
response?: string;
parameters: {
name: string;
description: string;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gleap",
"version": "13.6.6",
"version": "13.6.7",
"main": "build/cjs/index.js",
"module": "build/esm/index.mjs",
"exports": {
Expand Down
1 change: 1 addition & 0 deletions published/13.6.7/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion published/latest/index.js

Large diffs are not rendered by default.

0 comments on commit 7d6a982

Please sign in to comment.