models

package
v1.69.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 24, 2026 License: Apache-2.0 Imports: 0 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AgentJoinRoomParams

type AgentJoinRoomParams struct {

	/* JRTC 应用ID  */
	AppId string `json:"appId"`

	/* JRTC 用户房间号  */
	UserRoomId string `json:"userRoomId"`

	/* JRTC 用户ID  */
	UserId string `json:"userId"`

	/* 计算鉴权时间戳  */
	Timestamp int64 `json:"timestamp"`

	/* 计算鉴权随机数  */
	Nonce string `json:"nonce"`

	/* 计算鉴权签名  */
	Token string `json:"token"`
}

type ConvoAgentStatusInfo

type ConvoAgentStatusInfo struct {

	/* 数字人智能体名称 (Optional) */
	AgentName string `json:"agentName"`

	/* 智能体ID (Optional) */
	AgentId string `json:"agentId"`

	/* JRTC应用ID (Optional) */
	AppId string `json:"appId"`

	/* 用户注册京东云的pin (Optional) */
	UserPin string `json:"userPin"`

	/* JRTC用户房间号 (Optional) */
	UserRoomId string `json:"userRoomId"`

	/* JRTC用户ID (Optional) */
	UserId string `json:"userId"`

	/* 智能体状态,0-未启动 1-启动 2-停止 3-异常 (Optional) */
	Status int `json:"status"`

	/* status=3时的异常信息 (Optional) */
	ErrorMsg string `json:"errorMsg"`

	/* 创建时间 UTC时间格式:YYYY-MM-DDThh:mm:ssZ (Optional) */
	CreateTime string `json:"createTime"`

	/* 更新时间 UTC时间格式:YYYY-MM-DDThh:mm:ssZ (Optional) */
	UpdateTime string `json:"updateTime"`
}

type Filter

type Filter struct {

	/* 过滤器属性名  */
	Name string `json:"name"`

	/* 过滤器操作符,默认值为 eq
	enum:
	  - eq
	 (Optional) */
	Operator *string `json:"operator"`

	/* 过滤器属性值  */
	Values []string `json:"values"`
}

type QueryConvoAgentListContent

type QueryConvoAgentListContent struct {

	/* 当前页码 (Optional) */
	PageNumber int `json:"pageNumber"`

	/* 每页数量 (Optional) */
	PageSize int `json:"pageSize"`

	/* 查询总数 (Optional) */
	TotalElements int `json:"totalElements"`

	/* 总页数 (Optional) */
	TotalPages int `json:"totalPages"`

	/* 智能体状态 (Optional) */
	Content []ConvoAgentStatusInfo `json:"content"`
}

type SilenceParams

type SilenceParams struct {

	/* 智能体最大静默时长(毫秒),默认为0表示不启用,取值范围: [0, 60000],其中0表示禁用该功能,[1, 60000]表示启用时的有效范围 (Optional) */
	SilentDurationThreshold int `json:"silentDurationThreshold"`

	/* 到达静默时间后触发的事件,speak-播报content指定内容,think-将content传递给LLM思考后播报 (Optional) */
	Action string `json:"action"`

	/* 静默提示内容 (Optional) */
	Content string `json:"content"`
}

type SpeakCustomeText

type SpeakCustomeText struct {

	/* 播报优先级,interrupt-高优先级打断并播报,append-中优先级追加播报,ignore-低优先级空闲时播报 (Optional) */
	Priority string `json:"priority"`

	/* 播报内容  */
	Content string `json:"content"`
}

type StartConvoAgent

type StartConvoAgent struct {

	/* 数字人智能体名称  */
	AgentName string `json:"agentName"`

	/* JRTC 鉴权信息  */
	AgentJoinRoomParams AgentJoinRoomParams `json:"agentJoinRoomParams"`

	/* 智能体问候语,如果填写,则在房间中用户加入时播报 (Optional) */
	GreetingMessage string `json:"greetingMessage"`

	/* 是否开启ASR 0-关闭 1-开启 (Optional) */
	EnableAsr int `json:"enableAsr"`

	/* ASR供应商 (Optional) */
	AsrVendor string `json:"asrVendor"`

	/* ASR供应商参数 JSON格式 (Optional) */
	AsrParams interface{} `json:"asrParams"`

	/* 是否开启LLM 0-关闭 1-开启 (Optional) */
	EnableLlm int `json:"enableLlm"`

	/* LLM供应商 (Optional) */
	LlmVendor string `json:"llmVendor"`

	/* LLM供应商参数 JSON格式 (Optional) */
	LlmParams interface{} `json:"llmParams"`

	/* 是否开启TTS 0-关闭 1-开启 (Optional) */
	EnableTts int `json:"enableTts"`

	/* TTS供应商 (Optional) */
	TtsVendor string `json:"ttsVendor"`

	/* TTS供应商参数 JSON格式 (Optional) */
	TtsParams interface{} `json:"ttsParams"`

	/* VAD 配置参数 (Optional) */
	VadParams VadParams `json:"vadParams"`

	/* 智能体静默配置 (Optional) */
	SilenceParams SilenceParams `json:"silenceParams"`

	/* 智能体的配置参数 JSON格式 (Optional) */
	AgentParams interface{} `json:"agentParams"`
}

type StartConvoAgentResult

type StartConvoAgentResult struct {

	/* 智能体ID (Optional) */
	AgentId string `json:"agentId"`

	/* 状态 (Optional) */
	Status int `json:"status"`
}

type StopConvoAgent

type StopConvoAgent struct {

	/* 应用ID  */
	AppId string `json:"appId"`

	/* 智能体ID  */
	AgentId string `json:"agentId"`
}

type VadParams

type VadParams struct {

	/* 音量db值,默认值: 30,取值范围: [0, 40],0表示最大音量,40表示最小检查音量 (Optional) */
	VolumeDb int `json:"volumeDb"`

	/* 填充持续时间(毫秒),默认值: 250,取值范围: [0, 5000] (Optional) */
	PaddingMs int `json:"paddingMs"`

	/* 静默持续时间(毫秒),默认值: 480,取值范围: [0, 2000] (Optional) */
	SilenceDurationMs int `json:"silenceDurationMs"`

	/* 阈值,默认值: 0.5,取值范围: (0.0, 1.0) (Optional) */
	Threshold float32 `json:"threshold"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL