Package: @effect/ai
Module: Response
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
}
Since v1.0.0