@promptbook/core 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 +1 -1
- 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
|
@@ -28,7 +28,7 @@ const BOOK_LANGUAGE_VERSION = '2.0.0';
|
|
|
28
28
|
* @generated
|
|
29
29
|
* @see https://github.com/webgptorg/promptbook
|
|
30
30
|
*/
|
|
31
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.112.0-
|
|
31
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.112.0-53';
|
|
32
32
|
/**
|
|
33
33
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
34
34
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
@@ -17462,9 +17462,7 @@ function createSerpSearchToolFunction(toolName, resultLabel) {
|
|
|
17462
17462
|
const searchEngine = new SerpSearchEngine();
|
|
17463
17463
|
const results = await searchEngine.search(query, searchOptions);
|
|
17464
17464
|
return spaceTrim$1((block) => `
|
|
17465
|
-
${resultLabel} results for "${query}"${Object.keys(searchOptions).length === 0
|
|
17466
|
-
? ''
|
|
17467
|
-
: ` with options ${JSON.stringify(searchOptions)}`}:
|
|
17465
|
+
${resultLabel} results for "${query}"${Object.keys(searchOptions).length === 0 ? '' : ` with options ${JSON.stringify(searchOptions)}`}:
|
|
17468
17466
|
|
|
17469
17467
|
${block(results
|
|
17470
17468
|
.map((result) => spaceTrim$1(`
|
|
@@ -23196,8 +23194,9 @@ function createInheritanceCapability(content) {
|
|
|
23196
23194
|
iconName = 'SquareArrowUpRight';
|
|
23197
23195
|
}
|
|
23198
23196
|
if (isVoidPseudoAgentReference(reference)) {
|
|
23199
|
-
label = VOID_PSEUDO_AGENT_REFERENCE;
|
|
23197
|
+
label = VOID_PSEUDO_AGENT_REFERENCE; // <- {Void} label
|
|
23200
23198
|
iconName = 'ShieldAlert';
|
|
23199
|
+
return null; // <- Note: Do not show `{Void}` in capabilities, it's only used for internal logic
|
|
23201
23200
|
}
|
|
23202
23201
|
return {
|
|
23203
23202
|
type: 'inheritance',
|
|
@@ -33110,7 +33109,9 @@ function createDeepSearchAgentInstructions(toolDescription) {
|
|
|
33110
33109
|
* @private helper of `OpenAiAgentKitExecutionTools`
|
|
33111
33110
|
*/
|
|
33112
33111
|
function buildDeepSearchToolInput(rawInput) {
|
|
33113
|
-
const input = rawInput && typeof rawInput === 'object'
|
|
33112
|
+
const input = rawInput && typeof rawInput === 'object'
|
|
33113
|
+
? rawInput
|
|
33114
|
+
: {};
|
|
33114
33115
|
const query = typeof input.query === 'string' ? input.query.trim() : '';
|
|
33115
33116
|
const additionalHints = Object.entries(input)
|
|
33116
33117
|
.filter(([key, value]) => key !== 'query' && value !== undefined && value !== null && String(value).trim() !== '')
|
|
@@ -35551,8 +35552,7 @@ class AgentLlmExecutionTools {
|
|
|
35551
35552
|
console.info('[🤰]', 'Prepared OpenAI Assistant prompt', {
|
|
35552
35553
|
agent: this.title,
|
|
35553
35554
|
toolNames: (_b = (_a = promptWithAgentModelRequirementsForOpenAiAssistantExecutionTools.modelRequirements.tools) === null || _a === void 0 ? void 0 : _a.map((tool) => tool.name)) !== null && _b !== void 0 ? _b : [],
|
|
35554
|
-
knowledgeSourcesCount: (_d = (_c = promptWithAgentModelRequirementsForOpenAiAssistantExecutionTools.modelRequirements
|
|
35555
|
-
.knowledgeSources) === null || _c === void 0 ? void 0 : _c.length) !== null && _d !== void 0 ? _d : 0,
|
|
35555
|
+
knowledgeSourcesCount: (_d = (_c = promptWithAgentModelRequirementsForOpenAiAssistantExecutionTools.modelRequirements.knowledgeSources) === null || _c === void 0 ? void 0 : _c.length) !== null && _d !== void 0 ? _d : 0,
|
|
35556
35556
|
});
|
|
35557
35557
|
}
|
|
35558
35558
|
return assistant.callChatModelStream(promptWithAgentModelRequirementsForOpenAiAssistantExecutionTools, options.onProgress, options.streamOptions);
|