Skip to content

Commit 7f0176c

Browse files
author
MOSTLY CI
committed
Updating OpenAPI Specification for release 4.7.0
1 parent b16ce39 commit 7f0176c

1 file changed

Lines changed: 74 additions & 26 deletions

File tree

public-api.yaml

Lines changed: 74 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -2186,7 +2186,7 @@ components:
21862186
required: true
21872187
shortLivedFileToken:
21882188
name: "slft"
2189-
description: "A valid short-lived file token (`slft`) for accessing resource artefacts. See `metadata.shortLivedFileToken`."
2189+
description: "A valid short-lived file token (`slft`) for accessing resource artifacts. See `metadata.shortLivedFileToken`."
21902190
in: "query"
21912191
style: "form"
21922192
schema:
@@ -2571,7 +2571,7 @@ components:
25712571
shortLivedFileToken:
25722572
type: "string"
25732573
description: |
2574-
An auto-generated short-lived file token (`slft`) for accessing resource artefacts.
2574+
An auto-generated short-lived file token (`slft`) for accessing resource artifacts.
25752575
The token is always restricted to a single resource, only valid for 60 minutes, and
25762576
only accepted by API endpoints that allow to download single files.
25772577
PaginatedTotalCount:
@@ -2879,6 +2879,8 @@ components:
28792879
$ref: "#/components/schemas/ConnectorName"
28802880
description:
28812881
$ref: "#/components/schemas/ConnectorDescription"
2882+
accessType:
2883+
$ref: "#/components/schemas/ConnectorAccessType"
28822884
config:
28832885
$ref: "#/components/schemas/ConnectorConfigParams"
28842886
secrets:
@@ -3009,6 +3011,12 @@ components:
30093011
noOfLikes:
30103012
type: "integer"
30113013
description: "Number of likes of this generator."
3014+
GeneratorRandomState:
3015+
type: "integer"
3016+
description: |
3017+
Seed for the random number generators. If None, the random number generator is initialized randomly, yielding different results for every run.
3018+
Setting it to a specific integer ensures reproducible results across runs.
3019+
Useful when consistent results are desired, e.g. for testing or debugging.
30123020
GeneratorListItem:
30133021
type: "object"
30143022
description: "Essential generator details for listings."
@@ -3060,6 +3068,8 @@ components:
30603068
description: "The tables of this generator"
30613069
items:
30623070
$ref: "#/components/schemas/SourceTable"
3071+
randomState:
3072+
$ref: "#/components/schemas/GeneratorRandomState"
30633073
required:
30643074
- "id"
30653075
- "trainingStatus"
@@ -3247,6 +3257,8 @@ components:
32473257
$ref: "#/components/schemas/GeneratorName"
32483258
description:
32493259
$ref: "#/components/schemas/GeneratorDescription"
3260+
randomState:
3261+
$ref: "#/components/schemas/GeneratorRandomState"
32503262
tables:
32513263
type: "array"
32523264
description: "The tables of a generator"
@@ -3276,6 +3288,8 @@ components:
32763288
$ref: "#/components/schemas/GeneratorName"
32773289
description:
32783290
$ref: "#/components/schemas/GeneratorDescription"
3291+
randomState:
3292+
$ref: "#/components/schemas/GeneratorRandomState"
32793293
GeneratorImportFromFileConfig:
32803294
type: "object"
32813295
description: "Configuration for importing a generator from a file."
@@ -3610,7 +3624,7 @@ components:
36103624
The status of a job or a step.
36113625
36123626
- `NEW`: The job/step is being configured, and has not started yet
3613-
- `CONTINUE`: The job/step is being configured, but has existing artefacts
3627+
- `CONTINUE`: The job/step is being configured, but has existing artifacts
36143628
- `ON_HOLD`: The job/step has been started, but is kept on hold
36153629
- `QUEUED`: The job/step has been started, and is awaiting for resources to execute
36163630
- `IN_PROGRESS`: The job/step is currently running
@@ -3679,6 +3693,12 @@ components:
36793693
noOfDownloads:
36803694
type: "integer"
36813695
description: "Number of downloads of this synthetic dataset."
3696+
SyntheticDatasetRandomState:
3697+
type: "integer"
3698+
description: |
3699+
Seed for the random number generators. If None, the random number generator is initialized randomly, yielding different results for every run.
3700+
Setting it to a specific integer ensures reproducible results across runs.
3701+
Useful when consistent results are desired, e.g. for testing or debugging.
36823702
SyntheticDatasetListItem:
36833703
type: "object"
36843704
description: "Essential synthetic dataset details for listings."
@@ -3734,6 +3754,8 @@ components:
37343754
$ref: "#/components/schemas/SyntheticDatasetUsage"
37353755
compute:
37363756
$ref: "#/components/schemas/ComputeId"
3757+
randomState:
3758+
$ref: "#/components/schemas/SyntheticDatasetRandomState"
37373759
required:
37383760
- "id"
37393761
- "generationStatus"
@@ -3892,6 +3914,8 @@ components:
38923914
$ref: "#/components/schemas/SyntheticDatasetName"
38933915
description:
38943916
$ref: "#/components/schemas/SyntheticDatasetDescription"
3917+
randomState:
3918+
$ref: "#/components/schemas/SyntheticDatasetRandomState"
38953919
tables:
38963920
type: "array"
38973921
items:
@@ -3912,6 +3936,8 @@ components:
39123936
$ref: "#/components/schemas/SyntheticDatasetDelivery"
39133937
compute:
39143938
$ref: "#/components/schemas/ComputeId"
3939+
randomState:
3940+
$ref: "#/components/schemas/SyntheticDatasetRandomState"
39153941
SyntheticTablePatchConfig:
39163942
type: "object"
39173943
description: "The configuration for updating a synthetic table."
@@ -3924,6 +3950,8 @@ components:
39243950
properties:
39253951
generatorId:
39263952
$ref: "#/components/schemas/GeneratorId"
3953+
randomState:
3954+
$ref: "#/components/schemas/SyntheticDatasetRandomState"
39273955
tables:
39283956
type: "array"
39293957
items:
@@ -3968,9 +3996,6 @@ components:
39683996
type: "string"
39693997
value:
39703998
type: "string"
3971-
AssistantDataLlmApiKey:
3972-
type: "string"
3973-
description: "The API key for the DataLLM service. See https://data.mostly.ai."
39743999
AssistantSystemInstructions:
39754000
description: "The system instructions of the assistant"
39764001
type: "string"
@@ -3993,12 +4018,6 @@ components:
39934018
$ref: "#/components/schemas/AssistantLiteLlmApiKey"
39944019
extra:
39954020
$ref: "#/components/schemas/AssistantLiteLlmExtra"
3996-
dataLlm:
3997-
type: "object"
3998-
description: "Configuration of the DataLLM service"
3999-
properties:
4000-
apiKey:
4001-
$ref: "#/components/schemas/AssistantDataLlmApiKey"
40024021
systemInstructions:
40034022
$ref: "#/components/schemas/AssistantSystemInstructions"
40044023
customInstructions:
@@ -4049,16 +4068,29 @@ components:
40494068
description: |
40504069
List of all existing messages, excluding any system message.
40514070
Example:
4052-
What's the square root of 9? role: user type: text
4053-
ok, I will write some python role: assistant type: text
4054-
content: r = math.sqrt(9)\nr; result=3 role: assistant type: python
4055-
The answer is 3! role: assistant type: text
4056-
Plot me a random barplot role: user type: text
4057-
... plt.savefig() ... role: assistant type: python
4058-
Here is ![img]() ... role: assistant type: text
4059-
Write me a random file role: user type: text
4060-
... .to_csv() ... role: assistant type: python
4061-
Here is [file]() ... role: assistant type: text
4071+
content result role contentType
4072+
What's the square root of 9? user text | files
4073+
ok, I will write some python assistant text
4074+
r = math.sqrt(9); r 3 assistant python
4075+
The answer is 3! assistant text
4076+
Plot me 2 barplots user text
4077+
... plt.savefig(fn); fn ... '/mnt/...' assistant python
4078+
/mnt/data/barplot1.png assistant artifact/image NEW
4079+
/mnt/data/barplot2.png assistant artifact/image NEW
4080+
Here you go. assistant text
4081+
Write me a random CSV file user text
4082+
... .to_csv(fn); fn ... '/mnt/...' assistant python
4083+
/mnt/data/x/data.csv assistant artifact/data NEW
4084+
Here you go. assistant text
4085+
Write me a some PDF file user text
4086+
... .to_pdf(fn); fn ... '/mnt/...' assistant python
4087+
/mnt/data/some.pdf assistant artifact/file NEW
4088+
Here you go. assistant text
4089+
pd.__version__ 2.2.5 user python
4090+
It's pandas version 2.2.5. assistant text
4091+
Fetch me the census generator user text
4092+
g = ...; g '348...' assistant python
4093+
348ce156-7f81-4296-a2a3-5a4b0ec7c08e assistant artifact/generator NEW
40624094
items:
40634095
$ref: "#/components/schemas/AssistantMessage"
40644096
usage:
@@ -4083,18 +4115,35 @@ components:
40834115
enum:
40844116
- "text"
40854117
- "python"
4118+
# Files uploaded by user
40864119
- "files"
4120+
- "artifact/image"
4121+
- "artifact/data"
4122+
# Files produced by broker
4123+
- "artifact/file"
4124+
- "artifact/generator"
4125+
- "artifact/synthetic-dataset"
4126+
- "artifact/connector"
40874127
AssistantMessageDeltaContentType:
40884128
type: "string"
40894129
description: "The type of the message content"
40904130
enum:
40914131
- "text"
40924132
- "python"
40934133
- "console"
4134+
- "artifact/image"
4135+
- "artifact/data"
4136+
- "artifact/file"
4137+
- "artifact/generator"
4138+
- "artifact/synthetic-dataset"
4139+
- "artifact/connector"
40944140
AssistantMessageContent:
40954141
type: "string"
40964142
minLength: 0
4097-
description: "The content of a message"
4143+
description: |
4144+
The content of a message.
4145+
For file-based artifacts, this contains the filename and nothing else.
4146+
For resource-based artifacts, this contains the UUID and nothing else.
40984147
AssistantMessageFiles:
40994148
type: "array"
41004149
description: "Files associated with an assistant message, applicable only to files content type."
@@ -4131,7 +4180,6 @@ components:
41314180
description: "result applies only to python content type and is a result of python execution - the same console content type when streaming deltas"
41324181
files:
41334182
$ref: "#/components/schemas/AssistantMessageFiles"
4134-
41354183
tokensConsumed:
41364184
type: "integer"
41374185
format: "int64"
@@ -4900,7 +4948,7 @@ components:
49004948
minimum: -1.0
49014949
maximum: 1.0
49024950
cosineSimilarityTrainingHoldout:
4903-
description: |
4951+
description: |
49044952
Cosine similarity between training and holdout centroids.
49054953
Serves as a reference for `cosine_similarity_training_synthetic`.
49064954
type: "number"
@@ -4914,7 +4962,7 @@ components:
49144962
minimum: 0.0
49154963
maximum: 1.0
49164964
discriminatorAUCTrainingHoldout:
4917-
description: |
4965+
description: |
49184966
Cross-validated AUC of a discriminative model to distinguish between training and holdout samples.
49194967
Serves as a reference for `discriminator_auc_training_synthetic`.
49204968
type: "number"

0 commit comments

Comments
 (0)