(self, **kwargs)
| 74 | return super().get_log_object() |
| 75 | |
| 76 | async def before_execution(self, **kwargs): |
| 77 | if self._current_action(**kwargs) != "load": |
| 78 | await super().before_execution(**kwargs) |
| 79 | return |
| 80 | |
| 81 | skill_name = self._normalize_skill_name( |
| 82 | str(kwargs.get("skill_name") or self.args.get("skill_name") or "") |
| 83 | ) |
| 84 | label = f"{self.name} action {self._current_action(**kwargs)}" |
| 85 | if skill_name: |
| 86 | PrintStyle( |
| 87 | font_color="#1B4F72", |
| 88 | padding=True, |
| 89 | background_color="white", |
| 90 | bold=True, |
| 91 | ).print(f"{self.agent.agent_name}: Loading skill '{skill_name}'") |
| 92 | else: |
| 93 | PrintStyle( |
| 94 | font_color="#1B4F72", |
| 95 | padding=True, |
| 96 | background_color="white", |
| 97 | bold=True, |
| 98 | ).print(f"{self.agent.agent_name}: Using tool '{label}'") |
| 99 | self.log = self.get_log_object() |
| 100 | |
| 101 | async def execute(self, **kwargs) -> Response: |
| 102 | action = self._current_action(**kwargs) |
nothing calls this directly
no test coverage detected