@promptbook/browser 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
|
@@ -29,7 +29,7 @@ const BOOK_LANGUAGE_VERSION = '2.0.0';
|
|
|
29
29
|
* @generated
|
|
30
30
|
* @see https://github.com/webgptorg/promptbook
|
|
31
31
|
*/
|
|
32
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.112.0-
|
|
32
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.112.0-53';
|
|
33
33
|
/**
|
|
34
34
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
35
35
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
@@ -12533,9 +12533,7 @@ function createSerpSearchToolFunction(toolName, resultLabel) {
|
|
|
12533
12533
|
const searchEngine = new SerpSearchEngine();
|
|
12534
12534
|
const results = await searchEngine.search(query, searchOptions);
|
|
12535
12535
|
return spaceTrim$1((block) => `
|
|
12536
|
-
${resultLabel} results for "${query}"${Object.keys(searchOptions).length === 0
|
|
12537
|
-
? ''
|
|
12538
|
-
: ` with options ${JSON.stringify(searchOptions)}`}:
|
|
12536
|
+
${resultLabel} results for "${query}"${Object.keys(searchOptions).length === 0 ? '' : ` with options ${JSON.stringify(searchOptions)}`}:
|
|
12539
12537
|
|
|
12540
12538
|
${block(results
|
|
12541
12539
|
.map((result) => spaceTrim$1(`
|
|
@@ -18010,8 +18008,9 @@ function createInheritanceCapability(content) {
|
|
|
18010
18008
|
iconName = 'SquareArrowUpRight';
|
|
18011
18009
|
}
|
|
18012
18010
|
if (isVoidPseudoAgentReference(reference)) {
|
|
18013
|
-
label = VOID_PSEUDO_AGENT_REFERENCE;
|
|
18011
|
+
label = VOID_PSEUDO_AGENT_REFERENCE; // <- {Void} label
|
|
18014
18012
|
iconName = 'ShieldAlert';
|
|
18013
|
+
return null; // <- Note: Do not show `{Void}` in capabilities, it's only used for internal logic
|
|
18015
18014
|
}
|
|
18016
18015
|
return {
|
|
18017
18016
|
type: 'inheritance',
|
|
@@ -27883,7 +27882,9 @@ function createDeepSearchAgentInstructions(toolDescription) {
|
|
|
27883
27882
|
* @private helper of `OpenAiAgentKitExecutionTools`
|
|
27884
27883
|
*/
|
|
27885
27884
|
function buildDeepSearchToolInput(rawInput) {
|
|
27886
|
-
const input = rawInput && typeof rawInput === 'object'
|
|
27885
|
+
const input = rawInput && typeof rawInput === 'object'
|
|
27886
|
+
? rawInput
|
|
27887
|
+
: {};
|
|
27887
27888
|
const query = typeof input.query === 'string' ? input.query.trim() : '';
|
|
27888
27889
|
const additionalHints = Object.entries(input)
|
|
27889
27890
|
.filter(([key, value]) => key !== 'query' && value !== undefined && value !== null && String(value).trim() !== '')
|
|
@@ -30324,8 +30325,7 @@ class AgentLlmExecutionTools {
|
|
|
30324
30325
|
console.info('[🤰]', 'Prepared OpenAI Assistant prompt', {
|
|
30325
30326
|
agent: this.title,
|
|
30326
30327
|
toolNames: (_b = (_a = promptWithAgentModelRequirementsForOpenAiAssistantExecutionTools.modelRequirements.tools) === null || _a === void 0 ? void 0 : _a.map((tool) => tool.name)) !== null && _b !== void 0 ? _b : [],
|
|
30327
|
-
knowledgeSourcesCount: (_d = (_c = promptWithAgentModelRequirementsForOpenAiAssistantExecutionTools.modelRequirements
|
|
30328
|
-
.knowledgeSources) === null || _c === void 0 ? void 0 : _c.length) !== null && _d !== void 0 ? _d : 0,
|
|
30328
|
+
knowledgeSourcesCount: (_d = (_c = promptWithAgentModelRequirementsForOpenAiAssistantExecutionTools.modelRequirements.knowledgeSources) === null || _c === void 0 ? void 0 : _c.length) !== null && _d !== void 0 ? _d : 0,
|
|
30329
30329
|
});
|
|
30330
30330
|
}
|
|
30331
30331
|
return assistant.callChatModelStream(promptWithAgentModelRequirementsForOpenAiAssistantExecutionTools, options.onProgress, options.streamOptions);
|