discovery-engine-api 0.2.87__tar.gz → 0.2.89__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: discovery-engine-api
3
- Version: 0.2.87
3
+ Version: 0.2.89
4
4
  Summary: Python SDK for Disco API
5
5
  Project-URL: Homepage, https://www.leap-labs.com
6
6
  Project-URL: Documentation, https://disco.leap-labs.com/llms-full.txt
@@ -1,6 +1,6 @@
1
1
  """Disco Python SDK."""
2
2
 
3
- __version__ = "0.2.87"
3
+ __version__ = "0.2.89"
4
4
 
5
5
  from discovery.client import Engine
6
6
  from discovery.types import (
@@ -1040,33 +1040,8 @@ class Engine:
1040
1040
  scores=scores,
1041
1041
  )
1042
1042
 
1043
- # Build report URL if we have a report_id
1044
1043
  report_url = data.get("report_url")
1045
- if not report_url and data.get("report_id"):
1046
- report_url = f"{self.dashboard_url}/reports/{data['report_id']}"
1047
-
1048
- # Build dashboard_urls from API response, or construct from report_id
1049
1044
  dashboard_urls = data.get("dashboard_urls")
1050
- if not dashboard_urls and data.get("report_id"):
1051
- base = f"{self.dashboard_url}/reports/{data['report_id']}"
1052
- dashboard_urls = {
1053
- "summary": {
1054
- "url": f"{base}/summary",
1055
- "description": "AI-generated overview with key insights, novel findings, and a plain-language explanation of the most important findings.",
1056
- },
1057
- "patterns": {
1058
- "url": f"{base}/patterns",
1059
- "description": "Full list of discovered patterns with conditions, effect sizes, p-values, support counts, novelty scores, and academic citations. Interactive visualisations for each pattern.",
1060
- },
1061
- "features": {
1062
- "url": f"{base}/features",
1063
- "description": "Feature importances, feature statistics and distribution plots, and correlation matrix.",
1064
- },
1065
- "territory": {
1066
- "url": f"{base}/territory",
1067
- "description": "Interactive 3D map showing how patterns select different regions of the data.",
1068
- },
1069
- }
1070
1045
 
1071
1046
  hints = data.get("hints", [])
1072
1047
  hidden_deep_count = data.get("hidden_deep_count", 0)
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "discovery-engine-api"
3
- version = "0.2.87"
3
+ version = "0.2.89"
4
4
  description = "Python SDK for Disco API"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.10"