@dudousxd/nestjs-agent 1.4.0 → 1.5.0
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/durable/index.cjs +18 -3
- package/dist/durable/index.cjs.map +1 -1
- package/dist/durable/index.d.cts +7 -0
- package/dist/durable/index.d.ts +7 -0
- package/dist/durable/index.js +23 -8
- package/dist/durable/index.js.map +1 -1
- package/dist/index.cjs +3 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.d.cts
CHANGED
|
@@ -368,6 +368,11 @@ interface AiToolOptions {
|
|
|
368
368
|
* ```
|
|
369
369
|
*/
|
|
370
370
|
presentation?: ToolPresentation;
|
|
371
|
+
/**
|
|
372
|
+
* The turn ends once a call to this tool succeeds — no model call afterwards to narrate what the
|
|
373
|
+
* tool already showed (a composed UI answer, a hand-off). See `ToolSpec.terminal`.
|
|
374
|
+
*/
|
|
375
|
+
terminal?: boolean;
|
|
371
376
|
}
|
|
372
377
|
/**
|
|
373
378
|
* Marks a provider class as an AI tool. The class must implement `execute(input, ctx)`.
|
package/dist/index.d.ts
CHANGED
|
@@ -368,6 +368,11 @@ interface AiToolOptions {
|
|
|
368
368
|
* ```
|
|
369
369
|
*/
|
|
370
370
|
presentation?: ToolPresentation;
|
|
371
|
+
/**
|
|
372
|
+
* The turn ends once a call to this tool succeeds — no model call afterwards to narrate what the
|
|
373
|
+
* tool already showed (a composed UI answer, a hand-off). See `ToolSpec.terminal`.
|
|
374
|
+
*/
|
|
375
|
+
terminal?: boolean;
|
|
371
376
|
}
|
|
372
377
|
/**
|
|
373
378
|
* Marks a provider class as an AI tool. The class must implement `execute(input, ctx)`.
|
package/dist/index.js
CHANGED
|
@@ -2407,6 +2407,9 @@ var AiToolDiscoveryService = class _AiToolDiscoveryService {
|
|
|
2407
2407
|
} : {},
|
|
2408
2408
|
...meta.presentation !== void 0 ? {
|
|
2409
2409
|
presentation: meta.presentation
|
|
2410
|
+
} : {},
|
|
2411
|
+
...meta.terminal === true ? {
|
|
2412
|
+
terminal: true
|
|
2410
2413
|
} : {}
|
|
2411
2414
|
}, {
|
|
2412
2415
|
execute: /* @__PURE__ */ __name((input, ctx) => instance.execute(input, ctx), "execute"),
|