1- import { SchedulerTypes } from 'devextreme-react/scheduler' ;
21import { ChatTypes } from 'devextreme-react/chat' ;
32
3+ export const REGENERATION_TEXT = 'Regeneration...' ;
4+
45export const firstAuthor : ChatTypes . User = {
56 id : "c94c0e76-fb49-4b9b-8f07-9f93ed93b4f3" ,
67 name : "John Doe" ,
@@ -22,6 +23,12 @@ export const fourthAuthor: ChatTypes.User = {
2223 name : "Crash Bandicoot"
2324} ;
2425
26+ export const assistant : ChatTypes . User = {
27+ id : 'assistant' ,
28+ name : 'Virtual Assistant' ,
29+ avatarUrl : "https://devexpress.github.io/DevExtreme/images/icons/bot.png" ,
30+ } ;
31+
2532const todayDate = new Date ( ) ;
2633
2734const date = new Date ( ) ;
@@ -86,3 +93,133 @@ export const initialMessages: ChatTypes.Message[] = [
8693] ;
8794
8895export const longError = { id : '1234' , message : 'Error Message. An unexpected issue occurred while processing your request. Please check your internet connection or contact support for further assistance.' } ;
96+
97+ export const userRequest : ChatTypes . Message =
98+ {
99+ timestamp : todayDate ,
100+ author : secondAuthor ,
101+ text : "What is AI?"
102+ }
103+ ;
104+
105+ export const regenerationMessage : ChatTypes . Message = {
106+ timestamp : todayDate ,
107+ author : assistant ,
108+ text : REGENERATION_TEXT ,
109+ } ;
110+
111+ export const assistantReplies : ChatTypes . Message [ ] = [
112+ {
113+ timestamp : todayDate ,
114+ author : assistant ,
115+ text : `<p>Artificial Intelligence (AI) is a branch of computer science that focuses on
116+ creating systems capable of performing tasks that typically require human intelligence.
117+ These tasks include learning, reasoning, problem-solving, understanding natural
118+ language, recognizing patterns, and even making decisions.</p>
119+ <p>AI can be divided into several subfields and categories:</p>
120+ <h3><strong>Types of AI Based on Capability</strong></h3>
121+ <ul>
122+ <li><strong>Narrow AI (Weak AI):</strong> Specialized in performing a single task
123+ or a narrow range of tasks, like language translation, facial recognition,
124+ or recommendation systems. Most AI systems today fall into this category.
125+ </li>
126+ <li><strong>General AI (Strong AI):</strong> A hypothetical form of AI that possesses
127+ the ability to understand, learn, and apply knowledge across a broad range
128+ of tasks, much like a human being.
129+ </li>
130+ <li><strong>Superintelligent AI:</strong> A theoretical concept where AI surpasses
131+ human intelligence across all domains, potentially transforming or outstripping
132+ human capabilities.
133+ </li>
134+ </ul>
135+ <p>AI continues to evolve, impacting nearly every aspect of modern life while raising
136+ ethical, societal, and technological challenges.</p>` . replace ( / \s { 2 , } / gm, '' ) ,
137+ } ,
138+ {
139+ timestamp : todayDate ,
140+ author : assistant ,
141+ text : `<p>Artificial Intelligence (AI) is a branch of computer science that focuses on
142+ creating systems capable of performing tasks that typically require human intelligence.
143+ These tasks include learning, reasoning, problem-solving, understanding natural
144+ language, recognizing patterns, and even making decisions.</p>
145+ <p>AI can be divided into several subfields and categories:</p>
146+ <h3><strong>Types of AI Based on Functionality</strong></h3>
147+ <ol>
148+ <li><strong>Reactive Machines:</strong> AI systems that respond to specific inputs
149+ with predefined outputs, without memory or past experiences influencing their
150+ decisions (e.g., IBM's Deep Blue chess-playing computer).
151+ </li>
152+ <li><strong>Limited Memory:</strong> AI systems that can use past data for a short
153+ time to inform decisions, such as self-driving cars.
154+ </li>
155+ <li><strong>Theory of Mind:</strong> A more advanced concept where AI would
156+ understand emotions, beliefs, and intentions, allowing it to interact more
157+ naturally with humans. This remains largely in the research phase.
158+ </li>
159+ <li><strong>Self-Aware AI:</strong> A theoretical AI that has self-awareness and
160+ consciousness.
161+ </li>
162+ </ol>
163+ <p>AI continues to evolve, impacting nearly every aspect of modern life while raising
164+ ethical, societal, and technological challenges.</p>` . replace ( / \s { 2 , } / gm, '' ) ,
165+ } ,
166+ {
167+ timestamp : todayDate ,
168+ author : assistant ,
169+ text : `<p>Artificial Intelligence (AI) is a branch of computer science that focuses on
170+ creating systems capable of performing tasks that typically require human intelligence.
171+ These tasks include learning, reasoning, problem-solving, understanding natural
172+ language, recognizing patterns, and even making decisions.</p>
173+ <p>AI can be divided into several subfields and categories:</p>
174+ <h3><strong>Key Subfields of AI</strong></h3>
175+ <ul>
176+ <li><strong>Machine Learning (ML):</strong> Enables systems to learn and improve
177+ from data without explicit programming.
178+ </li>
179+ <li><strong>Deep Learning:</strong> A subset of ML that uses neural networks with
180+ many layers to analyze complex patterns.
181+ </li>
182+ <li><strong>Natural Language Processing (NLP):</strong> Allows AI to understand,
183+ interpret, and respond to human language.
184+ </li>
185+ <li><strong>Computer Vision:</strong> Enables AI to process and analyze visual data
186+ from the world.
187+ </li>
188+ <li><strong>Robotics:</strong> Focuses on creating AI-driven robots to perform tasks
189+ in the physical world.
190+ </li>
191+ <li><strong>Expert Systems:</strong> Mimic human decision-making using rule-based
192+ systems.
193+ </li>
194+ </ul>
195+ <p>AI continues to evolve, impacting nearly every aspect of modern life while raising
196+ ethical, societal, and technological challenges.</p>` . replace ( / \s { 2 , } / gm, '' ) ,
197+ } ,
198+ {
199+ timestamp : todayDate ,
200+ author : assistant ,
201+ text : `<p>Artificial Intelligence (AI) is a branch of computer science that focuses on
202+ creating systems capable of performing tasks that typically require human intelligence.
203+ These tasks include learning, reasoning, problem-solving, understanding natural
204+ language, recognizing patterns, and even making decisions.</p>
205+ <p>AI can be divided into several subfields and categories:</p>
206+ <h3><strong>Applications of AI</strong></h3>
207+ <ol>
208+ <li><strong>Healthcare:</strong> Diagnosing diseases, drug discovery, and patient
209+ care.
210+ </li>
211+ <li><strong>Finance:</strong> Fraud detection, stock market analysis, and personalized
212+ financial advice.
213+ </li>
214+ <li><strong>Transportation:</strong> Autonomous vehicles and traffic management.</li>
215+ <li><strong>Entertainment:</strong> Personalized content recommendations on platforms
216+ like Netflix or Spotify.
217+ </li>
218+ <li><strong>Customer Service:</strong> Chatbots and virtual assistants like Siri,
219+ Alexa, or Google Assistant.
220+ </li>
221+ </ol>
222+ <p>AI continues to evolve, impacting nearly every aspect of modern life while raising
223+ ethical, societal, and technological challenges.</p>` . replace ( / \s { 2 , } / gm, '' ) ,
224+ }
225+ ] ;
0 commit comments