@inworld/web-core
Version:
21 lines (20 loc) • 631 B
TypeScript
import { Actor, DialogHistory } from '../../../proto/ai/inworld/packets/packets.pb.js';
export declare enum DialogParticipant {
UNKNOWN = "UNKNOWN",
PLAYER = "PLAYER",
CHARACTER = "CHARACTER"
}
export interface DialogPhrase {
talker: DialogParticipant;
phrase: string;
}
export declare class DialogActor {
static toProto(talker: DialogParticipant): Actor;
static fromProto(actor: Actor): DialogParticipant;
}
export declare class PreviousDialog {
private phrases;
constructor(phrases: DialogPhrase[]);
toProto(): DialogHistory;
static fromProto(dialog: DialogHistory): PreviousDialog;
}