@promptbook/wizard 0.112.0-50 → 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
|
@@ -38,7 +38,7 @@ const BOOK_LANGUAGE_VERSION = '2.0.0';
|
|
|
38
38
|
* @generated
|
|
39
39
|
* @see https://github.com/webgptorg/promptbook
|
|
40
40
|
*/
|
|
41
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.112.0-
|
|
41
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.112.0-52';
|
|
42
42
|
/**
|
|
43
43
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
44
44
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
@@ -25636,9 +25636,7 @@ function createSerpSearchToolFunction(toolName, resultLabel) {
|
|
|
25636
25636
|
const searchEngine = new SerpSearchEngine();
|
|
25637
25637
|
const results = await searchEngine.search(query, searchOptions);
|
|
25638
25638
|
return spaceTrim$1((block) => `
|
|
25639
|
-
${resultLabel} results for "${query}"${Object.keys(searchOptions).length === 0
|
|
25640
|
-
? ''
|
|
25641
|
-
: ` with options ${JSON.stringify(searchOptions)}`}:
|
|
25639
|
+
${resultLabel} results for "${query}"${Object.keys(searchOptions).length === 0 ? '' : ` with options ${JSON.stringify(searchOptions)}`}:
|
|
25642
25640
|
|
|
25643
25641
|
${block(results
|
|
25644
25642
|
.map((result) => spaceTrim$1(`
|
|
@@ -39442,7 +39440,9 @@ function createDeepSearchAgentInstructions(toolDescription) {
|
|
|
39442
39440
|
* @private helper of `OpenAiAgentKitExecutionTools`
|
|
39443
39441
|
*/
|
|
39444
39442
|
function buildDeepSearchToolInput(rawInput) {
|
|
39445
|
-
const input = rawInput && typeof rawInput === 'object'
|
|
39443
|
+
const input = rawInput && typeof rawInput === 'object'
|
|
39444
|
+
? rawInput
|
|
39445
|
+
: {};
|
|
39446
39446
|
const query = typeof input.query === 'string' ? input.query.trim() : '';
|
|
39447
39447
|
const additionalHints = Object.entries(input)
|
|
39448
39448
|
.filter(([key, value]) => key !== 'query' && value !== undefined && value !== null && String(value).trim() !== '')
|
|
@@ -40867,8 +40867,7 @@ class AgentLlmExecutionTools {
|
|
|
40867
40867
|
console.info('[🤰]', 'Prepared OpenAI Assistant prompt', {
|
|
40868
40868
|
agent: this.title,
|
|
40869
40869
|
toolNames: (_b = (_a = promptWithAgentModelRequirementsForOpenAiAssistantExecutionTools.modelRequirements.tools) === null || _a === void 0 ? void 0 : _a.map((tool) => tool.name)) !== null && _b !== void 0 ? _b : [],
|
|
40870
|
-
knowledgeSourcesCount: (_d = (_c = promptWithAgentModelRequirementsForOpenAiAssistantExecutionTools.modelRequirements
|
|
40871
|
-
.knowledgeSources) === null || _c === void 0 ? void 0 : _c.length) !== null && _d !== void 0 ? _d : 0,
|
|
40870
|
+
knowledgeSourcesCount: (_d = (_c = promptWithAgentModelRequirementsForOpenAiAssistantExecutionTools.modelRequirements.knowledgeSources) === null || _c === void 0 ? void 0 : _c.length) !== null && _d !== void 0 ? _d : 0,
|
|
40872
40871
|
});
|
|
40873
40872
|
}
|
|
40874
40873
|
return assistant.callChatModelStream(promptWithAgentModelRequirementsForOpenAiAssistantExecutionTools, options.onProgress, options.streamOptions);
|