Loading...
Skip to main content

Class: CompletionError

batteries/constrained-output.CompletionError

A generic error thrown by AI.JSX. It could be a user error, runtime error, or internal error.

Hierarchy

Constructors

constructor

new CompletionError(message, blame, metadata)

Parameters

NameType
messagestring
blameErrorBlame
metadataObject

Overrides

AIJSXError.constructor

Defined in

ai-jsx/src/batteries/constrained-output.tsx:157

Properties

blame

Readonly blame: ErrorBlame

Inherited from

AIJSXError.blame

Defined in

ai-jsx/src/batteries/constrained-output.tsx:159


code

Readonly code: ErrorCode

Inherited from

AIJSXError.code

Defined in

ai-jsx/src/core/errors.ts:75


metadata

Readonly metadata: Object

Inherited from

AIJSXError.metadata

Defined in

ai-jsx/src/batteries/constrained-output.tsx:160

Methods

toString

toString(): string

Returns

string

Inherited from

AIJSXError.toString

Defined in

ai-jsx/src/core/errors.ts:99