Class PromptSelectorUtils

java.lang.Object
com.hw.langchain.chains.prompt.selector.PromptSelectorUtils

public class PromptSelectorUtils extends Object
Author:
HamaWhite
  • Method Details

    • isLLM

      public static boolean isLLM(BaseLanguageModel llm)
      Check if the language model is a LLM.
      Parameters:
      llm - The language model to check.
      Returns:
      true if the language model is a BaseLLM model, false otherwise.
    • isChatModel

      public static boolean isChatModel(BaseLanguageModel llm)
      Check if the language model is a chat model.
      Parameters:
      llm - The language model to check.
      Returns:
      true if the language model is a BaseChatModel model, false otherwise.