MCPcopy
hub / github.com/coder/mux / makeInteractiveAssistantMessage

Function makeInteractiveAssistantMessage

src/node/services/heartbeatService.test.ts:145–159  ·  view source on GitHub ↗
(timestamp = staleTimestamp)

Source from the content-addressed store, hash-verified

143 }
144
145 function makeInteractiveAssistantMessage(timestamp = staleTimestamp): MuxMessage {
146 const assistantMessage = createMuxMessage("2", "assistant", "asking", { timestamp });
147 (assistantMessage as unknown as { parts: unknown[] }).parts = [
148 { type: "text", text: "Let me ask...", state: "done" },
149 {
150 type: "dynamic-tool",
151 toolName: "ask_user_question",
152 state: "input-available",
153 toolCallId: "tc1",
154 args: {},
155 output: undefined,
156 },
157 ];
158 return assistantMessage;
159 }
160
161 function makeIdleSessionMock(): ReturnType<typeof mock<() => AgentSession>> {
162 return mock(

Callers 1

Calls 1

createMuxMessageFunction · 0.90

Tested by

no test coverage detected