@promptbook/remote-client
Advanced tools
Comparing version 0.44.0-1 to 0.44.0-2
@@ -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 |
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
363751
432
6294