@promptbook/remote-server 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/remote-server",
|
|
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,
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
"types": "./esm/src/_packages/remote-server.index.d.ts",
|
|
100
100
|
"typings": "./esm/src/_packages/remote-server.index.d.ts",
|
|
101
101
|
"peerDependencies": {
|
|
102
|
-
"@promptbook/core": "0.112.0-
|
|
102
|
+
"@promptbook/core": "0.112.0-53"
|
|
103
103
|
},
|
|
104
104
|
"dependencies": {
|
|
105
105
|
"@mozilla/readability": "0.6.0",
|
package/umd/index.umd.js
CHANGED
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
* @generated
|
|
51
51
|
* @see https://github.com/webgptorg/promptbook
|
|
52
52
|
*/
|
|
53
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.112.0-
|
|
53
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.112.0-53';
|
|
54
54
|
/**
|
|
55
55
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
56
56
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
@@ -18245,9 +18245,7 @@
|
|
|
18245
18245
|
const searchEngine = new SerpSearchEngine();
|
|
18246
18246
|
const results = await searchEngine.search(query, searchOptions);
|
|
18247
18247
|
return _spaceTrim.spaceTrim((block) => `
|
|
18248
|
-
${resultLabel} results for "${query}"${Object.keys(searchOptions).length === 0
|
|
18249
|
-
? ''
|
|
18250
|
-
: ` with options ${JSON.stringify(searchOptions)}`}:
|
|
18248
|
+
${resultLabel} results for "${query}"${Object.keys(searchOptions).length === 0 ? '' : ` with options ${JSON.stringify(searchOptions)}`}:
|
|
18251
18249
|
|
|
18252
18250
|
${block(results
|
|
18253
18251
|
.map((result) => _spaceTrim.spaceTrim(`
|
|
@@ -25544,8 +25542,9 @@
|
|
|
25544
25542
|
iconName = 'SquareArrowUpRight';
|
|
25545
25543
|
}
|
|
25546
25544
|
if (isVoidPseudoAgentReference(reference)) {
|
|
25547
|
-
label = VOID_PSEUDO_AGENT_REFERENCE;
|
|
25545
|
+
label = VOID_PSEUDO_AGENT_REFERENCE; // <- {Void} label
|
|
25548
25546
|
iconName = 'ShieldAlert';
|
|
25547
|
+
return null; // <- Note: Do not show `{Void}` in capabilities, it's only used for internal logic
|
|
25549
25548
|
}
|
|
25550
25549
|
return {
|
|
25551
25550
|
type: 'inheritance',
|
|
@@ -30654,7 +30653,9 @@
|
|
|
30654
30653
|
* @private helper of `OpenAiAgentKitExecutionTools`
|
|
30655
30654
|
*/
|
|
30656
30655
|
function buildDeepSearchToolInput(rawInput) {
|
|
30657
|
-
const input = rawInput && typeof rawInput === 'object'
|
|
30656
|
+
const input = rawInput && typeof rawInput === 'object'
|
|
30657
|
+
? rawInput
|
|
30658
|
+
: {};
|
|
30658
30659
|
const query = typeof input.query === 'string' ? input.query.trim() : '';
|
|
30659
30660
|
const additionalHints = Object.entries(input)
|
|
30660
30661
|
.filter(([key, value]) => key !== 'query' && value !== undefined && value !== null && String(value).trim() !== '')
|
|
@@ -33095,8 +33096,7 @@
|
|
|
33095
33096
|
console.info('[🤰]', 'Prepared OpenAI Assistant prompt', {
|
|
33096
33097
|
agent: this.title,
|
|
33097
33098
|
toolNames: (_b = (_a = promptWithAgentModelRequirementsForOpenAiAssistantExecutionTools.modelRequirements.tools) === null || _a === void 0 ? void 0 : _a.map((tool) => tool.name)) !== null && _b !== void 0 ? _b : [],
|
|
33098
|
-
knowledgeSourcesCount: (_d = (_c = promptWithAgentModelRequirementsForOpenAiAssistantExecutionTools.modelRequirements
|
|
33099
|
-
.knowledgeSources) === null || _c === void 0 ? void 0 : _c.length) !== null && _d !== void 0 ? _d : 0,
|
|
33099
|
+
knowledgeSourcesCount: (_d = (_c = promptWithAgentModelRequirementsForOpenAiAssistantExecutionTools.modelRequirements.knowledgeSources) === null || _c === void 0 ? void 0 : _c.length) !== null && _d !== void 0 ? _d : 0,
|
|
33100
33100
|
});
|
|
33101
33101
|
}
|
|
33102
33102
|
return assistant.callChatModelStream(promptWithAgentModelRequirementsForOpenAiAssistantExecutionTools, options.onProgress, options.streamOptions);
|