MCPcopy
hub / github.com/agent0ai/agent-zero / _current_action

Function _current_action

tools/scheduler.py:23–33  ·  view source on GitHub ↗
(tool: Tool, kwargs: dict)

Source from the content-addressed store, hash-verified

21
22
23def _current_action(tool: Tool, kwargs: dict) -> str:
24 return (
25 str(
26 kwargs.get("action")
27 or tool.args.get("action")
28 or ""
29 )
30 .strip()
31 .lower()
32 .replace("-", "_")
33 )
34
35
36def _normalize_timezone(value: Any) -> str | None:

Callers 1

executeMethod · 0.70

Calls 2

replaceMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected