@promptbook/types 0.75.0-0 → 0.75.0-1

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.
@@ -59,9 +59,12 @@ import { CsvFormatDefinition } from '../formats/csv/CsvFormatDefinition';
59
59
  import { CsvFormatError } from '../formats/csv/CsvFormatError';
60
60
  import { MANDATORY_CSV_SETTINGS } from '../formats/csv/CsvSettings';
61
61
  import { TextFormatDefinition } from '../formats/text/TextFormatDefinition';
62
+ import { BoilerplateFormfactorDefinition } from '../formfactors/_boilerplate/BoilerplateFormfactorDefinition';
62
63
  import { ChatFormfactorDefinition } from '../formfactors/chat/ChatFormfactorDefinition';
63
64
  import { GenericFormfactorDefinition } from '../formfactors/generic/GenericFormfactorDefinition';
64
65
  import { FORMFACTOR_DEFINITIONS } from '../formfactors/index';
66
+ import { SheetsFormfactorDefinition } from '../formfactors/sheets/SheetsFormfactorDefinition';
67
+ import { TranslatorFormfactorDefinition } from '../formfactors/translator/TranslatorFormfactorDefinition';
65
68
  import { $llmToolsMetadataRegister } from '../llm-providers/_common/register/$llmToolsMetadataRegister';
66
69
  import { $llmToolsRegister } from '../llm-providers/_common/register/$llmToolsRegister';
67
70
  import { createLlmToolsFromConfiguration } from '../llm-providers/_common/register/createLlmToolsFromConfiguration';
@@ -75,6 +78,7 @@ import { MultipleLlmExecutionTools } from '../llm-providers/multiple/MultipleLlm
75
78
  import { _OpenAiMetadataRegistration } from '../llm-providers/openai/register-configuration';
76
79
  import { _OpenAiAssistantMetadataRegistration } from '../llm-providers/openai/register-configuration';
77
80
  import { preparePersona } from '../personas/preparePersona';
81
+ import { GENERIC_PIPELINE_INTERFACE } from '../pipeline/pipeline-interface/constants';
78
82
  import { getPipelineInterface } from '../pipeline/pipeline-interface/getPipelineInterface';
79
83
  import { isPipelineImplementingInterface } from '../pipeline/pipeline-interface/isPipelineImplementingInterface';
80
84
  import { isPipelineInterfacesEqual } from '../pipeline/pipeline-interface/isPipelineInterfacesEqual';
@@ -160,9 +164,12 @@ export { CsvFormatDefinition };
160
164
  export { CsvFormatError };
161
165
  export { MANDATORY_CSV_SETTINGS };
162
166
  export { TextFormatDefinition };
167
+ export { BoilerplateFormfactorDefinition };
163
168
  export { ChatFormfactorDefinition };
164
169
  export { GenericFormfactorDefinition };
165
170
  export { FORMFACTOR_DEFINITIONS };
171
+ export { SheetsFormfactorDefinition };
172
+ export { TranslatorFormfactorDefinition };
166
173
  export { $llmToolsMetadataRegister };
167
174
  export { $llmToolsRegister };
168
175
  export { createLlmToolsFromConfiguration };
@@ -176,6 +183,7 @@ export { MultipleLlmExecutionTools };
176
183
  export { _OpenAiMetadataRegistration };
177
184
  export { _OpenAiAssistantMetadataRegistration };
178
185
  export { preparePersona };
186
+ export { GENERIC_PIPELINE_INTERFACE };
179
187
  export { getPipelineInterface };
180
188
  export { isPipelineImplementingInterface };
181
189
  export { isPipelineInterfacesEqual };
@@ -12,8 +12,8 @@ import { $currentDate } from '../utils/$currentDate';
12
12
  import { $isRunningInBrowser } from '../utils/environment/$isRunningInBrowser';
13
13
  import { $isRunningInNode } from '../utils/environment/$isRunningInNode';
14
14
  import { $isRunningInWebWorker } from '../utils/environment/$isRunningInWebWorker';
15
- import { CHARACTERS_PER_STANDARD_LINE } from '../utils/expectation-counters/config';
16
- import { LINES_PER_STANDARD_PAGE } from '../utils/expectation-counters/config';
15
+ import { CHARACTERS_PER_STANDARD_LINE } from '../utils/expectation-counters/constants';
16
+ import { LINES_PER_STANDARD_PAGE } from '../utils/expectation-counters/constants';
17
17
  import { countCharacters } from '../utils/expectation-counters/countCharacters';
18
18
  import { countLines } from '../utils/expectation-counters/countLines';
19
19
  import { countPages } from '../utils/expectation-counters/countPages';
@@ -192,5 +192,6 @@ export declare const IS_PIPELINE_LOGIC_VALIDATED: boolean;
192
192
  */
193
193
  export declare const IS_COST_PREVENTED: boolean;
194
194
  /**
195
+ * TODO: Extract `constants.ts` from `config.ts`
195
196
  * TODO: [🧠][🧜‍♂️] Maybe join remoteUrl and path into single value
196
197
  */
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Boilerplate is form of app that @@@
3
+ *
4
+ * @public exported from `@promptbook/core`
5
+ */
6
+ export declare const BoilerplateFormfactorDefinition: {
7
+ readonly name: "BOILERPLATE";
8
+ readonly description: "@@@";
9
+ readonly documentationUrl: "https://github.com/webgptorg/promptbook/discussions/@@";
10
+ readonly pipelineInterface: {
11
+ readonly inputParameterNames: readonly [];
12
+ readonly outputParameterNames: readonly [];
13
+ };
14
+ };
@@ -1,7 +1,8 @@
1
- import type { string_SCREAMING_CASE } from '../../utils/normalization/normalizeTo_SCREAMING_CASE';
1
+ import type { PipelineInterface } from '../../pipeline/pipeline-interface/PipelineInterface';
2
2
  import type { string_markdown_text } from '../../types/typeAliases';
3
3
  import type { string_name } from '../../types/typeAliases';
4
4
  import type { string_promptbook_documentation_url } from '../../types/typeAliases';
5
+ import type { string_SCREAMING_CASE } from '../../utils/normalization/normalizeTo_SCREAMING_CASE';
5
6
  /**
6
7
  * @@@
7
8
  */
@@ -26,4 +27,8 @@ export type AbstractFormfactorDefinition = {
26
27
  * @@@
27
28
  */
28
29
  readonly documentationUrl: string_promptbook_documentation_url;
30
+ /**
31
+ * @@@
32
+ */
33
+ readonly pipelineInterface: PipelineInterface;
29
34
  };
@@ -1,4 +1,4 @@
1
- import type { FORMFACTOR_DEFINITIONS } from '../index';
1
+ import { FORMFACTOR_DEFINITIONS } from '../index';
2
2
  /**
3
3
  * @@@
4
4
  */
@@ -4,7 +4,12 @@
4
4
  * @public exported from `@promptbook/core`
5
5
  */
6
6
  export declare const ChatFormfactorDefinition: {
7
- readonly name: "CHAT";
7
+ readonly name: "CHATBOT";
8
+ readonly aliasNames: readonly ["CHAT"];
8
9
  readonly description: "@@@";
9
10
  readonly documentationUrl: "https://github.com/webgptorg/promptbook/discussions/@@";
11
+ readonly pipelineInterface: {
12
+ readonly inputParameterNames: readonly ["previousTitle", "previousConversationSummary", "userMessage"];
13
+ readonly outputParameterNames: readonly ["title", "conversationSummary", "chatbotResponse"];
14
+ };
10
15
  };
@@ -7,4 +7,8 @@ export declare const GenericFormfactorDefinition: {
7
7
  readonly name: "GENERIC";
8
8
  readonly description: "@@@";
9
9
  readonly documentationUrl: "https://github.com/webgptorg/promptbook/discussions/@@";
10
+ readonly pipelineInterface: {
11
+ readonly inputParameterNames: readonly [];
12
+ readonly outputParameterNames: readonly [];
13
+ };
10
14
  };
@@ -7,8 +7,33 @@ export declare const FORMFACTOR_DEFINITIONS: readonly [{
7
7
  readonly name: "GENERIC";
8
8
  readonly description: "@@@";
9
9
  readonly documentationUrl: "https://github.com/webgptorg/promptbook/discussions/@@";
10
+ readonly pipelineInterface: {
11
+ readonly inputParameterNames: readonly [];
12
+ readonly outputParameterNames: readonly [];
13
+ };
10
14
  }, {
11
- readonly name: "CHAT";
15
+ readonly name: "CHATBOT";
16
+ readonly aliasNames: readonly ["CHAT"];
12
17
  readonly description: "@@@";
13
18
  readonly documentationUrl: "https://github.com/webgptorg/promptbook/discussions/@@";
19
+ readonly pipelineInterface: {
20
+ readonly inputParameterNames: readonly ["previousTitle", "previousConversationSummary", "userMessage"];
21
+ readonly outputParameterNames: readonly ["title", "conversationSummary", "chatbotResponse"];
22
+ };
23
+ }, {
24
+ readonly name: "TRANSLATOR";
25
+ readonly description: "@@@";
26
+ readonly documentationUrl: "https://github.com/webgptorg/promptbook/discussions/@@";
27
+ readonly pipelineInterface: {
28
+ readonly inputParameterNames: readonly ["inputMessage"];
29
+ readonly outputParameterNames: readonly ["outputMessage"];
30
+ };
31
+ }, {
32
+ readonly name: "SHEETS";
33
+ readonly description: "@@@";
34
+ readonly documentationUrl: "https://github.com/webgptorg/promptbook/discussions/@@";
35
+ readonly pipelineInterface: {
36
+ readonly inputParameterNames: readonly ["inputSheet"];
37
+ readonly outputParameterNames: readonly ["outputSheet"];
38
+ };
14
39
  }];
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Sheets is form of app that @@@
3
+ *
4
+ * @public exported from `@promptbook/core`
5
+ */
6
+ export declare const SheetsFormfactorDefinition: {
7
+ readonly name: "SHEETS";
8
+ readonly description: "@@@";
9
+ readonly documentationUrl: "https://github.com/webgptorg/promptbook/discussions/@@";
10
+ readonly pipelineInterface: {
11
+ readonly inputParameterNames: readonly ["inputSheet"];
12
+ readonly outputParameterNames: readonly ["outputSheet"];
13
+ };
14
+ };
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Translator is form of app that @@@
3
+ *
4
+ * @public exported from `@promptbook/core`
5
+ */
6
+ export declare const TranslatorFormfactorDefinition: {
7
+ readonly name: "TRANSLATOR";
8
+ readonly description: "@@@";
9
+ readonly documentationUrl: "https://github.com/webgptorg/promptbook/discussions/@@";
10
+ readonly pipelineInterface: {
11
+ readonly inputParameterNames: readonly ["inputMessage"];
12
+ readonly outputParameterNames: readonly ["outputMessage"];
13
+ };
14
+ };
@@ -8,13 +8,13 @@ export type PipelineInterface = {
8
8
  *
9
9
  * Note: Sorted alphabetically
10
10
  */
11
- inputParameterNames: Array<string_parameter_name>;
11
+ readonly inputParameterNames: ReadonlyArray<string_parameter_name>;
12
12
  /**
13
13
  * @@@
14
14
  *
15
15
  * Note: Sorted alphabetically
16
16
  */
17
- outputParameterNames: Array<string_parameter_name>;
17
+ readonly outputParameterNames: ReadonlyArray<string_parameter_name>;
18
18
  };
19
19
  /**
20
20
  * TODO: !!!!!! Change inputParameterNames to inputParameters<InputParameter>
@@ -0,0 +1,9 @@
1
+ /**
2
+ * @@@
3
+ *
4
+ * @public exported from `@promptbook/core`
5
+ */
6
+ export declare const GENERIC_PIPELINE_INTERFACE: {
7
+ readonly inputParameterNames: readonly [];
8
+ readonly outputParameterNames: readonly [];
9
+ };
@@ -10,3 +10,6 @@ export declare const CHARACTERS_PER_STANDARD_LINE = 63;
10
10
  * @public exported from `@promptbook/utils`
11
11
  */
12
12
  export declare const LINES_PER_STANDARD_PAGE = 44;
13
+ /**
14
+ * TODO: [🧠] Should be this `constants.ts` or `config.ts`?
15
+ */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@promptbook/types",
3
- "version": "0.75.0-0",
3
+ "version": "0.75.0-1",
4
4
  "description": "Supercharge your use of large language models",
5
5
  "private": false,
6
6
  "sideEffects": false,
@@ -51,6 +51,6 @@
51
51
  ],
52
52
  "typings": "./esm/typings/src/_packages/types.index.d.ts",
53
53
  "peerDependencies": {
54
- "@promptbook/core": "0.75.0-0"
54
+ "@promptbook/core": "0.75.0-1"
55
55
  }
56
56
  }