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:156
Properties
blame
• Readonly
blame: ErrorBlame
Inherited from
Defined in
packages/ai-jsx/src/batteries/constrained-output.tsx:158
code
• Readonly
code: ErrorCode
Inherited from
Defined in
packages/ai-jsx/src/core/errors.ts:57
metadata
• Readonly
metadata: Object
Inherited from
Defined in
packages/ai-jsx/src/batteries/constrained-output.tsx:159
Methods
toString
▸ toString(): string
Returns
string