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

Function buildWorkflowRunCardMessage

src/common/utils/workflowRunMessages.ts:208–223  ·  view source on GitHub ↗
(
  input: WorkflowRunCardInput,
  result: WorkflowRunCardResult,
  now = Date.now()
)

Source from the content-addressed store, hash-verified

206}
207
208export function buildWorkflowRunCardMessage(
209 input: WorkflowRunCardInput,
210 result: WorkflowRunCardResult,
211 now = Date.now()
212): MuxMessage {
213 const toolPart = buildWorkflowRunToolPart(input, result, now);
214 return {
215 id: toolPart.toolCallId,
216 role: "assistant",
217 parts: [toolPart],
218 metadata: {
219 historySequence: Number.MAX_SAFE_INTEGER,
220 timestamp: now,
221 },
222 };
223}

Calls 1

buildWorkflowRunToolPartFunction · 0.85

Tested by

no test coverage detected