refactor(config): 移除工具历史记录相关配置

工具历史记录功能已被移除,因此相关的配置类 `ToolHistoryConfig` 及其在 `ToolConfig` 中的引用也一并删除,以简化代码库。
This commit is contained in:
minecraft1024a
2025-09-13 09:03:00 +08:00
committed by Windpicker-owo
parent 85892e9517
commit b4fe73f5a6

View File

@@ -343,31 +343,11 @@ class ExpressionConfig(ValidatedConfigBase):
# 如果都没有匹配,返回默认值
return True, True, 1.0
class ToolHistoryConfig(ValidatedConfigBase):
"""工具历史记录配置类"""
enable_history: bool = True
"""是否启用工具历史记录"""
enable_prompt_history: bool = True
"""是否在提示词中加入工具历史记录"""
max_history: int = 5
"""注入到提示词中的最大工具历史记录数量"""
data_dir: str = "data/tool_history"
"""历史记录保存目录"""
class ToolConfig(ValidatedConfigBase):
"""工具配置类"""
enable_tool: bool = Field(default=False, description="启用工具")
history: ToolHistoryConfig = Field(default_factory=ToolHistoryConfig)
"""工具历史记录配置"""
class VoiceConfig(ValidatedConfigBase):
"""语音识别配置类"""