- 实现SearchConfigTab.vue组件,用于管理搜索配置设置 - 增加加载状态、错误处理和默认重置功能 - 集成本地存储功能,支持用户配置的保存与加载 - 更新AppLayout.vue,在数据库信息视图中新增SearchConfigTab - 修改数据库存储逻辑,支持必要时跳过查询参数加载 - 增强DataBaseInfoView.vue,为向量数据库添加重排序器配置选项 - 重构database.js,优化查询参数加载逻辑 - 清理未使用导入项并优化各组件样式
40 lines
1.1 KiB
Python
40 lines
1.1 KiB
Python
"""
|
|
Common utilities and base classes for agents.
|
|
|
|
This module provides a unified namespace for commonly used base classes and utilities,
|
|
allowing simplified imports like:
|
|
from src.agents.common import BaseAgent, BaseContext, BaseState
|
|
|
|
For other specific functions, use the original import style:
|
|
from src.agents.common.tools import query_knowledge_graph
|
|
from src.agents.common.mcp import MCP_SERVERS
|
|
"""
|
|
|
|
# Base classes - 核心基类
|
|
from src.agents.common.base import BaseAgent
|
|
from src.agents.common.context import BaseContext
|
|
|
|
# MCP - 核心 MCP 函数
|
|
from src.agents.common.mcp import get_mcp_tools
|
|
|
|
# Model utilities - 模型加载
|
|
from src.agents.common.models import load_chat_model
|
|
from src.agents.common.state import BaseState
|
|
|
|
# Tools - 核心工具函数
|
|
from src.agents.common.tools import gen_tool_info, get_buildin_tools
|
|
|
|
__all__ = [
|
|
# Base classes
|
|
"BaseAgent",
|
|
"BaseContext",
|
|
"BaseState",
|
|
# Model utilities
|
|
"load_chat_model",
|
|
# Core tools
|
|
"get_buildin_tools",
|
|
"gen_tool_info",
|
|
# Core MCP
|
|
"get_mcp_tools",
|
|
]
|