effect-io-ai

Package: @effect/ai
Module: Response

Response.ErrorPart

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
}

Source

Since v1.0.0