Socket
Socket
Sign inDemoInstall

@promptbook/remote-client

Package Overview
Dependencies
Maintainers
1
Versions
366
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@promptbook/remote-client - npm Package Compare versions

Comparing version 0.28.0-7 to 0.28.0-8

esm/typings/conversion/promptTemplatePipelineStringToJson-syntaxErrors.test.d.ts

3

esm/typings/conversion/promptTemplatePipelineStringToJson.test.d.ts
export {};
/**
* TODO: [πŸ’₯] Some system to automatically generate tests for all the templates in the folder
*/
export {};
/**
* TODO: [πŸ’₯] Some system to automatically generate tests for all the templates in the folder
*/

@@ -0,1 +1,2 @@

import { number_integer, number_positive } from '../types/typeAliases';
/**

@@ -17,7 +18,15 @@ * Represents all the tools needed to interact with the user.

/**
* Prompt title
*
* Note: This is not a prompt to language model but a prompt to the user
* @example "Your name"
*/
promptTitle: string;
/**
* Prompt message
*
* Note: This is not a prompt to language model but a prompt to the user
* @example "Please enter your name, including your last name, title, etc."
*/
prompt: string;
promptMessage: string;
/**

@@ -31,2 +40,8 @@ * Default value for the input/textarea

placeholder?: string;
/**
* Priority of the prompt
*
* Note: This would be reflected for example into the UI z-index of the prompt modal
*/
priority: number_integer & number_positive;
}

@@ -9,3 +9,3 @@ import type { string_markdown_text, string_name, string_version } from '.././types/typeAliases';

*/
export type Command = PtbkUrlCommand | PtbkVersionCommand | ExecuteCommand | ModelCommand | ParameterCommand | PostprocessCommand | ExpectCommand;
export type Command = PtbkUrlCommand | PtbkVersionCommand | ExecuteCommand | ModelCommand | JokerCommand | ParameterCommand | PostprocessCommand | ExpectCommand;
/**

@@ -48,2 +48,9 @@ * PtpVersion command tells which version is .ptp file using

/**
* Joker parameter is used instead of executing the prompt template if it meet the expectations requirements
*/
export interface JokerCommand {
readonly type: 'JOKER';
readonly parameterName: string_name;
}
/**
* Parameter command describes one parameter of the prompt template

@@ -50,0 +57,0 @@ *

export {};
/**
* TODO: [πŸ’₯] Some system to automatically generate tests for all the templates in the folder
*/

@@ -79,2 +79,6 @@ import { number_integer, number_positive_or_zero, string_javascript, string_javascript_name, string_markdown, string_name, string_prompt, string_template } from '../.././types/typeAliases';

/**
* If theese parameters meet the expectations requirements, they are used instead of executing this prompt template
*/
readonly jokers?: Array<string>;
/**
* Type of the execution

@@ -81,0 +85,0 @@ * This determines if the prompt template is send to LLM, user or some scripting evaluation

{
"name": "@promptbook/remote-client",
"version": "0.28.0-7",
"version": "0.28.0-8",
"description": "Library to supercharge your use of large language models",

@@ -40,3 +40,3 @@ "private": false,

"peerDependencies": {
"@promptbook/core": "0.28.0-7"
"@promptbook/core": "0.28.0-8"
},

@@ -43,0 +43,0 @@ "main": "./umd/index.umd.js",

export {};
/**
* TODO: [πŸ’₯] Some system to automatically generate tests for all the templates in the folder
*/
export {};
/**
* TODO: [πŸ’₯] Some system to automatically generate tests for all the templates in the folder
*/

@@ -0,1 +1,2 @@

import { number_integer, number_positive } from '../types/typeAliases';
/**

@@ -17,7 +18,15 @@ * Represents all the tools needed to interact with the user.

/**
* Prompt title
*
* Note: This is not a prompt to language model but a prompt to the user
* @example "Your name"
*/
promptTitle: string;
/**
* Prompt message
*
* Note: This is not a prompt to language model but a prompt to the user
* @example "Please enter your name, including your last name, title, etc."
*/
prompt: string;
promptMessage: string;
/**

@@ -31,2 +40,8 @@ * Default value for the input/textarea

placeholder?: string;
/**
* Priority of the prompt
*
* Note: This would be reflected for example into the UI z-index of the prompt modal
*/
priority: number_integer & number_positive;
}

@@ -9,3 +9,3 @@ import type { string_markdown_text, string_name, string_version } from '.././types/typeAliases';

*/
export type Command = PtbkUrlCommand | PtbkVersionCommand | ExecuteCommand | ModelCommand | ParameterCommand | PostprocessCommand | ExpectCommand;
export type Command = PtbkUrlCommand | PtbkVersionCommand | ExecuteCommand | ModelCommand | JokerCommand | ParameterCommand | PostprocessCommand | ExpectCommand;
/**

@@ -48,2 +48,9 @@ * PtpVersion command tells which version is .ptp file using

/**
* Joker parameter is used instead of executing the prompt template if it meet the expectations requirements
*/
export interface JokerCommand {
readonly type: 'JOKER';
readonly parameterName: string_name;
}
/**
* Parameter command describes one parameter of the prompt template

@@ -50,0 +57,0 @@ *

export {};
/**
* TODO: [πŸ’₯] Some system to automatically generate tests for all the templates in the folder
*/

@@ -79,2 +79,6 @@ import { number_integer, number_positive_or_zero, string_javascript, string_javascript_name, string_markdown, string_name, string_prompt, string_template } from '../.././types/typeAliases';

/**
* If theese parameters meet the expectations requirements, they are used instead of executing this prompt template
*/
readonly jokers?: Array<string>;
/**
* Type of the execution

@@ -81,0 +85,0 @@ * This determines if the prompt template is send to LLM, user or some scripting evaluation

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚑️ by Socket Inc