@promptbook/wizard 0.112.0-59 → 0.112.0-61

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-59';
41
+ const PROMPTBOOK_ENGINE_VERSION = '0.112.0-61';
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
@@ -45504,8 +45504,8 @@ class OpenAiAgentKitExecutionTools extends OpenAiVectorStoreHandler {
45504
45504
  * Prepares an AgentKit agent with optional knowledge sources and tool definitions.
45505
45505
  */
45506
45506
  async prepareAgentKitAgent(options) {
45507
- var _a, _b;
45508
- const { name, instructions, knowledgeSources, tools, vectorStoreId: cachedVectorStoreId, storeAsPrepared, } = options;
45507
+ var _a, _b, _c;
45508
+ const { name, instructions, knowledgeSources, tools, nativeAgentKitTools, vectorStoreId: cachedVectorStoreId, storeAsPrepared, } = options;
45509
45509
  await this.ensureAgentKitDefaults();
45510
45510
  if (this.options.isVerbose) {
45511
45511
  console.info('[🤰]', 'Preparing OpenAI AgentKit agent', {
@@ -45513,6 +45513,7 @@ class OpenAiAgentKitExecutionTools extends OpenAiVectorStoreHandler {
45513
45513
  instructionsLength: instructions.length,
45514
45514
  knowledgeSourcesCount: (_a = knowledgeSources === null || knowledgeSources === void 0 ? void 0 : knowledgeSources.length) !== null && _a !== void 0 ? _a : 0,
45515
45515
  toolsCount: (_b = tools === null || tools === void 0 ? void 0 : tools.length) !== null && _b !== void 0 ? _b : 0,
45516
+ nativeAgentKitToolsCount: (_c = nativeAgentKitTools === null || nativeAgentKitTools === void 0 ? void 0 : nativeAgentKitTools.length) !== null && _c !== void 0 ? _c : 0,
45516
45517
  });
45517
45518
  }
45518
45519
  let vectorStoreId = cachedVectorStoreId;
@@ -45531,7 +45532,7 @@ class OpenAiAgentKitExecutionTools extends OpenAiVectorStoreHandler {
45531
45532
  vectorStoreId,
45532
45533
  });
45533
45534
  }
45534
- const agentKitTools = this.buildAgentKitTools({ tools, vectorStoreId });
45535
+ const agentKitTools = this.buildAgentKitTools({ tools, nativeAgentKitTools, vectorStoreId });
45535
45536
  const openAiAgentKitAgent = new Agent$1({
45536
45537
  name,
45537
45538
  model: this.agentKitModelName,
@@ -45570,11 +45571,14 @@ class OpenAiAgentKitExecutionTools extends OpenAiVectorStoreHandler {
45570
45571
  * Builds the tool list for AgentKit, including hosted file search when applicable.
45571
45572
  */
45572
45573
  buildAgentKitTools(options) {
45573
- const { tools, vectorStoreId } = options;
45574
+ const { tools, nativeAgentKitTools, vectorStoreId } = options;
45574
45575
  const agentKitTools = [];
45575
45576
  if (vectorStoreId) {
45576
45577
  agentKitTools.push(fileSearchTool(vectorStoreId));
45577
45578
  }
45579
+ if (nativeAgentKitTools && nativeAgentKitTools.length > 0) {
45580
+ agentKitTools.push(...nativeAgentKitTools);
45581
+ }
45578
45582
  if (tools && tools.length > 0) {
45579
45583
  let scriptTools = null;
45580
45584
  for (const toolDefinition of tools) {