LONGYKING commited on
Commit
2fddb4d
·
1 Parent(s): 4890480

added chanlit starter components

Browse files
chatxbt-assistant.py CHANGED
@@ -22,6 +22,33 @@ from src.tools.coin_data_toolkit import CryptoDataTools
22
  # f_assistant.print_response("What is the stock price of NVDA")
23
  # f_assistant.print_response("Write a comparison between NVDA and AMD, use all tools available.")
24
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
25
  @cl.on_chat_start
26
  def start():
27
  is_dev_mode = True if os.getenv("DEV_MODE") else False
 
22
  # f_assistant.print_response("What is the stock price of NVDA")
23
  # f_assistant.print_response("Write a comparison between NVDA and AMD, use all tools available.")
24
 
25
+ @cl.set_starters
26
+ async def set_starters():
27
+ return [
28
+ cl.Starter(
29
+ label="Create a crypto wallet for me",
30
+ message="create a crypto wallet for me",
31
+ icon="/public/wallet-svgrepo-com.svg",
32
+ ),
33
+
34
+ cl.Starter(
35
+ label="Latest News on defi, crypto and solana",
36
+ message="What news are currentlly trending on defi.",
37
+ icon="/public/news-svgrepo-com.svg",
38
+ ),
39
+ cl.Starter(
40
+ label="Get price of BTC, ETH and PEPE",
41
+ message="Get me the Price of BTC, ETH and PEPE",
42
+ icon="/public/coins-electronics-svgrepo-com.svg",
43
+ ),
44
+ cl.Starter(
45
+ label="Get trending stocks",
46
+ message="Get latest stock",
47
+ icon="/public/stockchart-svgrepo-com.svg",
48
+ )
49
+ ]
50
+
51
+
52
  @cl.on_chat_start
53
  def start():
54
  is_dev_mode = True if os.getenv("DEV_MODE") else False
public/coins-electronics-svgrepo-com.svg ADDED
public/news-svgrepo-com.svg ADDED
public/stockchart-svgrepo-com.svg ADDED
public/wallet-svgrepo-com.svg ADDED