UNPKG

ai-utils.js

Version:

Build AI applications, chatbots, and agents with JavaScript and TypeScript.

15 lines (14 loc) 559 B
import { PromptMapping } from "./PromptMapping.js"; import { InstructionPrompt } from "./InstructionPrompt.js"; import { ChatPrompt } from "./chat/ChatPrompt.js"; export declare const InstructionToTextPromptMapping: () => PromptMapping<InstructionPrompt, string>; /** * A mapping from a chat prompt to a text prompt. * * @param user The label of the user in the chat. * @param ai The name of the AI in the chat. */ export declare const ChatToTextPromptMapping: ({ user, ai, }: { user: string; ai: string; }) => PromptMapping<ChatPrompt, string>;