vlapparov commited on
Commit
8eb9094
·
verified ·
1 Parent(s): 44b00a6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +15 -1
app.py CHANGED
@@ -23,6 +23,10 @@ from datetime import datetime
23
 
24
  custom_role_conversions = {"tool-call": "assistant", "tool-response": "user"}
25
 
 
 
 
 
26
 
27
  class BasicAgent:
28
  def __init__(self):
@@ -70,7 +74,17 @@ class BasicAgent:
70
 
71
  try:
72
  # Run the agent
73
- response = self.agent.run(full_prompt)
 
 
 
 
 
 
 
 
 
 
74
 
75
  # Clean up the response
76
  # Remove any system-prompt-like text at the beginning
 
23
 
24
  custom_role_conversions = {"tool-call": "assistant", "tool-response": "user"}
25
 
26
+ from linkup import LinkupClient
27
+
28
+
29
+
30
 
31
  class BasicAgent:
32
  def __init__(self):
 
74
 
75
  try:
76
  # Run the agent
77
+ # response = self.agent.run(full_prompt)
78
+ client = LinkupClient()
79
+
80
+ response = client.search(
81
+ query=question,
82
+ depth="deep",
83
+ output_type="sourcedAnswer",
84
+ include_images=False,
85
+ )
86
+
87
+ # print(response)
88
 
89
  # Clean up the response
90
  # Remove any system-prompt-like text at the beginning