@promptbook/core
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/core", | ||
"version": "0.44.0-1", | ||
"version": "0.44.0-2", | ||
"description": "Library to supercharge your use of large language models", | ||
@@ -37,2 +37,3 @@ "private": false, | ||
"dependencies": { | ||
"lorem-ipsum": "^2.0.8", | ||
"spacetrim": "0.11.2" | ||
@@ -39,0 +40,0 @@ }, |
@@ -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 |
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
747682
432
11661
35
65
452
2
+ Addedlorem-ipsum@^2.0.8
+ Addedcommander@9.5.0(transitive)
+ Addedlorem-ipsum@2.0.8(transitive)