dsh-better-chat/src/client/chat-seat.ts

11 lines
284 B
TypeScript

export type ChatSeatKind = 'user' | 'steering';
export function chatSeatProps(kind: ChatSeatKind, key: string): Record<string, string> {
return {
'data-chat-anchor-key': key,
'data-chat-flow-key': key,
'data-chat-node-key': key,
'data-chat-flow-kind': kind,
};
}