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.
- {discovery_engine_api-0.2.82 → discovery_engine_api-0.2.83}/PKG-INFO +1 -1
- {discovery_engine_api-0.2.82 → discovery_engine_api-0.2.83}/discovery/__init__.py +1 -1
- {discovery_engine_api-0.2.82 → discovery_engine_api-0.2.83}/discovery/client.py +11 -11
- {discovery_engine_api-0.2.82 → discovery_engine_api-0.2.83}/discovery/errors.py +1 -1
- {discovery_engine_api-0.2.82 → discovery_engine_api-0.2.83}/pyproject.toml +1 -1
- {discovery_engine_api-0.2.82 → discovery_engine_api-0.2.83}/.gitignore +0 -0
- {discovery_engine_api-0.2.82 → discovery_engine_api-0.2.83}/README.md +0 -0
- {discovery_engine_api-0.2.82 → discovery_engine_api-0.2.83}/discovery/integrations/__init__.py +0 -0
- {discovery_engine_api-0.2.82 → discovery_engine_api-0.2.83}/discovery/integrations/crewai.py +0 -0
- {discovery_engine_api-0.2.82 → discovery_engine_api-0.2.83}/discovery/integrations/langchain.py +0 -0
- {discovery_engine_api-0.2.82 → discovery_engine_api-0.2.83}/discovery/types.py +0 -0
|
@@ -35,7 +35,7 @@ from discovery.types import (
|
|
|
35
35
|
|
|
36
36
|
|
|
37
37
|
class Engine:
|
|
38
|
-
"""Client for
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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
|
|
780
|
-
if depth_iterations >
|
|
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
|
|
783
|
-
"
|
|
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 =
|
|
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 =
|
|
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,
|
|
File without changes
|
|
File without changes
|
{discovery_engine_api-0.2.82 → discovery_engine_api-0.2.83}/discovery/integrations/__init__.py
RENAMED
|
File without changes
|
{discovery_engine_api-0.2.82 → discovery_engine_api-0.2.83}/discovery/integrations/crewai.py
RENAMED
|
File without changes
|
{discovery_engine_api-0.2.82 → discovery_engine_api-0.2.83}/discovery/integrations/langchain.py
RENAMED
|
File without changes
|
|
File without changes
|