(block: ContentBlock)
| 48 | } |
| 49 | |
| 50 | const addBlock = (block: ContentBlock) => { |
| 51 | updateAiMessage((msg) => ({ |
| 52 | ...msg, |
| 53 | blocks: [...(msg.blocks ?? []), block], |
| 54 | })) |
| 55 | } |
| 56 | |
| 57 | const markComplete = (metadata?: Partial<ChatMessage>) => { |
| 58 | updateAiMessage((msg) => { |
nothing calls this directly
no test coverage detected