@aiqa/sdk 2.2.0-develop.1 → 2.2.0-develop.2
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/README.md +6 -0
- package/dist/browser/browser.d.ts +3 -0
- package/dist/browser/browser.js +1 -1
- package/dist/browser/browser.js.map +1 -1
- package/dist/node/node.d.ts +3 -0
- package/dist/node/node.js +1 -1
- package/dist/node/node.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -296,6 +296,8 @@ a timeout, a rejected payload.
|
|
|
296
296
|
question: string;
|
|
297
297
|
expected_answer: any;
|
|
298
298
|
answer_format: { type: "STRING" }
|
|
299
|
+
/** Optional (default: `false`). Use `true` when the fact was collected before the conversation started. It is stored, not verified. */
|
|
300
|
+
prefilled?: boolean
|
|
299
301
|
/**
|
|
300
302
|
* Optional. Your own identifiers for this fact — a form field ID, a
|
|
301
303
|
* section name, anything that lets your UI map the result back to the
|
|
@@ -506,6 +508,8 @@ Rules:
|
|
|
506
508
|
`unmatched`). Show progress from the `FACT_VERIFIED` event, show the final
|
|
507
509
|
result from the Promise.
|
|
508
510
|
- **Handle a `verification_status` you don't recognize as `processing`.**
|
|
511
|
+
- **A fact sent with `prefilled: true` is never verified**, so it gets no
|
|
512
|
+
`verification_status` and no `FACT_VERIFIED` event.
|
|
509
513
|
- **`pending_confirmation_*` is never final.** The answer can still change,
|
|
510
514
|
so don't show it as a decision.
|
|
511
515
|
- **A fact can be revised after `addFact()` has resolved.** If you keep its
|
|
@@ -725,6 +729,8 @@ type ApplicationFactInput = {
|
|
|
725
729
|
// and one of them sets status to "critical_errors".
|
|
726
730
|
critical?: boolean;
|
|
727
731
|
is_skipped?: boolean;
|
|
732
|
+
/** Optional (default: `false`). Use `true` when the fact was collected before the conversation started. It is stored, not verified. */
|
|
733
|
+
prefilled?: boolean;
|
|
728
734
|
/**
|
|
729
735
|
* Optional. Your own identifiers for this fact — a form field ID, a section
|
|
730
736
|
* name, anything that lets your UI map the result back to the right place.
|
|
@@ -170,6 +170,8 @@ type ApplicationFactInput = {
|
|
|
170
170
|
*/
|
|
171
171
|
critical?: boolean;
|
|
172
172
|
is_skipped?: boolean;
|
|
173
|
+
/** Optional (default: `false`). Use `true` when the fact was collected before the conversation started. It is stored, not verified. */
|
|
174
|
+
prefilled?: boolean;
|
|
173
175
|
/**
|
|
174
176
|
* Your own identifiers for this fact — a form field ID, a section name,
|
|
175
177
|
* anything that lets your UI map the result back to the right place.
|
|
@@ -217,6 +219,7 @@ interface AddFactResult {
|
|
|
217
219
|
answer_type?: string;
|
|
218
220
|
agent_answer?: string;
|
|
219
221
|
ai_answer?: string;
|
|
222
|
+
/** `false` for a fact that was never verified, such as a prefilled one. */
|
|
220
223
|
is_valid_answer: boolean;
|
|
221
224
|
question_asked?: boolean;
|
|
222
225
|
/**
|
package/dist/browser/browser.js
CHANGED
|
@@ -3406,7 +3406,7 @@ var compareVersions = (left, right) => {
|
|
|
3406
3406
|
// package.json
|
|
3407
3407
|
var package_default = {
|
|
3408
3408
|
name: "@aiqa/sdk",
|
|
3409
|
-
version: "2.
|
|
3409
|
+
version: "2.2.0-develop.1",
|
|
3410
3410
|
main: "dist/node/node.js",
|
|
3411
3411
|
module: "dist/node/node.js",
|
|
3412
3412
|
types: "dist/node/node.d.ts",
|