@promptbook/vercel 0.92.0-3 → 0.92.0-5

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
@@ -16,7 +16,7 @@ const BOOK_LANGUAGE_VERSION = '1.0.0';
16
16
  * @generated
17
17
  * @see https://github.com/webgptorg/promptbook
18
18
  */
19
- const PROMPTBOOK_ENGINE_VERSION = '0.92.0-3';
19
+ const PROMPTBOOK_ENGINE_VERSION = '0.92.0-5';
20
20
  /**
21
21
  * TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
22
22
  * Note: [💞] Ignore a discrepancy between file name and entity name
@@ -1,8 +1,10 @@
1
1
  import { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION } from '../version';
2
2
  import { createDeepseekExecutionTools } from '../llm-providers/deepseek/createDeepseekExecutionTools';
3
+ import { DEEPSEEK_MODELS } from '../llm-providers/deepseek/deepseek-models';
3
4
  import type { DeepseekExecutionToolsOptions } from '../llm-providers/deepseek/DeepseekExecutionToolsOptions';
4
5
  import { _DeepseekRegistration } from '../llm-providers/deepseek/register-constructor';
5
6
  export { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION };
6
7
  export { createDeepseekExecutionTools };
8
+ export { DEEPSEEK_MODELS };
7
9
  export type { DeepseekExecutionToolsOptions };
8
10
  export { _DeepseekRegistration };
@@ -1,10 +1,12 @@
1
1
  import { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION } from '../version';
2
2
  import { createGoogleExecutionTools } from '../llm-providers/google/createGoogleExecutionTools';
3
+ import { GOOGLE_MODELS } from '../llm-providers/google/google-models';
3
4
  import type { GoogleExecutionToolsOptions } from '../llm-providers/google/GoogleExecutionToolsOptions';
4
5
  import { _GoogleRegistration } from '../llm-providers/google/register-constructor';
5
6
  import type { VercelExecutionToolsOptions } from '../llm-providers/vercel/VercelExecutionToolsOptions';
6
7
  export { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION };
7
8
  export { createGoogleExecutionTools };
9
+ export { GOOGLE_MODELS };
8
10
  export type { GoogleExecutionToolsOptions };
9
11
  export { _GoogleRegistration };
10
12
  export type { VercelExecutionToolsOptions };
@@ -0,0 +1,23 @@
1
+ import type { AvailableModel } from '../../execution/AvailableModel';
2
+ import type { number_usd } from '../../types/typeAliases';
3
+ /**
4
+ * List of available Deepseek models with descriptions
5
+ *
6
+ * Note: Done at 2025-04-22
7
+ *
8
+ * @see https://www.deepseek.com/models
9
+ * @public exported from `@promptbook/deepseek`
10
+ */
11
+ export declare const DEEPSEEK_MODELS: ReadonlyArray<AvailableModel & {
12
+ modelDescription?: string;
13
+ pricing?: {
14
+ readonly prompt: number_usd;
15
+ readonly output: number_usd;
16
+ };
17
+ }>;
18
+ /**
19
+ * TODO: [🧠] Add information about context window sizes, capabilities, and relative performance characteristics
20
+ * TODO: [🎰] Some mechanism to auto-update available models
21
+ * TODO: [🧠] Verify pricing information is current with Deepseek's official documentation
22
+ * Note: [💞] Ignore a discrepancy between file name and entity name
23
+ */
@@ -0,0 +1,23 @@
1
+ import type { AvailableModel } from '../../execution/AvailableModel';
2
+ import type { number_usd } from '../../types/typeAliases';
3
+ /**
4
+ * List of available Google models with descriptions
5
+ *
6
+ * Note: Done at 2025-04-22
7
+ *
8
+ * @see https://ai.google.dev/models/gemini
9
+ * @public exported from `@promptbook/google`
10
+ */
11
+ export declare const GOOGLE_MODELS: ReadonlyArray<AvailableModel & {
12
+ modelDescription?: string;
13
+ pricing?: {
14
+ readonly prompt: number_usd;
15
+ readonly output: number_usd;
16
+ };
17
+ }>;
18
+ /**
19
+ * TODO: [🧠] Add information about context window sizes, capabilities, and relative performance characteristics
20
+ * TODO: [🎰] Some mechanism to auto-update available models
21
+ * TODO: [🧠] Verify pricing information is current with Google's official documentation
22
+ * Note: [💞] Ignore a discrepancy between file name and entity name
23
+ */
@@ -8,7 +8,7 @@ import type { string_persona_description } from '../types/typeAliases';
8
8
  * @see https://github.com/webgptorg/promptbook/discussions/22
9
9
  * @public exported from `@promptbook/core`
10
10
  */
11
- export declare function preparePersona(personaDescription: string_persona_description, tools: Pick<ExecutionTools, 'llm'>, options: PrepareAndScrapeOptions): Promise<PersonaPreparedJson['modelRequirements']>;
11
+ export declare function preparePersona(personaDescription: string_persona_description, tools: Pick<ExecutionTools, 'llm'>, options: PrepareAndScrapeOptions): Promise<Pick<PersonaPreparedJson, 'modelsRequirements'>>;
12
12
  /**
13
13
  * TODO: [🔃][main] If the persona was prepared with different version or different set of models, prepare it once again
14
14
  * TODO: [🏢] Check validity of `modelName` in pipeline
@@ -30,11 +30,13 @@ export type PersonaJson = {
30
30
  */
31
31
  export type PersonaPreparedJson = PersonaJson & {
32
32
  /**
33
- * Model requirements for the persona
33
+ * Models requirements for the persona
34
+ *
35
+ * Sorted by relevance, best-fitting models is first
34
36
  *
35
37
  * Note: The model must be CHAT variant to be usable through persona
36
38
  */
37
- readonly modelRequirements: ChatModelRequirements;
39
+ readonly modelsRequirements: Array<ChatModelRequirements>;
38
40
  /**
39
41
  * List of preparation ids that were used to prepare this persona
40
42
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@promptbook/vercel",
3
- "version": "0.92.0-3",
3
+ "version": "0.92.0-5",
4
4
  "description": "It's time for a paradigm shift. The future of software in plain English, French or Latin",
5
5
  "private": false,
6
6
  "sideEffects": false,
@@ -51,7 +51,7 @@
51
51
  "module": "./esm/index.es.js",
52
52
  "typings": "./esm/typings/src/_packages/vercel.index.d.ts",
53
53
  "peerDependencies": {
54
- "@promptbook/core": "0.92.0-3"
54
+ "@promptbook/core": "0.92.0-5"
55
55
  },
56
56
  "dependencies": {
57
57
  "colors": "1.4.0",
package/umd/index.umd.js CHANGED
@@ -23,7 +23,7 @@
23
23
  * @generated
24
24
  * @see https://github.com/webgptorg/promptbook
25
25
  */
26
- const PROMPTBOOK_ENGINE_VERSION = '0.92.0-3';
26
+ const PROMPTBOOK_ENGINE_VERSION = '0.92.0-5';
27
27
  /**
28
28
  * TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
29
29
  * Note: [💞] Ignore a discrepancy between file name and entity name