@keystrokehq/replicate 0.1.0 → 0.1.3
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.
- package/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/account-get.cjs +4 -4
- package/dist/actions/account-get.cjs.map +1 -1
- package/dist/actions/account-get.d.cts +8 -3
- package/dist/actions/account-get.d.cts.map +1 -1
- package/dist/actions/account-get.d.mts +8 -3
- package/dist/actions/account-get.d.mts.map +1 -1
- package/dist/actions/account-get.mjs +4 -4
- package/dist/actions/account-get.mjs.map +1 -1
- package/dist/actions/cancel-prediction.cjs +8 -8
- package/dist/actions/cancel-prediction.cjs.map +1 -1
- package/dist/actions/cancel-prediction.d.cts +43 -3
- package/dist/actions/cancel-prediction.d.cts.map +1 -1
- package/dist/actions/cancel-prediction.d.mts +43 -3
- package/dist/actions/cancel-prediction.d.mts.map +1 -1
- package/dist/actions/cancel-prediction.mjs +8 -8
- package/dist/actions/cancel-prediction.mjs.map +1 -1
- package/dist/actions/collections-get.cjs +10 -10
- package/dist/actions/collections-get.cjs.map +1 -1
- package/dist/actions/collections-get.d.cts +26 -3
- package/dist/actions/collections-get.d.cts.map +1 -1
- package/dist/actions/collections-get.d.mts +26 -3
- package/dist/actions/collections-get.d.mts.map +1 -1
- package/dist/actions/collections-get.mjs +10 -10
- package/dist/actions/collections-get.mjs.map +1 -1
- package/dist/actions/collections-list.cjs +5 -5
- package/dist/actions/collections-list.cjs.map +1 -1
- package/dist/actions/collections-list.d.cts +15 -3
- package/dist/actions/collections-list.d.cts.map +1 -1
- package/dist/actions/collections-list.d.mts +15 -3
- package/dist/actions/collections-list.d.mts.map +1 -1
- package/dist/actions/collections-list.mjs +5 -5
- package/dist/actions/collections-list.mjs.map +1 -1
- package/dist/actions/create-model.cjs +8 -8
- package/dist/actions/create-model.cjs.map +1 -1
- package/dist/actions/create-model.d.cts +39 -3
- package/dist/actions/create-model.d.cts.map +1 -1
- package/dist/actions/create-model.d.mts +39 -3
- package/dist/actions/create-model.d.mts.map +1 -1
- package/dist/actions/create-model.mjs +8 -8
- package/dist/actions/create-model.mjs.map +1 -1
- package/dist/actions/create-prediction.cjs +10 -10
- package/dist/actions/create-prediction.cjs.map +1 -1
- package/dist/actions/create-prediction.d.cts +40 -3
- package/dist/actions/create-prediction.d.cts.map +1 -1
- package/dist/actions/create-prediction.d.mts +40 -3
- package/dist/actions/create-prediction.d.mts.map +1 -1
- package/dist/actions/create-prediction.mjs +10 -10
- package/dist/actions/create-prediction.mjs.map +1 -1
- package/dist/actions/deployments-create.cjs +16 -16
- package/dist/actions/deployments-create.cjs.map +1 -1
- package/dist/actions/deployments-create.d.cts +38 -3
- package/dist/actions/deployments-create.d.cts.map +1 -1
- package/dist/actions/deployments-create.d.mts +38 -3
- package/dist/actions/deployments-create.d.mts.map +1 -1
- package/dist/actions/deployments-create.mjs +16 -16
- package/dist/actions/deployments-create.mjs.map +1 -1
- package/dist/actions/deployments-delete.cjs +1 -1
- package/dist/actions/deployments-delete.cjs.map +1 -1
- package/dist/actions/deployments-delete.d.cts +12 -3
- package/dist/actions/deployments-delete.d.cts.map +1 -1
- package/dist/actions/deployments-delete.d.mts +12 -3
- package/dist/actions/deployments-delete.d.mts.map +1 -1
- package/dist/actions/deployments-delete.mjs +1 -1
- package/dist/actions/deployments-delete.mjs.map +1 -1
- package/dist/actions/deployments-get.cjs +4 -4
- package/dist/actions/deployments-get.cjs.map +1 -1
- package/dist/actions/deployments-get.d.cts +30 -3
- package/dist/actions/deployments-get.d.cts.map +1 -1
- package/dist/actions/deployments-get.d.mts +30 -3
- package/dist/actions/deployments-get.d.mts.map +1 -1
- package/dist/actions/deployments-get.mjs +4 -4
- package/dist/actions/deployments-get.mjs.map +1 -1
- package/dist/actions/deployments-list.cjs +17 -17
- package/dist/actions/deployments-list.cjs.map +1 -1
- package/dist/actions/deployments-list.d.cts +32 -3
- package/dist/actions/deployments-list.d.cts.map +1 -1
- package/dist/actions/deployments-list.d.mts +32 -3
- package/dist/actions/deployments-list.d.mts.map +1 -1
- package/dist/actions/deployments-list.mjs +17 -17
- package/dist/actions/deployments-list.mjs.map +1 -1
- package/dist/actions/files-create.cjs +7 -7
- package/dist/actions/files-create.cjs.map +1 -1
- package/dist/actions/files-create.d.cts +35 -3
- package/dist/actions/files-create.d.cts.map +1 -1
- package/dist/actions/files-create.d.mts +35 -3
- package/dist/actions/files-create.d.mts.map +1 -1
- package/dist/actions/files-create.mjs +7 -7
- package/dist/actions/files-create.mjs.map +1 -1
- package/dist/actions/files-delete.cjs +1 -1
- package/dist/actions/files-delete.cjs.map +1 -1
- package/dist/actions/files-delete.d.cts +10 -3
- package/dist/actions/files-delete.d.cts.map +1 -1
- package/dist/actions/files-delete.d.mts +10 -3
- package/dist/actions/files-delete.d.mts.map +1 -1
- package/dist/actions/files-delete.mjs +1 -1
- package/dist/actions/files-delete.mjs.map +1 -1
- package/dist/actions/files-get.cjs +8 -8
- package/dist/actions/files-get.cjs.map +1 -1
- package/dist/actions/files-get.d.cts +23 -3
- package/dist/actions/files-get.d.cts.map +1 -1
- package/dist/actions/files-get.d.mts +23 -3
- package/dist/actions/files-get.d.mts.map +1 -1
- package/dist/actions/files-get.mjs +8 -8
- package/dist/actions/files-get.mjs.map +1 -1
- package/dist/actions/files-list.cjs +10 -10
- package/dist/actions/files-list.cjs.map +1 -1
- package/dist/actions/files-list.d.cts +27 -3
- package/dist/actions/files-list.d.cts.map +1 -1
- package/dist/actions/files-list.d.mts +27 -3
- package/dist/actions/files-list.d.mts.map +1 -1
- package/dist/actions/files-list.mjs +10 -10
- package/dist/actions/files-list.mjs.map +1 -1
- package/dist/actions/get-prediction.cjs +11 -11
- package/dist/actions/get-prediction.cjs.map +1 -1
- package/dist/actions/get-prediction.d.cts +42 -3
- package/dist/actions/get-prediction.d.cts.map +1 -1
- package/dist/actions/get-prediction.d.mts +42 -3
- package/dist/actions/get-prediction.d.mts.map +1 -1
- package/dist/actions/get-prediction.mjs +11 -11
- package/dist/actions/get-prediction.mjs.map +1 -1
- package/dist/actions/hardware-list.cjs +4 -4
- package/dist/actions/hardware-list.cjs.map +1 -1
- package/dist/actions/hardware-list.d.cts +8 -3
- package/dist/actions/hardware-list.d.cts.map +1 -1
- package/dist/actions/hardware-list.d.mts +8 -3
- package/dist/actions/hardware-list.d.mts.map +1 -1
- package/dist/actions/hardware-list.mjs +4 -4
- package/dist/actions/hardware-list.mjs.map +1 -1
- package/dist/actions/models-examples-list.cjs +11 -11
- package/dist/actions/models-examples-list.cjs.map +1 -1
- package/dist/actions/models-examples-list.d.cts +37 -3
- package/dist/actions/models-examples-list.d.cts.map +1 -1
- package/dist/actions/models-examples-list.d.mts +37 -3
- package/dist/actions/models-examples-list.d.mts.map +1 -1
- package/dist/actions/models-examples-list.mjs +11 -11
- package/dist/actions/models-examples-list.mjs.map +1 -1
- package/dist/actions/models-get.cjs +26 -26
- package/dist/actions/models-get.cjs.map +1 -1
- package/dist/actions/models-get.d.cts +77 -3
- package/dist/actions/models-get.d.cts.map +1 -1
- package/dist/actions/models-get.d.mts +77 -3
- package/dist/actions/models-get.d.mts.map +1 -1
- package/dist/actions/models-get.mjs +26 -26
- package/dist/actions/models-get.mjs.map +1 -1
- package/dist/actions/models-list.cjs +11 -11
- package/dist/actions/models-list.cjs.map +1 -1
- package/dist/actions/models-list.d.cts +39 -3
- package/dist/actions/models-list.d.cts.map +1 -1
- package/dist/actions/models-list.d.mts +39 -3
- package/dist/actions/models-list.d.mts.map +1 -1
- package/dist/actions/models-list.mjs +11 -11
- package/dist/actions/models-list.mjs.map +1 -1
- package/dist/actions/models-predictions-create.cjs +7 -7
- package/dist/actions/models-predictions-create.cjs.map +1 -1
- package/dist/actions/models-predictions-create.d.cts +46 -3
- package/dist/actions/models-predictions-create.d.cts.map +1 -1
- package/dist/actions/models-predictions-create.d.mts +46 -3
- package/dist/actions/models-predictions-create.d.mts.map +1 -1
- package/dist/actions/models-predictions-create.mjs +7 -7
- package/dist/actions/models-predictions-create.mjs.map +1 -1
- package/dist/actions/models-readme-get.cjs +1 -1
- package/dist/actions/models-readme-get.cjs.map +1 -1
- package/dist/actions/models-readme-get.d.cts +11 -3
- package/dist/actions/models-readme-get.d.cts.map +1 -1
- package/dist/actions/models-readme-get.d.mts +11 -3
- package/dist/actions/models-readme-get.d.mts.map +1 -1
- package/dist/actions/models-readme-get.mjs +1 -1
- package/dist/actions/models-readme-get.mjs.map +1 -1
- package/dist/actions/models-versions-get.cjs +4 -4
- package/dist/actions/models-versions-get.cjs.map +1 -1
- package/dist/actions/models-versions-get.d.cts +16 -3
- package/dist/actions/models-versions-get.d.cts.map +1 -1
- package/dist/actions/models-versions-get.d.mts +16 -3
- package/dist/actions/models-versions-get.d.mts.map +1 -1
- package/dist/actions/models-versions-get.mjs +4 -4
- package/dist/actions/models-versions-get.mjs.map +1 -1
- package/dist/actions/models-versions-list.cjs +5 -5
- package/dist/actions/models-versions-list.cjs.map +1 -1
- package/dist/actions/models-versions-list.d.cts +20 -3
- package/dist/actions/models-versions-list.d.cts.map +1 -1
- package/dist/actions/models-versions-list.d.mts +20 -3
- package/dist/actions/models-versions-list.d.mts.map +1 -1
- package/dist/actions/models-versions-list.mjs +5 -5
- package/dist/actions/models-versions-list.mjs.map +1 -1
- package/dist/actions/predictions-create.cjs +7 -7
- package/dist/actions/predictions-create.cjs.map +1 -1
- package/dist/actions/predictions-create.d.cts +47 -3
- package/dist/actions/predictions-create.d.cts.map +1 -1
- package/dist/actions/predictions-create.d.mts +47 -3
- package/dist/actions/predictions-create.d.mts.map +1 -1
- package/dist/actions/predictions-create.mjs +7 -7
- package/dist/actions/predictions-create.mjs.map +1 -1
- package/dist/actions/predictions-list.cjs +12 -12
- package/dist/actions/predictions-list.cjs.map +1 -1
- package/dist/actions/predictions-list.d.cts +38 -3
- package/dist/actions/predictions-list.d.cts.map +1 -1
- package/dist/actions/predictions-list.d.mts +38 -3
- package/dist/actions/predictions-list.d.mts.map +1 -1
- package/dist/actions/predictions-list.mjs +12 -12
- package/dist/actions/predictions-list.mjs.map +1 -1
- package/dist/actions/search.cjs +28 -28
- package/dist/actions/search.cjs.map +1 -1
- package/dist/actions/search.d.cts +80 -3
- package/dist/actions/search.d.cts.map +1 -1
- package/dist/actions/search.d.mts +80 -3
- package/dist/actions/search.d.mts.map +1 -1
- package/dist/actions/search.mjs +28 -28
- package/dist/actions/search.mjs.map +1 -1
- package/dist/actions/trainings-cancel.cjs +8 -8
- package/dist/actions/trainings-cancel.cjs.map +1 -1
- package/dist/actions/trainings-cancel.d.cts +26 -3
- package/dist/actions/trainings-cancel.d.cts.map +1 -1
- package/dist/actions/trainings-cancel.d.mts +26 -3
- package/dist/actions/trainings-cancel.d.mts.map +1 -1
- package/dist/actions/trainings-cancel.mjs +8 -8
- package/dist/actions/trainings-cancel.mjs.map +1 -1
- package/dist/actions/trainings-create.cjs +8 -8
- package/dist/actions/trainings-create.cjs.map +1 -1
- package/dist/actions/trainings-create.d.cts +46 -3
- package/dist/actions/trainings-create.d.cts.map +1 -1
- package/dist/actions/trainings-create.d.mts +46 -3
- package/dist/actions/trainings-create.d.mts.map +1 -1
- package/dist/actions/trainings-create.mjs +8 -8
- package/dist/actions/trainings-create.mjs.map +1 -1
- package/dist/actions/trainings-list.cjs +13 -13
- package/dist/actions/trainings-list.cjs.map +1 -1
- package/dist/actions/trainings-list.d.cts +35 -3
- package/dist/actions/trainings-list.d.cts.map +1 -1
- package/dist/actions/trainings-list.d.mts +35 -3
- package/dist/actions/trainings-list.d.mts.map +1 -1
- package/dist/actions/trainings-list.mjs +13 -13
- package/dist/actions/trainings-list.mjs.map +1 -1
- package/dist/actions/update-models.cjs +7 -7
- package/dist/actions/update-models.cjs.map +1 -1
- package/dist/actions/update-models.d.cts +35 -3
- package/dist/actions/update-models.d.cts.map +1 -1
- package/dist/actions/update-models.d.mts +35 -3
- package/dist/actions/update-models.d.mts.map +1 -1
- package/dist/actions/update-models.mjs +7 -7
- package/dist/actions/update-models.mjs.map +1 -1
- package/dist/actions/webhooks-secret-get.cjs +1 -1
- package/dist/actions/webhooks-secret-get.cjs.map +1 -1
- package/dist/actions/webhooks-secret-get.d.cts +5 -3
- package/dist/actions/webhooks-secret-get.d.cts.map +1 -1
- package/dist/actions/webhooks-secret-get.d.mts +5 -3
- package/dist/actions/webhooks-secret-get.d.mts.map +1 -1
- package/dist/actions/webhooks-secret-get.mjs +1 -1
- package/dist/actions/webhooks-secret-get.mjs.map +1 -1
- package/dist/catalog.cjs +7 -1
- package/dist/catalog.cjs.map +1 -1
- package/dist/catalog.d.cts +8 -0
- package/dist/catalog.d.mts +8 -0
- package/dist/catalog.mjs +7 -1
- package/dist/catalog.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models-examples-list.d.mts","names":[],"sources":["../../src/actions/models-examples-list.ts"],"mappings":";;;cAIa,gCAAA,
|
|
1
|
+
{"version":3,"file":"models-examples-list.d.mts","names":[],"sources":["../../src/actions/models-examples-list.ts"],"mappings":";;;cAIa,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;cA8BhC,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;cAMjC,2BAAA,gCAA2B,wBAAA"}
|
|
@@ -7,34 +7,34 @@ const ReplicateModelsExamplesListInput = z.object({
|
|
|
7
7
|
model_owner: z.string().describe("The name of the user or organization that owns the model. Must exactly match the Replicate URL slug (case-sensitive).")
|
|
8
8
|
}).describe("Request schema for listing example predictions for a specific model.");
|
|
9
9
|
const ReplicateModelsExamplesList_ExampleUrlsSchema = z.object({
|
|
10
|
-
get: z.string().describe("URL to get the prediction details."),
|
|
11
|
-
cancel: z.string().describe("URL to cancel the prediction."),
|
|
10
|
+
get: z.string().describe("URL to get the prediction details.").nullable(),
|
|
11
|
+
cancel: z.string().describe("URL to cancel the prediction.").nullable(),
|
|
12
12
|
stream: z.string().describe("URL to stream the prediction output, if available.").nullable().optional()
|
|
13
|
-
}).describe("URLs associated with a prediction.");
|
|
13
|
+
}).passthrough().describe("URLs associated with a prediction.");
|
|
14
14
|
const ReplicateModelsExamplesList_ExampleMetricsSchema = z.object({
|
|
15
15
|
total_time: z.number().describe("Total time including overhead in seconds.").nullable().optional(),
|
|
16
16
|
predict_time: z.number().describe("Time taken for prediction in seconds.").nullable().optional()
|
|
17
|
-
}).describe("Metrics for a prediction.");
|
|
17
|
+
}).passthrough().describe("Metrics for a prediction.");
|
|
18
18
|
const ReplicateModelsExamplesList_ExamplePredictionSchema = z.object({
|
|
19
|
-
id: z.string().describe("Unique identifier of the example prediction."),
|
|
19
|
+
id: z.string().describe("Unique identifier of the example prediction.").nullable(),
|
|
20
20
|
logs: z.string().describe("Text output from the model's execution.").nullable().optional(),
|
|
21
21
|
urls: ReplicateModelsExamplesList_ExampleUrlsSchema.nullable().optional(),
|
|
22
22
|
error: z.string().describe("Error message if the prediction failed.").nullable().optional(),
|
|
23
23
|
input: z.record(z.string(), z.unknown()).describe("Input JSON object provided to the model for the example.").nullable().optional(),
|
|
24
|
-
model: z.string().describe("Model identifier in format {owner}/{name}."),
|
|
24
|
+
model: z.string().describe("Model identifier in format {owner}/{name}.").nullable(),
|
|
25
25
|
output: z.union([
|
|
26
26
|
z.string(),
|
|
27
27
|
z.record(z.string(), z.unknown()),
|
|
28
28
|
z.array(z.unknown())
|
|
29
29
|
]).nullable().optional(),
|
|
30
|
-
status: z.string().describe("Status of the prediction: starting, processing, succeeded, failed, or canceled."),
|
|
30
|
+
status: z.string().describe("Status of the prediction: starting, processing, succeeded, failed, or canceled.").nullable(),
|
|
31
31
|
metrics: ReplicateModelsExamplesList_ExampleMetricsSchema.nullable().optional(),
|
|
32
|
-
version: z.string().describe("64-character version ID of the model used."),
|
|
33
|
-
created_at: z.string().describe("Timestamp when the example was created (ISO 8601)."),
|
|
32
|
+
version: z.string().describe("64-character version ID of the model used.").nullable(),
|
|
33
|
+
created_at: z.string().describe("Timestamp when the example was created (ISO 8601).").nullable(),
|
|
34
34
|
started_at: z.string().describe("Timestamp when prediction processing began (ISO 8601).").nullable().optional(),
|
|
35
35
|
completed_at: z.string().describe("Timestamp when prediction finished (ISO 8601), if available.").nullable().optional(),
|
|
36
36
|
data_removed: z.boolean().describe("Whether input/output data has been deleted.").nullable().optional()
|
|
37
|
-
}).describe("Represents a saved example prediction of a model.");
|
|
37
|
+
}).passthrough().describe("Represents a saved example prediction of a model.");
|
|
38
38
|
const replicateModelsExamplesList = action("REPLICATE_MODELS_EXAMPLES_LIST", {
|
|
39
39
|
slug: "replicate-models-examples-list",
|
|
40
40
|
name: "List model examples",
|
|
@@ -44,7 +44,7 @@ const replicateModelsExamplesList = action("REPLICATE_MODELS_EXAMPLES_LIST", {
|
|
|
44
44
|
next: z.string().describe("URL to fetch the next page of results, if any.").nullable().optional(),
|
|
45
45
|
results: z.array(ReplicateModelsExamplesList_ExamplePredictionSchema).describe("List of example prediction objects."),
|
|
46
46
|
previous: z.string().describe("URL to fetch the previous page of results, if any.").nullable().optional()
|
|
47
|
-
}).describe("Paginated list of example predictions for a model.")
|
|
47
|
+
}).passthrough().describe("Paginated list of example predictions for a model.")
|
|
48
48
|
});
|
|
49
49
|
//#endregion
|
|
50
50
|
export { replicateModelsExamplesList };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models-examples-list.mjs","names":[],"sources":["../../src/actions/models-examples-list.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateModelsExamplesListInput
|
|
1
|
+
{"version":3,"file":"models-examples-list.mjs","names":[],"sources":["../../src/actions/models-examples-list.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateModelsExamplesListInput = z.object({\n cursor: z.string().describe(\"Cursor for pagination. Use the cursor from 'next' URL of previous response.\").optional(),\n model_name: z.string().describe(\"The name of the model to list examples for. Must exactly match the Replicate URL slug (case-sensitive).\"),\n model_owner: z.string().describe(\"The name of the user or organization that owns the model. Must exactly match the Replicate URL slug (case-sensitive).\"),\n}).describe(\"Request schema for listing example predictions for a specific model.\");\nconst ReplicateModelsExamplesList_ExampleUrlsSchema = z.object({\n get: z.string().describe(\"URL to get the prediction details.\").nullable(),\n cancel: z.string().describe(\"URL to cancel the prediction.\").nullable(),\n stream: z.string().describe(\"URL to stream the prediction output, if available.\").nullable().optional(),\n}).passthrough().describe(\"URLs associated with a prediction.\");\nconst ReplicateModelsExamplesList_ExampleMetricsSchema = z.object({\n total_time: z.number().describe(\"Total time including overhead in seconds.\").nullable().optional(),\n predict_time: z.number().describe(\"Time taken for prediction in seconds.\").nullable().optional(),\n}).passthrough().describe(\"Metrics for a prediction.\");\nconst ReplicateModelsExamplesList_ExamplePredictionSchema = z.object({\n id: z.string().describe(\"Unique identifier of the example prediction.\").nullable(),\n logs: z.string().describe(\"Text output from the model's execution.\").nullable().optional(),\n urls: ReplicateModelsExamplesList_ExampleUrlsSchema.nullable().optional(),\n error: z.string().describe(\"Error message if the prediction failed.\").nullable().optional(),\n input: z.record(z.string(), z.unknown()).describe(\"Input JSON object provided to the model for the example.\").nullable().optional(),\n model: z.string().describe(\"Model identifier in format {owner}/{name}.\").nullable(),\n output: z.union([z.string(), z.record(z.string(), z.unknown()), z.array(z.unknown())]).nullable().optional(),\n status: z.string().describe(\"Status of the prediction: starting, processing, succeeded, failed, or canceled.\").nullable(),\n metrics: ReplicateModelsExamplesList_ExampleMetricsSchema.nullable().optional(),\n version: z.string().describe(\"64-character version ID of the model used.\").nullable(),\n created_at: z.string().describe(\"Timestamp when the example was created (ISO 8601).\").nullable(),\n started_at: z.string().describe(\"Timestamp when prediction processing began (ISO 8601).\").nullable().optional(),\n completed_at: z.string().describe(\"Timestamp when prediction finished (ISO 8601), if available.\").nullable().optional(),\n data_removed: z.boolean().describe(\"Whether input/output data has been deleted.\").nullable().optional(),\n}).passthrough().describe(\"Represents a saved example prediction of a model.\");\nexport const ReplicateModelsExamplesListOutput = z.object({\n next: z.string().describe(\"URL to fetch the next page of results, if any.\").nullable().optional(),\n results: z.array(ReplicateModelsExamplesList_ExamplePredictionSchema).describe(\"List of example prediction objects.\"),\n previous: z.string().describe(\"URL to fetch the previous page of results, if any.\").nullable().optional(),\n}).passthrough().describe(\"Paginated list of example predictions for a model.\");\n\nexport const replicateModelsExamplesList = action(\"REPLICATE_MODELS_EXAMPLES_LIST\", {\n slug: \"replicate-models-examples-list\",\n name: \"List model examples\",\n description: \"Tool to list example predictions for a specific model. Use when you want to retrieve author-provided illustrative examples after identifying the model. Returned examples are minimal working payloads; cross-reference with REPLICATE_MODELS_README_GET before calling REPLICATE_CREATE_PREDICTION to satisfy strict input validation.\",\n input: ReplicateModelsExamplesListInput,\n output: ReplicateModelsExamplesListOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAmC,EAAE,OAAO;CACvD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;CACpH,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,yGAAyG;CACzI,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,uHAAuH;AAC1J,CAAC,CAAC,CAAC,SAAS,sEAAsE;AAClF,MAAM,gDAAgD,EAAE,OAAO;CAC7D,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CACxE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACtE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACxG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oCAAoC;AAC9D,MAAM,mDAAmD,EAAE,OAAO;CAChE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,uCAA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c,EAAE,QAAQ,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACxG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAAmD;AAO7E,MAAa,8BAA8B,OAAO,kCAAkC;CAClF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAX+C,EAAE,OAAO;EACxD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChG,SAAS,EAAE,MAAM,mDAAmD,CAAC,CAAC,SAAS,qCAAqC;EACpH,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oDAOhB;AACV,CAAC"}
|
|
@@ -6,28 +6,28 @@ const ReplicateModelsGetInput = zod.z.object({
|
|
|
6
6
|
model_owner: zod.z.string().describe("The username or organization that owns the model, e.g., 'replicate' Must be an exact, case-sensitive Replicate slug (lowercase, hyphenated); e.g., use 'replicate' not 'Replicate'.")
|
|
7
7
|
}).describe("Request schema for retrieving details of a specific model by owner and name.");
|
|
8
8
|
const ReplicateModelsGet_OpenAPIInfoSchema = zod.z.object({
|
|
9
|
-
title: zod.z.string().describe("API title"),
|
|
10
|
-
version: zod.z.string().describe("API version")
|
|
9
|
+
title: zod.z.string().describe("API title").nullable(),
|
|
10
|
+
version: zod.z.string().describe("API version").nullable()
|
|
11
11
|
}).passthrough().describe("OpenAPI info object.");
|
|
12
|
-
const ReplicateModelsGet_OpenAPIComponentsSchema = zod.z.object({ schemas: zod.z.
|
|
12
|
+
const ReplicateModelsGet_OpenAPIComponentsSchema = zod.z.object({ schemas: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Reusable schema definitions with arbitrary names (e.g., Input, Output, Status, etc.)").nullable().optional() }).passthrough().describe("OpenAPI components object.");
|
|
13
13
|
const ReplicateModelsGet_OpenAPISchemaSchema = zod.z.object({
|
|
14
14
|
info: ReplicateModelsGet_OpenAPIInfoSchema.nullable(),
|
|
15
|
-
paths: zod.z.
|
|
16
|
-
openapi: zod.z.string().describe("OpenAPI version (e.g., '3.0.2')"),
|
|
15
|
+
paths: zod.z.record(zod.z.string(), zod.z.unknown()).describe("API paths (typically empty for models)").nullable().optional(),
|
|
16
|
+
openapi: zod.z.string().describe("OpenAPI version (e.g., '3.0.2')").nullable(),
|
|
17
17
|
components: ReplicateModelsGet_OpenAPIComponentsSchema.nullable().optional()
|
|
18
18
|
}).passthrough().describe("OpenAPI 3.0.2 schema structure for model inputs/outputs.");
|
|
19
19
|
const ReplicateModelsGet_VersionResponseSchema = zod.z.object({
|
|
20
|
-
id: zod.z.string().describe("The ID of the version"),
|
|
21
|
-
created_at: zod.z.string().describe("The date and time the version was created (ISO 8601 format)"),
|
|
20
|
+
id: zod.z.string().describe("The ID of the version").nullable(),
|
|
21
|
+
created_at: zod.z.string().describe("The date and time the version was created (ISO 8601 format)").nullable(),
|
|
22
22
|
cog_version: zod.z.string().describe("The version of Cog used to create this version").nullable().optional(),
|
|
23
23
|
openapi_schema: ReplicateModelsGet_OpenAPISchemaSchema.nullable().optional()
|
|
24
|
-
}).describe("Schema for a model version object returned by the API.");
|
|
24
|
+
}).passthrough().describe("Schema for a model version object returned by the API.");
|
|
25
25
|
const ReplicateModelsGet_PredictionUrlsSchema = zod.z.object({
|
|
26
|
-
get: zod.z.string().describe("API endpoint URL to get the prediction details"),
|
|
26
|
+
get: zod.z.string().describe("API endpoint URL to get the prediction details").nullable(),
|
|
27
27
|
web: zod.z.string().describe("Web URL for viewing the prediction in a browser").nullable().optional(),
|
|
28
|
-
cancel: zod.z.string().describe("API endpoint URL to cancel the prediction"),
|
|
28
|
+
cancel: zod.z.string().describe("API endpoint URL to cancel the prediction").nullable(),
|
|
29
29
|
stream: zod.z.string().describe("Streaming URL for the prediction, if available").nullable().optional()
|
|
30
|
-
}).describe("URLs associated with a prediction.\n\nNote: The official OpenAPI schema (https://api.replicate.com/openapi.json) marks 'web'\nas required, but actual API responses from default_example objects omit this field.\nTo ensure compatibility with real API responses, 'web' is marked as optional.");
|
|
30
|
+
}).passthrough().describe("URLs associated with a prediction.\n\nNote: The official OpenAPI schema (https://api.replicate.com/openapi.json) marks 'web'\nas required, but actual API responses from default_example objects omit this field.\nTo ensure compatibility with real API responses, 'web' is marked as optional.");
|
|
31
31
|
const ReplicateModelsGet_PredictionSourceSchema = zod.z.enum(["web", "api"]).describe("Source of a prediction.");
|
|
32
32
|
const ReplicateModelsGet_PredictionStatusSchema = zod.z.enum([
|
|
33
33
|
"starting",
|
|
@@ -42,12 +42,12 @@ const ReplicateModelsGet_PredictionMetricsSchema = zod.z.object({
|
|
|
42
42
|
predict_time: zod.z.number().describe("CPU/GPU seconds used during model execution").nullable().optional()
|
|
43
43
|
}).passthrough().describe("Metrics associated with a prediction.");
|
|
44
44
|
const ReplicateModelsGet_PredictionResponseSchema = zod.z.object({
|
|
45
|
-
id: zod.z.string().describe("Unique identifier for the prediction"),
|
|
45
|
+
id: zod.z.string().describe("Unique identifier for the prediction").nullable(),
|
|
46
46
|
logs: zod.z.string().describe("The log output from the model").nullable().optional(),
|
|
47
47
|
urls: ReplicateModelsGet_PredictionUrlsSchema.nullable(),
|
|
48
48
|
error: zod.z.string().describe("An error string if the model status is failed").nullable().optional(),
|
|
49
49
|
input: zod.z.record(zod.z.string(), zod.z.unknown()).describe("The prediction input parameters"),
|
|
50
|
-
model: zod.z.string().describe("The name of the model that created the prediction"),
|
|
50
|
+
model: zod.z.string().describe("The name of the model that created the prediction").nullable(),
|
|
51
51
|
output: zod.z.union([
|
|
52
52
|
zod.z.string(),
|
|
53
53
|
zod.z.number().int(),
|
|
@@ -59,32 +59,32 @@ const ReplicateModelsGet_PredictionResponseSchema = zod.z.object({
|
|
|
59
59
|
source: ReplicateModelsGet_PredictionSourceSchema.nullable().optional(),
|
|
60
60
|
status: ReplicateModelsGet_PredictionStatusSchema.nullable(),
|
|
61
61
|
metrics: ReplicateModelsGet_PredictionMetricsSchema.nullable().optional(),
|
|
62
|
-
version: zod.z.string().describe("The version ID of the model, or 'hidden' if not accessible"),
|
|
62
|
+
version: zod.z.string().describe("The version ID of the model, or 'hidden' if not accessible").nullable(),
|
|
63
63
|
deadline: zod.z.string().describe("The absolute time at which the prediction will be automatically canceled (ISO 8601 format)").nullable().optional(),
|
|
64
|
-
created_at: zod.z.string().describe("The date and time the prediction was created (ISO 8601 format)"),
|
|
64
|
+
created_at: zod.z.string().describe("The date and time the prediction was created (ISO 8601 format)").nullable(),
|
|
65
65
|
deployment: zod.z.string().describe("The name of the deployment that created the prediction").nullable().optional(),
|
|
66
66
|
started_at: zod.z.string().describe("The date and time the prediction started (ISO 8601 format)").nullable().optional(),
|
|
67
67
|
completed_at: zod.z.string().describe("The date and time the prediction completed (ISO 8601 format)").nullable().optional(),
|
|
68
|
-
data_removed: zod.z.boolean().describe("Whether the prediction output has been deleted"),
|
|
68
|
+
data_removed: zod.z.boolean().describe("Whether the prediction output has been deleted").nullable(),
|
|
69
69
|
is_free_trial_prediction: zod.z.boolean().describe("Whether this prediction was created using free trial credits").nullable().optional()
|
|
70
|
-
}).describe("Schema for a prediction object returned by the API.");
|
|
70
|
+
}).passthrough().describe("Schema for a prediction object returned by the API.");
|
|
71
71
|
const ReplicateModelsGetOutput = zod.z.object({
|
|
72
|
-
url: zod.z.string().describe("Canonical URL of the model"),
|
|
73
|
-
name: zod.z.string().describe("Name of the model"),
|
|
74
|
-
owner: zod.z.string().describe("Owner (username or organization) of the model"),
|
|
72
|
+
url: zod.z.string().describe("Canonical URL of the model").nullable(),
|
|
73
|
+
name: zod.z.string().describe("Name of the model").nullable(),
|
|
74
|
+
owner: zod.z.string().describe("Owner (username or organization) of the model").nullable(),
|
|
75
75
|
paper_url: zod.z.string().describe("URL to the paper associated with the model, if any").nullable().optional(),
|
|
76
|
-
run_count: zod.z.number().int().describe("Total number of times the model has been run"),
|
|
77
|
-
created_at: zod.z.string().describe("The date and time the model was created (ISO 8601 format)"),
|
|
76
|
+
run_count: zod.z.number().int().describe("Total number of times the model has been run").nullable(),
|
|
77
|
+
created_at: zod.z.string().describe("The date and time the model was created (ISO 8601 format)").nullable(),
|
|
78
78
|
github_url: zod.z.string().describe("URL to the model's GitHub repository, if any").nullable().optional(),
|
|
79
|
-
visibility: zod.z.string().describe("Visibility of the model, either 'public' or 'private'"),
|
|
80
|
-
description: zod.z.string().describe("Description of the model"),
|
|
81
|
-
is_official: zod.z.boolean().describe("Whether this model is an official Replicate model"),
|
|
79
|
+
visibility: zod.z.string().describe("Visibility of the model, either 'public' or 'private'").nullable(),
|
|
80
|
+
description: zod.z.string().describe("Description of the model").nullable(),
|
|
81
|
+
is_official: zod.z.boolean().describe("Whether this model is an official Replicate model").nullable(),
|
|
82
82
|
license_url: zod.z.string().describe("URL to the license of the model, if any").nullable().optional(),
|
|
83
83
|
weights_url: zod.z.string().describe("URL to download the model weights, if available").nullable().optional(),
|
|
84
84
|
latest_version: ReplicateModelsGet_VersionResponseSchema.nullable().optional(),
|
|
85
85
|
cover_image_url: zod.z.string().describe("URL to the model's cover image, if any").nullable().optional(),
|
|
86
86
|
default_example: ReplicateModelsGet_PredictionResponseSchema.nullable().optional()
|
|
87
|
-
}).describe("Response schema for models.get: Detailed information about the model.");
|
|
87
|
+
}).passthrough().describe("Response schema for models.get: Detailed information about the model.");
|
|
88
88
|
const replicateModelsGet = require_action.action("REPLICATE_MODELS_GET", {
|
|
89
89
|
slug: "replicate-models-get",
|
|
90
90
|
name: "Get Model Details",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models-get.cjs","names":["z","action"],"sources":["../../src/actions/models-get.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateModelsGetInput: z.ZodTypeAny = z.object({\n model_name: z.string().describe(\"The name of the model, e.g., 'hello-world' Must be an exact, case-sensitive Replicate slug (lowercase, hyphenated); e.g., use 'hello-world' not 'Hello World'.\"),\n model_owner: z.string().describe(\"The username or organization that owns the model, e.g., 'replicate' Must be an exact, case-sensitive Replicate slug (lowercase, hyphenated); e.g., use 'replicate' not 'Replicate'.\"),\n}).describe(\"Request schema for retrieving details of a specific model by owner and name.\");\nconst ReplicateModelsGet_OpenAPIInfoSchema: z.ZodTypeAny = z.object({\n title: z.string().describe(\"API title\"),\n version: z.string().describe(\"API version\"),\n}).passthrough().describe(\"OpenAPI info object.\");\nconst ReplicateModelsGet_OpenAPIComponentsSchema: z.ZodTypeAny = z.object({\n schemas: z.object({}).describe(\"Reusable schema definitions with arbitrary names (e.g., Input, Output, Status, etc.)\").nullable().optional(),\n}).passthrough().describe(\"OpenAPI components object.\");\nconst ReplicateModelsGet_OpenAPISchemaSchema: z.ZodTypeAny = z.object({\n info: ReplicateModelsGet_OpenAPIInfoSchema.nullable(),\n paths: z.object({}).describe(\"API paths (typically empty for models)\").nullable().optional(),\n openapi: z.string().describe(\"OpenAPI version (e.g., '3.0.2')\"),\n components: ReplicateModelsGet_OpenAPIComponentsSchema.nullable().optional(),\n}).passthrough().describe(\"OpenAPI 3.0.2 schema structure for model inputs/outputs.\");\nconst ReplicateModelsGet_VersionResponseSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The ID of the version\"),\n created_at: z.string().describe(\"The date and time the version was created (ISO 8601 format)\"),\n cog_version: z.string().describe(\"The version of Cog used to create this version\").nullable().optional(),\n openapi_schema: ReplicateModelsGet_OpenAPISchemaSchema.nullable().optional(),\n}).describe(\"Schema for a model version object returned by the API.\");\nconst ReplicateModelsGet_PredictionUrlsSchema: z.ZodTypeAny = z.object({\n get: z.string().describe(\"API endpoint URL to get the prediction details\"),\n web: z.string().describe(\"Web URL for viewing the prediction in a browser\").nullable().optional(),\n cancel: z.string().describe(\"API endpoint URL to cancel the prediction\"),\n stream: z.string().describe(\"Streaming URL for the prediction, if available\").nullable().optional(),\n}).describe(\"URLs associated with a prediction.\\n\\nNote: The official OpenAPI schema (https://api.replicate.com/openapi.json) marks 'web'\\nas required, but actual API responses from default_example objects omit this field.\\nTo ensure compatibility with real API responses, 'web' is marked as optional.\");\nconst ReplicateModelsGet_PredictionSourceSchema: z.ZodTypeAny = z.enum([\"web\", \"api\"]).describe(\"Source of a prediction.\");\nconst ReplicateModelsGet_PredictionStatusSchema: z.ZodTypeAny = z.enum([\"starting\", \"processing\", \"succeeded\", \"failed\", \"canceled\", \"aborted\"]).describe(\"Status of a prediction.\");\nconst ReplicateModelsGet_PredictionMetricsSchema: z.ZodTypeAny = z.object({\n total_time: z.number().describe(\"Total time in seconds for the prediction\").nullable().optional(),\n predict_time: z.number().describe(\"CPU/GPU seconds used during model execution\").nullable().optional(),\n}).passthrough().describe(\"Metrics associated with a prediction.\");\nconst ReplicateModelsGet_PredictionResponseSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the prediction\"),\n logs: z.string().describe(\"The log output from the model\").nullable().optional(),\n urls: ReplicateModelsGet_PredictionUrlsSchema.nullable(),\n error: z.string().describe(\"An error string if the model status is failed\").nullable().optional(),\n input: z.record(z.string(), z.unknown()).describe(\"The prediction input parameters\"),\n model: z.string().describe(\"The name of the model that created the prediction\"),\n output: z.union([z.string(), z.number().int(), z.number(), z.boolean(), z.array(z.unknown()), z.record(z.string(), z.unknown())]).nullable(),\n source: ReplicateModelsGet_PredictionSourceSchema.nullable().optional(),\n status: ReplicateModelsGet_PredictionStatusSchema.nullable(),\n metrics: ReplicateModelsGet_PredictionMetricsSchema.nullable().optional(),\n version: z.string().describe(\"The version ID of the model, or 'hidden' if not accessible\"),\n deadline: z.string().describe(\"The absolute time at which the prediction will be automatically canceled (ISO 8601 format)\").nullable().optional(),\n created_at: z.string().describe(\"The date and time the prediction was created (ISO 8601 format)\"),\n deployment: z.string().describe(\"The name of the deployment that created the prediction\").nullable().optional(),\n started_at: z.string().describe(\"The date and time the prediction started (ISO 8601 format)\").nullable().optional(),\n completed_at: z.string().describe(\"The date and time the prediction completed (ISO 8601 format)\").nullable().optional(),\n data_removed: z.boolean().describe(\"Whether the prediction output has been deleted\"),\n is_free_trial_prediction: z.boolean().describe(\"Whether this prediction was created using free trial credits\").nullable().optional(),\n}).describe(\"Schema for a prediction object returned by the API.\");\nexport const ReplicateModelsGetOutput: z.ZodTypeAny = z.object({\n url: z.string().describe(\"Canonical URL of the model\"),\n name: z.string().describe(\"Name of the model\"),\n owner: z.string().describe(\"Owner (username or organization) of the model\"),\n paper_url: z.string().describe(\"URL to the paper associated with the model, if any\").nullable().optional(),\n run_count: z.number().int().describe(\"Total number of times the model has been run\"),\n created_at: z.string().describe(\"The date and time the model was created (ISO 8601 format)\"),\n github_url: z.string().describe(\"URL to the model's GitHub repository, if any\").nullable().optional(),\n visibility: z.string().describe(\"Visibility of the model, either 'public' or 'private'\"),\n description: z.string().describe(\"Description of the model\"),\n is_official: z.boolean().describe(\"Whether this model is an official Replicate model\"),\n license_url: z.string().describe(\"URL to the license of the model, if any\").nullable().optional(),\n weights_url: z.string().describe(\"URL to download the model weights, if available\").nullable().optional(),\n latest_version: ReplicateModelsGet_VersionResponseSchema.nullable().optional(),\n cover_image_url: z.string().describe(\"URL to the model's cover image, if any\").nullable().optional(),\n default_example: ReplicateModelsGet_PredictionResponseSchema.nullable().optional(),\n}).describe(\"Response schema for models.get: Detailed information about the model.\");\n\nexport const replicateModelsGet = action(\"REPLICATE_MODELS_GET\", {\n slug: \"replicate-models-get\",\n name: \"Get Model Details\",\n description: \"Tool to get details of a specific model by owner and name. Consult the returned input schema before constructing any prediction request — each model defines its own required/optional fields (e.g., `prompt`, `aspect_ratio`, `version`); missing or unknown keys cause validation errors. Model schemas and available versions may change over time; recheck before production use.\",\n input: ReplicateModelsGetInput,\n output: ReplicateModelsGetOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAAwCA,IAAAA,EAAE,OAAO;CAC5D,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,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AAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
1
|
+
{"version":3,"file":"models-get.cjs","names":["z","action"],"sources":["../../src/actions/models-get.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateModelsGetInput = z.object({\n model_name: z.string().describe(\"The name of the model, e.g., 'hello-world' Must be an exact, case-sensitive Replicate slug (lowercase, hyphenated); e.g., use 'hello-world' not 'Hello World'.\"),\n model_owner: z.string().describe(\"The username or organization that owns the model, e.g., 'replicate' Must be an exact, case-sensitive Replicate slug (lowercase, hyphenated); e.g., use 'replicate' not 'Replicate'.\"),\n}).describe(\"Request schema for retrieving details of a specific model by owner and name.\");\nconst ReplicateModelsGet_OpenAPIInfoSchema = z.object({\n title: z.string().describe(\"API title\").nullable(),\n version: z.string().describe(\"API version\").nullable(),\n}).passthrough().describe(\"OpenAPI info object.\");\nconst ReplicateModelsGet_OpenAPIComponentsSchema = z.object({\n schemas: z.record(z.string(), z.unknown()).describe(\"Reusable schema definitions with arbitrary names (e.g., Input, Output, Status, etc.)\").nullable().optional(),\n}).passthrough().describe(\"OpenAPI components object.\");\nconst ReplicateModelsGet_OpenAPISchemaSchema = z.object({\n info: ReplicateModelsGet_OpenAPIInfoSchema.nullable(),\n paths: z.record(z.string(), z.unknown()).describe(\"API paths (typically empty for models)\").nullable().optional(),\n openapi: z.string().describe(\"OpenAPI version (e.g., '3.0.2')\").nullable(),\n components: ReplicateModelsGet_OpenAPIComponentsSchema.nullable().optional(),\n}).passthrough().describe(\"OpenAPI 3.0.2 schema structure for model inputs/outputs.\");\nconst ReplicateModelsGet_VersionResponseSchema = z.object({\n id: z.string().describe(\"The ID of the version\").nullable(),\n created_at: z.string().describe(\"The date and time the version was created (ISO 8601 format)\").nullable(),\n cog_version: z.string().describe(\"The version of Cog used to create this version\").nullable().optional(),\n openapi_schema: ReplicateModelsGet_OpenAPISchemaSchema.nullable().optional(),\n}).passthrough().describe(\"Schema for a model version object returned by the API.\");\nconst ReplicateModelsGet_PredictionUrlsSchema = z.object({\n get: z.string().describe(\"API endpoint URL to get the prediction details\").nullable(),\n web: z.string().describe(\"Web URL for viewing the prediction in a browser\").nullable().optional(),\n cancel: z.string().describe(\"API endpoint URL to cancel the prediction\").nullable(),\n stream: z.string().describe(\"Streaming URL for the prediction, if available\").nullable().optional(),\n}).passthrough().describe(\"URLs associated with a prediction.\\n\\nNote: The official OpenAPI schema (https://api.replicate.com/openapi.json) marks 'web'\\nas required, but actual API responses from default_example objects omit this field.\\nTo ensure compatibility with real API responses, 'web' is marked as optional.\");\nconst ReplicateModelsGet_PredictionSourceSchema = z.enum([\"web\", \"api\"]).describe(\"Source of a prediction.\");\nconst ReplicateModelsGet_PredictionStatusSchema = z.enum([\"starting\", \"processing\", \"succeeded\", \"failed\", \"canceled\", \"aborted\"]).describe(\"Status of a prediction.\");\nconst ReplicateModelsGet_PredictionMetricsSchema = z.object({\n total_time: z.number().describe(\"Total time in seconds for the prediction\").nullable().optional(),\n predict_time: z.number().describe(\"CPU/GPU seconds used during model execution\").nullable().optional(),\n}).passthrough().describe(\"Metrics associated with a prediction.\");\nconst ReplicateModelsGet_PredictionResponseSchema = z.object({\n id: z.string().describe(\"Unique identifier for the prediction\").nullable(),\n logs: z.string().describe(\"The log output from the model\").nullable().optional(),\n urls: ReplicateModelsGet_PredictionUrlsSchema.nullable(),\n error: z.string().describe(\"An error string if the model status is failed\").nullable().optional(),\n input: z.record(z.string(), z.unknown()).describe(\"The prediction input parameters\"),\n model: z.string().describe(\"The name of the model that created the prediction\").nullable(),\n output: z.union([z.string(), z.number().int(), z.number(), z.boolean(), z.array(z.unknown()), z.record(z.string(), z.unknown())]).nullable(),\n source: ReplicateModelsGet_PredictionSourceSchema.nullable().optional(),\n status: ReplicateModelsGet_PredictionStatusSchema.nullable(),\n metrics: ReplicateModelsGet_PredictionMetricsSchema.nullable().optional(),\n version: z.string().describe(\"The version ID of the model, or 'hidden' if not accessible\").nullable(),\n deadline: z.string().describe(\"The absolute time at which the prediction will be automatically canceled (ISO 8601 format)\").nullable().optional(),\n created_at: z.string().describe(\"The date and time the prediction was created (ISO 8601 format)\").nullable(),\n deployment: z.string().describe(\"The name of the deployment that created the prediction\").nullable().optional(),\n started_at: z.string().describe(\"The date and time the prediction started (ISO 8601 format)\").nullable().optional(),\n completed_at: z.string().describe(\"The date and time the prediction completed (ISO 8601 format)\").nullable().optional(),\n data_removed: z.boolean().describe(\"Whether the prediction output has been deleted\").nullable(),\n is_free_trial_prediction: z.boolean().describe(\"Whether this prediction was created using free trial credits\").nullable().optional(),\n}).passthrough().describe(\"Schema for a prediction object returned by the API.\");\nexport const ReplicateModelsGetOutput = z.object({\n url: z.string().describe(\"Canonical URL of the model\").nullable(),\n name: z.string().describe(\"Name of the model\").nullable(),\n owner: z.string().describe(\"Owner (username or organization) of the model\").nullable(),\n paper_url: z.string().describe(\"URL to the paper associated with the model, if any\").nullable().optional(),\n run_count: z.number().int().describe(\"Total number of times the model has been run\").nullable(),\n created_at: z.string().describe(\"The date and time the model was created (ISO 8601 format)\").nullable(),\n github_url: z.string().describe(\"URL to the model's GitHub repository, if any\").nullable().optional(),\n visibility: z.string().describe(\"Visibility of the model, either 'public' or 'private'\").nullable(),\n description: z.string().describe(\"Description of the model\").nullable(),\n is_official: z.boolean().describe(\"Whether this model is an official Replicate model\").nullable(),\n license_url: z.string().describe(\"URL to the license of the model, if any\").nullable().optional(),\n weights_url: z.string().describe(\"URL to download the model weights, if available\").nullable().optional(),\n latest_version: ReplicateModelsGet_VersionResponseSchema.nullable().optional(),\n cover_image_url: z.string().describe(\"URL to the model's cover image, if any\").nullable().optional(),\n default_example: ReplicateModelsGet_PredictionResponseSchema.nullable().optional(),\n}).passthrough().describe(\"Response schema for models.get: Detailed information about the model.\");\n\nexport const replicateModelsGet = action(\"REPLICATE_MODELS_GET\", {\n slug: \"replicate-models-get\",\n name: \"Get Model Details\",\n description: \"Tool to get details of a specific model by owner and name. Consult the returned input schema before constructing any prediction request — each model defines its own required/optional fields (e.g., `prompt`, `aspect_ratio`, `version`); missing or unknown keys cause validation errors. Model schemas and available versions may change over time; recheck before production use.\",\n input: ReplicateModelsGetInput,\n output: ReplicateModelsGetOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gKAAgK;CAChM,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qLAAqL;AACxN,CAAC,CAAC,CAAC,SAAS,8EAA8E;AAC1F,MAAM,uCAAuCA,IAAAA,EAAE,OAAO;CACpD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,WAAW,CAAC,CAAC,SAAS;CACjD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa,CAAC,CAAC,SAAS;AACvD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sBAAsB;AAChD,MAAM,6CAA6CA,IAAAA,EAAE,OAAO,EAC1D,SAASA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sFAAsF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAClK,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4BAA4B;AACtD,MAAM,yCAAyCA,IAAAA,EAAE,OAAO;CACtD,MAAM,qCAAqC,SAAS;CACpD,OAAOA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChH,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CACzE,YAAY,2CAA2C,SAAS,CAAC,CAAC,SAAS;AAC7E,CAAC,CAAC,CAAC,YAAY,CAAC,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,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CAClG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CACtE,aAAaA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CAChG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,gBAAgB,yCAAyC,SAAS,CAAC,CAAC,SAAS;CAC7E,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,iBAAiB,4CAA4C,SAAS,CAAC,CAAC,SAAS;AACnF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uEAAuE;AAEjG,MAAa,qBAAqBC,eAAAA,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,83 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/models-get.d.ts
|
|
4
|
-
declare const ReplicateModelsGetInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const ReplicateModelsGetInput: z.ZodObject<{
|
|
5
|
+
model_name: z.ZodString;
|
|
6
|
+
model_owner: z.ZodString;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
declare const ReplicateModelsGetOutput: z.ZodObject<{
|
|
9
|
+
url: z.ZodNullable<z.ZodString>;
|
|
10
|
+
name: z.ZodNullable<z.ZodString>;
|
|
11
|
+
owner: z.ZodNullable<z.ZodString>;
|
|
12
|
+
paper_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
+
run_count: z.ZodNullable<z.ZodNumber>;
|
|
14
|
+
created_at: z.ZodNullable<z.ZodString>;
|
|
15
|
+
github_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
visibility: z.ZodNullable<z.ZodString>;
|
|
17
|
+
description: z.ZodNullable<z.ZodString>;
|
|
18
|
+
is_official: z.ZodNullable<z.ZodBoolean>;
|
|
19
|
+
license_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
|
+
weights_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
|
+
latest_version: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
22
|
+
id: z.ZodNullable<z.ZodString>;
|
|
23
|
+
created_at: z.ZodNullable<z.ZodString>;
|
|
24
|
+
cog_version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
|
+
openapi_schema: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
26
|
+
info: z.ZodNullable<z.ZodObject<{
|
|
27
|
+
title: z.ZodNullable<z.ZodString>;
|
|
28
|
+
version: z.ZodNullable<z.ZodString>;
|
|
29
|
+
}, z.core.$loose>>;
|
|
30
|
+
paths: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
31
|
+
openapi: z.ZodNullable<z.ZodString>;
|
|
32
|
+
components: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
33
|
+
schemas: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
34
|
+
}, z.core.$loose>>>;
|
|
35
|
+
}, z.core.$loose>>>;
|
|
36
|
+
}, z.core.$loose>>>;
|
|
37
|
+
cover_image_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
38
|
+
default_example: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
39
|
+
id: z.ZodNullable<z.ZodString>;
|
|
40
|
+
logs: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
41
|
+
urls: z.ZodNullable<z.ZodObject<{
|
|
42
|
+
get: z.ZodNullable<z.ZodString>;
|
|
43
|
+
web: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
44
|
+
cancel: z.ZodNullable<z.ZodString>;
|
|
45
|
+
stream: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
46
|
+
}, z.core.$loose>>;
|
|
47
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
48
|
+
input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
49
|
+
model: z.ZodNullable<z.ZodString>;
|
|
50
|
+
output: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodUnknown>, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
|
|
51
|
+
source: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
52
|
+
web: "web";
|
|
53
|
+
api: "api";
|
|
54
|
+
}>>>;
|
|
55
|
+
status: z.ZodNullable<z.ZodEnum<{
|
|
56
|
+
starting: "starting";
|
|
57
|
+
processing: "processing";
|
|
58
|
+
succeeded: "succeeded";
|
|
59
|
+
failed: "failed";
|
|
60
|
+
canceled: "canceled";
|
|
61
|
+
aborted: "aborted";
|
|
62
|
+
}>>;
|
|
63
|
+
metrics: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
64
|
+
total_time: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
65
|
+
predict_time: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
66
|
+
}, z.core.$loose>>>;
|
|
67
|
+
version: z.ZodNullable<z.ZodString>;
|
|
68
|
+
deadline: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
69
|
+
created_at: z.ZodNullable<z.ZodString>;
|
|
70
|
+
deployment: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
71
|
+
started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
72
|
+
completed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
73
|
+
data_removed: z.ZodNullable<z.ZodBoolean>;
|
|
74
|
+
is_free_trial_prediction: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
75
|
+
}, z.core.$loose>>>;
|
|
76
|
+
}, z.core.$loose>;
|
|
77
|
+
declare const replicateModelsGet: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
78
|
+
model_name: string;
|
|
79
|
+
model_owner: string;
|
|
80
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
81
|
//#endregion
|
|
8
82
|
export { replicateModelsGet };
|
|
9
83
|
//# sourceMappingURL=models-get.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models-get.d.cts","names":[],"sources":["../../src/actions/models-get.ts"],"mappings":";;;cAIa,uBAAA,
|
|
1
|
+
{"version":3,"file":"models-get.d.cts","names":[],"sources":["../../src/actions/models-get.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;cAuDvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAkBxB,kBAAA,gCAAkB,wBAAA"}
|
|
@@ -1,9 +1,83 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/models-get.d.ts
|
|
4
|
-
declare const ReplicateModelsGetInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const ReplicateModelsGetInput: z.ZodObject<{
|
|
5
|
+
model_name: z.ZodString;
|
|
6
|
+
model_owner: z.ZodString;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
declare const ReplicateModelsGetOutput: z.ZodObject<{
|
|
9
|
+
url: z.ZodNullable<z.ZodString>;
|
|
10
|
+
name: z.ZodNullable<z.ZodString>;
|
|
11
|
+
owner: z.ZodNullable<z.ZodString>;
|
|
12
|
+
paper_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
+
run_count: z.ZodNullable<z.ZodNumber>;
|
|
14
|
+
created_at: z.ZodNullable<z.ZodString>;
|
|
15
|
+
github_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
visibility: z.ZodNullable<z.ZodString>;
|
|
17
|
+
description: z.ZodNullable<z.ZodString>;
|
|
18
|
+
is_official: z.ZodNullable<z.ZodBoolean>;
|
|
19
|
+
license_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
|
+
weights_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
|
+
latest_version: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
22
|
+
id: z.ZodNullable<z.ZodString>;
|
|
23
|
+
created_at: z.ZodNullable<z.ZodString>;
|
|
24
|
+
cog_version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
|
+
openapi_schema: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
26
|
+
info: z.ZodNullable<z.ZodObject<{
|
|
27
|
+
title: z.ZodNullable<z.ZodString>;
|
|
28
|
+
version: z.ZodNullable<z.ZodString>;
|
|
29
|
+
}, z.core.$loose>>;
|
|
30
|
+
paths: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
31
|
+
openapi: z.ZodNullable<z.ZodString>;
|
|
32
|
+
components: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
33
|
+
schemas: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
34
|
+
}, z.core.$loose>>>;
|
|
35
|
+
}, z.core.$loose>>>;
|
|
36
|
+
}, z.core.$loose>>>;
|
|
37
|
+
cover_image_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
38
|
+
default_example: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
39
|
+
id: z.ZodNullable<z.ZodString>;
|
|
40
|
+
logs: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
41
|
+
urls: z.ZodNullable<z.ZodObject<{
|
|
42
|
+
get: z.ZodNullable<z.ZodString>;
|
|
43
|
+
web: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
44
|
+
cancel: z.ZodNullable<z.ZodString>;
|
|
45
|
+
stream: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
46
|
+
}, z.core.$loose>>;
|
|
47
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
48
|
+
input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
49
|
+
model: z.ZodNullable<z.ZodString>;
|
|
50
|
+
output: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodUnknown>, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
|
|
51
|
+
source: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
52
|
+
web: "web";
|
|
53
|
+
api: "api";
|
|
54
|
+
}>>>;
|
|
55
|
+
status: z.ZodNullable<z.ZodEnum<{
|
|
56
|
+
starting: "starting";
|
|
57
|
+
processing: "processing";
|
|
58
|
+
succeeded: "succeeded";
|
|
59
|
+
failed: "failed";
|
|
60
|
+
canceled: "canceled";
|
|
61
|
+
aborted: "aborted";
|
|
62
|
+
}>>;
|
|
63
|
+
metrics: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
64
|
+
total_time: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
65
|
+
predict_time: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
66
|
+
}, z.core.$loose>>>;
|
|
67
|
+
version: z.ZodNullable<z.ZodString>;
|
|
68
|
+
deadline: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
69
|
+
created_at: z.ZodNullable<z.ZodString>;
|
|
70
|
+
deployment: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
71
|
+
started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
72
|
+
completed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
73
|
+
data_removed: z.ZodNullable<z.ZodBoolean>;
|
|
74
|
+
is_free_trial_prediction: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
75
|
+
}, z.core.$loose>>>;
|
|
76
|
+
}, z.core.$loose>;
|
|
77
|
+
declare const replicateModelsGet: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
78
|
+
model_name: string;
|
|
79
|
+
model_owner: string;
|
|
80
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
81
|
//#endregion
|
|
8
82
|
export { replicateModelsGet };
|
|
9
83
|
//# sourceMappingURL=models-get.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models-get.d.mts","names":[],"sources":["../../src/actions/models-get.ts"],"mappings":";;;cAIa,uBAAA,
|
|
1
|
+
{"version":3,"file":"models-get.d.mts","names":[],"sources":["../../src/actions/models-get.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;cAuDvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAkBxB,kBAAA,gCAAkB,wBAAA"}
|
|
@@ -6,28 +6,28 @@ const ReplicateModelsGetInput = z.object({
|
|
|
6
6
|
model_owner: z.string().describe("The username or organization that owns the model, e.g., 'replicate' Must be an exact, case-sensitive Replicate slug (lowercase, hyphenated); e.g., use 'replicate' not 'Replicate'.")
|
|
7
7
|
}).describe("Request schema for retrieving details of a specific model by owner and name.");
|
|
8
8
|
const ReplicateModelsGet_OpenAPIInfoSchema = z.object({
|
|
9
|
-
title: z.string().describe("API title"),
|
|
10
|
-
version: z.string().describe("API version")
|
|
9
|
+
title: z.string().describe("API title").nullable(),
|
|
10
|
+
version: z.string().describe("API version").nullable()
|
|
11
11
|
}).passthrough().describe("OpenAPI info object.");
|
|
12
|
-
const ReplicateModelsGet_OpenAPIComponentsSchema = z.object({ schemas: z.
|
|
12
|
+
const ReplicateModelsGet_OpenAPIComponentsSchema = z.object({ schemas: z.record(z.string(), z.unknown()).describe("Reusable schema definitions with arbitrary names (e.g., Input, Output, Status, etc.)").nullable().optional() }).passthrough().describe("OpenAPI components object.");
|
|
13
13
|
const ReplicateModelsGet_OpenAPISchemaSchema = z.object({
|
|
14
14
|
info: ReplicateModelsGet_OpenAPIInfoSchema.nullable(),
|
|
15
|
-
paths: z.
|
|
16
|
-
openapi: z.string().describe("OpenAPI version (e.g., '3.0.2')"),
|
|
15
|
+
paths: z.record(z.string(), z.unknown()).describe("API paths (typically empty for models)").nullable().optional(),
|
|
16
|
+
openapi: z.string().describe("OpenAPI version (e.g., '3.0.2')").nullable(),
|
|
17
17
|
components: ReplicateModelsGet_OpenAPIComponentsSchema.nullable().optional()
|
|
18
18
|
}).passthrough().describe("OpenAPI 3.0.2 schema structure for model inputs/outputs.");
|
|
19
19
|
const ReplicateModelsGet_VersionResponseSchema = z.object({
|
|
20
|
-
id: z.string().describe("The ID of the version"),
|
|
21
|
-
created_at: z.string().describe("The date and time the version was created (ISO 8601 format)"),
|
|
20
|
+
id: z.string().describe("The ID of the version").nullable(),
|
|
21
|
+
created_at: z.string().describe("The date and time the version was created (ISO 8601 format)").nullable(),
|
|
22
22
|
cog_version: z.string().describe("The version of Cog used to create this version").nullable().optional(),
|
|
23
23
|
openapi_schema: ReplicateModelsGet_OpenAPISchemaSchema.nullable().optional()
|
|
24
|
-
}).describe("Schema for a model version object returned by the API.");
|
|
24
|
+
}).passthrough().describe("Schema for a model version object returned by the API.");
|
|
25
25
|
const ReplicateModelsGet_PredictionUrlsSchema = z.object({
|
|
26
|
-
get: z.string().describe("API endpoint URL to get the prediction details"),
|
|
26
|
+
get: z.string().describe("API endpoint URL to get the prediction details").nullable(),
|
|
27
27
|
web: z.string().describe("Web URL for viewing the prediction in a browser").nullable().optional(),
|
|
28
|
-
cancel: z.string().describe("API endpoint URL to cancel the prediction"),
|
|
28
|
+
cancel: z.string().describe("API endpoint URL to cancel the prediction").nullable(),
|
|
29
29
|
stream: z.string().describe("Streaming URL for the prediction, if available").nullable().optional()
|
|
30
|
-
}).describe("URLs associated with a prediction.\n\nNote: The official OpenAPI schema (https://api.replicate.com/openapi.json) marks 'web'\nas required, but actual API responses from default_example objects omit this field.\nTo ensure compatibility with real API responses, 'web' is marked as optional.");
|
|
30
|
+
}).passthrough().describe("URLs associated with a prediction.\n\nNote: The official OpenAPI schema (https://api.replicate.com/openapi.json) marks 'web'\nas required, but actual API responses from default_example objects omit this field.\nTo ensure compatibility with real API responses, 'web' is marked as optional.");
|
|
31
31
|
const ReplicateModelsGet_PredictionSourceSchema = z.enum(["web", "api"]).describe("Source of a prediction.");
|
|
32
32
|
const ReplicateModelsGet_PredictionStatusSchema = z.enum([
|
|
33
33
|
"starting",
|
|
@@ -42,12 +42,12 @@ const ReplicateModelsGet_PredictionMetricsSchema = z.object({
|
|
|
42
42
|
predict_time: z.number().describe("CPU/GPU seconds used during model execution").nullable().optional()
|
|
43
43
|
}).passthrough().describe("Metrics associated with a prediction.");
|
|
44
44
|
const ReplicateModelsGet_PredictionResponseSchema = z.object({
|
|
45
|
-
id: z.string().describe("Unique identifier for the prediction"),
|
|
45
|
+
id: z.string().describe("Unique identifier for the prediction").nullable(),
|
|
46
46
|
logs: z.string().describe("The log output from the model").nullable().optional(),
|
|
47
47
|
urls: ReplicateModelsGet_PredictionUrlsSchema.nullable(),
|
|
48
48
|
error: z.string().describe("An error string if the model status is failed").nullable().optional(),
|
|
49
49
|
input: z.record(z.string(), z.unknown()).describe("The prediction input parameters"),
|
|
50
|
-
model: z.string().describe("The name of the model that created the prediction"),
|
|
50
|
+
model: z.string().describe("The name of the model that created the prediction").nullable(),
|
|
51
51
|
output: z.union([
|
|
52
52
|
z.string(),
|
|
53
53
|
z.number().int(),
|
|
@@ -59,37 +59,37 @@ const ReplicateModelsGet_PredictionResponseSchema = z.object({
|
|
|
59
59
|
source: ReplicateModelsGet_PredictionSourceSchema.nullable().optional(),
|
|
60
60
|
status: ReplicateModelsGet_PredictionStatusSchema.nullable(),
|
|
61
61
|
metrics: ReplicateModelsGet_PredictionMetricsSchema.nullable().optional(),
|
|
62
|
-
version: z.string().describe("The version ID of the model, or 'hidden' if not accessible"),
|
|
62
|
+
version: z.string().describe("The version ID of the model, or 'hidden' if not accessible").nullable(),
|
|
63
63
|
deadline: z.string().describe("The absolute time at which the prediction will be automatically canceled (ISO 8601 format)").nullable().optional(),
|
|
64
|
-
created_at: z.string().describe("The date and time the prediction was created (ISO 8601 format)"),
|
|
64
|
+
created_at: z.string().describe("The date and time the prediction was created (ISO 8601 format)").nullable(),
|
|
65
65
|
deployment: z.string().describe("The name of the deployment that created the prediction").nullable().optional(),
|
|
66
66
|
started_at: z.string().describe("The date and time the prediction started (ISO 8601 format)").nullable().optional(),
|
|
67
67
|
completed_at: z.string().describe("The date and time the prediction completed (ISO 8601 format)").nullable().optional(),
|
|
68
|
-
data_removed: z.boolean().describe("Whether the prediction output has been deleted"),
|
|
68
|
+
data_removed: z.boolean().describe("Whether the prediction output has been deleted").nullable(),
|
|
69
69
|
is_free_trial_prediction: z.boolean().describe("Whether this prediction was created using free trial credits").nullable().optional()
|
|
70
|
-
}).describe("Schema for a prediction object returned by the API.");
|
|
70
|
+
}).passthrough().describe("Schema for a prediction object returned by the API.");
|
|
71
71
|
const replicateModelsGet = action("REPLICATE_MODELS_GET", {
|
|
72
72
|
slug: "replicate-models-get",
|
|
73
73
|
name: "Get Model Details",
|
|
74
74
|
description: "Tool to get details of a specific model by owner and name. Consult the returned input schema before constructing any prediction request — each model defines its own required/optional fields (e.g., `prompt`, `aspect_ratio`, `version`); missing or unknown keys cause validation errors. Model schemas and available versions may change over time; recheck before production use.",
|
|
75
75
|
input: ReplicateModelsGetInput,
|
|
76
76
|
output: z.object({
|
|
77
|
-
url: z.string().describe("Canonical URL of the model"),
|
|
78
|
-
name: z.string().describe("Name of the model"),
|
|
79
|
-
owner: z.string().describe("Owner (username or organization) of the model"),
|
|
77
|
+
url: z.string().describe("Canonical URL of the model").nullable(),
|
|
78
|
+
name: z.string().describe("Name of the model").nullable(),
|
|
79
|
+
owner: z.string().describe("Owner (username or organization) of the model").nullable(),
|
|
80
80
|
paper_url: z.string().describe("URL to the paper associated with the model, if any").nullable().optional(),
|
|
81
|
-
run_count: z.number().int().describe("Total number of times the model has been run"),
|
|
82
|
-
created_at: z.string().describe("The date and time the model was created (ISO 8601 format)"),
|
|
81
|
+
run_count: z.number().int().describe("Total number of times the model has been run").nullable(),
|
|
82
|
+
created_at: z.string().describe("The date and time the model was created (ISO 8601 format)").nullable(),
|
|
83
83
|
github_url: z.string().describe("URL to the model's GitHub repository, if any").nullable().optional(),
|
|
84
|
-
visibility: z.string().describe("Visibility of the model, either 'public' or 'private'"),
|
|
85
|
-
description: z.string().describe("Description of the model"),
|
|
86
|
-
is_official: z.boolean().describe("Whether this model is an official Replicate model"),
|
|
84
|
+
visibility: z.string().describe("Visibility of the model, either 'public' or 'private'").nullable(),
|
|
85
|
+
description: z.string().describe("Description of the model").nullable(),
|
|
86
|
+
is_official: z.boolean().describe("Whether this model is an official Replicate model").nullable(),
|
|
87
87
|
license_url: z.string().describe("URL to the license of the model, if any").nullable().optional(),
|
|
88
88
|
weights_url: z.string().describe("URL to download the model weights, if available").nullable().optional(),
|
|
89
89
|
latest_version: ReplicateModelsGet_VersionResponseSchema.nullable().optional(),
|
|
90
90
|
cover_image_url: z.string().describe("URL to the model's cover image, if any").nullable().optional(),
|
|
91
91
|
default_example: ReplicateModelsGet_PredictionResponseSchema.nullable().optional()
|
|
92
|
-
}).describe("Response schema for models.get: Detailed information about the model.")
|
|
92
|
+
}).passthrough().describe("Response schema for models.get: Detailed information about the model.")
|
|
93
93
|
});
|
|
94
94
|
//#endregion
|
|
95
95
|
export { replicateModelsGet };
|