Package: @effect/ai
Module: Response
Response part indicating that an error occurred generating the response.
Example
import { Response } from "@effect/ai"
const errorPart: Response.ErrorPart = Response.makePart("error", {
error: new Error("boom")
})
Signature
export interface ErrorPart extends BasePart<"error", ErrorPartMetadata> {
readonly error: unknown
}
Since v1.0.0