(self, project: str)
| 45 | } |
| 46 | |
| 47 | def create_state(self, project: str): |
| 48 | with Session(self.engine) as session: |
| 49 | new_state = self.new_state() |
| 50 | new_state["step"] = 1 |
| 51 | new_state["internal_monologue"] = "I'm starting the work..." |
| 52 | agent_state = AgentStateModel(project=project, state_stack_json=json.dumps([new_state])) |
| 53 | session.add(agent_state) |
| 54 | session.commit() |
| 55 | emit_agent("agent-state", [new_state]) |
| 56 | |
| 57 | def delete_state(self, project: str): |
| 58 | with Session(self.engine) as session: |
no test coverage detected