mostlyai 4.2.9__tar.gz → 4.3.1__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.
- {mostlyai-4.2.9 → mostlyai-4.3.1}/PKG-INFO +7 -7
- {mostlyai-4.2.9 → mostlyai-4.3.1}/mostlyai/sdk/__init__.py +1 -1
- {mostlyai-4.2.9 → mostlyai-4.3.1}/mostlyai/sdk/_data/base.py +4 -4
- {mostlyai-4.2.9 → mostlyai-4.3.1}/mostlyai/sdk/_data/context.py +1 -1
- {mostlyai-4.2.9 → mostlyai-4.3.1}/mostlyai/sdk/_data/db/base.py +6 -6
- {mostlyai-4.2.9 → mostlyai-4.3.1}/mostlyai/sdk/_data/file/base.py +5 -5
- {mostlyai-4.2.9 → mostlyai-4.3.1}/mostlyai/sdk/_data/file/table/json.py +5 -5
- {mostlyai-4.2.9 → mostlyai-4.3.1}/mostlyai/sdk/domain.py +34 -19
- mostlyai-4.3.1/mostlyai/sdk/py.typed +1 -0
- {mostlyai-4.2.9 → mostlyai-4.3.1}/pyproject.toml +7 -7
- {mostlyai-4.2.9 → mostlyai-4.3.1}/.gitignore +0 -0
- {mostlyai-4.2.9 → mostlyai-4.3.1}/LICENSE +0 -0
- {mostlyai-4.2.9 → mostlyai-4.3.1}/README.md +0 -0
- {mostlyai-4.2.9 → mostlyai-4.3.1}/mostlyai/sdk/_data/__init__.py +0 -0
- {mostlyai-4.2.9 → mostlyai-4.3.1}/mostlyai/sdk/_data/auto_detect.py +0 -0
- {mostlyai-4.2.9 → mostlyai-4.3.1}/mostlyai/sdk/_data/conversions.py +0 -0
- {mostlyai-4.2.9 → mostlyai-4.3.1}/mostlyai/sdk/_data/db/__init__.py +0 -0
- {mostlyai-4.2.9 → mostlyai-4.3.1}/mostlyai/sdk/_data/db/bigquery.py +0 -0
- {mostlyai-4.2.9 → mostlyai-4.3.1}/mostlyai/sdk/_data/db/databricks.py +0 -0
- {mostlyai-4.2.9 → mostlyai-4.3.1}/mostlyai/sdk/_data/db/hive.py +0 -0
- {mostlyai-4.2.9 → mostlyai-4.3.1}/mostlyai/sdk/_data/db/mssql.py +0 -0
- {mostlyai-4.2.9 → mostlyai-4.3.1}/mostlyai/sdk/_data/db/mysql.py +0 -0
- {mostlyai-4.2.9 → mostlyai-4.3.1}/mostlyai/sdk/_data/db/oracle.py +0 -0
- {mostlyai-4.2.9 → mostlyai-4.3.1}/mostlyai/sdk/_data/db/postgresql.py +0 -0
- {mostlyai-4.2.9 → mostlyai-4.3.1}/mostlyai/sdk/_data/db/snowflake.py +0 -0
- {mostlyai-4.2.9 → mostlyai-4.3.1}/mostlyai/sdk/_data/db/sqlite.py +0 -0
- {mostlyai-4.2.9 → mostlyai-4.3.1}/mostlyai/sdk/_data/db/types_coercion.py +0 -0
- {mostlyai-4.2.9 → mostlyai-4.3.1}/mostlyai/sdk/_data/dtype.py +0 -0
- {mostlyai-4.2.9 → mostlyai-4.3.1}/mostlyai/sdk/_data/exceptions.py +0 -0
- {mostlyai-4.2.9 → mostlyai-4.3.1}/mostlyai/sdk/_data/file/__init__.py +0 -0
- {mostlyai-4.2.9 → mostlyai-4.3.1}/mostlyai/sdk/_data/file/container/__init__.py +0 -0
- {mostlyai-4.2.9 → mostlyai-4.3.1}/mostlyai/sdk/_data/file/container/aws.py +0 -0
- {mostlyai-4.2.9 → mostlyai-4.3.1}/mostlyai/sdk/_data/file/container/azure.py +0 -0
- {mostlyai-4.2.9 → mostlyai-4.3.1}/mostlyai/sdk/_data/file/container/bucket_based.py +0 -0
- {mostlyai-4.2.9 → mostlyai-4.3.1}/mostlyai/sdk/_data/file/container/gcs.py +0 -0
- {mostlyai-4.2.9 → mostlyai-4.3.1}/mostlyai/sdk/_data/file/container/minio.py +0 -0
- {mostlyai-4.2.9 → mostlyai-4.3.1}/mostlyai/sdk/_data/file/table/__init__.py +0 -0
- {mostlyai-4.2.9 → mostlyai-4.3.1}/mostlyai/sdk/_data/file/table/csv.py +0 -0
- {mostlyai-4.2.9 → mostlyai-4.3.1}/mostlyai/sdk/_data/file/table/feather.py +0 -0
- {mostlyai-4.2.9 → mostlyai-4.3.1}/mostlyai/sdk/_data/file/table/parquet.py +0 -0
- {mostlyai-4.2.9 → mostlyai-4.3.1}/mostlyai/sdk/_data/file/utils.py +0 -0
- {mostlyai-4.2.9 → mostlyai-4.3.1}/mostlyai/sdk/_data/language_model.py +0 -0
- {mostlyai-4.2.9 → mostlyai-4.3.1}/mostlyai/sdk/_data/metadata_objects.py +0 -0
- {mostlyai-4.2.9 → mostlyai-4.3.1}/mostlyai/sdk/_data/non_context.py +0 -0
- {mostlyai-4.2.9 → mostlyai-4.3.1}/mostlyai/sdk/_data/progress_callback.py +0 -0
- {mostlyai-4.2.9 → mostlyai-4.3.1}/mostlyai/sdk/_data/pull.py +0 -0
- {mostlyai-4.2.9 → mostlyai-4.3.1}/mostlyai/sdk/_data/pull_context.py +0 -0
- {mostlyai-4.2.9 → mostlyai-4.3.1}/mostlyai/sdk/_data/pull_utils.py +0 -0
- {mostlyai-4.2.9 → mostlyai-4.3.1}/mostlyai/sdk/_data/push.py +0 -0
- {mostlyai-4.2.9 → mostlyai-4.3.1}/mostlyai/sdk/_data/util/__init__.py +0 -0
- {mostlyai-4.2.9 → mostlyai-4.3.1}/mostlyai/sdk/_data/util/common.py +0 -0
- {mostlyai-4.2.9 → mostlyai-4.3.1}/mostlyai/sdk/_data/util/kerberos.py +0 -0
- {mostlyai-4.2.9 → mostlyai-4.3.1}/mostlyai/sdk/_local/__init__.py +0 -0
- {mostlyai-4.2.9 → mostlyai-4.3.1}/mostlyai/sdk/_local/cli.py +0 -0
- {mostlyai-4.2.9 → mostlyai-4.3.1}/mostlyai/sdk/_local/connectors.py +0 -0
- {mostlyai-4.2.9 → mostlyai-4.3.1}/mostlyai/sdk/_local/execution/__init__.py +0 -0
- {mostlyai-4.2.9 → mostlyai-4.3.1}/mostlyai/sdk/_local/execution/jobs.py +0 -0
- {mostlyai-4.2.9 → mostlyai-4.3.1}/mostlyai/sdk/_local/execution/plan.py +0 -0
- {mostlyai-4.2.9 → mostlyai-4.3.1}/mostlyai/sdk/_local/execution/step_analyze_training_data.py +0 -0
- {mostlyai-4.2.9 → mostlyai-4.3.1}/mostlyai/sdk/_local/execution/step_create_data_report.py +0 -0
- {mostlyai-4.2.9 → mostlyai-4.3.1}/mostlyai/sdk/_local/execution/step_create_model_report.py +0 -0
- {mostlyai-4.2.9 → mostlyai-4.3.1}/mostlyai/sdk/_local/execution/step_deliver_data.py +0 -0
- {mostlyai-4.2.9 → mostlyai-4.3.1}/mostlyai/sdk/_local/execution/step_encode_training_data.py +0 -0
- {mostlyai-4.2.9 → mostlyai-4.3.1}/mostlyai/sdk/_local/execution/step_finalize_generation.py +0 -0
- {mostlyai-4.2.9 → mostlyai-4.3.1}/mostlyai/sdk/_local/execution/step_finalize_training.py +0 -0
- {mostlyai-4.2.9 → mostlyai-4.3.1}/mostlyai/sdk/_local/execution/step_generate_data.py +0 -0
- {mostlyai-4.2.9 → mostlyai-4.3.1}/mostlyai/sdk/_local/execution/step_generate_model_report_data.py +0 -0
- {mostlyai-4.2.9 → mostlyai-4.3.1}/mostlyai/sdk/_local/execution/step_pull_training_data.py +0 -0
- {mostlyai-4.2.9 → mostlyai-4.3.1}/mostlyai/sdk/_local/execution/step_train_model.py +0 -0
- {mostlyai-4.2.9 → mostlyai-4.3.1}/mostlyai/sdk/_local/generators.py +0 -0
- {mostlyai-4.2.9 → mostlyai-4.3.1}/mostlyai/sdk/_local/progress.py +0 -0
- {mostlyai-4.2.9 → mostlyai-4.3.1}/mostlyai/sdk/_local/routes.py +0 -0
- {mostlyai-4.2.9 → mostlyai-4.3.1}/mostlyai/sdk/_local/server.py +0 -0
- {mostlyai-4.2.9 → mostlyai-4.3.1}/mostlyai/sdk/_local/storage.py +0 -0
- {mostlyai-4.2.9 → mostlyai-4.3.1}/mostlyai/sdk/_local/synthetic_datasets.py +0 -0
- {mostlyai-4.2.9 → mostlyai-4.3.1}/mostlyai/sdk/client/__init__.py +0 -0
- {mostlyai-4.2.9 → mostlyai-4.3.1}/mostlyai/sdk/client/_base_utils.py +0 -0
- {mostlyai-4.2.9 → mostlyai-4.3.1}/mostlyai/sdk/client/_naming_conventions.py +0 -0
- {mostlyai-4.2.9 → mostlyai-4.3.1}/mostlyai/sdk/client/_utils.py +0 -0
- {mostlyai-4.2.9 → mostlyai-4.3.1}/mostlyai/sdk/client/api.py +0 -0
- {mostlyai-4.2.9 → mostlyai-4.3.1}/mostlyai/sdk/client/base.py +0 -0
- {mostlyai-4.2.9 → mostlyai-4.3.1}/mostlyai/sdk/client/connectors.py +0 -0
- {mostlyai-4.2.9 → mostlyai-4.3.1}/mostlyai/sdk/client/exceptions.py +0 -0
- {mostlyai-4.2.9 → mostlyai-4.3.1}/mostlyai/sdk/client/generators.py +0 -0
- {mostlyai-4.2.9 → mostlyai-4.3.1}/mostlyai/sdk/client/synthetic_datasets.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: mostlyai
|
|
3
|
-
Version: 4.
|
|
3
|
+
Version: 4.3.1
|
|
4
4
|
Summary: Synthetic Data SDK
|
|
5
5
|
Project-URL: homepage, https://app.mostly.ai/
|
|
6
6
|
Project-URL: repository, https://github.com/mostly-ai/mostlyai
|
|
@@ -57,8 +57,8 @@ Requires-Dist: fastapi<0.116,>=0.115.6; extra == 'local'
|
|
|
57
57
|
Requires-Dist: filelock>=3.16.1; extra == 'local'
|
|
58
58
|
Requires-Dist: gcsfs>=2023.1.0; extra == 'local'
|
|
59
59
|
Requires-Dist: joblib>=1.2.0; extra == 'local'
|
|
60
|
-
Requires-Dist: mostlyai-engine==1.1.
|
|
61
|
-
Requires-Dist: mostlyai-qa==1.5.
|
|
60
|
+
Requires-Dist: mostlyai-engine==1.1.6; extra == 'local'
|
|
61
|
+
Requires-Dist: mostlyai-qa==1.5.6; extra == 'local'
|
|
62
62
|
Requires-Dist: networkx<4,>=3.0; extra == 'local'
|
|
63
63
|
Requires-Dist: openpyxl>=3.1.5; extra == 'local'
|
|
64
64
|
Requires-Dist: python-multipart>=0.0.20; extra == 'local'
|
|
@@ -77,8 +77,8 @@ Requires-Dist: fastapi<0.116,>=0.115.6; extra == 'local-cpu'
|
|
|
77
77
|
Requires-Dist: filelock>=3.16.1; extra == 'local-cpu'
|
|
78
78
|
Requires-Dist: gcsfs>=2023.1.0; extra == 'local-cpu'
|
|
79
79
|
Requires-Dist: joblib>=1.2.0; extra == 'local-cpu'
|
|
80
|
-
Requires-Dist: mostlyai-engine[cpu]==1.1.
|
|
81
|
-
Requires-Dist: mostlyai-qa[cpu]==1.5.
|
|
80
|
+
Requires-Dist: mostlyai-engine[cpu]==1.1.6; extra == 'local-cpu'
|
|
81
|
+
Requires-Dist: mostlyai-qa[cpu]==1.5.6; extra == 'local-cpu'
|
|
82
82
|
Requires-Dist: networkx<4,>=3.0; extra == 'local-cpu'
|
|
83
83
|
Requires-Dist: openpyxl>=3.1.5; extra == 'local-cpu'
|
|
84
84
|
Requires-Dist: python-multipart>=0.0.20; extra == 'local-cpu'
|
|
@@ -98,8 +98,8 @@ Requires-Dist: fastapi<0.116,>=0.115.6; extra == 'local-gpu'
|
|
|
98
98
|
Requires-Dist: filelock>=3.16.1; extra == 'local-gpu'
|
|
99
99
|
Requires-Dist: gcsfs>=2023.1.0; extra == 'local-gpu'
|
|
100
100
|
Requires-Dist: joblib>=1.2.0; extra == 'local-gpu'
|
|
101
|
-
Requires-Dist: mostlyai-engine[gpu]==1.1.
|
|
102
|
-
Requires-Dist: mostlyai-qa[gpu]==1.5.
|
|
101
|
+
Requires-Dist: mostlyai-engine[gpu]==1.1.6; extra == 'local-gpu'
|
|
102
|
+
Requires-Dist: mostlyai-qa[gpu]==1.5.6; extra == 'local-gpu'
|
|
103
103
|
Requires-Dist: networkx<4,>=3.0; extra == 'local-gpu'
|
|
104
104
|
Requires-Dist: openpyxl>=3.1.5; extra == 'local-gpu'
|
|
105
105
|
Requires-Dist: python-multipart>=0.0.20; extra == 'local-gpu'
|
|
@@ -534,9 +534,9 @@ class DataTable(abc.ABC):
|
|
|
534
534
|
def read_data(
|
|
535
535
|
self,
|
|
536
536
|
where: dict[str, Any] | None = None,
|
|
537
|
-
|
|
537
|
+
limit: int | None = None,
|
|
538
538
|
columns: list[str] | None = None,
|
|
539
|
-
|
|
539
|
+
shuffle: bool | None = False,
|
|
540
540
|
order_by: OrderBy | None = None,
|
|
541
541
|
do_coerce_dtypes: bool | None = False,
|
|
542
542
|
) -> pd.DataFrame:
|
|
@@ -544,9 +544,9 @@ class DataTable(abc.ABC):
|
|
|
544
544
|
Read data from this data source.
|
|
545
545
|
|
|
546
546
|
:param where: dict of column name and value(s) or a lambda function to filter on
|
|
547
|
-
:param
|
|
547
|
+
:param limit: limit the number of rows returned. If None, return all rows
|
|
548
548
|
:param columns: list of columns to include. If None, all columns are included
|
|
549
|
-
:param
|
|
549
|
+
:param shuffle: whether to shuffle the returned data rows
|
|
550
550
|
:param order_by: optionally, one or multiple columns (asc/desc) to order by
|
|
551
551
|
:param do_coerce_dtypes: bool on whether dtypes shall be converted corresponding to encoding_types
|
|
552
552
|
"""
|
|
@@ -165,7 +165,7 @@ def add_scp_context(
|
|
|
165
165
|
columns=scp_table.columns,
|
|
166
166
|
where={child_key: (ctx_keys[parent_key_prefixed])},
|
|
167
167
|
do_coerce_dtypes=do_coerce_dtypes,
|
|
168
|
-
|
|
168
|
+
shuffle=False,
|
|
169
169
|
)
|
|
170
170
|
|
|
171
171
|
# filtering sibling data with the keys presented on tgt
|
|
@@ -1191,9 +1191,9 @@ class SqlAlchemyTable(DBTable, abc.ABC):
|
|
|
1191
1191
|
def read_data(
|
|
1192
1192
|
self,
|
|
1193
1193
|
where: dict[str, Any] | None = None,
|
|
1194
|
-
|
|
1194
|
+
limit: int | None = None,
|
|
1195
1195
|
columns: list[str] | None = None,
|
|
1196
|
-
|
|
1196
|
+
shuffle: bool | None = None,
|
|
1197
1197
|
order_by: OrderBy | None = None,
|
|
1198
1198
|
do_coerce_dtypes: bool | None = False,
|
|
1199
1199
|
) -> pd.DataFrame:
|
|
@@ -1205,15 +1205,15 @@ class SqlAlchemyTable(DBTable, abc.ABC):
|
|
|
1205
1205
|
if len(stmts) == 1 and self.ENABLE_ORDER_AND_LIMIT_ON_SQL:
|
|
1206
1206
|
# single statement; include ordering and limiting in the SQL statement
|
|
1207
1207
|
# and execute it
|
|
1208
|
-
stmt = self._sa_order(stmts[0],
|
|
1209
|
-
stmt = self._sa_limit(stmt,
|
|
1208
|
+
stmt = self._sa_order(stmts[0], shuffle, order_by)
|
|
1209
|
+
stmt = self._sa_limit(stmt, limit)
|
|
1210
1210
|
df = self._sa_execute([stmt])
|
|
1211
1211
|
else: # len(stmts) > 1 or self.ENABLE_ORDER_AND_LIMIT_ON_SQL is False
|
|
1212
1212
|
# multiple statements; execute them, concatenate results and apply
|
|
1213
1213
|
# ordering and limiting on the final result (in memory)
|
|
1214
1214
|
df = self._sa_execute(stmts)
|
|
1215
|
-
df = self._df_order(df,
|
|
1216
|
-
df = self._df_limit(df,
|
|
1215
|
+
df = self._df_order(df, shuffle, order_by)
|
|
1216
|
+
df = self._df_limit(df, limit)
|
|
1217
1217
|
if do_coerce_dtypes:
|
|
1218
1218
|
df = coerce_dtypes_by_encoding(df, self.encoding_types)
|
|
1219
1219
|
_LOG.info(f"read DB data `{self.name}` {df.shape} in {time.time() - t0:.2f}s")
|
|
@@ -281,9 +281,9 @@ class FileDataTable(DataTable, abc.ABC):
|
|
|
281
281
|
def read_data(
|
|
282
282
|
self,
|
|
283
283
|
where: dict[str, Any] | None = None,
|
|
284
|
-
|
|
284
|
+
limit: int | None = None,
|
|
285
285
|
columns: list[str] | None = None,
|
|
286
|
-
|
|
286
|
+
shuffle: bool | None = False,
|
|
287
287
|
order_by: OrderBy | None = None,
|
|
288
288
|
do_coerce_dtypes: bool | None = False,
|
|
289
289
|
) -> pd.DataFrame:
|
|
@@ -300,10 +300,10 @@ class FileDataTable(DataTable, abc.ABC):
|
|
|
300
300
|
split_blocks=True,
|
|
301
301
|
)
|
|
302
302
|
)
|
|
303
|
-
if
|
|
303
|
+
if shuffle:
|
|
304
304
|
df = df.sample(frac=1)
|
|
305
|
-
if
|
|
306
|
-
df = df.head(
|
|
305
|
+
if limit is not None:
|
|
306
|
+
df = df.head(limit)
|
|
307
307
|
if order_by:
|
|
308
308
|
df = order_df_by(df, order_by)
|
|
309
309
|
if do_coerce_dtypes:
|
|
@@ -51,9 +51,9 @@ class JsonDataTable(FileDataTable):
|
|
|
51
51
|
def read_data(
|
|
52
52
|
self,
|
|
53
53
|
where: dict[str, Any] | None = None,
|
|
54
|
-
|
|
54
|
+
limit: int | None = None,
|
|
55
55
|
columns: list[str] | None = None,
|
|
56
|
-
|
|
56
|
+
shuffle: bool | None = False,
|
|
57
57
|
order_by: OrderBy | None = None,
|
|
58
58
|
do_coerce_dtypes: bool | None = False,
|
|
59
59
|
) -> pd.DataFrame:
|
|
@@ -91,10 +91,10 @@ class JsonDataTable(FileDataTable):
|
|
|
91
91
|
)
|
|
92
92
|
if columns:
|
|
93
93
|
df = df[columns]
|
|
94
|
-
if
|
|
94
|
+
if shuffle:
|
|
95
95
|
df = df.sample(frac=1)
|
|
96
|
-
if
|
|
97
|
-
df = df.head(
|
|
96
|
+
if limit is not None:
|
|
97
|
+
df = df.head(limit)
|
|
98
98
|
if order_by:
|
|
99
99
|
df = order_df_by(df, order_by)
|
|
100
100
|
if do_coerce_dtypes:
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
# limitations under the License.
|
|
14
14
|
|
|
15
15
|
# generated by datamodel-codegen:
|
|
16
|
-
# timestamp: 2025-03-
|
|
16
|
+
# timestamp: 2025-03-11T13:20:00+00:00
|
|
17
17
|
|
|
18
18
|
from __future__ import annotations
|
|
19
19
|
|
|
@@ -507,6 +507,7 @@ class StepCode(str, Enum):
|
|
|
507
507
|
analyze_training_data = "ANALYZE_TRAINING_DATA"
|
|
508
508
|
encode_training_data = "ENCODE_TRAINING_DATA"
|
|
509
509
|
train_model = "TRAIN_MODEL"
|
|
510
|
+
generate_data = "GENERATE_DATA"
|
|
510
511
|
generate_model_report_data = "GENERATE_MODEL_REPORT_DATA"
|
|
511
512
|
create_model_report = "CREATE_MODEL_REPORT"
|
|
512
513
|
finalize_training = "FINALIZE_TRAINING"
|
|
@@ -666,12 +667,14 @@ class AssistantThreadSessionStatus(str, Enum):
|
|
|
666
667
|
class AssistantMessageRole(str, Enum):
|
|
667
668
|
"""
|
|
668
669
|
The role of the author of this message
|
|
670
|
+
user - message is written by assistant user
|
|
671
|
+
assistant - message is written by assistant
|
|
672
|
+
heartbeat - used to avoid connection timeouts in case of long responses ex. python code execution
|
|
673
|
+
|
|
669
674
|
"""
|
|
670
675
|
|
|
671
|
-
system = "system"
|
|
672
676
|
user = "user"
|
|
673
677
|
assistant = "assistant"
|
|
674
|
-
tool = "tool"
|
|
675
678
|
heartbeat = "heartbeat"
|
|
676
679
|
|
|
677
680
|
|
|
@@ -683,13 +686,11 @@ class AssistantMessageContentType(str, Enum):
|
|
|
683
686
|
text = "text"
|
|
684
687
|
python = "python"
|
|
685
688
|
console = "console"
|
|
686
|
-
|
|
689
|
+
files = "files"
|
|
687
690
|
|
|
688
691
|
|
|
689
|
-
class
|
|
690
|
-
|
|
691
|
-
length = "length"
|
|
692
|
-
tool_calls = "tool_calls"
|
|
692
|
+
class AssistantMessageFile(CustomBaseModel):
|
|
693
|
+
name: str | None = None
|
|
693
694
|
|
|
694
695
|
|
|
695
696
|
class AssistantMessage(CustomBaseModel):
|
|
@@ -701,7 +702,14 @@ class AssistantMessage(CustomBaseModel):
|
|
|
701
702
|
role: AssistantMessageRole | None = None
|
|
702
703
|
content_type: AssistantMessageContentType | None = Field(None, alias="contentType")
|
|
703
704
|
content: str | None = Field(None, description="The content of a message", min_length=0)
|
|
704
|
-
|
|
705
|
+
result: str | None = Field(
|
|
706
|
+
None,
|
|
707
|
+
description="result applies only to python content type and is a result of python execution - the same console content type when streaming deltas",
|
|
708
|
+
)
|
|
709
|
+
files: list[AssistantMessageFile] | None = Field(
|
|
710
|
+
None,
|
|
711
|
+
description="files apply only to files content type and is a list of filenames",
|
|
712
|
+
)
|
|
705
713
|
tokens_consumed: int | None = Field(
|
|
706
714
|
None,
|
|
707
715
|
alias="tokensConsumed",
|
|
@@ -718,7 +726,11 @@ class AssistantMessageDelta(CustomBaseModel):
|
|
|
718
726
|
role: AssistantMessageRole | None = None
|
|
719
727
|
content_type: AssistantMessageContentType | None = Field(None, alias="contentType")
|
|
720
728
|
delta: str | None = Field(None, description="The partial content of a message", min_length=0)
|
|
721
|
-
|
|
729
|
+
is_finished: bool | None = Field(
|
|
730
|
+
None,
|
|
731
|
+
alias="isFinished",
|
|
732
|
+
description="Whether the message as a whole is finished.",
|
|
733
|
+
)
|
|
722
734
|
tokens_consumed: int | None = Field(
|
|
723
735
|
None,
|
|
724
736
|
alias="tokensConsumed",
|
|
@@ -1720,7 +1732,7 @@ class ModelConfiguration(CustomBaseModel):
|
|
|
1720
1732
|
enable_flexible_generation: bool | None = Field(
|
|
1721
1733
|
True,
|
|
1722
1734
|
alias="enableFlexibleGeneration",
|
|
1723
|
-
description="If true, then the trained generator can be used for rebalancing and
|
|
1735
|
+
description="If true, then the trained generator can be used for conditional generation, rebalancing, imputation and fairness.\nIf none of these will be needed, then one can gain extra accuracy by disabling this feature. This will then result in a fixed \ncolumn order being fed into the training process, rather than a column order, that is randomly permuted for every batch.\n",
|
|
1724
1736
|
)
|
|
1725
1737
|
value_protection: bool | None = Field(
|
|
1726
1738
|
True,
|
|
@@ -1969,7 +1981,7 @@ class AssistantThread(CustomBaseModel):
|
|
|
1969
1981
|
session_status: AssistantThreadSessionStatus | None = Field(None, alias="sessionStatus")
|
|
1970
1982
|
messages: list[AssistantMessage] | None = Field(
|
|
1971
1983
|
None,
|
|
1972
|
-
description="List of all existing messages, excluding any system message.\nExample:\n What's the square root of 9?
|
|
1984
|
+
description="List of all existing messages, excluding any system message.\nExample:\n What's the square root of 9? role: user type: text\n ok, I will write some python role: assistant type: text\n content: r = math.sqrt(9)\\nr; result=3 role: assistant type: python\n The answer is 3! role: assistant type: text\n Plot me a random barplot role: user type: text\n ... plt.savefig() ... role: assistant type: python\n Here is ![img]() ... role: assistant type: text\n Write me a random file role: user type: text\n ... .to_csv() ... role: assistant type: python\n Here is [file]() ... role: assistant type: text\n",
|
|
1973
1985
|
)
|
|
1974
1986
|
usage: AssistantThreadUsage | None = None
|
|
1975
1987
|
|
|
@@ -3085,13 +3097,16 @@ class _SyntheticTableConfigValidation(CustomBaseModel):
|
|
|
3085
3097
|
|
|
3086
3098
|
@model_validator(mode="after")
|
|
3087
3099
|
def validate_data_report_disabled_if_both_model_reports_disabled(cls, validation):
|
|
3088
|
-
|
|
3089
|
-
|
|
3090
|
-
|
|
3091
|
-
|
|
3092
|
-
|
|
3093
|
-
|
|
3094
|
-
|
|
3100
|
+
configs = [
|
|
3101
|
+
cfg
|
|
3102
|
+
for cfg in [
|
|
3103
|
+
validation.source_table.tabular_model_configuration,
|
|
3104
|
+
validation.source_table.language_model_configuration,
|
|
3105
|
+
]
|
|
3106
|
+
if cfg
|
|
3107
|
+
]
|
|
3108
|
+
|
|
3109
|
+
if not all(cfg.enable_model_report for cfg in configs):
|
|
3095
3110
|
if validation.synthetic_table.configuration is not None:
|
|
3096
3111
|
validation.synthetic_table.configuration.enable_data_report = False
|
|
3097
3112
|
return validation
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "mostlyai"
|
|
3
|
-
version = "4.
|
|
3
|
+
version = "4.3.1"
|
|
4
4
|
description = "Synthetic Data SDK"
|
|
5
5
|
authors = [{ name = "MOSTLY AI", email = "dev@mostly.ai" }]
|
|
6
6
|
requires-python = ">=3.10,<3.14"
|
|
@@ -46,8 +46,8 @@ dependencies = [
|
|
|
46
46
|
[project.optional-dependencies]
|
|
47
47
|
local = [
|
|
48
48
|
# local
|
|
49
|
-
"mostlyai-engine==1.1.
|
|
50
|
-
"mostlyai-qa==1.5.
|
|
49
|
+
"mostlyai-engine==1.1.6",
|
|
50
|
+
"mostlyai-qa==1.5.6",
|
|
51
51
|
"fastapi>=0.115.6,<0.116",
|
|
52
52
|
"uvicorn>=0.34.0,<0.35",
|
|
53
53
|
"python-multipart>=0.0.20",
|
|
@@ -68,8 +68,8 @@ local = [
|
|
|
68
68
|
"adlfs>=2023.4.0",
|
|
69
69
|
]
|
|
70
70
|
local-gpu = [
|
|
71
|
-
"mostlyai-engine[gpu]==1.1.
|
|
72
|
-
"mostlyai-qa[gpu]==1.5.
|
|
71
|
+
"mostlyai-engine[gpu]==1.1.6",
|
|
72
|
+
"mostlyai-qa[gpu]==1.5.6",
|
|
73
73
|
"fastapi>=0.115.6,<0.116",
|
|
74
74
|
"uvicorn>=0.34.0,<0.35",
|
|
75
75
|
"python-multipart>=0.0.20",
|
|
@@ -90,8 +90,8 @@ local-gpu = [
|
|
|
90
90
|
"adlfs>=2023.4.0",
|
|
91
91
|
]
|
|
92
92
|
local-cpu = [
|
|
93
|
-
"mostlyai-engine[cpu]==1.1.
|
|
94
|
-
"mostlyai-qa[cpu]==1.5.
|
|
93
|
+
"mostlyai-engine[cpu]==1.1.6",
|
|
94
|
+
"mostlyai-qa[cpu]==1.5.6",
|
|
95
95
|
"fastapi>=0.115.6,<0.116",
|
|
96
96
|
"uvicorn>=0.34.0,<0.35",
|
|
97
97
|
"python-multipart>=0.0.20",
|
|
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
|
|
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
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{mostlyai-4.2.9 → mostlyai-4.3.1}/mostlyai/sdk/_local/execution/step_analyze_training_data.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{mostlyai-4.2.9 → mostlyai-4.3.1}/mostlyai/sdk/_local/execution/step_encode_training_data.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{mostlyai-4.2.9 → mostlyai-4.3.1}/mostlyai/sdk/_local/execution/step_generate_model_report_data.py
RENAMED
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|