effect-io-ai

Package: @effect/ai
Module: Response

Response.TextPart

Response part representing plain text content.

Example

import { Response } from "@effect/ai"

const textPart: Response.TextPart = Response.makePart("text", {
  text: "The answer to your question is 42.",
})

Signature

export interface TextPart extends BasePart<"text", TextPartMetadata> {
  /**
   * The text content.
   */
  readonly text: string
}

Source

Since v1.0.0