InputType#

class langchain.chains.conversational_retrieval.base.InputType[source]#

Bases: BaseModel

Input type for ConversationalRetrievalChain.

Create a new model by parsing and validating input data from keyword arguments.

Raises ValidationError if the input data cannot be parsed to form a valid model.

param chat_history: List[Tuple[str, str] | BaseMessage] [Optional]#

The chat history to use for retrieval.

param question: str [Required]#

The question to answer.