@promptbook/wizard 0.112.0-51 → 0.112.0-53

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
@@ -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-51';
41
+ const PROMPTBOOK_ENGINE_VERSION = '0.112.0-53';
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(`
@@ -31332,8 +31330,9 @@ function createInheritanceCapability(content) {
31332
31330
  iconName = 'SquareArrowUpRight';
31333
31331
  }
31334
31332
  if (isVoidPseudoAgentReference(reference)) {
31335
- label = VOID_PSEUDO_AGENT_REFERENCE;
31333
+ label = VOID_PSEUDO_AGENT_REFERENCE; // <- {Void} label
31336
31334
  iconName = 'ShieldAlert';
31335
+ return null; // <- Note: Do not show `{Void}` in capabilities, it's only used for internal logic
31337
31336
  }
31338
31337
  return {
31339
31338
  type: 'inheritance',
@@ -39442,7 +39441,9 @@ function createDeepSearchAgentInstructions(toolDescription) {
39442
39441
  * @private helper of `OpenAiAgentKitExecutionTools`
39443
39442
  */
39444
39443
  function buildDeepSearchToolInput(rawInput) {
39445
- const input = rawInput && typeof rawInput === 'object' ? rawInput : {};
39444
+ const input = rawInput && typeof rawInput === 'object'
39445
+ ? rawInput
39446
+ : {};
39446
39447
  const query = typeof input.query === 'string' ? input.query.trim() : '';
39447
39448
  const additionalHints = Object.entries(input)
39448
39449
  .filter(([key, value]) => key !== 'query' && value !== undefined && value !== null && String(value).trim() !== '')
@@ -40867,8 +40868,7 @@ class AgentLlmExecutionTools {
40867
40868
  console.info('[🤰]', 'Prepared OpenAI Assistant prompt', {
40868
40869
  agent: this.title,
40869
40870
  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,
40871
+ knowledgeSourcesCount: (_d = (_c = promptWithAgentModelRequirementsForOpenAiAssistantExecutionTools.modelRequirements.knowledgeSources) === null || _c === void 0 ? void 0 : _c.length) !== null && _d !== void 0 ? _d : 0,
40872
40872
  });
40873
40873
  }
40874
40874
  return assistant.callChatModelStream(promptWithAgentModelRequirementsForOpenAiAssistantExecutionTools, options.onProgress, options.streamOptions);