@promptbook/node 0.112.0-119 → 0.112.0-121

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
@@ -35,7 +35,7 @@ const BOOK_LANGUAGE_VERSION = '2.0.0';
35
35
  * @generated
36
36
  * @see https://github.com/webgptorg/promptbook
37
37
  */
38
- const PROMPTBOOK_ENGINE_VERSION = '0.112.0-119';
38
+ const PROMPTBOOK_ENGINE_VERSION = '0.112.0-121';
39
39
  /**
40
40
  * TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
41
41
  * Note: [💞] Ignore a discrepancy between file name and entity name
@@ -31388,7 +31388,9 @@ class OpenAiAgentKitExecutionToolsToolBuilder {
31388
31388
  if (!executionTools || !executionTools.script) {
31389
31389
  throw new PipelineExecutionError(`Model requested tools but no executionTools.script were provided in OpenAiAgentKitExecutionTools options`);
31390
31390
  }
31391
- return Array.isArray(executionTools.script) ? executionTools.script : [executionTools.script];
31391
+ return Array.isArray(executionTools.script)
31392
+ ? executionTools.script
31393
+ : [executionTools.script];
31392
31394
  }
31393
31395
  /**
31394
31396
  * Resolves the assistant-visible AgentKit tool response while preserving structured tool result data.
@@ -42388,7 +42390,7 @@ async function $provideEnvFilename() {
42388
42390
  *
42389
42391
  * It looks for environment variables:
42390
42392
  * - `process.env.OPENAI_API_KEY`
42391
- * - `process.env.ANTHROPIC_CLAUDE_API_KEY`
42393
+ * - `process.env.ANTHROPIC_API_KEY` (or the deprecated `process.env.ANTHROPIC_CLAUDE_API_KEY`)
42392
42394
  * - ...
42393
42395
  *
42394
42396
  * @see Environment variables documentation or .env file for required variables.
@@ -42488,7 +42490,7 @@ function createLlmToolsFromConfiguration(configuration, options = {}) {
42488
42490
  *
42489
42491
  * It looks for environment variables:
42490
42492
  * - `process.env.OPENAI_API_KEY`
42491
- * - `process.env.ANTHROPIC_CLAUDE_API_KEY`
42493
+ * - `process.env.ANTHROPIC_API_KEY` (or the deprecated `process.env.ANTHROPIC_CLAUDE_API_KEY`)
42492
42494
  * - ...
42493
42495
  *
42494
42496
  * @param options Configuration options for the LLM tools