@promptbook/node 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.
@@ -15,7 +15,7 @@ export declare const BOOK_LANGUAGE_VERSION: string_semantic_version;
15
15
  export declare const PROMPTBOOK_ENGINE_VERSION: string_promptbook_version;
16
16
  /**
17
17
  * Represents the version string of the Promptbook engine.
18
- * It follows semantic versioning (e.g., `0.112.0-49`).
18
+ * It follows semantic versioning (e.g., `0.112.0-51`).
19
19
  *
20
20
  * @generated
21
21
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@promptbook/node",
3
- "version": "0.112.0-50",
3
+ "version": "0.112.0-52",
4
4
  "description": "Promptbook: Create persistent AI agents that turn your company's scattered knowledge into action",
5
5
  "private": false,
6
6
  "sideEffects": false,
@@ -97,7 +97,7 @@
97
97
  "types": "./esm/src/_packages/node.index.d.ts",
98
98
  "typings": "./esm/src/_packages/node.index.d.ts",
99
99
  "peerDependencies": {
100
- "@promptbook/core": "0.112.0-50"
100
+ "@promptbook/core": "0.112.0-52"
101
101
  },
102
102
  "dependencies": {
103
103
  "@mozilla/readability": "0.6.0",
package/umd/index.umd.js CHANGED
@@ -48,7 +48,7 @@
48
48
  * @generated
49
49
  * @see https://github.com/webgptorg/promptbook
50
50
  */
51
- const PROMPTBOOK_ENGINE_VERSION = '0.112.0-50';
51
+ const PROMPTBOOK_ENGINE_VERSION = '0.112.0-52';
52
52
  /**
53
53
  * TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
54
54
  * Note: [💞] Ignore a discrepancy between file name and entity name
@@ -21407,9 +21407,7 @@
21407
21407
  const searchEngine = new SerpSearchEngine();
21408
21408
  const results = await searchEngine.search(query, searchOptions);
21409
21409
  return _spaceTrim.spaceTrim((block) => `
21410
- ${resultLabel} results for "${query}"${Object.keys(searchOptions).length === 0
21411
- ? ''
21412
- : ` with options ${JSON.stringify(searchOptions)}`}:
21410
+ ${resultLabel} results for "${query}"${Object.keys(searchOptions).length === 0 ? '' : ` with options ${JSON.stringify(searchOptions)}`}:
21413
21411
 
21414
21412
  ${block(results
21415
21413
  .map((result) => _spaceTrim.spaceTrim(`
@@ -33675,7 +33673,9 @@
33675
33673
  * @private helper of `OpenAiAgentKitExecutionTools`
33676
33674
  */
33677
33675
  function buildDeepSearchToolInput(rawInput) {
33678
- const input = rawInput && typeof rawInput === 'object' ? rawInput : {};
33676
+ const input = rawInput && typeof rawInput === 'object'
33677
+ ? rawInput
33678
+ : {};
33679
33679
  const query = typeof input.query === 'string' ? input.query.trim() : '';
33680
33680
  const additionalHints = Object.entries(input)
33681
33681
  .filter(([key, value]) => key !== 'query' && value !== undefined && value !== null && String(value).trim() !== '')
@@ -36116,8 +36116,7 @@
36116
36116
  console.info('[🤰]', 'Prepared OpenAI Assistant prompt', {
36117
36117
  agent: this.title,
36118
36118
  toolNames: (_b = (_a = promptWithAgentModelRequirementsForOpenAiAssistantExecutionTools.modelRequirements.tools) === null || _a === void 0 ? void 0 : _a.map((tool) => tool.name)) !== null && _b !== void 0 ? _b : [],
36119
- knowledgeSourcesCount: (_d = (_c = promptWithAgentModelRequirementsForOpenAiAssistantExecutionTools.modelRequirements
36120
- .knowledgeSources) === null || _c === void 0 ? void 0 : _c.length) !== null && _d !== void 0 ? _d : 0,
36119
+ knowledgeSourcesCount: (_d = (_c = promptWithAgentModelRequirementsForOpenAiAssistantExecutionTools.modelRequirements.knowledgeSources) === null || _c === void 0 ? void 0 : _c.length) !== null && _d !== void 0 ? _d : 0,
36121
36120
  });
36122
36121
  }
36123
36122
  return assistant.callChatModelStream(promptWithAgentModelRequirementsForOpenAiAssistantExecutionTools, options.onProgress, options.streamOptions);