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.
 
 
 
 
 
 

24 lines
1.1 KiB

package console
// yunyan 自管 Agent 配置数据模型。
//
// 不同于 modules/agents 旧实现(仅代理转发 polychat 的 /open/v1),这是 yunyan 自己的一套 agents:
// 在 console 编排已配置的第三方服务(ThirdSvcConfig),配置最终「下发客户端」,由客户端调各服务完成
// 对话/翻译等能力。借鉴 polychat-agent 的「agent 通过 service_id 引用 service」配置模型,精简为
// 「服务编排 + 系统提示词 + 语言/性别/开场白 + 音色覆盖」,MCP/指令/Hook/变量等后续按需再加。
//
// 结构已下沉到 comm/agentcfg.go(业务服务 home 的 user 模块运行时也要直读下发客户端,
// 与 svcpool.go 的 ThirdSvcConfig 同一模式),console 侧用 type alias 引用,包内代码零改动。
import "yunyan/comm"
type AgentVoice = comm.AgentVoice
type AgentConfig = comm.AgentConfig
// Agent 类型取值(与前端一致)。
const (
AgentTypeChat = comm.AgentTypeChat
AgentTypeTranslate = comm.AgentTypeTranslate
AgentTypeStsChat = comm.AgentTypeStsChat
AgentTypeAstTranslate = comm.AgentTypeAstTranslate
)