MCPcopy Create free account
hub / github.com/agent0ai/agent-zero / get_log_object

Method get_log_object

tools/skills_tool.py:54–74  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

52 return skill_name.strip()
53
54 def get_log_object(self):
55 import uuid
56
57 if self._current_action() == "load":
58 skill_name = self._normalize_skill_name(
59 str(self.args.get("skill_name") or "")
60 )
61 heading = (
62 f"icon://construction Loading skill {skill_name}"
63 if skill_name
64 else "icon://construction Loading skill"
65 )
66 return self.agent.context.log.log(
67 type="tool",
68 heading=heading,
69 content="",
70 kvps={"_tool_name": self.name},
71 id=str(uuid.uuid4()),
72 )
73
74 return super().get_log_object()
75
76 async def before_execution(self, **kwargs):
77 if self._current_action(**kwargs) != "load":

Callers 1

before_executionMethod · 0.95

Calls 4

_current_actionMethod · 0.95
_normalize_skill_nameMethod · 0.95
getMethod · 0.45
logMethod · 0.45

Tested by

no test coverage detected