From f43de24b2ff2b7a4327c20cda3935acb7688f1f1 Mon Sep 17 00:00:00 2001 From: ahmetgunduz Date: Fri, 24 Oct 2025 13:25:50 +0000 Subject: [PATCH 1/2] fixed time default values --- aixplain/modules/team_agent/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aixplain/modules/team_agent/__init__.py b/aixplain/modules/team_agent/__init__.py index 2c6418ab..1e91777f 100644 --- a/aixplain/modules/team_agent/__init__.py +++ b/aixplain/modules/team_agent/__init__.py @@ -269,7 +269,7 @@ def _format_team_progress( agent_name = progress.get("agent") tool = progress.get("tool") message = progress.get("message", "") - runtime = progress.get("runtime", 0) + runtime = progress.get("runtime") success = progress.get("success") current_step = progress.get("current_step", 0) total_steps = progress.get("total_steps", 0) @@ -328,7 +328,7 @@ def _format_team_progress( # Full verbosity: detailed info msg = f"{emoji} {context} | {status_icon}" - if runtime > 0 and success is not None: + if runtime is not None and runtime > 0 and success is not None: msg += f" ({runtime:.1f} s)" if current_step and total_steps: From f9dabd149ab78146c92c3439bbdda1d507e47936 Mon Sep 17 00:00:00 2001 From: ahmetgunduz Date: Fri, 24 Oct 2025 13:28:09 +0000 Subject: [PATCH 2/2] fixed time default values --- aixplain/modules/agent/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aixplain/modules/agent/__init__.py b/aixplain/modules/agent/__init__.py index 75e5eb1e..e08c47b3 100644 --- a/aixplain/modules/agent/__init__.py +++ b/aixplain/modules/agent/__init__.py @@ -361,7 +361,7 @@ def _format_agent_progress( stage = progress.get("stage", "working") tool = progress.get("tool") - runtime = progress.get("runtime", 0) + runtime = progress.get("runtime") success = progress.get("success") reason = progress.get("reason", "") tool_input = progress.get("tool_input", "") @@ -393,7 +393,7 @@ def _format_agent_progress( if tool: msg = f"⚙️ {agent_name} | {tool} | {status_icon}" - if runtime > 0 and success is not None: + if runtime is not None and runtime > 0 and success is not None: msg += f" ({runtime:.1f} s)" if tool_input: