UNPKG

@monsoft/davinci-ai

Version:

Davinci AI Client

21 lines (20 loc) 841 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.chatMessageSuggestionsSchema = exports.chatMessageReplySchema = void 0; const zod_1 = require("zod"); exports.chatMessageReplySchema = zod_1.z .object({ content: zod_1.z.string(), uuid: zod_1.z.string(), }) .describe('A reply suggestion for a given message'); exports.chatMessageSuggestionsSchema = zod_1.z .object({ messages: zod_1.z .array(exports.chatMessageReplySchema) .describe('The reply suggestions for a given message'), parentMessageId: zod_1.z .string() .describe('The message id of the message that the suggestions are for. If your ID is number, you should convert this value to string.'), }) .describe('Response from Davinci to generate suggestions for replying to a message');