@celljs/ai-core 3.7.4 → 3.7.5

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.
@@ -13,6 +13,24 @@ export interface ChatOptions extends ModelOptions {
13
13
  temperature?: number;
14
14
  topK?: number;
15
15
  topP?: number;
16
+ prediction?: Prediction | null;
17
+ }
18
+ export interface Prediction {
19
+ /**
20
+ * The type of the predicted content you want to provide. This type is currently
21
+ * always `content`.
22
+ */
23
+ type: 'content';
24
+ /**
25
+ * The content that should be matched when generating a model response. If
26
+ * generated tokens would match this content, the entire model response can be
27
+ * returned much more quickly.
28
+ */
29
+ content: PredictionContent[] | string;
30
+ }
31
+ export interface PredictionContent {
32
+ text: string;
33
+ type: 'text';
16
34
  }
17
35
  export interface Prompt extends ModelRequest<Message[]> {
18
36
  readonly contents: string;
@@ -1 +1 @@
1
- {"version":3,"file":"prompt-protocol.d.ts","sourceRoot":"","sources":["../../../../src/common/chat/prompt/prompt-protocol.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AACxE,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAEnE,eAAO,MAAM,cAAc,eAA2B,CAAC;AAEvD;;GAEG;AACH,MAAM,WAAW,WAAY,SAAQ,YAAY;IAC7C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;IACzB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,MAAO,SAAQ,YAAY,CAAC,OAAO,EAAE,CAAC;IACnD,QAAQ,CAAC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OAGG;IACH,IAAI,EAAE,SAAS,CAAC;IAEhB;;;;OAIG;IACH,OAAO,EAAE,iBAAiB,EAAE,GAAG,MAAM,CAAC;CACzC;AAED,MAAM,WAAW,iBAAiB;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,MAAO,SAAQ,YAAY,CAAC,OAAO,EAAE,CAAC;IACnD,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,OAAO,EAAE,WAAW,CAAC;IAC9B,IAAI,IAAI,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,qBAAqB;IAClC,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAChC,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,WAAW,CAAC,EAAE,WAAW,CAAC;CAC7B;AAED,MAAM,WAAW,cAAc;IAC3B,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,qBAAqB,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IACvE,MAAM,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,EAAE,EAAE,GAAG,CAAC,EAAE,qBAAqB,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;CACtF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@celljs/ai-core",
3
- "version": "3.7.4",
3
+ "version": "3.7.5",
4
4
  "description": "Core domain for AI programming",
5
5
  "keywords": [
6
6
  "cell-component"
@@ -29,16 +29,16 @@
29
29
  "watch": "cell-component watch"
30
30
  },
31
31
  "dependencies": {
32
- "@celljs/core": "3.7.4",
33
- "@celljs/http": "3.7.4",
32
+ "@celljs/core": "3.7.5",
33
+ "@celljs/http": "3.7.5",
34
34
  "rxjs": "^6.6.0",
35
35
  "tslib": "^2.8.0"
36
36
  },
37
37
  "devDependencies": {
38
- "@celljs/component": "3.7.4"
38
+ "@celljs/component": "3.7.5"
39
39
  },
40
40
  "publishConfig": {
41
41
  "access": "public"
42
42
  },
43
- "gitHead": "2e48eba8b8a76312238fcaef4287e5ce64779996"
43
+ "gitHead": "c2f83ad337eab5c74808635e10b86282dd752972"
44
44
  }
@@ -15,6 +15,27 @@ export interface ChatOptions extends ModelOptions {
15
15
  temperature?: number;
16
16
  topK?: number;
17
17
  topP?: number;
18
+ prediction?: Prediction | null;
19
+ }
20
+
21
+ export interface Prediction {
22
+ /**
23
+ * The type of the predicted content you want to provide. This type is currently
24
+ * always `content`.
25
+ */
26
+ type: 'content';
27
+
28
+ /**
29
+ * The content that should be matched when generating a model response. If
30
+ * generated tokens would match this content, the entire model response can be
31
+ * returned much more quickly.
32
+ */
33
+ content: PredictionContent[] | string;
34
+ }
35
+
36
+ export interface PredictionContent {
37
+ text: string;
38
+ type: 'text';
18
39
  }
19
40
 
20
41
  export interface Prompt extends ModelRequest<Message[]> {