初步完成channel->queueu->[tool]->[queue]->[assistant]->channel的流程

【待处理】上下文管理和错误处理。
This commit is contained in:
2026-06-29 09:15:30 +08:00
parent 79ec21bfd4
commit 46544e9c42
46 changed files with 1215 additions and 755 deletions
+52
View File
@@ -0,0 +1,52 @@
use clap::{Parser, Subcommand};
#[derive(Parser)]
#[command(name = "ias")]
#[command(version = "1.0")]
#[command(about = "Rust驱动的智能AI助手。")]
pub struct Cli {
#[command(subcommand)]
pub command: Commands,
}
#[derive(Debug, Subcommand)]
pub enum Commands {
// 启动服务
Service,
// 配置渠道
Channel {
#[command(subcommand)]
command: Channels,
},
}
#[derive(Debug, Subcommand)]
pub enum Channels {
// 微信渠道配置
Wechat {
#[command(subcommand)]
command: WechatAction,
},
}
#[derive(Debug, Subcommand)]
pub enum WechatAction {
/// 登录新的微信账号
Login,
/// 查看已经登录的微信账号
List,
/// 删除已登录的微信账号
Delete {
/// 要删除的微信账号
#[arg(short, long)]
account: String,
},
/// 修改账号名称 - 仅做标记,与微信名无关
Rename {
/// 要修改的微信账号
#[arg(short, long)]
account: String,
/// 名称 仅做标记
#[arg(short, long)]
name: String,
},
}