@promptbook/browser 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/browser",
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,
@@ -98,7 +98,7 @@
98
98
  "types": "./esm/src/_packages/browser.index.d.ts",
99
99
  "typings": "./esm/src/_packages/browser.index.d.ts",
100
100
  "peerDependencies": {
101
- "@promptbook/core": "0.112.0-50"
101
+ "@promptbook/core": "0.112.0-52"
102
102
  },
103
103
  "dependencies": {
104
104
  "@openai/agents": "0.4.12",
package/umd/index.umd.js CHANGED
@@ -27,7 +27,7 @@
27
27
  * @generated
28
28
  * @see https://github.com/webgptorg/promptbook
29
29
  */
30
- const PROMPTBOOK_ENGINE_VERSION = '0.112.0-50';
30
+ const PROMPTBOOK_ENGINE_VERSION = '0.112.0-52';
31
31
  /**
32
32
  * TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
33
33
  * Note: [💞] Ignore a discrepancy between file name and entity name
@@ -12531,9 +12531,7 @@
12531
12531
  const searchEngine = new SerpSearchEngine();
12532
12532
  const results = await searchEngine.search(query, searchOptions);
12533
12533
  return spacetrim.spaceTrim((block) => `
12534
- ${resultLabel} results for "${query}"${Object.keys(searchOptions).length === 0
12535
- ? ''
12536
- : ` with options ${JSON.stringify(searchOptions)}`}:
12534
+ ${resultLabel} results for "${query}"${Object.keys(searchOptions).length === 0 ? '' : ` with options ${JSON.stringify(searchOptions)}`}:
12537
12535
 
12538
12536
  ${block(results
12539
12537
  .map((result) => spacetrim.spaceTrim(`
@@ -27881,7 +27879,9 @@
27881
27879
  * @private helper of `OpenAiAgentKitExecutionTools`
27882
27880
  */
27883
27881
  function buildDeepSearchToolInput(rawInput) {
27884
- const input = rawInput && typeof rawInput === 'object' ? rawInput : {};
27882
+ const input = rawInput && typeof rawInput === 'object'
27883
+ ? rawInput
27884
+ : {};
27885
27885
  const query = typeof input.query === 'string' ? input.query.trim() : '';
27886
27886
  const additionalHints = Object.entries(input)
27887
27887
  .filter(([key, value]) => key !== 'query' && value !== undefined && value !== null && String(value).trim() !== '')
@@ -30322,8 +30322,7 @@
30322
30322
  console.info('[🤰]', 'Prepared OpenAI Assistant prompt', {
30323
30323
  agent: this.title,
30324
30324
  toolNames: (_b = (_a = promptWithAgentModelRequirementsForOpenAiAssistantExecutionTools.modelRequirements.tools) === null || _a === void 0 ? void 0 : _a.map((tool) => tool.name)) !== null && _b !== void 0 ? _b : [],
30325
- knowledgeSourcesCount: (_d = (_c = promptWithAgentModelRequirementsForOpenAiAssistantExecutionTools.modelRequirements
30326
- .knowledgeSources) === null || _c === void 0 ? void 0 : _c.length) !== null && _d !== void 0 ? _d : 0,
30325
+ knowledgeSourcesCount: (_d = (_c = promptWithAgentModelRequirementsForOpenAiAssistantExecutionTools.modelRequirements.knowledgeSources) === null || _c === void 0 ? void 0 : _c.length) !== null && _d !== void 0 ? _d : 0,
30327
30326
  });
30328
30327
  }
30329
30328
  return assistant.callChatModelStream(promptWithAgentModelRequirementsForOpenAiAssistantExecutionTools, options.onProgress, options.streamOptions);