@promptbook/remote-server 0.112.0-50 → 0.112.0-52
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 +6 -7
- 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 +6 -7
- 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-51`).
|
|
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-52",
|
|
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-52"
|
|
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-52';
|
|
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(`
|
|
@@ -30654,7 +30652,9 @@
|
|
|
30654
30652
|
* @private helper of `OpenAiAgentKitExecutionTools`
|
|
30655
30653
|
*/
|
|
30656
30654
|
function buildDeepSearchToolInput(rawInput) {
|
|
30657
|
-
const input = rawInput && typeof rawInput === 'object'
|
|
30655
|
+
const input = rawInput && typeof rawInput === 'object'
|
|
30656
|
+
? rawInput
|
|
30657
|
+
: {};
|
|
30658
30658
|
const query = typeof input.query === 'string' ? input.query.trim() : '';
|
|
30659
30659
|
const additionalHints = Object.entries(input)
|
|
30660
30660
|
.filter(([key, value]) => key !== 'query' && value !== undefined && value !== null && String(value).trim() !== '')
|
|
@@ -33095,8 +33095,7 @@
|
|
|
33095
33095
|
console.info('[🤰]', 'Prepared OpenAI Assistant prompt', {
|
|
33096
33096
|
agent: this.title,
|
|
33097
33097
|
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,
|
|
33098
|
+
knowledgeSourcesCount: (_d = (_c = promptWithAgentModelRequirementsForOpenAiAssistantExecutionTools.modelRequirements.knowledgeSources) === null || _c === void 0 ? void 0 : _c.length) !== null && _d !== void 0 ? _d : 0,
|
|
33100
33099
|
});
|
|
33101
33100
|
}
|
|
33102
33101
|
return assistant.callChatModelStream(promptWithAgentModelRequirementsForOpenAiAssistantExecutionTools, options.onProgress, options.streamOptions);
|