True if the language model is a BaseLLM model, False otherwise.
    """
    return isinstance(llm, BaseLLM)
[docs]def is_chat_model(llm: BaseLanguageModel) -> bool:
    """Check if the language model is a chat model.
    Args:
        llm: Language model to check.
    Returns:
        True if the language model is a BaseChatModel model, False otherwise.
    """
    return isinstance(llm, BaseChatModel)