MCPcopy
hub / github.com/melih-unsal/DemoGPT / addToHistory

Method addToHistory

demogpt/chains/self_refiner.py:56–62  ·  view source on GitHub ↗
(self, prompt)

Source from the content-addressed store, hash-verified

54 return prompts
55
56 def addToHistory(self, prompt):
57 if len(self.conversation_history) % 2 == 0:
58 template = HumanMessagePromptTemplate.from_template(prompt)
59 else:
60 template = AIMessagePromptTemplate.from_template(prompt)
61
62 self.conversation_history.append(template)
63
64 def feedback(self, **kwargs):
65 return LLMChain(

Callers 1

runMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected