effect-io-ai

Package: @effect/ai
Module: Response

Response.ConstructorParams

A utility type for specifying the parameters required to construct a specific response part.

Signature

type ConstructorParams<Part> = Omit<Part, PartTypeId | "type" | "sourceType" | "metadata"> & {
  /**
   * Optional provider-specific metadata for this part.
   */
  readonly metadata?: Part["metadata"] | undefined
}

Source

Since v1.0.0