danielkorat commited on
Commit
3c1a86f
·
verified ·
1 Parent(s): c621073

Update my_tools.py

Browse files
Files changed (1) hide show
  1. my_tools.py +1 -1
my_tools.py CHANGED
@@ -37,7 +37,7 @@ def knowledge_and_intelligence_tool(query: str)-> str:
37
  data = response.json()
38
 
39
  if data.get("queryresult").get("error"): # Check if there's an error in the response
40
- return f"Error: {data["queryresult"]['error'].get('msg', 'Unable to fetch Wolfram response.')}"
41
 
42
  response = ""
43
  for result in data.get("queryresult").get("pods")[0].get("subpods"):
 
37
  data = response.json()
38
 
39
  if data.get("queryresult").get("error"): # Check if there's an error in the response
40
+ return f"Error: {data['queryresult]['error'].get('msg', 'Unable to fetch Wolfram response.')}"
41
 
42
  response = ""
43
  for result in data.get("queryresult").get("pods")[0].get("subpods"):