(cls, system_template="", human_template="", **kwargs)
| 32 | |
| 33 | @classmethod |
| 34 | def getChain(cls, system_template="", human_template="", **kwargs): |
| 35 | prompts = [] |
| 36 | if system_template: |
| 37 | prompts.append(SystemMessagePromptTemplate.from_template(system_template)) |
| 38 | if human_template: |
| 39 | prompts.append(HumanMessagePromptTemplate.from_template(human_template)) |
| 40 | chat_prompt = ChatPromptTemplate.from_messages(prompts) |
| 41 | return LLMChain(llm=cls.llm, prompt=chat_prompt).run(**kwargs) |
| 42 | |
| 43 | @classmethod |
| 44 | def systemInputs(cls, instruction): |
no test coverage detected