Files
t3code/apps/mobile/src/lib/commandMetadata.ts
T
b3e8c0334b T3 Code Mobile [WIP] (#2013)
Co-authored-by: codex <[email protected]>
Co-authored-by: Julius Marminge <[email protected]>
Co-authored-by: Yash Singh <[email protected]>
2026-05-29 17:00:54 -07:00

26 lines
588 B
TypeScript

import { uuidv4 } from "./uuid";
export interface TurnCommandMetadata {
readonly commandId: string;
readonly messageId: string;
readonly threadId: string;
readonly createdAt: string;
}
export function makeTurnCommandMetadata(): TurnCommandMetadata {
return {
commandId: uuidv4(),
messageId: uuidv4(),
threadId: uuidv4(),
createdAt: new Date().toISOString(),
};
}
export function makeQueuedMessageMetadata(): Omit<TurnCommandMetadata, "threadId"> {
return {
commandId: uuidv4(),
messageId: uuidv4(),
createdAt: new Date().toISOString(),
};
}