添加EXA搜索引擎和联网搜索组件的配置类(这个故事告诉我们下次改配置文件的时候记得加配置类)

This commit is contained in:
minecraft1024a
2025-08-13 17:00:20 +08:00
parent 6a699ff649
commit a9f3ab70d0
2 changed files with 24 additions and 1 deletions

View File

@@ -901,4 +901,23 @@ class DependencyManagementConfig(ConfigBase):
"""安装前是否提示用户(暂未实现)"""
install_log_level: str = "INFO"
"""依赖安装日志级别"""
"""依赖安装日志级别"""
@dataclass
class ExaConfig(ConfigBase):
"""EXA搜索引擎配置类"""
api_key: str = "None"
"""EXA API密钥用于联网搜索功能。请填入有效的EXA API密钥"""
@dataclass
class WebSearchConfig(ConfigBase):
"""联网搜索组件配置类"""
enable_web_search_tool: bool = True
"""是否启用联网搜索工具"""
enable_url_tool: bool = True
"""是否启用URL解析工具"""