mirror of
https://github.com/OpenHands/OpenHands.git
synced 2025-12-26 05:48:36 +08:00
17 lines
467 B
TypeScript
17 lines
467 B
TypeScript
import { OpenHandsObservation } from "./types/core/observations";
|
|
import { OpenHandsAction } from "./types/core/actions";
|
|
|
|
export type Message = {
|
|
sender: "user" | "assistant";
|
|
content: string;
|
|
timestamp: string;
|
|
imageUrls?: string[];
|
|
type?: "thought" | "error" | "action";
|
|
success?: boolean;
|
|
pending?: boolean;
|
|
translationID?: string;
|
|
eventID?: number;
|
|
observation?: { payload: OpenHandsObservation };
|
|
action?: { payload: OpenHandsAction };
|
|
};
|