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
use serde::{Deserialize, Serialize};

/// 加密后的值标记
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct EncryptedValue {
    /// 加密方法
    pub method: String,

    /// 加密数据(Base64)
    pub data: String,

    /// Nonce(Base64,用于 AES-GCM)
    pub nonce: Option<String>,
}