@promptbook/node
Advanced tools
Comparing version 0.69.0-19 to 0.69.0-20
@@ -13,10 +13,34 @@ import { ExpectError } from '../../errors/ExpectError'; | ||
export type $OngoingTemplateResult = { | ||
/** | ||
* @@@ | ||
*/ | ||
$prompt?: Prompt; | ||
/** | ||
* @@@ | ||
*/ | ||
$chatResult?: ChatPromptResult; | ||
/** | ||
* @@@ | ||
*/ | ||
$completionResult?: CompletionPromptResult; | ||
/** | ||
* @@@ | ||
*/ | ||
$embeddingResult?: EmbeddingPromptResult; | ||
/** | ||
* @@@ | ||
*/ | ||
$result: PromptResult | null; | ||
/** | ||
* @@@ | ||
*/ | ||
$resultString: string | null; | ||
/** | ||
* @@@ | ||
*/ | ||
$expectError: ExpectError | null; | ||
/** | ||
* @@@ | ||
*/ | ||
$scriptPipelineExecutionErrors: Array<Error>; | ||
}; |
@@ -36,3 +36,3 @@ import type { ReadonlyDeep } from 'type-fest'; | ||
*/ | ||
readonly parameters: ReadonlyDeep<Parameters>; | ||
readonly parameters: Readonly<Parameters>; | ||
/** | ||
@@ -39,0 +39,0 @@ * @@@ |
@@ -18,3 +18,3 @@ import { ReadonlyDeep } from 'type-fest'; | ||
*/ | ||
readonly outputParameters: Parameters; | ||
readonly outputParameters: Readonly<Parameters>; | ||
/** | ||
@@ -27,15 +27,15 @@ * Whether the execution was successful, details are aviable in `executionReport` | ||
*/ | ||
readonly usage: PromptResultUsage; | ||
readonly usage: ReadonlyDeep<PromptResultUsage>; | ||
/** | ||
* Errors that occured during the execution, details are aviable in `executionReport` | ||
*/ | ||
readonly errors: Array<ErrorJson>; | ||
readonly errors: ReadonlyDeep<Array<ErrorJson>>; | ||
/** | ||
* Warnings that occured during the execution, details are aviable in `executionReport` | ||
*/ | ||
readonly warnings: Array<ErrorJson>; | ||
readonly warnings: ReadonlyDeep<Array<ErrorJson>>; | ||
/** | ||
* The report of the execution with all details | ||
*/ | ||
readonly executionReport: ExecutionReportJson; | ||
readonly executionReport: ReadonlyDeep<ExecutionReportJson>; | ||
/** | ||
@@ -50,5 +50,4 @@ * The prepared pipeline that was used for the execution | ||
/** | ||
* TODO: !!!!!! Maybe add ReadonlyDeep< to all | ||
* TODO: [🧠] Should this file be in /execution or /types folder? | ||
* TODO: [🧠] Maybe constrain `ErrorJson` -> `ErrorJson & { name: 'PipelineExecutionError' | 'Error' }` | ||
*/ |
{ | ||
"name": "@promptbook/node", | ||
"version": "0.69.0-19", | ||
"version": "0.69.0-20", | ||
"description": "Supercharge your use of large language models", | ||
@@ -54,3 +54,3 @@ "private": false, | ||
"peerDependencies": { | ||
"@promptbook/core": "0.69.0-19" | ||
"@promptbook/core": "0.69.0-20" | ||
}, | ||
@@ -57,0 +57,0 @@ "dependencies": { |
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
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
1621388
26052
20
58