llumo 0.2.19__tar.gz → 0.2.21__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: llumo
3
- Version: 0.2.19
3
+ Version: 0.2.21
4
4
  Summary: Python SDK for interacting with the Llumo ai API.
5
5
  Home-page: https://www.llumo.ai/
6
6
  Author: Llumo
@@ -497,9 +497,16 @@ def getPlaygroundInsights(defination:str,uniqueClassesString: str, reasonList: l
497
497
 
498
498
  if responseGenerate.status_code == 200:
499
499
  responseJson = responseGenerate.json()
500
-
501
- filteredResponse = {key: value for key, value in responseJson.items() if key in ['analysis', 'nextStep']}
502
-
500
+ # print(responseJson)
501
+
502
+ # ✅ NEW: unwrap "data" if it exists, otherwise fall back to the old shape
503
+ payloadData = responseJson.get("data", responseJson)
504
+
505
+ # keep only the fields you care about
506
+ filteredResponse = {
507
+ key: payloadData[key] for key in ("analysis", "nextStep") if key in payloadData
508
+ }
509
+
503
510
  return filteredResponse
504
511
  except Exception as e:
505
512
  print(f"Exception occurred while generating insight: {e}")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: llumo
3
- Version: 0.2.19
3
+ Version: 0.2.21
4
4
  Summary: Python SDK for interacting with the Llumo ai API.
5
5
  Home-page: https://www.llumo.ai/
6
6
  Author: Llumo
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes