Package: @effect/ai
Module: Prompt
Content part representing plain text.
The most basic content type used for textual information in messages.
Example
import { Prompt } from "@effect/ai"
const textPart: Prompt.TextPart = Prompt.makePart("text", {
text: "Hello, how can I help you today?",
})
Signature
export interface TextPart extends BasePart<"text", TextPartOptions> {
/**
* The text content.
*/
readonly text: string
}
Since v1.0.0