( content: string, thinkingOpen: boolean, thinkingId: string, )
| 106 | * Creates a new reasoning (thinking) text block. |
| 107 | */ |
| 108 | const createReasoningBlock = ( |
| 109 | content: string, |
| 110 | thinkingOpen: boolean, |
| 111 | thinkingId: string, |
| 112 | ): TextContentBlock => ({ |
| 113 | type: 'text', |
| 114 | content, |
| 115 | textType: 'reasoning', |
| 116 | thinkingCollapseState: 'preview', |
| 117 | thinkingOpen, |
| 118 | thinkingId, |
| 119 | }) |
| 120 | |
| 121 | /** |
| 122 | * Creates a new regular text block. |
no outgoing calls
no test coverage detected