@promptbook/pdf 0.101.0-13 → 0.101.0-14
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 +2 -1
- package/esm/index.es.js.map +1 -1
- package/esm/typings/src/book-2.0/agent-source/createAgentModelRequirements.d.ts +5 -1
- package/esm/typings/src/llm-providers/agent/AgentLlmExecutionTools.d.ts +0 -1
- package/esm/typings/src/personas/preparePersona.d.ts +1 -0
- package/esm/typings/src/version.d.ts +1 -1
- package/package.json +2 -2
- package/umd/index.umd.js +2 -1
- package/umd/index.umd.js.map +1 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { AvailableModel } from '../../execution/AvailableModel';
|
|
1
2
|
import type { string_model_name } from '../../types/typeAliases';
|
|
2
3
|
import type { AgentModelRequirements } from './AgentModelRequirements';
|
|
3
4
|
import type { string_book } from './string_book';
|
|
@@ -11,7 +12,7 @@ import type { string_book } from './string_book';
|
|
|
11
12
|
*
|
|
12
13
|
* @public exported from `@promptbook/core`
|
|
13
14
|
*/
|
|
14
|
-
export declare function createAgentModelRequirements(agentSource: string_book, modelName?: string_model_name): Promise<AgentModelRequirements>;
|
|
15
|
+
export declare function createAgentModelRequirements(agentSource: string_book, modelName?: string_model_name, availableModels?: readonly AvailableModel[]): Promise<AgentModelRequirements>;
|
|
15
16
|
/**
|
|
16
17
|
* Clears the cache for createAgentModelRequirements
|
|
17
18
|
* Useful when agent sources are updated and cached results should be invalidated
|
|
@@ -60,3 +61,6 @@ export declare function extractAgentName(agentSource: string_book): string;
|
|
|
60
61
|
* @private
|
|
61
62
|
*/
|
|
62
63
|
export declare function extractAgentProfileImage(agentSource: string_book): string;
|
|
64
|
+
/**
|
|
65
|
+
* TODO: [😩] DRY `preparePersona` and `selectBestModelFromAvailable`
|
|
66
|
+
*/
|
|
@@ -50,6 +50,5 @@ export declare class AgentLlmExecutionTools implements LlmExecutionTools {
|
|
|
50
50
|
}
|
|
51
51
|
/**
|
|
52
52
|
* TODO: [🍚] Implement Destroyable pattern to free resources
|
|
53
|
-
* TODO: !!!! Pick the best model from available models
|
|
54
53
|
* TODO: !!!! adding parameter substitution support
|
|
55
54
|
*/
|
|
@@ -10,6 +10,7 @@ import type { string_persona_description } from '../types/typeAliases';
|
|
|
10
10
|
*/
|
|
11
11
|
export declare function preparePersona(personaDescription: string_persona_description, tools: Pick<ExecutionTools, 'llm'>, options: PrepareAndScrapeOptions): Promise<Pick<PersonaPreparedJson, 'modelsRequirements'>>;
|
|
12
12
|
/**
|
|
13
|
+
* TODO: [😩] DRY `preparePersona` and `selectBestModelFromAvailable`
|
|
13
14
|
* TODO: [🔃][main] If the persona was prepared with different version or different set of models, prepare it once again
|
|
14
15
|
* TODO: [🏢] Check validity of `modelName` in pipeline
|
|
15
16
|
* TODO: [🏢] Check validity of `systemMessage` in pipeline
|
|
@@ -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.101.0-
|
|
18
|
+
* It follows semantic versioning (e.g., `0.101.0-13`).
|
|
19
19
|
*
|
|
20
20
|
* @generated
|
|
21
21
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@promptbook/pdf",
|
|
3
|
-
"version": "0.101.0-
|
|
3
|
+
"version": "0.101.0-14",
|
|
4
4
|
"description": "Promptbook: Run AI apps in plain human language across multiple models and platforms",
|
|
5
5
|
"private": false,
|
|
6
6
|
"sideEffects": false,
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
"module": "./esm/index.es.js",
|
|
95
95
|
"typings": "./esm/typings/src/_packages/pdf.index.d.ts",
|
|
96
96
|
"peerDependencies": {
|
|
97
|
-
"@promptbook/core": "0.101.0-
|
|
97
|
+
"@promptbook/core": "0.101.0-14"
|
|
98
98
|
},
|
|
99
99
|
"dependencies": {
|
|
100
100
|
"crypto": "1.0.1",
|
package/umd/index.umd.js
CHANGED
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
* @generated
|
|
25
25
|
* @see https://github.com/webgptorg/promptbook
|
|
26
26
|
*/
|
|
27
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.101.0-
|
|
27
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.101.0-14';
|
|
28
28
|
/**
|
|
29
29
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
30
30
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
@@ -3313,6 +3313,7 @@
|
|
|
3313
3313
|
};
|
|
3314
3314
|
}
|
|
3315
3315
|
/**
|
|
3316
|
+
* TODO: [😩] DRY `preparePersona` and `selectBestModelFromAvailable`
|
|
3316
3317
|
* TODO: [🔃][main] If the persona was prepared with different version or different set of models, prepare it once again
|
|
3317
3318
|
* TODO: [🏢] Check validity of `modelName` in pipeline
|
|
3318
3319
|
* TODO: [🏢] Check validity of `systemMessage` in pipeline
|