({ content, metadata })
| 178 | content: string; |
| 179 | metadata: { error_code?: string; recoverable?: boolean }; |
| 180 | }> = ({ content, metadata }) => ( |
| 181 | <Alert |
| 182 | type="error" |
| 183 | showIcon |
| 184 | icon={<WarningOutlined />} |
| 185 | message={ |
| 186 | <Space> |
| 187 | <span>❌ 错误</span> |
| 188 | {metadata.error_code && ( |
| 189 | <Tag color="red" style={{ fontSize: '10px' }}> |
| 190 | {metadata.error_code} |
| 191 | </Tag> |
| 192 | )} |
| 193 | </Space> |
| 194 | } |
| 195 | description={content} |
| 196 | className={styles.errorMessage} |
| 197 | /> |
| 198 | ); |
| 199 | |
| 200 | /** |
| 201 | * 流式加载指示器 |
nothing calls this directly
no outgoing calls
no test coverage detected