@promptbook/core 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 +1 -1
- 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
package/umd/index.umd.js
CHANGED
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
* @generated
|
|
28
28
|
* @see https://github.com/webgptorg/promptbook
|
|
29
29
|
*/
|
|
30
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.112.0-
|
|
30
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.112.0-52';
|
|
31
31
|
/**
|
|
32
32
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
33
33
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
@@ -17461,9 +17461,7 @@
|
|
|
17461
17461
|
const searchEngine = new SerpSearchEngine();
|
|
17462
17462
|
const results = await searchEngine.search(query, searchOptions);
|
|
17463
17463
|
return spacetrim.spaceTrim((block) => `
|
|
17464
|
-
${resultLabel} results for "${query}"${Object.keys(searchOptions).length === 0
|
|
17465
|
-
? ''
|
|
17466
|
-
: ` with options ${JSON.stringify(searchOptions)}`}:
|
|
17464
|
+
${resultLabel} results for "${query}"${Object.keys(searchOptions).length === 0 ? '' : ` with options ${JSON.stringify(searchOptions)}`}:
|
|
17467
17465
|
|
|
17468
17466
|
${block(results
|
|
17469
17467
|
.map((result) => spacetrim.spaceTrim(`
|
|
@@ -33109,7 +33107,9 @@
|
|
|
33109
33107
|
* @private helper of `OpenAiAgentKitExecutionTools`
|
|
33110
33108
|
*/
|
|
33111
33109
|
function buildDeepSearchToolInput(rawInput) {
|
|
33112
|
-
const input = rawInput && typeof rawInput === 'object'
|
|
33110
|
+
const input = rawInput && typeof rawInput === 'object'
|
|
33111
|
+
? rawInput
|
|
33112
|
+
: {};
|
|
33113
33113
|
const query = typeof input.query === 'string' ? input.query.trim() : '';
|
|
33114
33114
|
const additionalHints = Object.entries(input)
|
|
33115
33115
|
.filter(([key, value]) => key !== 'query' && value !== undefined && value !== null && String(value).trim() !== '')
|
|
@@ -35550,8 +35550,7 @@
|
|
|
35550
35550
|
console.info('[🤰]', 'Prepared OpenAI Assistant prompt', {
|
|
35551
35551
|
agent: this.title,
|
|
35552
35552
|
toolNames: (_b = (_a = promptWithAgentModelRequirementsForOpenAiAssistantExecutionTools.modelRequirements.tools) === null || _a === void 0 ? void 0 : _a.map((tool) => tool.name)) !== null && _b !== void 0 ? _b : [],
|
|
35553
|
-
knowledgeSourcesCount: (_d = (_c = promptWithAgentModelRequirementsForOpenAiAssistantExecutionTools.modelRequirements
|
|
35554
|
-
.knowledgeSources) === null || _c === void 0 ? void 0 : _c.length) !== null && _d !== void 0 ? _d : 0,
|
|
35553
|
+
knowledgeSourcesCount: (_d = (_c = promptWithAgentModelRequirementsForOpenAiAssistantExecutionTools.modelRequirements.knowledgeSources) === null || _c === void 0 ? void 0 : _c.length) !== null && _d !== void 0 ? _d : 0,
|
|
35555
35554
|
});
|
|
35556
35555
|
}
|
|
35557
35556
|
return assistant.callChatModelStream(promptWithAgentModelRequirementsForOpenAiAssistantExecutionTools, options.onProgress, options.streamOptions);
|