@promptbook/node 0.112.0-51 → 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/index.es.js
CHANGED
|
@@ -35,7 +35,7 @@ const BOOK_LANGUAGE_VERSION = '2.0.0';
|
|
|
35
35
|
* @generated
|
|
36
36
|
* @see https://github.com/webgptorg/promptbook
|
|
37
37
|
*/
|
|
38
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.112.0-
|
|
38
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.112.0-52';
|
|
39
39
|
/**
|
|
40
40
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
41
41
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
@@ -21394,9 +21394,7 @@ function createSerpSearchToolFunction(toolName, resultLabel) {
|
|
|
21394
21394
|
const searchEngine = new SerpSearchEngine();
|
|
21395
21395
|
const results = await searchEngine.search(query, searchOptions);
|
|
21396
21396
|
return spaceTrim$1((block) => `
|
|
21397
|
-
${resultLabel} results for "${query}"${Object.keys(searchOptions).length === 0
|
|
21398
|
-
? ''
|
|
21399
|
-
: ` with options ${JSON.stringify(searchOptions)}`}:
|
|
21397
|
+
${resultLabel} results for "${query}"${Object.keys(searchOptions).length === 0 ? '' : ` with options ${JSON.stringify(searchOptions)}`}:
|
|
21400
21398
|
|
|
21401
21399
|
${block(results
|
|
21402
21400
|
.map((result) => spaceTrim$1(`
|
|
@@ -33662,7 +33660,9 @@ function createDeepSearchAgentInstructions(toolDescription) {
|
|
|
33662
33660
|
* @private helper of `OpenAiAgentKitExecutionTools`
|
|
33663
33661
|
*/
|
|
33664
33662
|
function buildDeepSearchToolInput(rawInput) {
|
|
33665
|
-
const input = rawInput && typeof rawInput === 'object'
|
|
33663
|
+
const input = rawInput && typeof rawInput === 'object'
|
|
33664
|
+
? rawInput
|
|
33665
|
+
: {};
|
|
33666
33666
|
const query = typeof input.query === 'string' ? input.query.trim() : '';
|
|
33667
33667
|
const additionalHints = Object.entries(input)
|
|
33668
33668
|
.filter(([key, value]) => key !== 'query' && value !== undefined && value !== null && String(value).trim() !== '')
|
|
@@ -36103,8 +36103,7 @@ class AgentLlmExecutionTools {
|
|
|
36103
36103
|
console.info('[🤰]', 'Prepared OpenAI Assistant prompt', {
|
|
36104
36104
|
agent: this.title,
|
|
36105
36105
|
toolNames: (_b = (_a = promptWithAgentModelRequirementsForOpenAiAssistantExecutionTools.modelRequirements.tools) === null || _a === void 0 ? void 0 : _a.map((tool) => tool.name)) !== null && _b !== void 0 ? _b : [],
|
|
36106
|
-
knowledgeSourcesCount: (_d = (_c = promptWithAgentModelRequirementsForOpenAiAssistantExecutionTools.modelRequirements
|
|
36107
|
-
.knowledgeSources) === null || _c === void 0 ? void 0 : _c.length) !== null && _d !== void 0 ? _d : 0,
|
|
36106
|
+
knowledgeSourcesCount: (_d = (_c = promptWithAgentModelRequirementsForOpenAiAssistantExecutionTools.modelRequirements.knowledgeSources) === null || _c === void 0 ? void 0 : _c.length) !== null && _d !== void 0 ? _d : 0,
|
|
36108
36107
|
});
|
|
36109
36108
|
}
|
|
36110
36109
|
return assistant.callChatModelStream(promptWithAgentModelRequirementsForOpenAiAssistantExecutionTools, options.onProgress, options.streamOptions);
|