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

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

Properties

blame

Readonly blame: ErrorBlame

Inherited from

AIJSXError.blame

Defined in

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


code

Readonly code: ErrorCode

Inherited from

AIJSXError.code

Defined in

packages/ai-jsx/src/core/errors.ts:65


metadata

Readonly metadata: Object

Inherited from

AIJSXError.metadata

Defined in

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

Methods

toString

toString(): string

Returns

string

Inherited from

AIJSXError.toString

Defined in

packages/ai-jsx/src/core/errors.ts:89