aui-agent-builder 0.4.38 → 0.4.39
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.
|
@@ -19,14 +19,28 @@ export interface Parameter {
|
|
|
19
19
|
description: string;
|
|
20
20
|
/** Data type */
|
|
21
21
|
type: ParameterType;
|
|
22
|
-
/**
|
|
23
|
-
|
|
22
|
+
/**
|
|
23
|
+
* Whether this is an input, output, both, or `'computed'`.
|
|
24
|
+
*
|
|
25
|
+
* `'computed'` parameters are never extracted from the user or fetched from
|
|
26
|
+
* an integration — their value is produced on read by evaluating
|
|
27
|
+
* `computation`. They are treated like an output for extraction purposes.
|
|
28
|
+
*/
|
|
29
|
+
usage: UsageType | 'computed';
|
|
24
30
|
/** Allowed values (for enum types) */
|
|
25
31
|
values?: string[];
|
|
26
32
|
/** Nested parameter codes (for object/list_of_objects types) */
|
|
27
33
|
nested_params?: string[];
|
|
28
34
|
/** Question to ask when collecting this parameter */
|
|
29
35
|
question?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Infix formula evaluated on read; required iff `usage === 'computed'`.
|
|
38
|
+
* References other parameters as `{{param-code}}`, e.g.
|
|
39
|
+
* `"max({{gross-tax}} - {{child-tax-credit}}, 0)"`. Numeric output only in v1.
|
|
40
|
+
* The value resolves against whatever scope reads it (conversation state, or
|
|
41
|
+
* the entity instance whose member is being read) — there is no declared scope.
|
|
42
|
+
*/
|
|
43
|
+
computation?: string;
|
|
30
44
|
}
|
|
31
45
|
/**
|
|
32
46
|
* Parameters file structure (parameters.aui.json)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parameter.d.ts","sourceRoot":"","sources":["../../src/types/parameter.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAErD;;;;;GAKG;AACH,MAAM,WAAW,SAAS;IACxB,4DAA4D;IAC5D,IAAI,EAAE,MAAM,CAAC;IACb,kFAAkF;IAClF,WAAW,EAAE,MAAM,CAAC;IACpB,gBAAgB;IAChB,IAAI,EAAE,aAAa,CAAC;IACpB
|
|
1
|
+
{"version":3,"file":"parameter.d.ts","sourceRoot":"","sources":["../../src/types/parameter.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAErD;;;;;GAKG;AACH,MAAM,WAAW,SAAS;IACxB,4DAA4D;IAC5D,IAAI,EAAE,MAAM,CAAC;IACb,kFAAkF;IAClF,WAAW,EAAE,MAAM,CAAC;IACpB,gBAAgB;IAChB,IAAI,EAAE,aAAa,CAAC;IACpB;;;;;;OAMG;IACH,KAAK,EAAE,SAAS,GAAG,UAAU,CAAC;IAC9B,sCAAsC;IACtC,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,gEAAgE;IAChE,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;IACzB,qDAAqD;IACrD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,SAAS,EAAE,CAAC;CACzB"}
|