@botpress/zai 1.0.1-beta.5 → 1.0.1-beta.8
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/{node/adapters → adapters}/botpress-table.js +3 -4
- package/dist/index.js +9 -1743
- package/dist/{node/operations → operations}/check.js +1 -2
- package/dist/{node/operations → operations}/extract.js +1 -2
- package/dist/{node/operations → operations}/filter.js +3 -5
- package/dist/{node/operations → operations}/label.js +4 -8
- package/dist/{node/operations → operations}/rewrite.js +1 -2
- package/dist/{node/operations → operations}/summarize.js +1 -2
- package/dist/{node/operations → operations}/text.js +1 -2
- package/dist/{node/zai.js → zai.js} +2 -3
- package/package.json +10 -8
- package/dist/browser/index.js +0 -4068
- package/dist/node/adapters/adapter.d.js +0 -0
- package/dist/node/adapters/botpress-table.d.js +0 -1
- package/dist/node/adapters/memory.d.js +0 -0
- package/dist/node/index.d.js +0 -9
- package/dist/node/index.js +0 -9
- package/dist/node/models.d.js +0 -0
- package/dist/node/operations/check.d.js +0 -1
- package/dist/node/operations/check.test.d.js +0 -1
- package/dist/node/operations/constants.d.js +0 -0
- package/dist/node/operations/errors.d.js +0 -0
- package/dist/node/operations/extract.d.js +0 -1
- package/dist/node/operations/extract.test.d.js +0 -1
- package/dist/node/operations/filter.d.js +0 -1
- package/dist/node/operations/filter.test.d.js +0 -1
- package/dist/node/operations/label.d.js +0 -1
- package/dist/node/operations/label.test.d.js +0 -1
- package/dist/node/operations/rewrite.d.js +0 -1
- package/dist/node/operations/rewrite.test.d.js +0 -1
- package/dist/node/operations/summarize.d.js +0 -1
- package/dist/node/operations/summarize.test.d.js +0 -1
- package/dist/node/operations/text.d.js +0 -1
- package/dist/node/operations/text.test.d.js +0 -1
- package/dist/node/operations/zai-learn.test.d.js +0 -1
- package/dist/node/operations/zai-retry.test.d.js +0 -1
- package/dist/node/utils.d.js +0 -0
- package/dist/node/zai.d.js +0 -1
- package/src/adapters/adapter.d.ts +0 -27
- package/src/adapters/botpress-table.d.ts +0 -153
- package/src/adapters/memory.d.ts +0 -7
- package/src/index.d.ts +0 -9
- package/src/models.d.ts +0 -351
- package/src/operations/__tests/index.d.ts +0 -20
- package/src/operations/check.d.ts +0 -36
- package/src/operations/check.test.d.ts +0 -1
- package/src/operations/constants.d.ts +0 -2
- package/src/operations/errors.d.ts +0 -5
- package/src/operations/extract.d.ts +0 -20
- package/src/operations/extract.test.d.ts +0 -1
- package/src/operations/filter.d.ts +0 -39
- package/src/operations/filter.test.d.ts +0 -1
- package/src/operations/label.d.ts +0 -79
- package/src/operations/label.test.d.ts +0 -1
- package/src/operations/rewrite.d.ts +0 -34
- package/src/operations/rewrite.test.d.ts +0 -1
- package/src/operations/summarize.d.ts +0 -46
- package/src/operations/summarize.test.d.ts +0 -1
- package/src/operations/text.d.ts +0 -16
- package/src/operations/text.test.d.ts +0 -1
- package/src/operations/zai-learn.test.d.ts +0 -1
- package/src/operations/zai-retry.test.d.ts +0 -1
- package/src/sdk-interfaces/llm/generateContent.d.ts +0 -128
- package/src/sdk-interfaces/llm/listLanguageModels.d.ts +0 -25
- package/src/utils.d.ts +0 -52
- package/src/zai.d.ts +0 -99
- /package/dist/{node/adapters → adapters}/adapter.js +0 -0
- /package/dist/{node/adapters → adapters}/memory.js +0 -0
- /package/dist/{node/models.js → models.js} +0 -0
- /package/dist/{node/operations → operations}/constants.js +0 -0
- /package/dist/{node/operations → operations}/errors.js +0 -0
- /package/dist/{node/utils.js → utils.js} +0 -0
|
@@ -112,7 +112,6 @@ export class TableAdapter extends Adapter {
|
|
|
112
112
|
});
|
|
113
113
|
}
|
|
114
114
|
async assertTableExists() {
|
|
115
|
-
var _a, _b, _c;
|
|
116
115
|
if (this.status !== "ready") {
|
|
117
116
|
return;
|
|
118
117
|
}
|
|
@@ -142,12 +141,12 @@ export class TableAdapter extends Adapter {
|
|
|
142
141
|
issues.push("Table is not frozen");
|
|
143
142
|
}
|
|
144
143
|
for (const [key, value] of Object.entries(CRITICAL_TAGS)) {
|
|
145
|
-
if (
|
|
146
|
-
issues.push(`Tag ${key} is ${
|
|
144
|
+
if (table.tags?.[key] !== value) {
|
|
145
|
+
issues.push(`Tag ${key} is ${table.tags?.[key]} instead of ${value}`);
|
|
147
146
|
}
|
|
148
147
|
}
|
|
149
148
|
for (const key of Object.keys(TableJsonSchema)) {
|
|
150
|
-
const column =
|
|
149
|
+
const column = table.schema?.properties[key];
|
|
151
150
|
const expected = TableJsonSchema[key];
|
|
152
151
|
if (!column) {
|
|
153
152
|
issues.push(`Column ${key} is missing`);
|