MCPcopy Create free account
hub / github.com/OpenHands/OpenHands / createUserMessageEvent

Function createUserMessageEvent

test-utils.tsx:243–253  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

241
242// Helper to create a user message event
243export const createUserMessageEvent = (id: string): MessageEvent => ({
244 id,
245 timestamp: new Date().toISOString(),
246 source: "user",
247 llm_message: {
248 role: "user",
249 content: [{ type: "text", text: "User message" }],
250 },
251 activated_skills: [],
252 extended_content: [],
253});

Calls

no outgoing calls

Tested by 4

buildEventsFunction · 0.72
renderCompletedResumeFunction · 0.72
buildEventsFunction · 0.72
historyPageFunction · 0.72