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
↳
CompletionError
Constructors
constructor
• new CompletionError(message
, blame
, metadata
)
Parameters
Name | Type |
---|---|
message | string |
blame | ErrorBlame |
metadata | Object |
Overrides
Defined in
packages/ai-jsx/src/batteries/constrained-output.tsx:157
Properties
blame
• Readonly
blame: ErrorBlame
Inherited from
Defined in
packages/ai-jsx/src/batteries/constrained-output.tsx:159
code
• Readonly
code: ErrorCode
Inherited from
Defined in
packages/ai-jsx/src/core/errors.ts:68
metadata
• Readonly
metadata: Object
Inherited from
Defined in
packages/ai-jsx/src/batteries/constrained-output.tsx:160
Methods
toString
▸ toString(): string
Returns
string