(self)
| 59 | self.log.update(content=text) |
| 60 | |
| 61 | def get_log_object(self): |
| 62 | import uuid |
| 63 | pre_id = str(uuid.uuid4()) |
| 64 | if self.method: |
| 65 | heading = f"icon://construction {self.agent.agent_name}: Using tool '{self.name}:{self.method}'" |
| 66 | else: |
| 67 | heading = f"icon://construction {self.agent.agent_name}: Using tool '{self.name}'" |
| 68 | return self.agent.context.log.log(type="tool", heading=heading, content="", kvps=self.args, _tool_name=self.name, id=pre_id) |
| 69 | |
| 70 | def nice_key(self, key:str): |
| 71 | words = key.split('_') |