agentswitch 0.6.0

一个通用的 Code Agent 工具配置切换器,支持将任意 OpenAI/Anthropic 协议模型接入到主流 Code Agent CLI 工具中
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use serde::{Deserialize, Serialize};

/// 动态补全数据
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct DynamicCompletionData {
    /// 已配置的模型列表
    pub models: Vec<String>,

    /// 已检测的工具列表
    pub tools: Vec<String>,

    /// 已保存的预设列表
    pub presets: Vec<String>,

    /// 数据生成时间
    pub generated_at: chrono::DateTime<chrono::Utc>,
}