@promptbook/remote-client
Advanced tools
Comparing version 0.67.1 to 0.67.2
@@ -8,3 +8,3 @@ import { io } from 'socket.io-client'; | ||
*/ | ||
var PROMPTBOOK_VERSION = '0.67.0'; | ||
var PROMPTBOOK_VERSION = '0.67.1'; | ||
// TODO: !!!! List here all the versions and annotate + put into script | ||
@@ -367,2 +367,21 @@ | ||
/** | ||
* This error occurs when some expectation is not met in the execution of the pipeline | ||
* | ||
* @public exported from `@promptbook/core` | ||
* Note: Do not throw this error, its reserved for `checkExpectations` and `createPipelineExecutor` and public ONLY to be serializable through remote server | ||
* Note: Always thrown in `checkExpectations` and catched in `createPipelineExecutor` and rethrown as `PipelineExecutionError` | ||
* Note: This is a kindof subtype of PipelineExecutionError | ||
*/ | ||
var ExpectError = /** @class */ (function (_super) { | ||
__extends(ExpectError, _super); | ||
function ExpectError(message) { | ||
var _this = _super.call(this, message) || this; | ||
_this.name = 'ExpectError'; | ||
Object.setPrototypeOf(_this, ExpectError.prototype); | ||
return _this; | ||
} | ||
return ExpectError; | ||
}(Error)); | ||
/** | ||
* This error type indicates that some limit was reached | ||
@@ -485,2 +504,3 @@ * | ||
var ERRORS = { | ||
ExpectError: ExpectError, | ||
CollectionError: CollectionError, | ||
@@ -487,0 +507,0 @@ EnvironmentMismatchError: EnvironmentMismatchError, |
@@ -17,3 +17,2 @@ declare const _default: ({ | ||
modelVariant: string; | ||
modelName: string; | ||
}; | ||
@@ -45,3 +44,2 @@ content: string; | ||
modelVariant: string; | ||
modelName: string; | ||
}; | ||
@@ -48,0 +46,0 @@ content: string; |
@@ -30,2 +30,3 @@ import { PROMPTBOOK_VERSION } from '../version'; | ||
import { EnvironmentMismatchError } from '../errors/EnvironmentMismatchError'; | ||
import { ExpectError } from '../errors/ExpectError'; | ||
import { ERRORS } from '../errors/index'; | ||
@@ -103,2 +104,3 @@ import { LimitReachedError } from '../errors/LimitReachedError'; | ||
export { EnvironmentMismatchError }; | ||
export { ExpectError }; | ||
export { ERRORS }; | ||
@@ -105,0 +107,0 @@ export { LimitReachedError }; |
import { CollectionError } from './CollectionError'; | ||
import { EnvironmentMismatchError } from './EnvironmentMismatchError'; | ||
import { ExpectError } from './ExpectError'; | ||
import { LimitReachedError } from './LimitReachedError'; | ||
@@ -17,2 +18,3 @@ import { NotFoundError } from './NotFoundError'; | ||
export declare const ERRORS: { | ||
readonly ExpectError: typeof ExpectError; | ||
readonly CollectionError: typeof CollectionError; | ||
@@ -19,0 +21,0 @@ readonly EnvironmentMismatchError: typeof EnvironmentMismatchError; |
@@ -17,2 +17,4 @@ import type { PipelineJson } from '../types/PipelineJson/PipelineJson'; | ||
* TODO: [🛠] Actions, instruments (and maybe knowledge) => Functions and tools | ||
* TODO: [🧠][♏] Maybe if expecting JSON (In Anthropic Claude and other models without non-json) and its not specified in prompt content, append the instructions | ||
* @see https://docs.anthropic.com/en/docs/test-and-evaluate/strengthen-guardrails/increase-consistency#specify-the-desired-output-format | ||
*/ |
{ | ||
"name": "@promptbook/remote-client", | ||
"version": "0.67.1", | ||
"version": "0.67.2", | ||
"description": "Supercharge your use of large language models", | ||
@@ -50,3 +50,3 @@ "private": false, | ||
"peerDependencies": { | ||
"@promptbook/core": "0.67.1" | ||
"@promptbook/core": "0.67.2" | ||
}, | ||
@@ -53,0 +53,0 @@ "dependencies": { |
@@ -15,3 +15,3 @@ (function (global, factory) { | ||
*/ | ||
var PROMPTBOOK_VERSION = '0.67.0'; | ||
var PROMPTBOOK_VERSION = '0.67.1'; | ||
// TODO: !!!! List here all the versions and annotate + put into script | ||
@@ -374,2 +374,21 @@ | ||
/** | ||
* This error occurs when some expectation is not met in the execution of the pipeline | ||
* | ||
* @public exported from `@promptbook/core` | ||
* Note: Do not throw this error, its reserved for `checkExpectations` and `createPipelineExecutor` and public ONLY to be serializable through remote server | ||
* Note: Always thrown in `checkExpectations` and catched in `createPipelineExecutor` and rethrown as `PipelineExecutionError` | ||
* Note: This is a kindof subtype of PipelineExecutionError | ||
*/ | ||
var ExpectError = /** @class */ (function (_super) { | ||
__extends(ExpectError, _super); | ||
function ExpectError(message) { | ||
var _this = _super.call(this, message) || this; | ||
_this.name = 'ExpectError'; | ||
Object.setPrototypeOf(_this, ExpectError.prototype); | ||
return _this; | ||
} | ||
return ExpectError; | ||
}(Error)); | ||
/** | ||
* This error type indicates that some limit was reached | ||
@@ -492,2 +511,3 @@ * | ||
var ERRORS = { | ||
ExpectError: ExpectError, | ||
CollectionError: CollectionError, | ||
@@ -494,0 +514,0 @@ EnvironmentMismatchError: EnvironmentMismatchError, |
Sorry, the diff of this file is not supported yet
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
506323
9636