@promptbook/node
Advanced tools
Comparing version 0.61.0-23 to 0.61.0-24
@@ -27,2 +27,3 @@ import type { PipelineJson } from '../types/PipelineJson/PipelineJson'; | ||
* TODO: [π ] Actions, instruments (and maybe knowledge) => Functions and tools | ||
* TODO: [π] Make some standart order of json properties | ||
*/ |
@@ -13,2 +13,3 @@ import type { string_json } from '../../types/typeAliases'; | ||
* TODO: [π§ ] Maybe more elegant solution than replacing via regex | ||
* TODO: [π] Make some standart order of json properties | ||
*/ |
@@ -27,1 +27,4 @@ import type { KebabCase } from 'type-fest'; | ||
export type PromptResultUsageCounts = Record<`${KebabCase<'TOKENS' | ExpectationUnit>}Count`, UncertainNumber>; | ||
/** | ||
* TODO: [π] Make some standart order of json properties | ||
*/ |
@@ -11,3 +11,2 @@ import type { PipelineJson } from '../types/PipelineJson/PipelineJson'; | ||
/** | ||
* TODO: !!!!! Index the samples and maybe templates | ||
* TODO: [πΌ] !!! Export via `@promptbook/core` | ||
@@ -14,0 +13,0 @@ * TODO: Write tests for `preparePipeline` |
@@ -10,2 +10,3 @@ import type { PipelineJson } from '../types/PipelineJson/PipelineJson'; | ||
* TODO: Write tests for `preparePipeline` | ||
* TODO: [π] Make some standart order of json properties | ||
*/ |
@@ -68,1 +68,4 @@ import type { EmbeddingVector } from '../../execution/EmbeddingVector'; | ||
}; | ||
/** | ||
* TODO: [π] Make some standart order of json properties | ||
*/ |
@@ -25,1 +25,4 @@ import type { number_id } from '../typeAliases'; | ||
}; | ||
/** | ||
* TODO: [π] Make some standart order of json properties | ||
*/ |
@@ -24,2 +24,3 @@ import type { ModelRequirements } from '../ModelRequirements'; | ||
* TODO: [π][π§ ] Just selecting gpt3 or gpt4 level of model | ||
* TODO: [π] Make some standart order of json properties | ||
*/ |
@@ -39,1 +39,4 @@ import type { ChatModelRequirements } from '../ModelRequirements'; | ||
}; | ||
/** | ||
* TODO: [π] Make some standart order of json properties | ||
*/ |
@@ -82,2 +82,3 @@ import type { string_file_path } from '../typeAliases'; | ||
/** | ||
* TODO: [π] Make some standart order of json properties | ||
* TODO: [π§ ] Maybe wrap all {parameterNames} in brackets for example { "resultingParameterName": "{foo}" } | ||
@@ -84,0 +85,0 @@ * Note: There was a proposal for multiple types of promptbook objects 78816ff33e2705ee1a187aa2eb8affd976d4ea1a |
@@ -19,4 +19,5 @@ import type { PromptResultUsage } from '../../execution/PromptResultUsage'; | ||
/** | ||
* TODO: [π] Make some standart order of json properties | ||
* TODO: Maybe put here used `modelName` | ||
* TODO: [π₯] When using `date` it changes all samples .ptbk.json files each time so until some more elegant solution omit the time from prepared pipeline | ||
*/ |
@@ -7,7 +7,8 @@ import type { PromptTemplateJsonCommon } from './PromptTemplateJsonCommon'; | ||
*/ | ||
export interface PromptDialogJson extends PromptTemplateJsonCommon { | ||
export type PromptDialogJson = PromptTemplateJsonCommon & { | ||
readonly blockType: 'PROMPT_DIALOG'; | ||
} | ||
}; | ||
/** | ||
* TODO: [π§ ][π₯] | ||
*/ | ||
* TODO: [π] Make some standart order of json properties | ||
*/ |
@@ -52,5 +52,15 @@ import type { BlockType } from '../../commands/BLOCK/BlockTypes'; | ||
* Content of the template with {placeholders} for parameters | ||
* | ||
* @@@ content vs preparedContent | ||
*/ | ||
readonly content: (string_prompt | string_javascript | string_markdown) & string_template; | ||
/** | ||
* @@@ Content of the template with {placeholders} for parameters | ||
* | ||
* @@@ content vs preparedContent | ||
* | ||
* @default "{content}" | ||
*/ | ||
readonly preparedContent?: (string_prompt | string_javascript | string_markdown) & string_template; | ||
/** | ||
* List of postprocessing steps that are executed after the prompt template | ||
@@ -57,0 +67,0 @@ * |
@@ -35,2 +35,3 @@ import type { string_markdown_text } from '../typeAliases'; | ||
* TODO: [β] Probbably move expectations from templates to parameters | ||
* TODO: [π] Make some standart order of json properties | ||
*/ |
@@ -8,3 +8,3 @@ import type { ScriptLanguage } from '../ScriptLanguage'; | ||
*/ | ||
export interface ScriptJson extends PromptTemplateJsonCommon { | ||
export type ScriptJson = PromptTemplateJsonCommon & { | ||
readonly blockType: 'SCRIPT'; | ||
@@ -17,2 +17,5 @@ /** | ||
readonly contentLanguage?: ScriptLanguage; | ||
} | ||
}; | ||
/** | ||
* TODO: [π] Make some standart order of json properties | ||
*/ |
@@ -7,4 +7,7 @@ import type { PromptTemplateJsonCommon } from './PromptTemplateJsonCommon'; | ||
*/ | ||
export interface SimpleTemplateJson extends PromptTemplateJsonCommon { | ||
export type SimpleTemplateJson = PromptTemplateJsonCommon & { | ||
readonly blockType: 'SIMPLE_TEMPLATE'; | ||
} | ||
}; | ||
/** | ||
* TODO: [π] Make some standart order of json properties | ||
*/ |
{ | ||
"name": "@promptbook/node", | ||
"version": "0.61.0-23", | ||
"version": "0.61.0-24", | ||
"description": "Supercharge your use of large language models", | ||
@@ -54,3 +54,3 @@ "private": false, | ||
"peerDependencies": { | ||
"@promptbook/core": "0.61.0-23" | ||
"@promptbook/core": "0.61.0-24" | ||
}, | ||
@@ -57,0 +57,0 @@ "main": "./umd/index.umd.js", |
@@ -27,2 +27,3 @@ import type { PipelineJson } from '../types/PipelineJson/PipelineJson'; | ||
* TODO: [π ] Actions, instruments (and maybe knowledge) => Functions and tools | ||
* TODO: [π] Make some standart order of json properties | ||
*/ |
@@ -13,2 +13,3 @@ import type { string_json } from '../../types/typeAliases'; | ||
* TODO: [π§ ] Maybe more elegant solution than replacing via regex | ||
* TODO: [π] Make some standart order of json properties | ||
*/ |
@@ -27,1 +27,4 @@ import type { KebabCase } from 'type-fest'; | ||
export type PromptResultUsageCounts = Record<`${KebabCase<'TOKENS' | ExpectationUnit>}Count`, UncertainNumber>; | ||
/** | ||
* TODO: [π] Make some standart order of json properties | ||
*/ |
@@ -11,3 +11,2 @@ import type { PipelineJson } from '../types/PipelineJson/PipelineJson'; | ||
/** | ||
* TODO: !!!!! Index the samples and maybe templates | ||
* TODO: [πΌ] !!! Export via `@promptbook/core` | ||
@@ -14,0 +13,0 @@ * TODO: Write tests for `preparePipeline` |
@@ -10,2 +10,3 @@ import type { PipelineJson } from '../types/PipelineJson/PipelineJson'; | ||
* TODO: Write tests for `preparePipeline` | ||
* TODO: [π] Make some standart order of json properties | ||
*/ |
@@ -68,1 +68,4 @@ import type { EmbeddingVector } from '../../execution/EmbeddingVector'; | ||
}; | ||
/** | ||
* TODO: [π] Make some standart order of json properties | ||
*/ |
@@ -25,1 +25,4 @@ import type { number_id } from '../typeAliases'; | ||
}; | ||
/** | ||
* TODO: [π] Make some standart order of json properties | ||
*/ |
@@ -24,2 +24,3 @@ import type { ModelRequirements } from '../ModelRequirements'; | ||
* TODO: [π][π§ ] Just selecting gpt3 or gpt4 level of model | ||
* TODO: [π] Make some standart order of json properties | ||
*/ |
@@ -39,1 +39,4 @@ import type { ChatModelRequirements } from '../ModelRequirements'; | ||
}; | ||
/** | ||
* TODO: [π] Make some standart order of json properties | ||
*/ |
@@ -82,2 +82,3 @@ import type { string_file_path } from '../typeAliases'; | ||
/** | ||
* TODO: [π] Make some standart order of json properties | ||
* TODO: [π§ ] Maybe wrap all {parameterNames} in brackets for example { "resultingParameterName": "{foo}" } | ||
@@ -84,0 +85,0 @@ * Note: There was a proposal for multiple types of promptbook objects 78816ff33e2705ee1a187aa2eb8affd976d4ea1a |
@@ -19,4 +19,5 @@ import type { PromptResultUsage } from '../../execution/PromptResultUsage'; | ||
/** | ||
* TODO: [π] Make some standart order of json properties | ||
* TODO: Maybe put here used `modelName` | ||
* TODO: [π₯] When using `date` it changes all samples .ptbk.json files each time so until some more elegant solution omit the time from prepared pipeline | ||
*/ |
@@ -7,7 +7,8 @@ import type { PromptTemplateJsonCommon } from './PromptTemplateJsonCommon'; | ||
*/ | ||
export interface PromptDialogJson extends PromptTemplateJsonCommon { | ||
export type PromptDialogJson = PromptTemplateJsonCommon & { | ||
readonly blockType: 'PROMPT_DIALOG'; | ||
} | ||
}; | ||
/** | ||
* TODO: [π§ ][π₯] | ||
*/ | ||
* TODO: [π] Make some standart order of json properties | ||
*/ |
@@ -52,5 +52,15 @@ import type { BlockType } from '../../commands/BLOCK/BlockTypes'; | ||
* Content of the template with {placeholders} for parameters | ||
* | ||
* @@@ content vs preparedContent | ||
*/ | ||
readonly content: (string_prompt | string_javascript | string_markdown) & string_template; | ||
/** | ||
* @@@ Content of the template with {placeholders} for parameters | ||
* | ||
* @@@ content vs preparedContent | ||
* | ||
* @default "{content}" | ||
*/ | ||
readonly preparedContent?: (string_prompt | string_javascript | string_markdown) & string_template; | ||
/** | ||
* List of postprocessing steps that are executed after the prompt template | ||
@@ -57,0 +67,0 @@ * |
@@ -35,2 +35,3 @@ import type { string_markdown_text } from '../typeAliases'; | ||
* TODO: [β] Probbably move expectations from templates to parameters | ||
* TODO: [π] Make some standart order of json properties | ||
*/ |
@@ -8,3 +8,3 @@ import type { ScriptLanguage } from '../ScriptLanguage'; | ||
*/ | ||
export interface ScriptJson extends PromptTemplateJsonCommon { | ||
export type ScriptJson = PromptTemplateJsonCommon & { | ||
readonly blockType: 'SCRIPT'; | ||
@@ -17,2 +17,5 @@ /** | ||
readonly contentLanguage?: ScriptLanguage; | ||
} | ||
}; | ||
/** | ||
* TODO: [π] Make some standart order of json properties | ||
*/ |
@@ -7,4 +7,7 @@ import type { PromptTemplateJsonCommon } from './PromptTemplateJsonCommon'; | ||
*/ | ||
export interface SimpleTemplateJson extends PromptTemplateJsonCommon { | ||
export type SimpleTemplateJson = PromptTemplateJsonCommon & { | ||
readonly blockType: 'SIMPLE_TEMPLATE'; | ||
} | ||
}; | ||
/** | ||
* TODO: [π] Make some standart order of json properties | ||
*/ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1578672
832
26414