MCPcopy Create free account
hub / github.com/Ishabdullah/Codey-v2 / log_action

Method log_action

core/state.py:322–329  ·  view source on GitHub ↗

Log an action to the episodic log.

(self, action: str, details: str = None)

Source from the content-addressed store, hash-verified

320 # ==================== Episodic Log ====================
321
322 def log_action(self, action: str, details: str = None):
323 """Log an action to the episodic log."""
324 with self._lock:
325 self._conn.execute(
326 "INSERT INTO episodic_log (timestamp, action, details) VALUES (?, ?, ?)",
327 (int(time.time()), action, details),
328 )
329 self._conn.commit()
330
331 def get_recent_actions(self, limit: int = 50) -> List[Dict]:
332 """Get recent actions from the episodic log."""

Callers 9

_handle_commandMethod · 0.45
_handle_cancelMethod · 0.45
_main_loopMethod · 0.45
execute_toolFunction · 0.45
rollbackFunction · 0.45
add_taskMethod · 0.45
complete_taskMethod · 0.45
fail_taskMethod · 0.45

Calls 1

executeMethod · 0.80

Tested by 1