You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

73 lines
4.3 KiB

syntax = "proto3";
option go_package = ".;pb";
import "user/user_msg.proto";
import "db.proto";
//获取 app 的环境变量
message UserGetAppConfigV2Req{
}
//获取 app 的环境变量
message UserGetAppConfigV2Resp{
map<string,string> env = 1; //@go_tags(`json:"env"`) 時間
repeated DBAgent agents = 2; //@go_tags(`json:"agents"`) 時間
map<string,McpServer> mcps = 3; //@go_tags(`json:"mcps"`) 時間
repeated DBProduct products = 4; //@go_tags(`json:"products"`) 時間
}
//获取第三方服务列表(后台「第三方服务配置」下发;凭据已按用户区域合并并解密为明文,整体响应经网关 AES-CBC 加密)
message UserGetThirdSvcsReq{
repeated string ids = 1; //@go_tags(`json:"ids"`) 按服务 id 过滤;空=全部启用的服务
}
//第三方服务下发项
message ThirdSvcItem{
string id = 1; //@go_tags(`json:"id"`) 服务 id
string name = 2; //@go_tags(`json:"name"`) 名称
string provider = 3; //@go_tags(`json:"provider"`) 供应商标识
string categories = 4; //@go_tags(`json:"categories"`) 类别(逗号分隔)
map<string,string> fields = 5; //@go_tags(`json:"fields"`) 区域合并+解密后的明文字段
}
message UserGetThirdSvcsResp{
repeated ThirdSvcItem svcs = 1; //@go_tags(`json:"svcs"`) 服务列表
}
//获取 agent 列表(后台「Agent 配置」下发;整体响应经网关 AES-CBC 加密)
message UserGetAgentsReq{
}
//音色覆盖项(语言+性别 → 具体音色名)
message AgentVoiceItem{
string language = 1; //@go_tags(`json:"language"`) BCP-47 语言
int32 gender = 2; //@go_tags(`json:"gender"`) 1男 2女 0不限
string voice = 3; //@go_tags(`json:"voice"`) provider 音色名
}
//agent 下发项(服务编排字段引用 ThirdSvcItem.id)
message AgentItem{
string id = 1; //@go_tags(`json:"id"`) agent id
string name = 2; //@go_tags(`json:"name"`) 名称
string type = 3; //@go_tags(`json:"type"`) chat|translate|sts-chat|ast-translate
string description = 4; //@go_tags(`json:"description"`) 描述
string avatarurl = 5; //@go_tags(`json:"avatar_url"`) 头像
string sttsvcid = 6; //@go_tags(`json:"stt_svc_id"`) 识别服务
string llmsvcid = 7; //@go_tags(`json:"llm_svc_id"`) 大模型服务
string ttssvcid = 8; //@go_tags(`json:"tts_svc_id"`) 合成服务
string mtsvcid = 9; //@go_tags(`json:"mt_svc_id"`) 翻译服务
string stssvcid = 10; //@go_tags(`json:"sts_svc_id"`) 端到端对话服务
string astsvcid = 11; //@go_tags(`json:"ast_svc_id"`) 端到端翻译服务
string systemprompt = 12; //@go_tags(`json:"system_prompt"`) 系统提示词
int32 gender = 13; //@go_tags(`json:"gender"`) 0未定 1男 2女
bool greetingenabled = 14; //@go_tags(`json:"greeting_enabled"`) 开场白开关
string greetingtext = 15; //@go_tags(`json:"greeting_text"`) 开场白
string supportlangs = 16; //@go_tags(`json:"support_langs"`) 支持语言(逗号分隔 BCP-47)
string defaultlang = 17; //@go_tags(`json:"default_lang"`) 默认语言
repeated AgentVoiceItem voicemap = 18; //@go_tags(`json:"voice_map"`) 音色覆盖
int32 sort = 19; //@go_tags(`json:"sort"`) 排序
}
message UserGetAgentsResp{
repeated AgentItem agents = 1; //@go_tags(`json:"agents"`) agent 列表
}