MCPcopy
hub / github.com/stitionai/devika / new_state

Method new_state

src/state.py:25–45  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

23 SQLModel.metadata.create_all(self.engine)
24
25 def new_state(self):
26 timestamp = datetime.now().strftime("%Y-%m-%d %H:%M:%S")
27
28 return {
29 "internal_monologue": '',
30 "browser_session": {
31 "url": None,
32 "screenshot": None
33 },
34 "terminal_session": {
35 "command": None,
36 "output": None,
37 "title": None
38 },
39 "step": int(),
40 "message": None,
41 "completed": False,
42 "agent_is_active": True,
43 "token_usage": 0,
44 "timestamp": timestamp
45 }
46
47 def create_state(self, project: str):
48 with Session(self.engine) as session:

Callers 11

create_stateMethod · 0.95
set_agent_activeMethod · 0.95
set_agent_completedMethod · 0.95
update_token_usageMethod · 0.95
screenshotMethod · 0.80
screenshotMethod · 0.80
executeMethod · 0.80
run_codeMethod · 0.80
emulate_code_writingMethod · 0.80
emulate_code_writingMethod · 0.80
emulate_code_writingMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected