@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/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-53';
|
|
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(`
|
|
@@ -28552,8 +28550,9 @@ function createInheritanceCapability(content) {
|
|
|
28552
28550
|
iconName = 'SquareArrowUpRight';
|
|
28553
28551
|
}
|
|
28554
28552
|
if (isVoidPseudoAgentReference(reference)) {
|
|
28555
|
-
label = VOID_PSEUDO_AGENT_REFERENCE;
|
|
28553
|
+
label = VOID_PSEUDO_AGENT_REFERENCE; // <- {Void} label
|
|
28556
28554
|
iconName = 'ShieldAlert';
|
|
28555
|
+
return null; // <- Note: Do not show `{Void}` in capabilities, it's only used for internal logic
|
|
28557
28556
|
}
|
|
28558
28557
|
return {
|
|
28559
28558
|
type: 'inheritance',
|
|
@@ -33662,7 +33661,9 @@ function createDeepSearchAgentInstructions(toolDescription) {
|
|
|
33662
33661
|
* @private helper of `OpenAiAgentKitExecutionTools`
|
|
33663
33662
|
*/
|
|
33664
33663
|
function buildDeepSearchToolInput(rawInput) {
|
|
33665
|
-
const input = rawInput && typeof rawInput === 'object'
|
|
33664
|
+
const input = rawInput && typeof rawInput === 'object'
|
|
33665
|
+
? rawInput
|
|
33666
|
+
: {};
|
|
33666
33667
|
const query = typeof input.query === 'string' ? input.query.trim() : '';
|
|
33667
33668
|
const additionalHints = Object.entries(input)
|
|
33668
33669
|
.filter(([key, value]) => key !== 'query' && value !== undefined && value !== null && String(value).trim() !== '')
|
|
@@ -36103,8 +36104,7 @@ class AgentLlmExecutionTools {
|
|
|
36103
36104
|
console.info('[🤰]', 'Prepared OpenAI Assistant prompt', {
|
|
36104
36105
|
agent: this.title,
|
|
36105
36106
|
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,
|
|
36107
|
+
knowledgeSourcesCount: (_d = (_c = promptWithAgentModelRequirementsForOpenAiAssistantExecutionTools.modelRequirements.knowledgeSources) === null || _c === void 0 ? void 0 : _c.length) !== null && _d !== void 0 ? _d : 0,
|
|
36108
36108
|
});
|
|
36109
36109
|
}
|
|
36110
36110
|
return assistant.callChatModelStream(promptWithAgentModelRequirementsForOpenAiAssistantExecutionTools, options.onProgress, options.streamOptions);
|