import { Prompt } from "@mistralai/mistralai/models/components";
let value: Prompt = {
version: 1,
createdAt: new Date("1s"),
updatedAt: new Date("1s"),
latestVersion: 1,
};| Field | Type | Required | Description | Example |
|---|---|---|---|---|
id |
string | ➖ | N/A | |
name |
string | ➖ | Stable object name. | |
definition |
components.PromptDefinition | ➖ | Versioned prompt content. | |
version |
number | ➖ | N/A | 1 |
notes |
string | ➖ | Notes for this version. | |
aliases |
string[] | ➖ | Aliases pointing to this version. | |
sharingScope |
components.RegistrySharingScope | ➖ | N/A | |
createdAt |
Date | ➖ | RFC 3339 timestamp. | Example 1: 1s Example 2: 1.000340012s |
updatedAt |
Date | ➖ | RFC 3339 timestamp. | Example 1: 1s Example 2: 1.000340012s |
latestVersion |
number | ➖ | Latest version number. | 1 |
title |
string | ➖ | Display title. | |
description |
string | ➖ | Display description. |