Skip to content

Latest commit

 

History

History
31 lines (26 loc) · 6.82 KB

File metadata and controls

31 lines (26 loc) · 6.82 KB

Prompt

Example Usage

import { Prompt } from "@mistralai/mistralai/models/components";

let value: Prompt = {
  version: 1,
  createdAt: new Date("1s"),
  updatedAt: new Date("1s"),
  latestVersion: 1,
};

Fields

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.