@promptbook/remote-server 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 CHANGED
@@ -40,7 +40,7 @@ const BOOK_LANGUAGE_VERSION = '2.0.0';
40
40
  * @generated
41
41
  * @see https://github.com/webgptorg/promptbook
42
42
  */
43
- const PROMPTBOOK_ENGINE_VERSION = '0.112.0-50';
43
+ const PROMPTBOOK_ENGINE_VERSION = '0.112.0-52';
44
44
  /**
45
45
  * TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
46
46
  * Note: [💞] Ignore a discrepancy between file name and entity name
@@ -18235,9 +18235,7 @@ function createSerpSearchToolFunction(toolName, resultLabel) {
18235
18235
  const searchEngine = new SerpSearchEngine();
18236
18236
  const results = await searchEngine.search(query, searchOptions);
18237
18237
  return spaceTrim$1((block) => `
18238
- ${resultLabel} results for "${query}"${Object.keys(searchOptions).length === 0
18239
- ? ''
18240
- : ` with options ${JSON.stringify(searchOptions)}`}:
18238
+ ${resultLabel} results for "${query}"${Object.keys(searchOptions).length === 0 ? '' : ` with options ${JSON.stringify(searchOptions)}`}:
18241
18239
 
18242
18240
  ${block(results
18243
18241
  .map((result) => spaceTrim$1(`
@@ -30644,7 +30642,9 @@ function createDeepSearchAgentInstructions(toolDescription) {
30644
30642
  * @private helper of `OpenAiAgentKitExecutionTools`
30645
30643
  */
30646
30644
  function buildDeepSearchToolInput(rawInput) {
30647
- const input = rawInput && typeof rawInput === 'object' ? rawInput : {};
30645
+ const input = rawInput && typeof rawInput === 'object'
30646
+ ? rawInput
30647
+ : {};
30648
30648
  const query = typeof input.query === 'string' ? input.query.trim() : '';
30649
30649
  const additionalHints = Object.entries(input)
30650
30650
  .filter(([key, value]) => key !== 'query' && value !== undefined && value !== null && String(value).trim() !== '')
@@ -33085,8 +33085,7 @@ class AgentLlmExecutionTools {
33085
33085
  console.info('[🤰]', 'Prepared OpenAI Assistant prompt', {
33086
33086
  agent: this.title,
33087
33087
  toolNames: (_b = (_a = promptWithAgentModelRequirementsForOpenAiAssistantExecutionTools.modelRequirements.tools) === null || _a === void 0 ? void 0 : _a.map((tool) => tool.name)) !== null && _b !== void 0 ? _b : [],
33088
- knowledgeSourcesCount: (_d = (_c = promptWithAgentModelRequirementsForOpenAiAssistantExecutionTools.modelRequirements
33089
- .knowledgeSources) === null || _c === void 0 ? void 0 : _c.length) !== null && _d !== void 0 ? _d : 0,
33088
+ knowledgeSourcesCount: (_d = (_c = promptWithAgentModelRequirementsForOpenAiAssistantExecutionTools.modelRequirements.knowledgeSources) === null || _c === void 0 ? void 0 : _c.length) !== null && _d !== void 0 ? _d : 0,
33090
33089
  });
33091
33090
  }
33092
33091
  return assistant.callChatModelStream(promptWithAgentModelRequirementsForOpenAiAssistantExecutionTools, options.onProgress, options.streamOptions);