import { ... } from "@langchain/core/prompts";Interface for the fields of a MessageStringPromptTemplate.
Class that represents an AI message prompt template. It extends the BaseMessageStringPromptTemplate.
Abstract class that serves as a base for creating chat prompt templates. It extends the BasePromptTemplate.
Abstract class that serves as a base for creating message prompt templates. It defines how to format messages for different roles in a conversation.
Abstract class that serves as a base for creating message string prompt templates. It extends the BaseMessagePromptTemplate.
Base class for prompt templates. Exposes a format method that returns a string prompt given a set of input values.
Base class for string prompt templates. It extends the BasePromptTemplate class and overrides the formatPromptValue method to return a StringPromptValue.
Class that represents a chat message prompt template. It extends the BaseMessageStringPromptTemplate.
Class that represents a chat prompt. It extends the BaseChatPromptTemplate and uses an array of BaseMessagePromptTemplate instances to format a series of messages for a conversation.
A Runnable is a generic unit of work that can be invoked, batched, streamed, and/or transformed.
Chat prompt template that contains few-shot examples.
Prompt template that contains few-shot examples.
Class that represents a human message prompt template. It extends the BaseMessageStringPromptTemplate.
An image prompt template for a multimodal model.
Class that represents a placeholder for messages in a chat prompt. It extends the BaseMessagePromptTemplate.
Class that handles a sequence of prompts, each of which may require different input variables. Includes methods for formatting these prompts, extracting required input values, and handling partial prompts.
Schema to represent a basic prompt for an LLM.
Interface for the input of a ChatPromptTemplate.
Class that represents a system message prompt template. It extends the BaseMessageStringPromptTemplate.