Skip to content

Build and run agents you can see, understand and trust.

fix(config):fix the timestamp in agentscope config (#976)

zhijianmac8da685b60b8
diff --git a/src/agentscope/__init__.py b/src/agentscope/__init__.py
index d102fdce6..02075757e 100644
--- a/src/agentscope/__init__.py
+++ b/src/agentscope/__init__.py
@@ -31,8 +31,7 @@ _config = _ConfigCls(
),
created_at=ContextVar(
"created_at",
- default=datetime.now().strftime("%H%M%S_")
- + _generate_random_suffix(4),
+ default=datetime.now().strftime("%Y-%m-%d %H:%M:%S.%f")[:-3],
),
trace_enabled=ContextVar(
"trace_enabled",