mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-04-28 11:40:47 +00:00
fix: do not crash if runtime parameter is not set in code exec (#641)
Co-authored-by: Rafael Uzarowski <uzarowski.rafael@proton.me>
This commit is contained in:
parent
c31d0dbf97
commit
edffad2ea9
1 changed files with 1 additions and 1 deletions
|
|
@ -71,7 +71,7 @@ class CodeExecution(Tool):
|
|||
|
||||
def get_heading(self, text: str = ""):
|
||||
if not text:
|
||||
text = f"{self.name} - {self.args['runtime']}"
|
||||
text = f"{self.name} - {self.args['runtime'] if 'runtime' in self.args else 'unknown'}"
|
||||
text = truncate_text_string(text, 60)
|
||||
session = self.args.get("session", None)
|
||||
session_text = f"[{session}] " if session or session == 0 else ""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue