feat(ai): AiProvider trait 新增 generate_with_tools 默认方法 + UnsupportedOperation 错误变体
This commit is contained in:
@@ -49,6 +49,9 @@ pub enum AiError {
|
||||
|
||||
#[error("AI 配置错误: {0}")]
|
||||
ConfigError(String),
|
||||
|
||||
#[error("不支持的操作: {0}")]
|
||||
UnsupportedOperation(String),
|
||||
}
|
||||
|
||||
impl From<AiError> for AppError {
|
||||
|
||||
Reference in New Issue
Block a user