@loopstack/custom-tool-example-module
Advanced tools
@@ -32,5 +32,5 @@ "use strict"; | ||
| }); | ||
| const c1 = await this.counterTool.call({}); | ||
| const c2 = await this.counterTool.call({}); | ||
| const c3 = await this.counterTool.call({}); | ||
| const c1 = await this.counterTool.call(); | ||
| const c2 = await this.counterTool.call(); | ||
| const c3 = await this.counterTool.call(); | ||
| await this.repository.save(common_1.MessageDocument, { | ||
@@ -44,5 +44,5 @@ role: 'assistant', | ||
| async continueCount() { | ||
| const c4 = await this.counterTool.call({}); | ||
| const c5 = await this.counterTool.call({}); | ||
| const c6 = await this.counterTool.call({}); | ||
| const c4 = await this.counterTool.call(); | ||
| const c5 = await this.counterTool.call(); | ||
| const c6 = await this.counterTool.call(); | ||
| await this.repository.save(common_1.MessageDocument, { | ||
@@ -49,0 +49,0 @@ role: 'assistant', |
@@ -1,1 +0,1 @@ | ||
| {"version":3,"file":"custom-tool-example.workflow.js","sourceRoot":"","sources":["../../src/workflows/custom-tool-example.workflow.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6BAAwB;AACxB,8CAAoH;AACpH,oCAAuC;AACvC,oCAAuC;AAWhC,IAAM,yBAAyB,GAA/B,MAAM,yBAA0B,SAAQ,qBAAsC;IAC7D,WAAW,CAAc;IACzB,QAAQ,CAAc;IAE5C,KAAK,CAAU;IAGT,AAAN,KAAK,CAAC,SAAS,CAAC,IAA8B;QAE5C,MAAM,UAAU,GAAG,MAAM,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,IAAI,CAAC,CAAC,EAAE,CAAC,EAAE,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC;QACtE,IAAI,CAAC,KAAK,GAAG,UAAU,CAAC,IAAc,CAAC;QAGvC,MAAM,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,wBAAe,EAAE;YAC1C,IAAI,EAAE,WAAW;YACjB,OAAO,EAAE,6BAA6B,IAAI,CAAC,CAAC,MAAM,IAAI,CAAC,CAAC,MA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IAAI,KAAK,EAAE,CAAC,IAAI,KAAK,EAAE,CAAC,IAAI,iDAAiD;SACnH,CAAC,CAAC;QAEH,OAAO,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,CAAC;IAC/B,CAAC;IAEO,GAAG,CAAC,CAAS,EAAE,CAAS;QAC9B,OAAO,CAAC,GAAG,CAAC,CAAC;IACf,CAAC;CACF,CAAA;AA1DY,8DAAyB;AACd;IAArB,IAAA,mBAAU,GAAE;8BAAsB,mBAAW;8DAAC;AACzB;IAArB,IAAA,mBAAU,GAAE;8BAAmB,mBAAW;2DAAC;AAKtC;IADL,IAAA,gBAAO,EAAC,EAAE,EAAE,EAAE,kBAAkB,EAAE,CAAC;;;;0DA2BnC;AAGK;IADL,IAAA,mBAAU,EAAC,EAAE,IAAI,EAAE,kBAAkB,EAAE,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;;;6DAGnE;AAGK;IADL,IAAA,cAAK,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;;;8DAa1B;oCArDU,yBAAyB;IATrC,IAAA,iBAAQ,EAAC;QACR,QAAQ,EAAE,SAAS,GAAG,8BAA8B;QACpD,MAAM,EAAE,OAAC;aACN,MAAM,CAAC;YACN,CAAC,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC;YACxB,CAAC,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC;SACzB,CAAC;aACD,MAAM,EAAE;KACZ,CAAC;GACW,yBAAyB,CA0DrC"} | ||
| {"version":3,"file":"custom-tool-example.workflow.js","sourceRoot":"","sources":["../../src/workflows/custom-tool-example.workflow.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6BAAwB;AACxB,8CAAoH;AACpH,oCAAuC;AACvC,oCAAuC;AAWhC,IAAM,yBAAyB,GAA/B,MAAM,yBAA0B,SAAQ,qBAAsC;IAC7D,WAAW,CAAc;I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B,CAAC,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC;SACzB,CAAC;aACD,MAAM,EAAE;KACZ,CAAC;GACW,yBAAyB,CA0DrC"} |
+2
-2
@@ -12,3 +12,3 @@ { | ||
| ], | ||
| "version": "0.21.6", | ||
| "version": "0.21.7", | ||
| "license": "MIT", | ||
@@ -34,3 +34,3 @@ "author": { | ||
| "dependencies": { | ||
| "@loopstack/common": "^0.28.0", | ||
| "@loopstack/common": "^0.29.0", | ||
| "@nestjs/common": "^11.1.19", | ||
@@ -37,0 +37,0 @@ "zod": "^4.3.6" |
+12
-12
@@ -153,5 +153,5 @@ # @loopstack/custom-tool-example-module | ||
| ```typescript | ||
| const c1 = await this.counterTool.call({}); | ||
| const c2 = await this.counterTool.call({}); | ||
| const c3 = await this.counterTool.call({}); | ||
| const c1 = await this.counterTool.call(); | ||
| const c2 = await this.counterTool.call(); | ||
| const c3 = await this.counterTool.call(); | ||
@@ -182,5 +182,5 @@ await this.repository.save(MessageDocument, { | ||
| async continueCount(): Promise<{ total: number | undefined }> { | ||
| const c4 = await this.counterTool.call({}); | ||
| const c5 = await this.counterTool.call({}); | ||
| const c6 = await this.counterTool.call({}); | ||
| const c4 = await this.counterTool.call(); | ||
| const c5 = await this.counterTool.call(); | ||
| const c6 = await this.counterTool.call(); | ||
@@ -247,5 +247,5 @@ await this.repository.save(MessageDocument, { | ||
| const c1 = await this.counterTool.call({}); | ||
| const c2 = await this.counterTool.call({}); | ||
| const c3 = await this.counterTool.call({}); | ||
| const c1 = await this.counterTool.call(); | ||
| const c2 = await this.counterTool.call(); | ||
| const c3 = await this.counterTool.call(); | ||
@@ -263,5 +263,5 @@ await this.repository.save(MessageDocument, { | ||
| async continueCount(): Promise<{ total: number | undefined }> { | ||
| const c4 = await this.counterTool.call({}); | ||
| const c5 = await this.counterTool.call({}); | ||
| const c6 = await this.counterTool.call({}); | ||
| const c4 = await this.counterTool.call(); | ||
| const c5 = await this.counterTool.call(); | ||
| const c6 = await this.counterTool.call(); | ||
@@ -268,0 +268,0 @@ await this.repository.save(MessageDocument, { |
@@ -40,5 +40,5 @@ import { z } from 'zod'; | ||
| // Count before pause — should be 1, 2, 3 | ||
| const c1 = await this.counterTool.call({}); | ||
| const c2 = await this.counterTool.call({}); | ||
| const c3 = await this.counterTool.call({}); | ||
| const c1 = await this.counterTool.call(); | ||
| const c2 = await this.counterTool.call(); | ||
| const c3 = await this.counterTool.call(); | ||
@@ -59,5 +59,5 @@ await this.repository.save(MessageDocument, { | ||
| // Count after resume — should continue: 4, 5, 6 | ||
| const c4 = await this.counterTool.call({}); | ||
| const c5 = await this.counterTool.call({}); | ||
| const c6 = await this.counterTool.call({}); | ||
| const c4 = await this.counterTool.call(); | ||
| const c5 = await this.counterTool.call(); | ||
| const c6 = await this.counterTool.call(); | ||
@@ -64,0 +64,0 @@ await this.repository.save(MessageDocument, { |
44206
-0.24%+ Added
+ Added
- Removed
- Removed
Updated