@promptbook/core 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 +1 -1
- 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
|
@@ -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-52';
|
|
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(`
|
|
@@ -33110,7 +33108,9 @@ function createDeepSearchAgentInstructions(toolDescription) {
|
|
|
33110
33108
|
* @private helper of `OpenAiAgentKitExecutionTools`
|
|
33111
33109
|
*/
|
|
33112
33110
|
function buildDeepSearchToolInput(rawInput) {
|
|
33113
|
-
const input = rawInput && typeof rawInput === 'object'
|
|
33111
|
+
const input = rawInput && typeof rawInput === 'object'
|
|
33112
|
+
? rawInput
|
|
33113
|
+
: {};
|
|
33114
33114
|
const query = typeof input.query === 'string' ? input.query.trim() : '';
|
|
33115
33115
|
const additionalHints = Object.entries(input)
|
|
33116
33116
|
.filter(([key, value]) => key !== 'query' && value !== undefined && value !== null && String(value).trim() !== '')
|
|
@@ -35551,8 +35551,7 @@ class AgentLlmExecutionTools {
|
|
|
35551
35551
|
console.info('[🤰]', 'Prepared OpenAI Assistant prompt', {
|
|
35552
35552
|
agent: this.title,
|
|
35553
35553
|
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,
|
|
35554
|
+
knowledgeSourcesCount: (_d = (_c = promptWithAgentModelRequirementsForOpenAiAssistantExecutionTools.modelRequirements.knowledgeSources) === null || _c === void 0 ? void 0 : _c.length) !== null && _d !== void 0 ? _d : 0,
|
|
35556
35555
|
});
|
|
35557
35556
|
}
|
|
35558
35557
|
return assistant.callChatModelStream(promptWithAgentModelRequirementsForOpenAiAssistantExecutionTools, options.onProgress, options.streamOptions);
|