(self)
| 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": |
no test coverage detected