mirror of
https://github.com/OpenHands/OpenHands.git
synced 2025-12-26 05:48:36 +08:00
14 lines
279 B
TypeScript
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;
|
|
}
|