diff --git a/src/config/app.py b/src/config/app.py
index 5e638959..98543fe5 100644
--- a/src/config/app.py
+++ b/src/config/app.py
@@ -70,7 +70,7 @@ class Config(BaseModel):
# ============================================================
# 智能体配置
# ============================================================
- default_agent_id: str = Field(default="", description="默认智能体ID")
+ default_agent_id: str = Field(default="ChatbotAgent", description="默认智能体ID")
# ============================================================
# 模型信息(只读,不持久化)
@@ -149,6 +149,11 @@ class Config(BaseModel):
else:
logger.warning(f"Unknown config key: {key}")
+ # 确保默认智能体为 ChatbotAgent(兼容旧配置)
+ if not self.default_agent_id:
+ self.default_agent_id = "ChatbotAgent"
+ logger.info("default_agent_id not set, using default: ChatbotAgent")
+
except Exception as e:
logger.error(f"Failed to load config from {self._config_file}: {e}")
diff --git a/web/src/components/ToolCallingResult/BaseToolCall.vue b/web/src/components/ToolCallingResult/BaseToolCall.vue
index 8f377ee9..a0db2e66 100644
--- a/web/src/components/ToolCallingResult/BaseToolCall.vue
+++ b/web/src/components/ToolCallingResult/BaseToolCall.vue
@@ -10,10 +10,10 @@
-
+
-
+
@@ -93,7 +93,26 @@