@promptbook/cli 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
@@ -58,7 +58,7 @@ const BOOK_LANGUAGE_VERSION = '2.0.0';
58
58
  * @generated
59
59
  * @see https://github.com/webgptorg/promptbook
60
60
  */
61
- const PROMPTBOOK_ENGINE_VERSION = '0.112.0-59';
61
+ const PROMPTBOOK_ENGINE_VERSION = '0.112.0-61';
62
62
  /**
63
63
  * TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
64
64
  * Note: [💞] Ignore a discrepancy between file name and entity name
@@ -58670,8 +58670,8 @@ class OpenAiAgentKitExecutionTools extends OpenAiVectorStoreHandler {
58670
58670
  * Prepares an AgentKit agent with optional knowledge sources and tool definitions.
58671
58671
  */
58672
58672
  async prepareAgentKitAgent(options) {
58673
- var _a, _b;
58674
- const { name, instructions, knowledgeSources, tools, vectorStoreId: cachedVectorStoreId, storeAsPrepared, } = options;
58673
+ var _a, _b, _c;
58674
+ const { name, instructions, knowledgeSources, tools, nativeAgentKitTools, vectorStoreId: cachedVectorStoreId, storeAsPrepared, } = options;
58675
58675
  await this.ensureAgentKitDefaults();
58676
58676
  if (this.options.isVerbose) {
58677
58677
  console.info('[🤰]', 'Preparing OpenAI AgentKit agent', {
@@ -58679,6 +58679,7 @@ class OpenAiAgentKitExecutionTools extends OpenAiVectorStoreHandler {
58679
58679
  instructionsLength: instructions.length,
58680
58680
  knowledgeSourcesCount: (_a = knowledgeSources === null || knowledgeSources === void 0 ? void 0 : knowledgeSources.length) !== null && _a !== void 0 ? _a : 0,
58681
58681
  toolsCount: (_b = tools === null || tools === void 0 ? void 0 : tools.length) !== null && _b !== void 0 ? _b : 0,
58682
+ nativeAgentKitToolsCount: (_c = nativeAgentKitTools === null || nativeAgentKitTools === void 0 ? void 0 : nativeAgentKitTools.length) !== null && _c !== void 0 ? _c : 0,
58682
58683
  });
58683
58684
  }
58684
58685
  let vectorStoreId = cachedVectorStoreId;
@@ -58697,7 +58698,7 @@ class OpenAiAgentKitExecutionTools extends OpenAiVectorStoreHandler {
58697
58698
  vectorStoreId,
58698
58699
  });
58699
58700
  }
58700
- const agentKitTools = this.buildAgentKitTools({ tools, vectorStoreId });
58701
+ const agentKitTools = this.buildAgentKitTools({ tools, nativeAgentKitTools, vectorStoreId });
58701
58702
  const openAiAgentKitAgent = new Agent$1({
58702
58703
  name,
58703
58704
  model: this.agentKitModelName,
@@ -58736,11 +58737,14 @@ class OpenAiAgentKitExecutionTools extends OpenAiVectorStoreHandler {
58736
58737
  * Builds the tool list for AgentKit, including hosted file search when applicable.
58737
58738
  */
58738
58739
  buildAgentKitTools(options) {
58739
- const { tools, vectorStoreId } = options;
58740
+ const { tools, nativeAgentKitTools, vectorStoreId } = options;
58740
58741
  const agentKitTools = [];
58741
58742
  if (vectorStoreId) {
58742
58743
  agentKitTools.push(fileSearchTool(vectorStoreId));
58743
58744
  }
58745
+ if (nativeAgentKitTools && nativeAgentKitTools.length > 0) {
58746
+ agentKitTools.push(...nativeAgentKitTools);
58747
+ }
58744
58748
  if (tools && tools.length > 0) {
58745
58749
  let scriptTools = null;
58746
58750
  for (const toolDefinition of tools) {