@promptbook/node 0.112.0-51 → 0.112.0-53
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/esm/index.es.js +8 -8
- package/esm/index.es.js.map +1 -1
- package/esm/src/version.d.ts +1 -1
- package/package.json +2 -2
- package/umd/index.umd.js +8 -8
- package/umd/index.umd.js.map +1 -1
- package/umd/src/version.d.ts +1 -1
package/esm/src/version.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ export declare const BOOK_LANGUAGE_VERSION: string_semantic_version;
|
|
|
15
15
|
export declare const PROMPTBOOK_ENGINE_VERSION: string_promptbook_version;
|
|
16
16
|
/**
|
|
17
17
|
* Represents the version string of the Promptbook engine.
|
|
18
|
-
* It follows semantic versioning (e.g., `0.112.0-
|
|
18
|
+
* It follows semantic versioning (e.g., `0.112.0-52`).
|
|
19
19
|
*
|
|
20
20
|
* @generated
|
|
21
21
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@promptbook/node",
|
|
3
|
-
"version": "0.112.0-
|
|
3
|
+
"version": "0.112.0-53",
|
|
4
4
|
"description": "Promptbook: Create persistent AI agents that turn your company's scattered knowledge into action",
|
|
5
5
|
"private": false,
|
|
6
6
|
"sideEffects": false,
|
|
@@ -97,7 +97,7 @@
|
|
|
97
97
|
"types": "./esm/src/_packages/node.index.d.ts",
|
|
98
98
|
"typings": "./esm/src/_packages/node.index.d.ts",
|
|
99
99
|
"peerDependencies": {
|
|
100
|
-
"@promptbook/core": "0.112.0-
|
|
100
|
+
"@promptbook/core": "0.112.0-53"
|
|
101
101
|
},
|
|
102
102
|
"dependencies": {
|
|
103
103
|
"@mozilla/readability": "0.6.0",
|
package/umd/index.umd.js
CHANGED
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
* @generated
|
|
49
49
|
* @see https://github.com/webgptorg/promptbook
|
|
50
50
|
*/
|
|
51
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.112.0-
|
|
51
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.112.0-53';
|
|
52
52
|
/**
|
|
53
53
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
54
54
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
@@ -21407,9 +21407,7 @@
|
|
|
21407
21407
|
const searchEngine = new SerpSearchEngine();
|
|
21408
21408
|
const results = await searchEngine.search(query, searchOptions);
|
|
21409
21409
|
return _spaceTrim.spaceTrim((block) => `
|
|
21410
|
-
${resultLabel} results for "${query}"${Object.keys(searchOptions).length === 0
|
|
21411
|
-
? ''
|
|
21412
|
-
: ` with options ${JSON.stringify(searchOptions)}`}:
|
|
21410
|
+
${resultLabel} results for "${query}"${Object.keys(searchOptions).length === 0 ? '' : ` with options ${JSON.stringify(searchOptions)}`}:
|
|
21413
21411
|
|
|
21414
21412
|
${block(results
|
|
21415
21413
|
.map((result) => _spaceTrim.spaceTrim(`
|
|
@@ -28565,8 +28563,9 @@
|
|
|
28565
28563
|
iconName = 'SquareArrowUpRight';
|
|
28566
28564
|
}
|
|
28567
28565
|
if (isVoidPseudoAgentReference(reference)) {
|
|
28568
|
-
label = VOID_PSEUDO_AGENT_REFERENCE;
|
|
28566
|
+
label = VOID_PSEUDO_AGENT_REFERENCE; // <- {Void} label
|
|
28569
28567
|
iconName = 'ShieldAlert';
|
|
28568
|
+
return null; // <- Note: Do not show `{Void}` in capabilities, it's only used for internal logic
|
|
28570
28569
|
}
|
|
28571
28570
|
return {
|
|
28572
28571
|
type: 'inheritance',
|
|
@@ -33675,7 +33674,9 @@
|
|
|
33675
33674
|
* @private helper of `OpenAiAgentKitExecutionTools`
|
|
33676
33675
|
*/
|
|
33677
33676
|
function buildDeepSearchToolInput(rawInput) {
|
|
33678
|
-
const input = rawInput && typeof rawInput === 'object'
|
|
33677
|
+
const input = rawInput && typeof rawInput === 'object'
|
|
33678
|
+
? rawInput
|
|
33679
|
+
: {};
|
|
33679
33680
|
const query = typeof input.query === 'string' ? input.query.trim() : '';
|
|
33680
33681
|
const additionalHints = Object.entries(input)
|
|
33681
33682
|
.filter(([key, value]) => key !== 'query' && value !== undefined && value !== null && String(value).trim() !== '')
|
|
@@ -36116,8 +36117,7 @@
|
|
|
36116
36117
|
console.info('[🤰]', 'Prepared OpenAI Assistant prompt', {
|
|
36117
36118
|
agent: this.title,
|
|
36118
36119
|
toolNames: (_b = (_a = promptWithAgentModelRequirementsForOpenAiAssistantExecutionTools.modelRequirements.tools) === null || _a === void 0 ? void 0 : _a.map((tool) => tool.name)) !== null && _b !== void 0 ? _b : [],
|
|
36119
|
-
knowledgeSourcesCount: (_d = (_c = promptWithAgentModelRequirementsForOpenAiAssistantExecutionTools.modelRequirements
|
|
36120
|
-
.knowledgeSources) === null || _c === void 0 ? void 0 : _c.length) !== null && _d !== void 0 ? _d : 0,
|
|
36120
|
+
knowledgeSourcesCount: (_d = (_c = promptWithAgentModelRequirementsForOpenAiAssistantExecutionTools.modelRequirements.knowledgeSources) === null || _c === void 0 ? void 0 : _c.length) !== null && _d !== void 0 ? _d : 0,
|
|
36121
36121
|
});
|
|
36122
36122
|
}
|
|
36123
36123
|
return assistant.callChatModelStream(promptWithAgentModelRequirementsForOpenAiAssistantExecutionTools, options.onProgress, options.streamOptions);
|