@promptbook/core 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 +10 -5
- package/esm/index.es.js.map +1 -1
- package/esm/src/book-components/BookEditor/BookEditorMonacoTokenization.d.ts +1 -0
- package/esm/src/llm-providers/_common/register/$provideLlmToolsConfigurationFromEnv.d.ts +1 -1
- package/esm/src/llm-providers/_common/register/$provideLlmToolsFromEnv.d.ts +1 -1
- package/esm/src/version.d.ts +1 -1
- package/package.json +1 -1
- package/umd/index.umd.js +10 -5
- package/umd/index.umd.js.map +1 -1
- package/umd/src/book-components/BookEditor/BookEditorMonacoTokenization.d.ts +1 -0
- package/umd/src/llm-providers/_common/register/$provideLlmToolsConfigurationFromEnv.d.ts +1 -1
- package/umd/src/llm-providers/_common/register/$provideLlmToolsFromEnv.d.ts +1 -1
- package/umd/src/version.d.ts +1 -1
|
@@ -15,6 +15,7 @@ type AgentReferenceMatch = {
|
|
|
15
15
|
* @private function of BookEditorMonaco
|
|
16
16
|
*/
|
|
17
17
|
export declare const BookEditorMonacoTokenization: {
|
|
18
|
+
DYNAMIC_COMMITMENT_REGEX: RegExp;
|
|
18
19
|
AGENT_URL_REFERENCE_REGEX: RegExp;
|
|
19
20
|
AGENT_REFERENCE_TOKEN_REGEX: RegExp;
|
|
20
21
|
AGENT_REFERENCE_BRACED_REGEX: RegExp;
|
|
@@ -6,7 +6,7 @@ import type { LlmToolsConfiguration } from './LlmToolsConfiguration';
|
|
|
6
6
|
*
|
|
7
7
|
* It looks for environment variables:
|
|
8
8
|
* - `process.env.OPENAI_API_KEY`
|
|
9
|
-
* - `process.env.ANTHROPIC_CLAUDE_API_KEY`
|
|
9
|
+
* - `process.env.ANTHROPIC_API_KEY` (or the deprecated `process.env.ANTHROPIC_CLAUDE_API_KEY`)
|
|
10
10
|
* - ...
|
|
11
11
|
*
|
|
12
12
|
* @see Environment variables documentation or .env file for required variables.
|
|
@@ -13,7 +13,7 @@ import type { CreateLlmToolsFromConfigurationOptions } from './createLlmToolsFro
|
|
|
13
13
|
*
|
|
14
14
|
* It looks for environment variables:
|
|
15
15
|
* - `process.env.OPENAI_API_KEY`
|
|
16
|
-
* - `process.env.ANTHROPIC_CLAUDE_API_KEY`
|
|
16
|
+
* - `process.env.ANTHROPIC_API_KEY` (or the deprecated `process.env.ANTHROPIC_CLAUDE_API_KEY`)
|
|
17
17
|
* - ...
|
|
18
18
|
*
|
|
19
19
|
* @param options Configuration options for the LLM tools
|
package/esm/src/version.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ export declare const BOOK_LANGUAGE_VERSION: string_semantic_version;
|
|
|
15
15
|
export declare const PROMPTBOOK_ENGINE_VERSION: string_promptbook_version;
|
|
16
16
|
/**
|
|
17
17
|
* Represents the version string of the Promptbook engine.
|
|
18
|
-
* It follows semantic versioning (e.g., `0.112.0-
|
|
18
|
+
* It follows semantic versioning (e.g., `0.112.0-119`).
|
|
19
19
|
*
|
|
20
20
|
* @generated
|
|
21
21
|
*/
|
package/package.json
CHANGED
package/umd/index.umd.js
CHANGED
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
* @generated
|
|
30
30
|
* @see https://github.com/webgptorg/promptbook
|
|
31
31
|
*/
|
|
32
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.112.0-
|
|
32
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.112.0-121';
|
|
33
33
|
/**
|
|
34
34
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
35
35
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
@@ -36449,7 +36449,9 @@
|
|
|
36449
36449
|
if (!executionTools || !executionTools.script) {
|
|
36450
36450
|
throw new PipelineExecutionError(`Model requested tools but no executionTools.script were provided in OpenAiAgentKitExecutionTools options`);
|
|
36451
36451
|
}
|
|
36452
|
-
return Array.isArray(executionTools.script)
|
|
36452
|
+
return Array.isArray(executionTools.script)
|
|
36453
|
+
? executionTools.script
|
|
36454
|
+
: [executionTools.script];
|
|
36453
36455
|
}
|
|
36454
36456
|
/**
|
|
36455
36457
|
* Resolves the assistant-visible AgentKit tool response while preserving structured tool result data.
|
|
@@ -45999,7 +46001,7 @@
|
|
|
45999
46001
|
title: 'Anthropic Claude',
|
|
46000
46002
|
packageName: '@promptbook/anthropic-claude',
|
|
46001
46003
|
className: 'AnthropicClaudeExecutionTools',
|
|
46002
|
-
envVariables: ['ANTHROPIC_CLAUDE_API_KEY'],
|
|
46004
|
+
envVariables: ['ANTHROPIC_API_KEY', 'ANTHROPIC_CLAUDE_API_KEY'],
|
|
46003
46005
|
trustLevel: 'CLOSED',
|
|
46004
46006
|
order: MODEL_ORDERS.TOP_TIER,
|
|
46005
46007
|
getBoilerplateConfiguration() {
|
|
@@ -46016,14 +46018,17 @@
|
|
|
46016
46018
|
};
|
|
46017
46019
|
},
|
|
46018
46020
|
createConfigurationFromEnv(env) {
|
|
46021
|
+
var _a;
|
|
46019
46022
|
// Note: Note using `process.env` BUT `env` to pass in the environment variables dynamically
|
|
46020
|
-
|
|
46023
|
+
// Note: `ANTHROPIC_API_KEY` takes precedence over the deprecated `ANTHROPIC_CLAUDE_API_KEY`
|
|
46024
|
+
const apiKey = (_a = env.ANTHROPIC_API_KEY) !== null && _a !== void 0 ? _a : env.ANTHROPIC_CLAUDE_API_KEY;
|
|
46025
|
+
if (typeof apiKey === 'string') {
|
|
46021
46026
|
return {
|
|
46022
46027
|
title: 'Claude (from env)',
|
|
46023
46028
|
packageName: '@promptbook/anthropic-claude',
|
|
46024
46029
|
className: 'AnthropicClaudeExecutionTools',
|
|
46025
46030
|
options: {
|
|
46026
|
-
apiKey
|
|
46031
|
+
apiKey,
|
|
46027
46032
|
},
|
|
46028
46033
|
};
|
|
46029
46034
|
}
|