feat(ai): AiProvider trait 新增 generate_with_tools 默认方法 + UnsupportedOperation 错误变体

This commit is contained in:
iven
2026-05-18 02:29:19 +08:00
parent 01c75dbf5d
commit cad48a97d5
2 changed files with 19 additions and 0 deletions

View File

@@ -49,6 +49,9 @@ pub enum AiError {
#[error("AI 配置错误: {0}")]
ConfigError(String),
#[error("不支持的操作: {0}")]
UnsupportedOperation(String),
}
impl From<AiError> for AppError {