+ {messages.length === 0 && !isLoading && (
+ <>
+
+ Ask me anything about the ThoughtSpot docs.
+
+ {suggestedQuestions.length > 0 && (
+
+ {suggestedQuestions.map((q, i) => (
+
+ ))}
+
+ )}
+ >
+ )}
+ {messages.map((msg, i) => (
+
+
+ {msg.role === 'user' ? 'You' : 'AI'}
+
+ {msg.role === 'assistant' ? (
+
+ ) : (
+
+ {msg.content}
+
+ )}
+
+ ))}
+ {isLoading && (
+
+
AI
+ {streamingText ? (
+
+ ) : (
+
+ {toolStatus ? (
+
+ {toolStatus}
+
+ ) : (
+ <>
+
+ >
+ )}
+
+ )}
+
+ )}
+
+