Interface AgenticaTextHistory<Role>

interface AgenticaTextHistory<
    Role extends "assistant"
    | "user" = "assistant" | "user",
> {
    role: Role;
    text: string;
    toJSON: () => IAgenticaHistoryJson.IText;
    type: "text";
}

Type Parameters

  • Role extends "assistant" | "user" = "assistant" | "user"

Hierarchy

Properties

Properties

role: Role
text: string
type: "text"

Discriminator type.