MCPcopy Create free account
hub / github.com/T0UGH/codex-self-evolution-plugin / _log_recall

Function _log_recall

src/codex_self_evolution/csep.py:38–52  ·  view source on GitHub ↗
(started: float, *, cwd: str, query: str, result: dict[str, Any], output_format: str, exit_code: int)

Source from the content-addressed store, hash-verified

36
37
38def _log_recall(started: float, *, cwd: str, query: str, result: dict[str, Any], output_format: str, exit_code: int) -> None:
39 duration_ms = int((time.monotonic() - started) * 1000)
40 get_logger().info(
41 "csep recall completed",
42 extra={
43 "kind": "csep-recall",
44 "exit_code": exit_code,
45 "duration_ms": duration_ms,
46 "cwd": cwd,
47 "query_hash": _query_hash(query),
48 "count": int(result.get("count") or 0),
49 "status": result.get("status") or ("matched" if result.get("count") else "no_match"),
50 "output_format": output_format,
51 },
52 )
53
54
55def _handle_recall(args: argparse.Namespace) -> int:

Callers 1

_handle_recallFunction · 0.85

Calls 2

get_loggerFunction · 0.85
_query_hashFunction · 0.85

Tested by

no test coverage detected