( input: WorkflowRunCardInput, result: WorkflowRunCardResult, now = Date.now() )
| 206 | } |
| 207 | |
| 208 | export 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 | } |
no test coverage detected