llumo 0.2.19__py3-none-any.whl → 0.2.21__py3-none-any.whl

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.
llumo/helpingFuntions.py CHANGED
@@ -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
@@ -5,12 +5,12 @@ llumo/exceptions.py,sha256=Vp_MnanHbnd1Yjuoi6WLrKiwwZbJL3znCox2URMmGU4,2032
5
5
  llumo/execution.py,sha256=nWbJ7AvWuUPcOb6i-JzKRna_PvF-ewZTiK8skS-5n3w,1380
6
6
  llumo/functionCalling.py,sha256=D5jYapu1rIvdIJNUYPYMTyhQ1H-6nkwoOLMi6eekfUE,7241
7
7
  llumo/google.py,sha256=3S_aRtbtlctCXPGR0u4baLlkyFrsjd02vlUCkoRPA5U,2147
8
- llumo/helpingFuntions.py,sha256=ORBM5xPPMHc3ENnJOg4i3Enxtor4En5oDj1d0Zu1mLk,25284
8
+ llumo/helpingFuntions.py,sha256=pv9LrwClQlh8GHyBgRjpbPIFZaPjcqXQBkrvlAo0xyg,25523
9
9
  llumo/models.py,sha256=aVEZsOOoQx5LeNtwSyBxqvrINq0izH3QWu_YjsMPE6o,2910
10
10
  llumo/openai.py,sha256=DGhEwQIJIIycGpw3hYQnyxdj6RFVpZ-gay-fZGqtkhU,3013
11
11
  llumo/sockets.py,sha256=pBDo-U65hMIMwKMwZQl3iBkEjISEt-9BkXxZTWfSHF4,6116
12
- llumo-0.2.19.dist-info/licenses/LICENSE,sha256=tF9yAcfPV9xGT3ViWmC8hPvOo8BEk4ZICbUfcEo8Dlk,182
13
- llumo-0.2.19.dist-info/METADATA,sha256=ef_ff3tb4BdWqBUvau2Y-E-zkG54RyqVx6m87-RETMo,1558
14
- llumo-0.2.19.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
15
- llumo-0.2.19.dist-info/top_level.txt,sha256=d5zUTMI99llPtLRB8rtSrqELm_bOqX-bNC5IcwlDk88,6
16
- llumo-0.2.19.dist-info/RECORD,,
12
+ llumo-0.2.21.dist-info/licenses/LICENSE,sha256=tF9yAcfPV9xGT3ViWmC8hPvOo8BEk4ZICbUfcEo8Dlk,182
13
+ llumo-0.2.21.dist-info/METADATA,sha256=CeHNLHxPgCwExHm3Rh_LI7cVL3ZGC0Hj64pb35VL6iM,1558
14
+ llumo-0.2.21.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
15
+ llumo-0.2.21.dist-info/top_level.txt,sha256=d5zUTMI99llPtLRB8rtSrqELm_bOqX-bNC5IcwlDk88,6
16
+ llumo-0.2.21.dist-info/RECORD,,
File without changes