supratipb commited on
Commit
a685af7
Β·
verified Β·
1 Parent(s): 15cc0b8

Upload agent.py

Browse files
Files changed (1) hide show
  1. agent.py +2 -0
agent.py CHANGED
@@ -115,6 +115,7 @@ def arvix_search(query: str) -> str:
115
 
116
  @tool
117
  def wolfram_alpha_query(query: str) -> str:
 
118
  import wolframalpha
119
  client = wolframalpha.Client(os.environ['WOLFRAM_APP_ID'])
120
  res = client.query(query)
@@ -124,6 +125,7 @@ def wolfram_alpha_query(query: str) -> str:
124
  return "No result found."
125
 
126
 
 
127
  # load the system prompt from the file
128
  with open("system_prompt.txt", "r", encoding="utf-8") as f:
129
  system_prompt = f.read()
 
115
 
116
  @tool
117
  def wolfram_alpha_query(query: str) -> str:
118
+ """Query Wolfram Alpha with the given question and return the result."""
119
  import wolframalpha
120
  client = wolframalpha.Client(os.environ['WOLFRAM_APP_ID'])
121
  res = client.query(query)
 
125
  return "No result found."
126
 
127
 
128
+
129
  # load the system prompt from the file
130
  with open("system_prompt.txt", "r", encoding="utf-8") as f:
131
  system_prompt = f.read()