langchain/chains/prompt_selector.py/ConditionalPromptSelector/get_prompt
class ConditionalPromptSelector:    def get_prompt(self, llm: BaseLanguageModel) -> BasePromptTemplate:
        for condition, prompt in self.conditionals:
            if condition(llm):
                return prompt
        return self.default_prompt