MCPcopy Index your code
hub / github.com/stitionai/devika / validate_last_message_is_from_user

Method validate_last_message_is_from_user

src/project.py:91–98  ·  view source on GitHub ↗
(self, project: str)

Source from the content-addressed store, hash-verified

89 return None
90
91 def validate_last_message_is_from_user(self, project: str):
92 with Session(self.engine) as session:
93 project_state = session.query(Projects).filter(Projects.project == project).first()
94 if project_state:
95 message_stack = json.loads(project_state.message_stack_json)
96 if message_stack:
97 return not message_stack[-1]["from_devika"]
98 return False
99
100 def get_latest_message_from_devika(self, project: str):
101 with Session(self.engine) as session:

Callers 1

executeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected