@promptbook/fake-llm
Advanced tools
Comparing version
@@ -43,2 +43,3 @@ import type { PipelineCollection } from '../collection/PipelineCollection'; | ||
import type { PreparationTask } from '../execution/ExecutionTask'; | ||
import type { task_status } from '../execution/ExecutionTask'; | ||
import type { AbstractTask } from '../execution/ExecutionTask'; | ||
@@ -326,2 +327,3 @@ import type { Task } from '../execution/ExecutionTask'; | ||
export type { PreparationTask }; | ||
export type { task_status }; | ||
export type { AbstractTask }; | ||
@@ -328,0 +330,0 @@ export type { Task }; |
@@ -44,2 +44,6 @@ import type { Observable } from 'rxjs'; | ||
/** | ||
* Status of a task | ||
*/ | ||
export type task_status = 'RUNNING' | 'FINISHED' | 'ERROR'; | ||
/** | ||
* Base interface for all task types | ||
@@ -57,2 +61,14 @@ */ | ||
/** | ||
* Status of the task | ||
*/ | ||
readonly status: task_status; | ||
/** | ||
* Date when the task was created | ||
*/ | ||
readonly createdAt: Date; | ||
/** | ||
* Date when the task was last updated | ||
*/ | ||
readonly updatedAt: Date; | ||
/** | ||
* Gets a promise that resolves with the task result | ||
@@ -71,2 +87,10 @@ */ | ||
currentValue: PartialDeep<TTaskResult>; | ||
/** | ||
* List of errors that occurred during the task processing | ||
*/ | ||
readonly errors: Array<Error>; | ||
/** | ||
* List of warnings that occurred during the task processing | ||
*/ | ||
readonly warnings: Array<Error>; | ||
}; | ||
@@ -73,0 +97,0 @@ export type Task = ExecutionTask | PreparationTask; |
{ | ||
"name": "@promptbook/fake-llm", | ||
"version": "0.88.0-1", | ||
"version": "0.88.0-8", | ||
"description": "It's time for a paradigm shift. The future of software in plain English, French or Latin", | ||
@@ -50,3 +50,3 @@ "private": false, | ||
"peerDependencies": { | ||
"@promptbook/core": "0.88.0-1" | ||
"@promptbook/core": "0.88.0-8" | ||
}, | ||
@@ -53,0 +53,0 @@ "dependencies": { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
858414
0.13%695
0.14%17813
0.21%