MCPcopy Create free account
hub / github.com/RobotTelevision/CrowAssistant / addSystemMessage

Method addSystemMessage

CrowBrain.py:142–149  ·  view source on GitHub ↗
(self, input_text, conversation_id)

Source from the content-addressed store, hash-verified

140 return {"conversation_log": [{"role": m.role, "content": m.content} for m in messages]}
141
142 def addSystemMessage(self, input_text, conversation_id):
143 def add_message():
144 user_message = self.Message(conversation_id=conversation_id, role="system", content=input_text)
145 self.db.session.add(user_message)
146 self.db.session.commit()
147
148 with self.app.app_context():
149 add_message()
150
151 def generate(self, input_text, conversation_id):
152 with self.app.app_context():

Callers 1

tupdateFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected