effect-io-ai

Package: @effect/ai
Module: Response

Response.BasePart

Base interface for all response content parts.

Provides common structure including type identifier and optional metadata.

Signature

export interface BasePart<Type extends string, Metadata extends ProviderMetadata> {
  readonly [PartTypeId]: PartTypeId
  /**
   * The type of this response part.
   */
  readonly type: Type
  /**
   * Optional provider-specific metadata for this part.
   */
  readonly metadata: Metadata
}

Source

Since v1.0.0