Socket
Socket
Sign inDemoInstall

@promptbook/remote-client

Package Overview
Dependencies
Maintainers
1
Versions
401
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.44.0-1 to 0.44.0-2

esm/typings/execution/plugins/natural-execution-tools/mocked/fakeTextToExpectations.d.ts

3

esm/typings/_packages/core.index.d.ts

@@ -5,2 +5,3 @@ import { promptbookStringToJson } from '../conversion/promptbookStringToJson';

import { MockedEchoNaturalExecutionTools } from '../execution/plugins/natural-execution-tools/mocked/MockedEchoNaturalExecutionTools';
import { MockedFackedNaturalExecutionTools } from '../execution/plugins/natural-execution-tools/mocked/MockedFackedNaturalExecutionTools';
import { CallbackInterfaceTools } from '../execution/plugins/user-interface-execution-tools/callback/CallbackInterfaceTools';

@@ -19,4 +20,4 @@ import { CallbackInterfaceToolsOptions } from '../execution/plugins/user-interface-execution-tools/callback/CallbackInterfaceToolsOptions';

export { promptbookStringToJson, validatePromptbookJson };
export { MockedEchoNaturalExecutionTools };
export { MockedEchoNaturalExecutionTools, MockedFackedNaturalExecutionTools };
export { createPromptbookExecutor };
export { CallbackInterfaceTools, CallbackInterfaceToolsOptions };

@@ -21,3 +21,3 @@ import { Prompt } from '../../../../types/Prompt';

/**
* TODO: Allow in spaceTrim: nesting with > ${block(prompt.request)}
* TODO: Allow in spaceTrim: nesting with > ${block(prompt.request)}, same as replace params
*/
import type { string_name, string_prompt, string_promptbook_url_with_hashtemplate, string_title } from '.././types/typeAliases';
import type { ModelRequirements } from './ModelRequirements';
import type { Expectations } from './PromptbookJson/PromptTemplateJson';
/**

@@ -27,2 +28,9 @@ * Prompt in a text along with model requirements, but without any execution or templating logic.

/**
* Expectations for the answer
*
* For example 5 words, 3 sentences, 2 paragraphs, ...
* If not set, nothing is expected from the answer
*/
readonly expectations?: Expectations;
/**
* Unique identifier of the promptbook with specific template name as hash

@@ -29,0 +37,0 @@ *

@@ -22,2 +22,13 @@ import { ExpectFormatCommand } from '../Command';

/**
* Expect this amount of each unit in the answer
*
* For example 5 words, 3 sentences, 2 paragraphs, ...
*
* Note: Expectations are performed after all postprocessing steps
*/
export type Expectations = Partial<Record<Lowercase<ExpectationUnit>, {
min?: ExpectationAmount;
max?: ExpectationAmount;
}>>;
/**
* Units of text measurement

@@ -109,6 +120,3 @@ */

*/
readonly expectAmount?: Partial<Record<Lowercase<ExpectationUnit>, {
min?: ExpectationAmount;
max?: ExpectationAmount;
}>>;
readonly expectations?: Expectations;
/**

@@ -115,0 +123,0 @@ * Expect this format of the answer

{
"name": "@promptbook/remote-client",
"version": "0.44.0-1",
"version": "0.44.0-2",
"description": "Library to supercharge your use of large language models",

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

"peerDependencies": {
"@promptbook/core": "0.44.0-1"
"@promptbook/core": "0.44.0-2"
},

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

@@ -5,2 +5,3 @@ import { promptbookStringToJson } from '../conversion/promptbookStringToJson';

import { MockedEchoNaturalExecutionTools } from '../execution/plugins/natural-execution-tools/mocked/MockedEchoNaturalExecutionTools';
import { MockedFackedNaturalExecutionTools } from '../execution/plugins/natural-execution-tools/mocked/MockedFackedNaturalExecutionTools';
import { CallbackInterfaceTools } from '../execution/plugins/user-interface-execution-tools/callback/CallbackInterfaceTools';

@@ -19,4 +20,4 @@ import { CallbackInterfaceToolsOptions } from '../execution/plugins/user-interface-execution-tools/callback/CallbackInterfaceToolsOptions';

export { promptbookStringToJson, validatePromptbookJson };
export { MockedEchoNaturalExecutionTools };
export { MockedEchoNaturalExecutionTools, MockedFackedNaturalExecutionTools };
export { createPromptbookExecutor };
export { CallbackInterfaceTools, CallbackInterfaceToolsOptions };

@@ -21,3 +21,3 @@ import { Prompt } from '../../../../types/Prompt';

/**
* TODO: Allow in spaceTrim: nesting with > ${block(prompt.request)}
* TODO: Allow in spaceTrim: nesting with > ${block(prompt.request)}, same as replace params
*/
import type { string_name, string_prompt, string_promptbook_url_with_hashtemplate, string_title } from '.././types/typeAliases';
import type { ModelRequirements } from './ModelRequirements';
import type { Expectations } from './PromptbookJson/PromptTemplateJson';
/**

@@ -27,2 +28,9 @@ * Prompt in a text along with model requirements, but without any execution or templating logic.

/**
* Expectations for the answer
*
* For example 5 words, 3 sentences, 2 paragraphs, ...
* If not set, nothing is expected from the answer
*/
readonly expectations?: Expectations;
/**
* Unique identifier of the promptbook with specific template name as hash

@@ -29,0 +37,0 @@ *

@@ -22,2 +22,13 @@ import { ExpectFormatCommand } from '../Command';

/**
* Expect this amount of each unit in the answer
*
* For example 5 words, 3 sentences, 2 paragraphs, ...
*
* Note: Expectations are performed after all postprocessing steps
*/
export type Expectations = Partial<Record<Lowercase<ExpectationUnit>, {
min?: ExpectationAmount;
max?: ExpectationAmount;
}>>;
/**
* Units of text measurement

@@ -109,6 +120,3 @@ */

*/
readonly expectAmount?: Partial<Record<Lowercase<ExpectationUnit>, {
min?: ExpectationAmount;
max?: ExpectationAmount;
}>>;
readonly expectations?: Expectations;
/**

@@ -115,0 +123,0 @@ * Expect this format of the answer

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