* 新增 MemoryGatewayConfig 和 MemoryConfig dataclass,用于配置管理。 * 实现 MemoryGatewayUserCredential 和 MemoryGatewayCredentialStore,用于处理用户凭据。 * 创建 MemoryGatewayService,用于管理与 Memory Gateway 的交互。 * 开发用于记忆设置的 JSON 配置文件。 * 增强单元测试,覆盖新功能,包括凭据存储和服务行为。 * 更新 entrypoint 和实例创建脚本,以初始化 Memory Gateway 用户存储。
32 lines
679 B
Python
32 lines
679 B
Python
"""Configuration models and loaders."""
|
|
|
|
from .loader import default_config_path, default_memory_config_path, load_config
|
|
from .schema import (
|
|
AgentDefaultsConfig,
|
|
AuthzConfig,
|
|
BackendIdentityConfig,
|
|
BeaverConfig,
|
|
EmbeddingConfig,
|
|
MemoryConfig,
|
|
MemoryGatewayConfig,
|
|
MCPServerConfig,
|
|
ProviderConfig,
|
|
ToolsConfig,
|
|
)
|
|
|
|
__all__ = [
|
|
"AgentDefaultsConfig",
|
|
"AuthzConfig",
|
|
"BackendIdentityConfig",
|
|
"BeaverConfig",
|
|
"EmbeddingConfig",
|
|
"MemoryConfig",
|
|
"MemoryGatewayConfig",
|
|
"MCPServerConfig",
|
|
"ProviderConfig",
|
|
"ToolsConfig",
|
|
"default_config_path",
|
|
"default_memory_config_path",
|
|
"load_config",
|
|
]
|