Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More β†’
Socket
Sign inDemoInstall
Socket

@promptbook/node

Package Overview
Dependencies
Maintainers
0
Versions
247
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@promptbook/node - npm Package Compare versions

Comparing version 0.61.0-23 to 0.61.0-24

esm/typings/src/prepare/prepareTemplates.d.ts

1

esm/typings/src/conversion/pipelineStringToJsonSync.d.ts

@@ -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
*/

1

esm/typings/src/prepare/preparePipeline.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚑️ by Socket Inc