Event of text message.

interface IText {
    done: boolean;
    role: "assistant" | "user";
    text: string;
    type: "text";
}

Hierarchy

  • IBase<"text">
    • IText

Properties

Properties

done: boolean

Whether the streaming is completed or not.

role: "assistant" | "user"

Role of the orator.

text: string

Conversation text.

type: "text"

Discriminator type.