Files
openchamber/packages/ui/src/lib/messageCompletion.ts
T

20 lines
407 B
TypeScript
Raw Normal View History

2025-12-07 19:32:53 +02:00
/* eslint-disable @typescript-eslint/no-explicit-any */
2026-01-03 13:39:59 +02:00
import type { Part } from "@opencode-ai/sdk/v2";
2025-12-07 19:32:53 +02:00
interface MessageInfo {
2025-12-07 19:32:53 +02:00
id: string;
role: string;
time?: {
created?: number;
completed?: number;
};
status?: string;
streaming?: boolean;
finish?: string;
2025-12-07 19:32:53 +02:00
}
export interface MessageRecord {
info: MessageInfo & Record<string, any>;
parts: Part[];
}