OpenHands/frontend/src/services/chatService.ts
tofarr a1a9d2f175
Refactor websocket (#4879)
Co-authored-by: sp.wack <83104063+amanape@users.noreply.github.com>
2024-11-11 22:36:07 +00:00

14 lines
279 B
TypeScript

import ActionType from "#/types/ActionType";
export function createChatMessage(
message: string,
images_urls: string[],
timestamp: string,
) {
const event = {
action: ActionType.MESSAGE,
args: { content: message, images_urls, timestamp },
};
return event;
}