@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/index.es.js
CHANGED
|
@@ -40,7 +40,7 @@ const BOOK_LANGUAGE_VERSION = '2.0.0';
|
|
|
40
40
|
* @generated
|
|
41
41
|
* @see https://github.com/webgptorg/promptbook
|
|
42
42
|
*/
|
|
43
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.112.0-
|
|
43
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.112.0-53';
|
|
44
44
|
/**
|
|
45
45
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
46
46
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
@@ -18235,9 +18235,7 @@ function createSerpSearchToolFunction(toolName, resultLabel) {
|
|
|
18235
18235
|
const searchEngine = new SerpSearchEngine();
|
|
18236
18236
|
const results = await searchEngine.search(query, searchOptions);
|
|
18237
18237
|
return spaceTrim$1((block) => `
|
|
18238
|
-
${resultLabel} results for "${query}"${Object.keys(searchOptions).length === 0
|
|
18239
|
-
? ''
|
|
18240
|
-
: ` with options ${JSON.stringify(searchOptions)}`}:
|
|
18238
|
+
${resultLabel} results for "${query}"${Object.keys(searchOptions).length === 0 ? '' : ` with options ${JSON.stringify(searchOptions)}`}:
|
|
18241
18239
|
|
|
18242
18240
|
${block(results
|
|
18243
18241
|
.map((result) => spaceTrim$1(`
|
|
@@ -25534,8 +25532,9 @@ function createInheritanceCapability(content) {
|
|
|
25534
25532
|
iconName = 'SquareArrowUpRight';
|
|
25535
25533
|
}
|
|
25536
25534
|
if (isVoidPseudoAgentReference(reference)) {
|
|
25537
|
-
label = VOID_PSEUDO_AGENT_REFERENCE;
|
|
25535
|
+
label = VOID_PSEUDO_AGENT_REFERENCE; // <- {Void} label
|
|
25538
25536
|
iconName = 'ShieldAlert';
|
|
25537
|
+
return null; // <- Note: Do not show `{Void}` in capabilities, it's only used for internal logic
|
|
25539
25538
|
}
|
|
25540
25539
|
return {
|
|
25541
25540
|
type: 'inheritance',
|
|
@@ -30644,7 +30643,9 @@ function createDeepSearchAgentInstructions(toolDescription) {
|
|
|
30644
30643
|
* @private helper of `OpenAiAgentKitExecutionTools`
|
|
30645
30644
|
*/
|
|
30646
30645
|
function buildDeepSearchToolInput(rawInput) {
|
|
30647
|
-
const input = rawInput && typeof rawInput === 'object'
|
|
30646
|
+
const input = rawInput && typeof rawInput === 'object'
|
|
30647
|
+
? rawInput
|
|
30648
|
+
: {};
|
|
30648
30649
|
const query = typeof input.query === 'string' ? input.query.trim() : '';
|
|
30649
30650
|
const additionalHints = Object.entries(input)
|
|
30650
30651
|
.filter(([key, value]) => key !== 'query' && value !== undefined && value !== null && String(value).trim() !== '')
|
|
@@ -33085,8 +33086,7 @@ class AgentLlmExecutionTools {
|
|
|
33085
33086
|
console.info('[🤰]', 'Prepared OpenAI Assistant prompt', {
|
|
33086
33087
|
agent: this.title,
|
|
33087
33088
|
toolNames: (_b = (_a = promptWithAgentModelRequirementsForOpenAiAssistantExecutionTools.modelRequirements.tools) === null || _a === void 0 ? void 0 : _a.map((tool) => tool.name)) !== null && _b !== void 0 ? _b : [],
|
|
33088
|
-
knowledgeSourcesCount: (_d = (_c = promptWithAgentModelRequirementsForOpenAiAssistantExecutionTools.modelRequirements
|
|
33089
|
-
.knowledgeSources) === null || _c === void 0 ? void 0 : _c.length) !== null && _d !== void 0 ? _d : 0,
|
|
33089
|
+
knowledgeSourcesCount: (_d = (_c = promptWithAgentModelRequirementsForOpenAiAssistantExecutionTools.modelRequirements.knowledgeSources) === null || _c === void 0 ? void 0 : _c.length) !== null && _d !== void 0 ? _d : 0,
|
|
33090
33090
|
});
|
|
33091
33091
|
}
|
|
33092
33092
|
return assistant.callChatModelStream(promptWithAgentModelRequirementsForOpenAiAssistantExecutionTools, options.onProgress, options.streamOptions);
|