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

Update my_tools.py

Browse files
Files changed (1) hide show
  1. my_tools.py +2 -1
my_tools.py CHANGED
@@ -9,6 +9,7 @@ from urllib import parse
9
  WOLFRAM_RESPONSE_KEYS = [
10
  "Result",
11
  "Solution",
 
12
  ]
13
 
14
 
@@ -37,7 +38,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"):
 
9
  WOLFRAM_RESPONSE_KEYS = [
10
  "Result",
11
  "Solution",
12
+ "RealSolution",
13
  ]
14
 
15
 
 
38
  data = response.json()
39
 
40
  if data.get("queryresult").get("error"): # Check if there's an error in the response
41
+ return f"Error: {data['queryresult']['error'].get('msg', 'Unable to fetch Wolfram response.')}"
42
 
43
  response = ""
44
  for result in data.get("queryresult").get("pods")[0].get("subpods"):