discovery-engine-api 0.2.82__tar.gz → 0.2.83__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.82
3
+ Version: 0.2.83
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.82"
3
+ __version__ = "0.2.83"
4
4
 
5
5
  from discovery.client import Engine
6
6
  from discovery.types import (
@@ -35,7 +35,7 @@ from discovery.types import (
35
35
 
36
36
 
37
37
  class Engine:
38
- """Client for the Disco API.
38
+ """Client for Disco API.
39
39
 
40
40
  The primary method is ``discover()`` — submit a dataset, wait for analysis,
41
41
  and get back structured patterns with p-values, novelty scores, and citations.
@@ -219,7 +219,7 @@ class Engine:
219
219
  self,
220
220
  file: Union[str, Path, "pd.DataFrame"],
221
221
  target_column: str,
222
- depth_iterations: int = 1,
222
+ depth_iterations: int = 2,
223
223
  visibility: str = "public",
224
224
  title: Optional[str] = None,
225
225
  description: Optional[str] = None,
@@ -274,7 +274,7 @@ class Engine:
274
274
  self,
275
275
  file: Union[str, Path, "pd.DataFrame"],
276
276
  target_column: str,
277
- depth_iterations: int = 1,
277
+ depth_iterations: int = 2,
278
278
  visibility: str = "public",
279
279
  title: Optional[str] = None,
280
280
  description: Optional[str] = None,
@@ -382,7 +382,7 @@ class Engine:
382
382
  file_size_mb: float,
383
383
  num_columns: int,
384
384
  num_rows: Optional[int] = None,
385
- depth_iterations: int = 1,
385
+ depth_iterations: int = 2,
386
386
  visibility: str = "public",
387
387
  ) -> Dict[str, Any]:
388
388
  """Estimate cost and time for an analysis run.
@@ -737,7 +737,7 @@ class Engine:
737
737
  self,
738
738
  file: Union[str, Path, "pd.DataFrame"],
739
739
  target_column: str,
740
- depth_iterations: int = 1,
740
+ depth_iterations: int = 2,
741
741
  title: Optional[str] = None,
742
742
  description: Optional[str] = None,
743
743
  column_descriptions: Optional[Dict[str, str]] = None,
@@ -776,13 +776,13 @@ class Engine:
776
776
  Returns:
777
777
  EngineResult with run_id and (if wait=True) complete results.
778
778
  """
779
- # Public runs are always depth=1 (server enforces this)
780
- if depth_iterations > 1 and visibility == "public":
779
+ # Public runs are capped at depth=2 (server enforces this)
780
+ if depth_iterations > 2 and visibility == "public":
781
781
  self._log(
782
- "Public runs use depth=1. Upgrade your plan at disco.leap-labs.com/subscribe "
783
- "to see more patterns and get priority processing."
782
+ "Public runs are capped at depth=2. Upgrade your plan at disco.leap-labs.com/subscribe "
783
+ "for deeper analysis and priority processing."
784
784
  )
785
- depth_iterations = 1
785
+ depth_iterations = 2
786
786
 
787
787
  if upload_result:
788
788
  uploaded_file = upload_result["file"]
@@ -894,7 +894,7 @@ class Engine:
894
894
  self,
895
895
  file: Union[str, Path, "pd.DataFrame"],
896
896
  target_column: str,
897
- depth_iterations: int = 1,
897
+ depth_iterations: int = 2,
898
898
  title: Optional[str] = None,
899
899
  description: Optional[str] = None,
900
900
  column_descriptions: Optional[Dict[str, str]] = None,
@@ -1,4 +1,4 @@
1
- """Structured error types for the Disco SDK.
1
+ """Structured error types for Disco SDK.
2
2
 
3
3
  Every error includes enough context for agents to self-correct without
4
4
  reading documentation or asking for help.
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "discovery-engine-api"
3
- version = "0.2.82"
3
+ version = "0.2.83"
4
4
  description = "Python SDK for Disco API"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.10"