@promptbook/remote-server 0.92.0-26 → 0.92.0-27
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 +13 -4
- package/esm/index.es.js.map +1 -1
- package/esm/typings/src/commands/_BOILERPLATE/boilerplateCommandParser.d.ts +1 -1
- package/esm/typings/src/execution/utils/uncertainNumber.d.ts +3 -2
- package/esm/typings/src/formfactors/_common/AbstractFormfactorDefinition.d.ts +16 -7
- package/esm/typings/src/formfactors/_common/FormfactorDefinition.d.ts +3 -1
- package/esm/typings/src/formfactors/index.d.ts +2 -2
- package/esm/typings/src/formfactors/matcher/MatcherFormfactorDefinition.d.ts +4 -2
- package/esm/typings/src/formfactors/translator/TranslatorFormfactorDefinition.d.ts +3 -2
- package/esm/typings/src/llm-providers/_common/register/$provideLlmToolsForTestingAndScriptsAndPlayground.d.ts +4 -3
- package/esm/typings/src/llm-providers/_common/register/$provideLlmToolsFromEnv.d.ts +17 -4
- package/esm/typings/src/llm-providers/_common/register/LlmToolsConfiguration.d.ts +11 -4
- package/esm/typings/src/llm-providers/_common/register/LlmToolsMetadata.d.ts +17 -5
- package/esm/typings/src/llm-providers/_common/register/LlmToolsOptions.d.ts +5 -1
- package/esm/typings/src/llm-providers/_common/register/createLlmToolsFromConfiguration.d.ts +12 -3
- package/esm/typings/src/llm-providers/_common/utils/cache/CacheItem.d.ts +5 -0
- package/esm/typings/src/version.d.ts +1 -1
- package/package.json +2 -2
- package/umd/index.umd.js +13 -4
- package/umd/index.umd.js.map +1 -1
package/esm/index.es.js
CHANGED
|
@@ -33,7 +33,7 @@ const BOOK_LANGUAGE_VERSION = '1.0.0';
|
|
|
33
33
|
* @generated
|
|
34
34
|
* @see https://github.com/webgptorg/promptbook
|
|
35
35
|
*/
|
|
36
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.92.0-
|
|
36
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.92.0-27';
|
|
37
37
|
/**
|
|
38
38
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
39
39
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
@@ -6410,11 +6410,16 @@ function $registeredLlmToolsMessage() {
|
|
|
6410
6410
|
*/
|
|
6411
6411
|
|
|
6412
6412
|
/**
|
|
6413
|
-
*
|
|
6413
|
+
* Creates LLM execution tools from provided configuration objects
|
|
6414
|
+
*
|
|
6415
|
+
* Instantiates and configures LLM tool instances for each configuration entry,
|
|
6416
|
+
* combining them into a unified interface via MultipleLlmExecutionTools.
|
|
6414
6417
|
*
|
|
6415
6418
|
* Note: This function is not cached, every call creates new instance of `MultipleLlmExecutionTools`
|
|
6416
6419
|
*
|
|
6417
|
-
* @
|
|
6420
|
+
* @param configuration Array of LLM tool configurations to instantiate
|
|
6421
|
+
* @param options Additional options for configuring the LLM tools
|
|
6422
|
+
* @returns A unified interface combining all successfully instantiated LLM tools
|
|
6418
6423
|
* @public exported from `@promptbook/core`
|
|
6419
6424
|
*/
|
|
6420
6425
|
function createLlmToolsFromConfiguration(configuration, options = {}) {
|
|
@@ -6453,7 +6458,11 @@ function createLlmToolsFromConfiguration(configuration, options = {}) {
|
|
|
6453
6458
|
/**
|
|
6454
6459
|
* TODO: [🎌] Together with `createLlmToolsFromConfiguration` + 'EXECUTION_TOOLS_CLASSES' gets to `@promptbook/core` ALL model providers, make this more efficient
|
|
6455
6460
|
* TODO: [🧠][🎌] Dynamically install required providers
|
|
6456
|
-
* TODO:
|
|
6461
|
+
* TODO: We should implement an interactive configuration wizard that would:
|
|
6462
|
+
* 1. Detect which LLM providers are available in the environment
|
|
6463
|
+
* 2. Guide users through required configuration settings for each provider
|
|
6464
|
+
* 3. Allow testing connections before completing setup
|
|
6465
|
+
* 4. Generate appropriate configuration code for application integration
|
|
6457
6466
|
* TODO: [🧠][🍛] Which name is better `createLlmToolsFromConfig` or `createLlmToolsFromConfiguration`?
|
|
6458
6467
|
* TODO: [🧠] Is there some meaningfull way how to test this util
|
|
6459
6468
|
* TODO: This should be maybe not under `_common` but under `utils`
|