You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: enhance resource management and API consistency
This commit refactors the resource management system by implementing a more
consistent API client structure across modules. The changes include:
- Updated import paths and module references for better consistency
- Enhanced ResourceBase class with improved listAll functionality
- Standardized API client methods and error handling
- Improved type safety and code maintainability
The changes affect AgentRuntime, ModelProxy, ModelService, Credential,
Sandbox, and Toolset modules with consistent method signatures and
return types. The waitUntilReadyOrFailed method has been renamed to
waitUntilReadyOrFailed for better clarity and consistency.
Additionally, dependencies have been updated and test coverage has been
improved across modules.
更新资源管理和 API 一致性
此提交通过实现更一致的 API 客户端结构来重构资源管理系统。
更改包括:
- 更新导入路径和模块引用以实现更好的一致性
- 使用改进的 listAll 功能增强 ResourceBase 类
- 标准化 API 客户端方法和错误处理
- 提高类型安全性和代码可维护性
这些更改影响 AgentRuntime、ModelProxy、ModelService、Credential、
Sandbox 和 Toolset 模块,具有统一的方法签名和返回类型。
waitUntilReadyOrFailed 方法已重命名为 waitUntilReadyOrFailed
以提高清晰度和一致性。
此外,依赖项已更新,各模块的测试覆盖率已提高。
Change-Id: I104aac42064fd96c867b9a13ab4140e5e182db3d
Signed-off-by: OhYee <oyohyee@oyohyee.com>
0 commit comments