model

package
v0.1.45 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2023 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Answers added in v0.1.42

type Answers struct {

	// Answers.
	QaPairId *string `json:"qa_pair_id,omitempty"`

	// 标准问题。
	StQuestion *string `json:"st_question,omitempty"`

	// 相似度得分,精确到小数点后3位。
	Score *float64 `json:"score,omitempty"`

	// Domain.
	Domain *string `json:"domain,omitempty"`

	// 答案。
	Answer *string `json:"answer,omitempty"`

	// 扩展问。
	ExQuestions *[]ExQuestions `json:"ex_questions,omitempty"`
}

func (Answers) String added in v0.1.42

func (o Answers) String() string

type BasicListResp added in v0.1.37

type BasicListResp struct {

	// 配额
	Quota int32 `json:"quota"`

	// 总数
	Total int32 `json:"total"`

	// 偏移
	Offset int32 `json:"offset"`

	// 返回数量
	Count int32 `json:"count"`
}

func (BasicListResp) String added in v0.1.37

func (o BasicListResp) String() string

type CandidateIntention

type CandidateIntention struct {

	// 候选意图。
	CandidateIntention string `json:"candidate_intention"`

	// 候选意图置信度。
	CandidateConfidence float64 `json:"candidate_confidence"`
}

func (CandidateIntention) String

func (o CandidateIntention) String() string

type Character added in v0.1.37

type Character struct {

	// 创建时间
	CreateTime string `json:"create_time"`

	// 更新时间
	UpdateTime string `json:"update_time"`

	// 形象的个人姓名
	CharacterName string `json:"character_name"`

	Gender *int32 `json:"gender,omitempty"`

	// 形象id
	Id *string `json:"id,omitempty"`

	// 形象名
	Name *string `json:"name,omitempty"`

	// 形象obs地址
	PhotoUrl *string `json:"photo_url,omitempty"`

	// 姿态: 0:站姿全身 1:站姿半身 2:坐姿全身 3:坐姿半身
	Posture *int32 `json:"posture,omitempty"`

	// 估算的训练结束时间
	TrainFinishTimeEstimate *string `json:"train_finish_time_estimate,omitempty"`

	// 训练开始时间
	TrainStartTime *string `json:"train_start_time,omitempty"`

	// 训练状态: 0:预处理 1:训练中 2:训练成功 3:训练失败 4:预览视频生成中
	TrainStatus *int32 `json:"train_status,omitempty"`

	// 形象类型: 0:预制形象 1:用户自定义形象
	Type *int32 `json:"type,omitempty"`
}

形象

func (Character) String added in v0.1.37

func (o Character) String() string

type CharacterConfig added in v0.1.37

type CharacterConfig struct {

	// 形象id
	CharacterId string `json:"character_id"`

	Position *Position `json:"position,omitempty"`
}

func (CharacterConfig) String added in v0.1.37

func (o CharacterConfig) String() string

type CharacterDimension added in v0.1.37

type CharacterDimension struct {

	// 角色的高度
	Height *string `json:"height,omitempty"`

	// 角色的宽度
	Width *string `json:"width,omitempty"`
}

角色的尺寸

func (CharacterDimension) String added in v0.1.37

func (o CharacterDimension) String() string

type CharacterPosition added in v0.1.37

type CharacterPosition struct {

	// 从左上为0点出发的横坐标
	X *int32 `json:"x,omitempty"`

	// 从左上为0点出发的纵坐标
	Y *string `json:"y,omitempty"`
}

func (CharacterPosition) String added in v0.1.37

func (o CharacterPosition) String() string

type ChatAnswers

type ChatAnswers struct {

	// 答案。
	Answer string `json:"answer"`

	// 闲聊的置信度,范围:0.0~1.0  0.0表示兜底回复
	Score *float32 `json:"score,omitempty"`
}

func (ChatAnswers) String

func (o ChatAnswers) String() string

type CollectHotQuestionsRequest

type CollectHotQuestionsRequest struct {

	// qabot编号,UUID格式。
	QabotId string `json:"qabot_id"`

	// 查询的起始时间,long,UTC时间,默认值为0。
	StartTime *string `json:"start_time,omitempty"`

	// 查询的结束时间,long,UTC时间,默认值为当前时间的毫秒数。
	EndTime *string `json:"end_time,omitempty"`

	// 热点问题最多显示的个数,默认值为10,取值范围1-20。
	Top *int32 `json:"top,omitempty"`

	// 热点问题所属的领域。如果指定领域为非空字符串则从指定领域中查询热点问题,否则从所有标准问题中查询热点问题。
	Domain *string `json:"domain,omitempty"`

	// 统计的目标问题类别id。
	DomainId *string `json:"domain_id,omitempty"`

	// true:根据问答对信息展示热点问题(如:热点问题对应的问答对“你好”发生了修改,变成了 “你好啊”,此时热点问题也将返回 “你好啊”;但是如果这个问题对被删除,则“你好”不会被展示在热点问中) false: 不根据问答对信息展示热点问题。
	Exclude *bool `json:"exclude,omitempty"`
}

Request Object

func (CollectHotQuestionsRequest) String

type CollectHotQuestionsResponse

type CollectHotQuestionsResponse struct {

	// 指定时间范围内,热点问题列表。
	Questions      *[]HotQuestionCount `json:"questions,omitempty"`
	HttpStatusCode int                 `json:"-"`
}

Response Object

func (CollectHotQuestionsResponse) String

type CollectKeyWordsRequest

type CollectKeyWordsRequest struct {

	// qabot编号,UUID格式。
	QabotId string `json:"qabot_id"`

	// 查询的起始时间,long,UTC时间,默认值为0。
	StartTime *string `json:"start_time,omitempty"`

	// 查询的结束时间,long,UTC时间,默认值为当前时间的毫秒数。
	EndTime *string `json:"end_time,omitempty"`

	// 关键词最多显示的个数,默认值为10,取值范围0-50。
	Top *int32 `json:"top,omitempty"`
}

Request Object

func (CollectKeyWordsRequest) String

func (o CollectKeyWordsRequest) String() string

type CollectKeyWordsResponse

type CollectKeyWordsResponse struct {

	// 指定时间范围内,用户问关键词列表。
	Keywords       *[]KeyWordsStat `json:"keywords,omitempty"`
	HttpStatusCode int             `json:"-"`
}

Response Object

func (CollectKeyWordsResponse) String

func (o CollectKeyWordsResponse) String() string

type CollectReplyRatesRequest

type CollectReplyRatesRequest struct {

	// qabot编号,UUID格式。
	QabotId string `json:"qabot_id"`

	// 查询的起始时间,long,UTC时间,默认值为0。
	StartTime *string `json:"start_time,omitempty"`

	// 查询的结束时间,long,UTC时间,默认值为当前时间的毫秒数。
	EndTime *string `json:"end_time,omitempty"`

	// 统计周期目前支持month,week,day。
	Interval *CollectReplyRatesRequestInterval `json:"interval,omitempty"`

	// 请求所在时区,例如:中国东八区为\"+08:00\";美国西五区为\"-05:00\";默认为\"UTC\"。
	TimeZone *string `json:"time_zone,omitempty"`

	// 所属领域。
	Domain *string `json:"domain,omitempty"`
}

Request Object

func (CollectReplyRatesRequest) String

func (o CollectReplyRatesRequest) String() string

type CollectReplyRatesRequestInterval

type CollectReplyRatesRequestInterval struct {
	// contains filtered or unexported fields
}

func (CollectReplyRatesRequestInterval) MarshalJSON

func (c CollectReplyRatesRequestInterval) MarshalJSON() ([]byte, error)

func (*CollectReplyRatesRequestInterval) UnmarshalJSON

func (c *CollectReplyRatesRequestInterval) UnmarshalJSON(b []byte) error

func (CollectReplyRatesRequestInterval) Value added in v0.0.90

type CollectReplyRatesResponse

type CollectReplyRatesResponse struct {

	// 统计周期目前支持year、month、week、day。 调用失败时无此字段。
	Interval *string `json:"interval,omitempty"`

	// 所在时区,例如:中国东八区为\"+08:00\";美国西五区为\"-05:00\";默认为\"UTC\"。 调用失败时无此字段。
	TimeZone *string `json:"time_zone,omitempty"`

	Total *ReplyRatesTotal `json:"total,omitempty"`

	Intervals *ReplyRatesIntervals `json:"intervals,omitempty"`

	// 统计开始的utc时间。
	Startutc *int64 `json:"startutc,omitempty"`

	// 统计结束的utc时间。
	Endutc         *int64 `json:"endutc,omitempty"`
	HttpStatusCode int    `json:"-"`
}

Response Object

func (CollectReplyRatesResponse) String

func (o CollectReplyRatesResponse) String() string

type CollectSessionStatsRequest

type CollectSessionStatsRequest struct {

	// qabot编号,UUID格式。
	QabotId string `json:"qabot_id"`

	// 查询的起始时间,long,UTC时间,默认值为0。
	StartTime *string `json:"start_time,omitempty"`

	// 查询的结束时间,long,UTC时间,默认值为当前时间的毫秒数。
	EndTime *string `json:"end_time,omitempty"`

	// 统计周期目前支持month,week,day。
	Interval *CollectSessionStatsRequestInterval `json:"interval,omitempty"`

	// 请求所在时区,例如:中国东八区为\"+08:00\";美国西五区为\"-05:00\";默认为\"UTC\"。
	TimeZone *string `json:"time_zone,omitempty"`
}

Request Object

func (CollectSessionStatsRequest) String

type CollectSessionStatsRequestInterval

type CollectSessionStatsRequestInterval struct {
	// contains filtered or unexported fields
}

func (CollectSessionStatsRequestInterval) MarshalJSON

func (c CollectSessionStatsRequestInterval) MarshalJSON() ([]byte, error)

func (*CollectSessionStatsRequestInterval) UnmarshalJSON

func (c *CollectSessionStatsRequestInterval) UnmarshalJSON(b []byte) error

func (CollectSessionStatsRequestInterval) Value added in v0.0.90

type CollectSessionStatsResponse

type CollectSessionStatsResponse struct {

	// 统计周期目前支持year、month、week、day。
	Interval *string `json:"interval,omitempty"`

	// 所在时区,默认为\"utc\"。例如:中国东八区为\"+08:00\";美国西五区为\"-05:00\"。
	TimeZone *string `json:"time_zone,omitempty"`

	Total *SessionStatsTotal `json:"total,omitempty"`

	// 会话间隔统计数据。
	Intervals *[]SessionStatsIntervals `json:"intervals,omitempty"`

	// 统计开始的utc时间。
	Startutc *int64 `json:"startutc,omitempty"`

	// 统计结束的utc时间。
	Endutc         *int64 `json:"endutc,omitempty"`
	HttpStatusCode int    `json:"-"`
}

Response Object

func (CollectSessionStatsResponse) String

type CreateRes added in v0.1.37

type CreateRes struct {

	// 视频id
	Id string `json:"id"`
}

func (CreateRes) String added in v0.1.37

func (o CreateRes) String() string

type CreateSessionRequest

type CreateSessionRequest struct {

	// 机器人标识符。
	QabotId string `json:"qabot_id"`
}

Request Object

func (CreateSessionRequest) String

func (o CreateSessionRequest) String() string

type CreateSessionResponse

type CreateSessionResponse struct {

	// 会话标识符。
	SessionId *string `json:"session_id,omitempty"`

	// 机器人问候语。
	Greeting       *string `json:"greeting,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (CreateSessionResponse) String

func (o CreateSessionResponse) String() string

type CreateVideoReq added in v0.1.37

type CreateVideoReq struct {

	// 视频名,长度3~63位。 大小写字母,数字,汉字及部分符号(“_”、“-”、“#”)组成
	Name *string `json:"name,omitempty"`
}

This is a auto create Body Object

func (CreateVideoReq) String added in v0.1.37

func (o CreateVideoReq) String() string

type CurrentSlot

type CurrentSlot struct {

	// 槽位ID。
	SlotId string `json:"slot_id"`

	// 槽位名称。
	SlotName string `json:"slot_name"`

	// 槽位值。
	SlotValues []SlotValue `json:"slot_values"`

	// 槽位标识。
	SlotIdentification *string `json:"slot_identification,omitempty"`
}

func (CurrentSlot) String

func (o CurrentSlot) String() string

type DeleteSessionRequest

type DeleteSessionRequest struct {

	// 机器人标识符。
	QabotId string `json:"qabot_id"`

	// 会话标识符。
	SessionId string `json:"session_id"`
}

Request Object

func (DeleteSessionRequest) String

func (o DeleteSessionRequest) String() string

type DeleteSessionResponse

type DeleteSessionResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (DeleteSessionResponse) String

func (o DeleteSessionResponse) String() string

type DocBotAnswers

type DocBotAnswers struct {

	// 答案。
	Answer string `json:"answer"`

	// 置信度。
	Score float64 `json:"score"`

	// 问题。
	Question string `json:"question"`

	AnswerDetail *DocQueryAnswerDetail `json:"answer_detail,omitempty"`

	// 候选答案列表
	Details *[]DocQueryAnswerDetail `json:"details,omitempty"`
}

func (DocBotAnswers) String

func (o DocBotAnswers) String() string

type DocQueryAnswerDetail

type DocQueryAnswerDetail struct {

	// 答案。
	Answer string `json:"answer"`

	// 文档ID。
	DocId string `json:"doc_id"`

	// 答案结束下标。
	EndIndex int32 `json:"end_index"`

	// 段落评分。
	ParagraphScore float64 `json:"paragraph_score"`

	// 段落文字。
	ParagraphText string `json:"paragraph_text"`

	// 文档问答阅读理解评分。
	PhraseScore float64 `json:"phrase_score"`

	// 答案开始下标。
	StartIndex int32 `json:"start_index"`

	// 文档问答总评分。
	TotalScore float64 `json:"total_score"`

	// 段落在文档中的编号。
	ParagraphNumber int32 `json:"paragraph_number"`
}

func (DocQueryAnswerDetail) String

func (o DocQueryAnswerDetail) String() string

type ExQuestions added in v0.1.42

type ExQuestions struct {

	// 扩展问题。
	Content string `json:"content"`
}

func (ExQuestions) String added in v0.1.42

func (o ExQuestions) String() string

type ExecuteComposeVideoOndemandRequest added in v0.1.37

type ExecuteComposeVideoOndemandRequest struct {

	// 视频id
	VideoId string `json:"video_id"`
}

Request Object

func (ExecuteComposeVideoOndemandRequest) String added in v0.1.37

type ExecuteComposeVideoOndemandResponse added in v0.1.37

type ExecuteComposeVideoOndemandResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (ExecuteComposeVideoOndemandResponse) String added in v0.1.37

type ExecuteComposeVideoRequest added in v0.1.37

type ExecuteComposeVideoRequest struct {

	// 视频id
	VideoId string `json:"video_id"`
}

Request Object

func (ExecuteComposeVideoRequest) String added in v0.1.37

type ExecuteComposeVideoResponse added in v0.1.37

type ExecuteComposeVideoResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (ExecuteComposeVideoResponse) String added in v0.1.37

type ExecuteCreateVideoRequest added in v0.1.37

type ExecuteCreateVideoRequest struct {
	Body *CreateVideoReq `json:"body,omitempty"`
}

Request Object

func (ExecuteCreateVideoRequest) String added in v0.1.37

func (o ExecuteCreateVideoRequest) String() string

type ExecuteCreateVideoResponse added in v0.1.37

type ExecuteCreateVideoResponse struct {

	// 视频id
	Id             *string `json:"id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ExecuteCreateVideoResponse) String added in v0.1.37

type ExecuteDeleteVideoByIdRequest added in v0.1.37

type ExecuteDeleteVideoByIdRequest struct {

	// 视频id
	VideoId string `json:"video_id"`
}

Request Object

func (ExecuteDeleteVideoByIdRequest) String added in v0.1.37

type ExecuteDeleteVideoByIdResponse added in v0.1.37

type ExecuteDeleteVideoByIdResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (ExecuteDeleteVideoByIdResponse) String added in v0.1.37

type ExecuteDeleteimageByIdRequest added in v0.1.37

type ExecuteDeleteimageByIdRequest struct {

	// 图片id
	ImageId string `json:"image_id"`
}

Request Object

func (ExecuteDeleteimageByIdRequest) String added in v0.1.37

type ExecuteDeleteimageByIdResponse added in v0.1.37

type ExecuteDeleteimageByIdResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (ExecuteDeleteimageByIdResponse) String added in v0.1.37

type ExecuteGetCharacterInfoByIdRequest added in v0.1.37

type ExecuteGetCharacterInfoByIdRequest struct {

	// 形象id
	CharacterId string `json:"character_id"`
}

Request Object

func (ExecuteGetCharacterInfoByIdRequest) String added in v0.1.37

type ExecuteGetCharacterInfoByIdResponse added in v0.1.37

type ExecuteGetCharacterInfoByIdResponse struct {

	// 创建时间
	CreateTime string `json:"create_time"`

	// 更新时间
	UpdateTime string `json:"update_time"`

	// 形象的个人姓名
	CharacterName string `json:"character_name"`

	Gender *int32 `json:"gender,omitempty"`

	// 形象id
	Id *string `json:"id,omitempty"`

	// 形象名
	Name *string `json:"name,omitempty"`

	// 形象obs地址
	PhotoUrl *string `json:"photo_url,omitempty"`

	// 姿态: 0:站姿全身 1:站姿半身 2:坐姿全身 3:坐姿半身
	Posture *int32 `json:"posture,omitempty"`

	// 估算的训练结束时间
	TrainFinishTimeEstimate *string `json:"train_finish_time_estimate,omitempty"`

	// 训练开始时间
	TrainStartTime *string `json:"train_start_time,omitempty"`

	// 训练状态: 0:预处理 1:训练中 2:训练成功 3:训练失败 4:预览视频生成中
	TrainStatus *int32 `json:"train_status,omitempty"`

	// 形象类型: 0:预制形象 1:用户自定义形象
	Type *int32 `json:"type,omitempty"`

	// 形象在中心时的图片obs 地址
	CenterPhotoUrl string `json:"center_photo_url"`

	// 合成错误信息
	ErrorMsg *string `json:"error_msg,omitempty"`

	// 形象在左时的图片obs 地址 考虑兼容性:如果为null,形象无法使用左右配置
	LeftPhotoUrl *string `json:"left_photo_url,omitempty"`

	// 预览视频
	PreviewVideoUrl *string `json:"preview_video_url,omitempty"`

	// 形象在右时的图片obs 地址 考虑兼容性:如果为null,形象无法使用左右配置
	RightPhotoUrl *string `json:"right_photo_url,omitempty"`

	// 显示效果最佳预览
	BestImgQualityPreviewUrl *string `json:"best_img_quality_preview_url,omitempty"`

	// 音唇同步最佳预览
	BestLipSyncPreviewUrl *string `json:"best_lip_sync_preview_url,omitempty"`

	// 嘴巴部分效果最佳
	BestMouthRecPreviewUrl *string `json:"best_mouth_rec_preview_url,omitempty"`

	// 是否有人像分割数据
	HaveSegmentData bool `json:"have_segment_data"`

	// 合成原始视频地址
	InitialVideoUrl *string `json:"initial_video_url,omitempty"`

	// 抠图背景地址
	BackgroundUrl *string `json:"background_url,omitempty"`

	// 0: best img quality 1: best lip sync 2: best mouth rec
	Model *int32 `json:"model,omitempty"`

	CharaterPosition *CharacterPosition `json:"charater_position,omitempty"`

	CharaterDimension *CharacterDimension `json:"charater_dimension,omitempty"`
	HttpStatusCode    int                 `json:"-"`
}

Response Object

func (ExecuteGetCharacterInfoByIdResponse) String added in v0.1.37

type ExecuteGetCharactersRequest added in v0.1.37

type ExecuteGetCharactersRequest struct {
	Offset *string `json:"offset,omitempty"`

	Limit *string `json:"limit,omitempty"`

	// 形象类型: 0:预制形象 1:用户自定义形象
	Type *int32 `json:"type,omitempty"`

	// 训练状态: 0:预处理 1:训练中 2:训练成功 3:训练失败 4:预览视频生成中
	TrainStatus *int32 `json:"train_status,omitempty"`

	CharacterName *string `json:"character_name,omitempty"`

	// 是否只获取支持交互式的数字人;默认:false 获取全部
	SupportInteract *bool `json:"support_interact,omitempty"`

	// 性别
	Gender *string `json:"gender,omitempty"`
}

Request Object

func (ExecuteGetCharactersRequest) String added in v0.1.37

type ExecuteGetCharactersResponse added in v0.1.37

type ExecuteGetCharactersResponse struct {

	// 配额
	Quota int32 `json:"quota"`

	// 总数
	Total int32 `json:"total"`

	// 偏移
	Offset int32 `json:"offset"`

	// 返回数量
	Count int32 `json:"count"`

	// 形象列表
	Characters     []Character `json:"characters"`
	HttpStatusCode int         `json:"-"`
}

Response Object

func (ExecuteGetCharactersResponse) String added in v0.1.37

type ExecuteGetFramsListByImagesIdRequest added in v0.1.37

type ExecuteGetFramsListByImagesIdRequest struct {

	// 图片id
	ImageId string `json:"image_id"`

	// 偏移量,默认为零
	Offset *int32 `json:"offset,omitempty"`

	// 分页限制数
	Limit *int32 `json:"limit,omitempty"`
}

Request Object

func (ExecuteGetFramsListByImagesIdRequest) String added in v0.1.37

type ExecuteGetFramsListByImagesIdResponse added in v0.1.37

type ExecuteGetFramsListByImagesIdResponse struct {

	// 播报框
	ImageFrames *[]ImageFrame `json:"image_frames,omitempty"`

	// 播报框总数
	Total *int32 `json:"total,omitempty"`

	// 起始偏移量
	Offset *int32 `json:"offset,omitempty"`

	// 本次查询数量
	Count          *int32 `json:"count,omitempty"`
	HttpStatusCode int    `json:"-"`
}

Response Object

func (ExecuteGetFramsListByImagesIdResponse) String added in v0.1.37

type ExecuteGetImagesListRequest added in v0.1.37

type ExecuteGetImagesListRequest struct {

	// 范围:大于等于1 默认:10
	Limit int32 `json:"limit"`

	// 范围:大于等于0 默认值:0
	Offset int32 `json:"offset"`

	// 横竖屏模式 0:横屏(默认) 1:竖屏
	ResolutionType int32 `json:"resolution_type"`

	// 默认0 0:用户背景 1:系统背景 2:用户图标
	Type int32 `json:"type"`
}

Request Object

func (ExecuteGetImagesListRequest) String added in v0.1.37

type ExecuteGetImagesListResponse added in v0.1.37

type ExecuteGetImagesListResponse struct {

	// 配额
	Quota int32 `json:"quota"`

	// 总数
	Total int32 `json:"total"`

	// 偏移
	Offset int32 `json:"offset"`

	// 返回数量
	Count int32 `json:"count"`

	// 图片列表
	Images         []Image `json:"images"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ExecuteGetImagesListResponse) String added in v0.1.37

type ExecuteGetVideoInfoByIdRequest added in v0.1.37

type ExecuteGetVideoInfoByIdRequest struct {

	// 视频id
	VideoId string `json:"video_id"`
}

Request Object

func (ExecuteGetVideoInfoByIdRequest) String added in v0.1.37

type ExecuteGetVideoInfoByIdResponse added in v0.1.37

type ExecuteGetVideoInfoByIdResponse struct {

	// 创建时间
	CreateTime string `json:"create_time"`

	// 更新时间
	UpdateTime string `json:"update_time"`

	// 错误信息 如: {\\\"error_code\\\":\\\"0001\\\",\\\"error_msg\\\":\\\"播报内容超过10分钟,请重新调整播报内容。\\\"}
	ErrorMsg *string `json:"error_msg,omitempty"`

	//
	Id string `json:"id"`

	// 视频名称
	Name string `json:"name"`

	// 视频生成进度 0~100
	Progress *int32 `json:"progress,omitempty"`

	// 0:未初始化 1:生成中 2:生成成功 3:生成失败
	Status int32 `json:"status"`

	// 字幕地址
	SubtitleUrl string `json:"subtitle_url"`

	// 视频的obs地址,当视频生成成功时返回
	VideoUrl *string `json:"video_url,omitempty"`

	// 视频截图地址,jpg格式 分辨率480 * 270 当status=2:生成成功时返回
	VideoShot *string `json:"video_shot,omitempty"`

	CharacterConfig *CharacterConfig `json:"character_config"`

	// 合成动作,如果不为空,则表示可以进行合成操作
	ComposeActions *[]int32 `json:"compose_actions,omitempty"`

	ReadConfig *ReadConfigResp `json:"read_config"`

	TtsConfig *TtsConfig `json:"tts_config"`

	VideoConfig    *VideoConfigResp `json:"video_config"`
	HttpStatusCode int              `json:"-"`
}

Response Object

func (ExecuteGetVideoInfoByIdResponse) String added in v0.1.37

type ExecuteGetVideosListRequest added in v0.1.37

type ExecuteGetVideosListRequest struct {

	// 范围:大于等于1 默认:10
	Limit int32 `json:"limit"`

	// 长度小于63
	Name string `json:"name"`

	// 范围:大于等于0 默认:0
	Offset int32 `json:"offset"`
}

Request Object

func (ExecuteGetVideosListRequest) String added in v0.1.37

type ExecuteGetVideosListResponse added in v0.1.37

type ExecuteGetVideosListResponse struct {

	// 配额
	Quota int32 `json:"quota"`

	// 总数
	Total int32 `json:"total"`

	// 偏移
	Offset int32 `json:"offset"`

	// 返回数量
	Count int32 `json:"count"`

	// 视频列表
	Videos         []Video `json:"videos"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ExecuteGetVideosListResponse) String added in v0.1.37

type ExecutePostCreateImagesRequest added in v0.1.37

type ExecutePostCreateImagesRequest struct {
	Body *PostImagesReq `json:"body,omitempty" type:"multipart"`
}

Request Object

func (ExecutePostCreateImagesRequest) String added in v0.1.37

type ExecutePostCreateImagesResponse added in v0.1.37

type ExecutePostCreateImagesResponse struct {

	// 图片id
	Id string `json:"id"`

	//
	Name *string `json:"name,omitempty"`

	// 访问地址
	Url            string `json:"url"`
	HttpStatusCode int    `json:"-"`
}

Response Object

func (ExecutePostCreateImagesResponse) String added in v0.1.37

type ExecuteQaChatRequest

type ExecuteQaChatRequest struct {

	// 机器人标识符,qabot编号,UUID格式。
	QabotId string `json:"qabot_id"`

	Body *PostRequestsReq `json:"body,omitempty"`
}

Request Object

func (ExecuteQaChatRequest) String

func (o ExecuteQaChatRequest) String() string

type ExecuteQaChatResponse

type ExecuteQaChatResponse struct {

	// 回复类型: 0   问答型机器人回复。 1   任务型机器人回复。 2   闲聊回复。 3   图谱问答回复。 4   文档问答回复。 5   表格问答回复。
	ReplyType *int32 `json:"reply_type,omitempty"`

	QabotAnswers *QaBotAnswersNew `json:"qabot_answers,omitempty"`

	ChatAnswers *ChatAnswers `json:"chat_answers,omitempty"`

	TaskbotAnswers *TaskBotAnswers `json:"taskbot_answers,omitempty"`

	DocqaAnswers *DocBotAnswers `json:"docqa_answers,omitempty"`

	TableqaAnswers *TableQaAnswers `json:"tableqa_answers,omitempty"`

	// 会话ID,在下一次请求中传入改id表示继续会话。
	SessionId *string `json:"session_id,omitempty"`

	KbqaAnswers *KbqaAnswers `json:"kbqa_answers,omitempty"`

	// 请求ID。用来标记调用失败时,用来标记本次问答。
	RequestId      *string `json:"request_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ExecuteQaChatResponse) String

func (o ExecuteQaChatResponse) String() string

type ExecuteSessionRequest

type ExecuteSessionRequest struct {

	// 机器人标识符。
	QabotId string `json:"qabot_id"`

	// 会话标识符。
	SessionId string `json:"session_id"`

	Body *PostQaSessionReq `json:"body,omitempty"`
}

Request Object

func (ExecuteSessionRequest) String

func (o ExecuteSessionRequest) String() string

type ExecuteSessionResponse

type ExecuteSessionResponse struct {

	// 回复类型: 0   问答型机器人回复。 1   任务型机器人回复。 2   闲聊回复。
	ReplyType *int32 `json:"reply_type,omitempty"`

	QabotAnswers *QaBotAnswers `json:"qabot_answers,omitempty"`

	ChatAnswers *ChatAnswers `json:"chat_answers,omitempty"`

	TaskbotAnswers *TaskBotAnswers `json:"taskbot_answers,omitempty"`

	// 请求ID。
	RequestId      *string `json:"request_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ExecuteSessionResponse) String

func (o ExecuteSessionResponse) String() string

type ExecuteUpdateImageNameRequest added in v0.1.37

type ExecuteUpdateImageNameRequest struct {

	// 图片id
	ImageId string `json:"image_id"`

	Body *UpdateImageNameReq `json:"body,omitempty"`
}

Request Object

func (ExecuteUpdateImageNameRequest) String added in v0.1.37

type ExecuteUpdateImageNameResponse added in v0.1.37

type ExecuteUpdateImageNameResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (ExecuteUpdateImageNameResponse) String added in v0.1.37

type ExecuteUpdateVideoByIdRequest added in v0.1.37

type ExecuteUpdateVideoByIdRequest struct {

	// 视频id
	VideoId string `json:"video_id"`

	Body *UpdateReq `json:"body,omitempty"`
}

Request Object

func (ExecuteUpdateVideoByIdRequest) String added in v0.1.37

type ExecuteUpdateVideoByIdResponse added in v0.1.37

type ExecuteUpdateVideoByIdResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (ExecuteUpdateVideoByIdResponse) String added in v0.1.37

type ExecuteUpdateVideoInfoByIdRequest added in v0.1.37

type ExecuteUpdateVideoInfoByIdRequest struct {

	// 视频id
	VideoId string `json:"video_id"`

	Body *PutVideoInfo `json:"body,omitempty"`
}

Request Object

func (ExecuteUpdateVideoInfoByIdRequest) String added in v0.1.37

type ExecuteUpdateVideoInfoByIdResponse added in v0.1.37

type ExecuteUpdateVideoInfoByIdResponse struct {

	// 创建时间
	CreateTime string `json:"create_time"`

	// 更新时间
	UpdateTime string `json:"update_time"`

	// 错误信息 如: {\\\"error_code\\\":\\\"0001\\\",\\\"error_msg\\\":\\\"播报内容超过10分钟,请重新调整播报内容。\\\"}
	ErrorMsg *string `json:"error_msg,omitempty"`

	//
	Id string `json:"id"`

	// 视频名称
	Name string `json:"name"`

	// 视频生成进度 0~100
	Progress *int32 `json:"progress,omitempty"`

	// 0:未初始化 1:生成中 2:生成成功 3:生成失败
	Status int32 `json:"status"`

	// 字幕地址
	SubtitleUrl string `json:"subtitle_url"`

	// 视频的obs地址,当视频生成成功时返回
	VideoUrl *string `json:"video_url,omitempty"`

	// 视频截图地址,jpg格式 分辨率480 * 270 当status=2:生成成功时返回
	VideoShot *string `json:"video_shot,omitempty"`

	CharacterConfig *CharacterConfig `json:"character_config"`

	// 合成动作,如果不为空,则表示可以进行合成操作
	ComposeActions *[]int32 `json:"compose_actions,omitempty"`

	ReadConfig *ReadConfigResp `json:"read_config"`

	TtsConfig *TtsConfig `json:"tts_config"`

	VideoConfig    *VideoConfigResp `json:"video_config"`
	HttpStatusCode int              `json:"-"`
}

Response Object

func (ExecuteUpdateVideoInfoByIdResponse) String added in v0.1.37

type ExecuteUploadImageRequest added in v0.1.37

type ExecuteUploadImageRequest struct {

	// 视频id
	VideoId string `json:"video_id"`

	// 图片名
	Name string `json:"name"`

	Body *ExecuteUploadImageRequestBody `json:"body,omitempty" type:"multipart"`
}

Request Object

func (ExecuteUploadImageRequest) String added in v0.1.37

func (o ExecuteUploadImageRequest) String() string

type ExecuteUploadImageRequestBody added in v0.1.37

type ExecuteUploadImageRequestBody struct {

	// 图片
	File *def.FilePart `json:"file"`
}

func (ExecuteUploadImageRequestBody) String added in v0.1.37

func (*ExecuteUploadImageRequestBody) UnmarshalJSON added in v0.1.37

func (o *ExecuteUploadImageRequestBody) UnmarshalJSON(b []byte) error

type ExecuteUploadImageResponse added in v0.1.37

type ExecuteUploadImageResponse struct {

	// 图片id
	Id string `json:"id"`

	//
	Name *string `json:"name,omitempty"`

	// 访问地址
	Url            string `json:"url"`
	HttpStatusCode int    `json:"-"`
}

Response Object

func (ExecuteUploadImageResponse) String added in v0.1.37

type ExecuteUploadPptRequest added in v0.1.37

type ExecuteUploadPptRequest struct {

	// 视频id
	VideoId string `json:"video_id"`

	Body *ExecuteUploadPptRequestBody `json:"body,omitempty" type:"multipart"`
}

Request Object

func (ExecuteUploadPptRequest) String added in v0.1.37

func (o ExecuteUploadPptRequest) String() string

type ExecuteUploadPptRequestBody added in v0.1.37

type ExecuteUploadPptRequestBody struct {

	// ppt文件
	File *def.FilePart `json:"file"`
}

func (ExecuteUploadPptRequestBody) String added in v0.1.37

func (*ExecuteUploadPptRequestBody) UnmarshalJSON added in v0.1.37

func (o *ExecuteUploadPptRequestBody) UnmarshalJSON(b []byte) error

type ExecuteUploadPptResponse added in v0.1.37

type ExecuteUploadPptResponse struct {

	// 图片链接列表
	List           *[]ImageUrlResp `json:"list,omitempty"`
	HttpStatusCode int             `json:"-"`
}

Response Object

func (ExecuteUploadPptResponse) String added in v0.1.37

func (o ExecuteUploadPptResponse) String() string

type Extends

type Extends struct {
	TagIds *Tag `json:"tag_ids,omitempty"`

	// 领域列表,多个领域用分号隔开。如果设置了领域且领域不为空,就从这些领域中匹配答案,否则就从该用户的全部知识库匹配答案。  当前最多支持10个领域。
	DomainIds *[]string `json:"domain_ids,omitempty"`

	// 问题来源 其他支持用户自定义,最终体现在问答日志里
	Source *string `json:"source,omitempty"`

	// 是否返回所有类型的回答
	ReturnAllAnswers *bool `json:"return_all_answers,omitempty"`
}

func (Extends) String

func (o Extends) String() string

type Frame

type Frame struct {

	// 意图
	Intention string `json:"intention"`

	// 命中意图置信度。
	Confidence float64 `json:"confidence"`

	// 当前槽位列表。
	CurrentSlots []CurrentSlot `json:"current_slots"`

	// 历史槽位列表。
	HistorySlots []HistorySlot `json:"history_slots"`

	// 机器人回复。
	Reply string `json:"reply"`

	// 任务是否完成。
	TaskComplete bool `json:"task_complete"`

	// 对话流程是否完成。
	FlowComplete bool `json:"flow_complete"`

	// 候选词。
	CandidateWords *[]string `json:"candidate_words,omitempty"`

	// 意图名称
	IntentionAlias string `json:"intention_alias"`
}

func (Frame) String

func (o Frame) String() string

type HistorySlot

type HistorySlot struct {

	// 槽位名称。
	SlotName string `json:"slot_name"`

	// 槽信息。
	SlotValues *[]HistorySlotWord `json:"slot_values,omitempty"`

	// 用户设置的槽位标识。
	SlotIdentification string `json:"slot_identification"`
}

func (HistorySlot) String

func (o HistorySlot) String() string

type HistorySlotWord

type HistorySlotWord struct {

	// 词
	Word string `json:"word"`

	// 归一化后的词
	NormWord string `json:"norm_word"`
}

func (HistorySlotWord) String

func (o HistorySlotWord) String() string

type HotQuestionCount

type HotQuestionCount struct {

	// 问答对ID。
	QaPairId *string `json:"qa_pair_id,omitempty"`

	// 标准问题。
	StQuestion *string `json:"st_question,omitempty"`

	// 标准问题所属领域。
	Domain *string `json:"domain,omitempty"`
}

func (HotQuestionCount) String

func (o HotQuestionCount) String() string

type Image added in v0.1.37

type Image struct {

	// 创建时间
	CreateTime string `json:"create_time"`

	// 更新时间
	UpdateTime string `json:"update_time"`

	Id string `json:"id"`

	ImageFrame *ImageFrame `json:"image_frame,omitempty"`

	// 图片的obs路径
	ImageUrl string `json:"image_url"`

	Name string `json:"name"`

	// 0:背景图 1:图标 2:系统背景
	Type int32 `json:"type"`

	// 横竖屏模式。0:横版1:竖版
	ResolutionType *int32 `json:"resolution_type,omitempty"`
}

func (Image) String added in v0.1.37

func (o Image) String() string

type ImageFrame added in v0.1.37

type ImageFrame struct {

	// 创建时间
	CreateTime string `json:"create_time"`

	// 更新时间
	UpdateTime string `json:"update_time"`

	// 0: 16/9 1: 4/3 2: 3/4
	FrameResolutionType int32 `json:"frame_resolution_type"`

	//
	Id string `json:"id"`

	ImageFramePosition *LeftRightPosition `json:"image_frame_position"`

	ImagePosition *LeftRightPosition `json:"image_position"`

	// 横版:0 竖版:1
	ResolutionType int32 `json:"resolution_type"`

	//
	Url string `json:"url"`
}

func (ImageFrame) String added in v0.1.37

func (o ImageFrame) String() string

type ImageReadConfig added in v0.1.37

type ImageReadConfig struct {

	// 播报内容,长度为1~2500
	ReadContent string `json:"read_content"`

	// 图片id
	ImageId string `json:"image_id"`

	Resolution *Resolution `json:"resolution"`
}

func (ImageReadConfig) String added in v0.1.37

func (o ImageReadConfig) String() string

type ImageReadConfigResp added in v0.1.37

type ImageReadConfigResp struct {

	// 播报内容,长度为1~2500
	ReadContent string `json:"read_content"`

	// 图片id
	ImageId string `json:"image_id"`

	Resolution *Resolution `json:"resolution"`

	// 图片地址
	ImageUrl string `json:"image_url"`

	// 图片名
	Name string `json:"name"`
}

func (ImageReadConfigResp) String added in v0.1.37

func (o ImageReadConfigResp) String() string

type ImageUrlResp added in v0.1.37

type ImageUrlResp struct {

	// 图片id
	Id string `json:"id"`

	//
	Name *string `json:"name,omitempty"`

	// 访问地址
	Url string `json:"url"`

	Resolution *Resolution `json:"resolution"`
}

func (ImageUrlResp) String added in v0.1.37

func (o ImageUrlResp) String() string

type KbqaAnswers

type KbqaAnswers struct {

	// 答案。
	Answer string `json:"answer"`

	// 答案评分。
	Score float64 `json:"score"`
}

func (KbqaAnswers) String

func (o KbqaAnswers) String() string

type KeyWordsStat

type KeyWordsStat struct {

	// 关键词。
	Keyword string `json:"keyword"`

	// 关键词频次。
	Freq int64 `json:"freq"`
}

func (KeyWordsStat) String

func (o KeyWordsStat) String() string

type LeftRightPosition added in v0.1.37

type LeftRightPosition struct {
	Left *Position `json:"left"`

	Right *Position `json:"right"`
}

func (LeftRightPosition) String added in v0.1.37

func (o LeftRightPosition) String() string

type ListSuggestionsRequest

type ListSuggestionsRequest struct {

	// qabot编号,UUID格式。
	QabotId string `json:"qabot_id"`

	Body *PostSuggestionsReq `json:"body,omitempty"`
}

Request Object

func (ListSuggestionsRequest) String

func (o ListSuggestionsRequest) String() string

type ListSuggestionsResponse

type ListSuggestionsResponse struct {

	// 推荐问列表。
	Questions      *[]string `json:"questions,omitempty"`
	HttpStatusCode int       `json:"-"`
}

Response Object

func (ListSuggestionsResponse) String

func (o ListSuggestionsResponse) String() string

type OldExtends added in v0.1.42

type OldExtends struct {

	// 领域列表,多个领域用分号隔开。如果设置了领域且领域不为空,就从这些领域中匹配答案,否则就从该用户的全部知识库匹配答案。  当前最多支持10个领域。
	Domains *[]string `json:"domains,omitempty"`

	// 返回答案数量,默认为5,取值范围1~10。
	Top *int32 `json:"top,omitempty"`
}

func (OldExtends) String added in v0.1.42

func (o OldExtends) String() string

type Position added in v0.1.37

type Position struct {

	// 像素坐标x
	X int32 `json:"x"`

	// 像素坐标x
	Y int32 `json:"y"`
}

func (Position) String added in v0.1.37

func (o Position) String() string

type PostImagesReq added in v0.1.37

type PostImagesReq struct {

	// 图片类型: 0:背景 最大 1920*1080 2:图标  最大1920*1080 图片格式:jpg,png
	Type *def.MultiPart `json:"type"`

	Name *def.MultiPart `json:"name"`

	// 图片文件
	File *def.FilePart `json:"file"`

	// 横竖屏模式 0:横屏(默认) 1:竖屏
	ResolutionType *def.MultiPart `json:"resolution_type,omitempty"`
}

上传图片请求

func (PostImagesReq) String added in v0.1.37

func (o PostImagesReq) String() string

func (*PostImagesReq) UnmarshalJSON added in v0.1.37

func (o *PostImagesReq) UnmarshalJSON(b []byte) error

type PostOldRequestsReq added in v0.1.42

type PostOldRequestsReq struct {
	Extends *OldExtends `json:"extends,omitempty"`

	// 默认false true:使用内部闲聊语料进行兜底 false:不使用闲聊兜底
	ChatEnable *bool `json:"chat_enable,omitempty"`

	// true:启动内部阈值 返回经过阈值处理之后的答案。 false:不启用内部阈值 返回原答案。
	ThresholdEnable *bool `json:"threshold_enable,omitempty"`

	// 用户id,在日志中用于标识不通用户,可以为任意String
	UserId *string `json:"user_id,omitempty"`

	// 用户输入
	Question string `json:"question"`

	// 调用接口时候传入,用以标记的问答的行为,默认为0,最终会展示在问答日志里。 0 用户输入 1 单击热点问题 3 单击推荐问题 4 单击问题提示
	OperateType *int32 `json:"operate_type,omitempty"`

	// 会话标识符,UUID格式。如:c04e6f7b-61d7-4a2d-a0c8-f9ecd2f62359。  每次对话开启,机器人创建会话id,下次请求中传入该id表示继续该轮对话,每轮会话有效时间为2分钟。 若传入的会话id已过期或者为空,则机器人会重新创建新的会话id(重新创建会话id会消耗一定时间)。
	SessionId *string `json:"session_id,omitempty"`
}

func (PostOldRequestsReq) String added in v0.1.42

func (o PostOldRequestsReq) String() string

type PostQaSessionReq

type PostQaSessionReq struct {
	Extends *SessionExtends `json:"extends,omitempty"`

	// 默认true true:使用内部闲聊语料进行兜底 false:不使用闲聊兜底
	ChatEnable *bool `json:"chat_enable,omitempty"`

	// 用户id,在日志中用于标识不通用户,可以为任意String。
	UserId *string `json:"user_id,omitempty"`

	// 用户输入。
	Question string `json:"question"`
}

func (PostQaSessionReq) String

func (o PostQaSessionReq) String() string

type PostRequestsReq

type PostRequestsReq struct {
	Extends *Extends `json:"extends,omitempty"`

	// 默认false true:使用内部闲聊语料进行兜底 false:不使用闲聊兜底
	ChatEnable *bool `json:"chat_enable,omitempty"`

	// 用户id,在日志中用于标识不通用户,可以为任意String
	UserId *string `json:"user_id,omitempty"`

	// 用户输入
	Question string `json:"question"`

	// 会话标识符,UUID格式。如:c04e6f7b-61d7-4a2d-a0c8-f9ecd2f62359。  每次对话开启,机器人创建会话id,下次请求中传入该id表示继续该轮对话,每轮会话有效时间为2分钟。 若传入的会话id已过期或者为空,则机器人会重新创建新的会话id(重新创建会话id会消耗一定时间)。
	SessionId *string `json:"session_id,omitempty"`

	// 指定发送的机器人类型集合。  0 知识库问答。  1 技能问答。  2 闲聊问答。  3 图谱问答。  4 文档问答。  5 表格问答。  非必填字段。如果不填,会使用默认的机器人融合策略。
	QueryTypes *[]int32 `json:"query_types,omitempty"`
}

func (PostRequestsReq) String

func (o PostRequestsReq) String() string

type PostRequestsRequest added in v0.1.42

type PostRequestsRequest struct {

	// qabot编号,UUID格式,如:303a0a00-c88a-43e3-aa2f-d5b8b9832b02。
	QabotId string `json:"qabot_id"`

	Body *PostOldRequestsReq `json:"body,omitempty"`
}

Request Object

func (PostRequestsRequest) String added in v0.1.42

func (o PostRequestsRequest) String() string

type PostRequestsResponse added in v0.1.42

type PostRequestsResponse struct {

	// 请求ID。  调用失败时无此字段。
	RequestId *string `json:"request_id,omitempty"`

	// 问题。  调用失败时无此字段。
	Question *string `json:"question,omitempty"`

	// 最相似的问题集。 调用失败时无此字段。
	Answers *[]Answers `json:"answers,omitempty"`

	Extends        *OldExtends `json:"extends,omitempty"`
	HttpStatusCode int         `json:"-"`
}

Response Object

func (PostRequestsResponse) String added in v0.1.42

func (o PostRequestsResponse) String() string

type PostSatisfactionReq

type PostSatisfactionReq struct {

	// 满意度评分,当前仅支持二级评分,1表示满意,-1表示不满意。
	Degree int32 `json:"degree"`
}

func (PostSatisfactionReq) String

func (o PostSatisfactionReq) String() string

type PostSuggestionsReq

type PostSuggestionsReq struct {

	// 用户输入的问题,长度为1~512。
	Question string `json:"question"`

	// 最多提示条数,默认为5,取值范围[1,10]。
	Top *int32 `json:"top,omitempty"`
}

func (PostSuggestionsReq) String

func (o PostSuggestionsReq) String() string

type PptReadConfig added in v0.1.37

type PptReadConfig struct {

	// 播报内容,长度为3~2500
	ReadContent string `json:"read_content"`

	// PPT转化有的图片id
	ImageId string `json:"image_id"`

	Resolution *Resolution `json:"resolution"`
}

func (PptReadConfig) String added in v0.1.37

func (o PptReadConfig) String() string

type PptReadConfigResp added in v0.1.37

type PptReadConfigResp struct {

	// 播报内容,长度为3~2500
	ReadContent string `json:"read_content"`

	// PPT转化有的图片id
	ImageId string `json:"image_id"`

	Resolution *Resolution `json:"resolution"`

	// 图片地址
	ImageUrl string `json:"image_url"`

	// 图片名
	Name string `json:"name"`
}

func (PptReadConfigResp) String added in v0.1.37

func (o PptReadConfigResp) String() string

type PutVideoInfo added in v0.1.37

type PutVideoInfo struct {
	TtsConfig *TtsConfig `json:"tts_config"`

	VideoConfig *VideoConfig `json:"video_config"`

	CharacterConfig *CharacterConfig `json:"character_config"`

	ReadConfig *ReadConfig `json:"read_config"`
}

func (PutVideoInfo) String added in v0.1.37

func (o PutVideoInfo) String() string

type QaBotAnswer

type QaBotAnswer struct {

	// 问答对ID。
	QaPairId *string `json:"qa_pair_id,omitempty"`

	// 标准问题。
	StQuestion *string `json:"st_question,omitempty"`

	// 知识库答案,包含该字段的回答为直接回答,未包含该字段的是推荐回答。
	Answer *string `json:"answer,omitempty"`

	// 相似度得分,精确到小数点后3位。
	Score *float64 `json:"score,omitempty"`

	// 所属领域。
	Domain *string `json:"domain,omitempty"`

	// 最高评分的扩展问或标准问,当关闭内部阈值处理时返回。
	TopScoreQuestion *string `json:"top_score_question,omitempty"`
}

func (QaBotAnswer) String

func (o QaBotAnswer) String() string

type QaBotAnswers

type QaBotAnswers struct {

	// 问答机器人回复。
	Answers *[]QaBotAnswer `json:"answers,omitempty"`

	// 请求ID。
	RequestId string `json:"request_id"`
}

func (QaBotAnswers) String

func (o QaBotAnswers) String() string

type QaBotAnswersNew

type QaBotAnswersNew struct {

	// 问答机器人回复。
	Answers *[]QaBotAnswer `json:"answers,omitempty"`

	// 问答机器人推荐问题
	RecommendAnswers *[]RecomendAnswer `json:"recommend_answers,omitempty"`
}

func (QaBotAnswersNew) String

func (o QaBotAnswersNew) String() string

type ReadConfig added in v0.1.37

type ReadConfig struct {

	// 插图播报配置
	ImageReadConfigs *[]ImageReadConfig `json:"image_read_configs,omitempty"`

	// 播报选项: 0:纯文本播报(使用read_content 字段) 1:插图播报(使用image_read_configs字段) 3:自定义音频播报(使用audio字段) 会根据选项进行具体的字段校验
	ReadType int32 `json:"read_type"`

	// 纯文本播报内容
	ReadContent *string `json:"read_content,omitempty"`

	// 0:左 1:中 2:右 默认:1
	CharacterPosition *int32 `json:"character_position,omitempty"`

	// 段落播报间隔 单位:ms 范围:0~5000 默认:400
	ReadContentParagraphInterval *int32 `json:"read_content_paragraph_interval,omitempty"`

	// 播报框id
	ImageFrameId *string `json:"image_frame_id,omitempty"`

	// 用户的音频文件obs地址,为https格式(如:https://cbs-digital-human-cn-north-4.obs.myhuaweicloud.com:443/audio.wav),当字段不为空时,表示将使用用户自己的音频文件。  不支持PPT和图片播报,不支持字幕。音频格式文件格式为wav 音频最长支持20分钟,支持100m大小 注意:该功能的使用需要用户启动OBS授权
	AudioUrl *string `json:"audio_url,omitempty"`
}

func (ReadConfig) String added in v0.1.37

func (o ReadConfig) String() string

type ReadConfigResp added in v0.1.37

type ReadConfigResp struct {

	// 图片播报配置
	ImageReadConfigs *[]ImageReadConfigResp `json:"image_read_configs,omitempty"`

	// ppt播报配置
	PptReadConfigs *[]PptReadConfigResp `json:"ppt_read_configs,omitempty"`

	// 播报选项: 0:纯文本播报 1:图片播报 2:ppt播报 默认:0 配置哪项会校验哪项是否为空
	ReadType int32 `json:"read_type"`

	// 纯文本播报内容。 换行符会按400ms的静音进行分割
	ReadContent *string `json:"read_content,omitempty"`

	// 0:左 1:中 2:右
	CharacterPosition int32 `json:"character_position"`

	// read_content 每段播报时间
	ReadContentParagraghTimes *[]int32 `json:"read_content_paragragh_times,omitempty"`
}

func (ReadConfigResp) String added in v0.1.37

func (o ReadConfigResp) String() string

type RecomendAnswer

type RecomendAnswer struct {

	// 问答对ID。
	QaPairId *string `json:"qa_pair_id,omitempty"`

	// 标准问题。
	StQuestion *string `json:"st_question,omitempty"`

	// 相似度得分,精确到小数点后3位。
	Score *float64 `json:"score,omitempty"`

	// 所属领域。
	Domain *string `json:"domain,omitempty"`

	// 最高评分的扩展问或标准问。
	TopScoreQuestion *string `json:"top_score_question,omitempty"`
}

func (RecomendAnswer) String

func (o RecomendAnswer) String() string

type RelatedIntention

type RelatedIntention struct {

	// 意图名称。
	Intention string `json:"intention"`

	// 意图置信度。
	Confidence *float64 `json:"confidence,omitempty"`
}

func (RelatedIntention) String

func (o RelatedIntention) String() string

type ReplyRatesIntervals

type ReplyRatesIntervals struct {

	// 间隔周期开始时间。
	Start string `json:"start"`

	// 间隔周期用户提问总数。
	QuestionCount int64 `json:"question_count"`

	// 间隔周期直接回答个数。
	DirectCount int64 `json:"direct_count"`

	// 间隔周期推荐回答个数。
	RecommendCount int64 `json:"recommend_count"`

	// 间隔周期未匹配个数。
	NotmatchCount int64 `json:"notmatch_count"`

	// 间隔周期无效问题个数。
	InvalidCount int64 `json:"invalid_count"`

	// 间隔周期闲聊匹配个数。
	ChatCount int64 `json:"chat_count"`

	// 间隔周期直接回答比率,保留小数点后三位。
	DirectRate float64 `json:"direct_rate"`

	// 间隔周期推荐回答比率,保留小数点后三位。
	RecommendRate float64 `json:"recommend_rate"`

	// 间隔周期未匹配比率,保留小数点后三位。
	NotmatchRate float64 `json:"notmatch_rate"`

	// 间隔周期闲聊匹配比率,保留小数点后三位。
	ChatRate float64 `json:"chat_rate"`

	// 间隔周期无效问题比率,保留小数点后三位。
	InvalidRate float64 `json:"invalid_rate"`

	// 多轮会话次数。
	DialogCount int64 `json:"dialog_count"`

	// 多轮会话比例。
	DialogRate float64 `json:"dialog_rate"`
}

func (ReplyRatesIntervals) String

func (o ReplyRatesIntervals) String() string

type ReplyRatesTotal

type ReplyRatesTotal struct {

	// 用户提问总数。
	QuestionCount int64 `json:"question_count"`

	// 直接回答个数。
	DirectCount int64 `json:"direct_count"`

	// 推荐回答个数。
	RecommendCount int64 `json:"recommend_count"`

	// 未匹配个数。
	NotmatchCount int64 `json:"notmatch_count"`

	// 直接回答比率,保留小数点后三位。
	DirectRate float64 `json:"direct_rate"`

	// 推荐回答比率,保留小数点后三位。
	RecommendRate float64 `json:"recommend_rate"`

	// 未匹配比率,保留小数点后三位。
	NotmatchRate float64 `json:"notmatch_rate"`

	// 多轮对话次数。
	DialogCount int64 `json:"dialog_count"`

	// 多轮对话比例。
	DialogRate float64 `json:"dialog_rate"`

	// 无效问题次数。
	InvalidCount int64 `json:"invalid_count"`

	// 无效问题比例。
	InvalidRate float64 `json:"invalid_rate"`

	// 闲聊匹配次数。
	ChatCount int64 `json:"chat_count"`

	// 闲聊比例。
	ChatRate float64 `json:"chat_rate"`
}

func (ReplyRatesTotal) String

func (o ReplyRatesTotal) String() string

type Resolution added in v0.1.37

type Resolution struct {

	// 像素x
	X *int32 `json:"x,omitempty"`

	// 像素y
	Y int32 `json:"y"`
}

func (Resolution) String added in v0.1.37

func (o Resolution) String() string

type SessionExtends

type SessionExtends struct {
	TagIds *Tag `json:"tag_ids,omitempty"`

	// 领域列表,多个领域用分号隔开。如果设置了领域且领域不为空,就从这些领域中匹配答案,否则就从该用户的全部知识库匹配答案。  当前最多支持10个领域。
	DomainIds *[]string `json:"domain_ids,omitempty"`

	// 问题来源 其他支持用户自定义,最终体现在问答日志里
	Source *string `json:"source,omitempty"`
}

func (SessionExtends) String

func (o SessionExtends) String() string

type SessionStatsIntervals

type SessionStatsIntervals struct {

	// 间隔周期开始时间。
	Start string `json:"start"`

	// 间隔周期会话总数。
	SessionCount int64 `json:"session_count"`

	// 间隔周期独立用户个数。
	UserCount int64 `json:"user_count"`

	// 间隔周期平均会话轮数,保留小数点后三位。
	AvgRequestCount float64 `json:"avg_request_count"`

	// 间隔周期平均会话时长,保留小数点后三位。
	AvgSessionTime float64 `json:"avg_session_time"`
}

func (SessionStatsIntervals) String

func (o SessionStatsIntervals) String() string

type SessionStatsTotal

type SessionStatsTotal struct {

	// 会话总数。
	SessionCount int64 `json:"session_count"`

	// 独立用户个数。
	UserCount int64 `json:"user_count"`

	// 平均会话轮数,保留小数点后三位。
	AvgRequestCount float64 `json:"avg_request_count"`

	// 平均会话时长,保留小数点后三位。
	AvgSessionTime float64 `json:"avg_session_time"`
}

func (SessionStatsTotal) String

func (o SessionStatsTotal) String() string

type SkillResponse

type SkillResponse struct {

	// 技能ID。
	SkillId string `json:"skill_id"`

	// 技能模型版本。
	SkillVersion string `json:"skill_version"`

	Frame *Frame `json:"frame"`

	Candidate *CandidateIntention `json:"candidate"`

	// 技能是否锁定。
	Locked bool `json:"locked"`

	// 相关意图信息。
	RelatedIntenions []RelatedIntention `json:"related_intenions"`
}

func (SkillResponse) String

func (o SkillResponse) String() string

type SlotValue

type SlotValue struct {

	// 词。
	Word string `json:"word"`

	// 归一化后的标准词。
	NormWord string `json:"norm_word"`

	// 词的起始位置。
	BeginPosition int32 `json:"begin_position"`

	// 词的结束位置。
	EndPosition int32 `json:"end_position"`
}

func (SlotValue) String

func (o SlotValue) String() string

type TableQaAnswers

type TableQaAnswers struct {

	// 表格问答答案。
	Answer string `json:"answer"`

	// 评分。
	Score float64 `json:"score"`

	// 表格ID。
	TableId string `json:"table_id"`
}

func (TableQaAnswers) String

func (o TableQaAnswers) String() string

type Tag

type Tag struct {

	// 必须要包含其中之一的答案标签id列表
	Should *[]string `json:"should,omitempty"`
}

func (Tag) String

func (o Tag) String() string

type TagLaborRequest

type TagLaborRequest struct {

	// qabot编号,UUID格式。
	QabotId string `json:"qabot_id"`

	// 请求ID,由问答机器人会话生成。
	RequestId string `json:"request_id"`
}

Request Object

func (TagLaborRequest) String

func (o TagLaborRequest) String() string

type TagLaborResponse

type TagLaborResponse struct {

	// 调用成功时的返回请求ID。  调用失败时无此字段。
	RequestId *string `json:"request_id,omitempty"`

	// 转人工的时间。格式为“yyyy-MM-dd THH:mm:ssZ”。其中,T指某个时间的开始;Z指UTC时间。  调用失败时无此字段。
	UpdatedTime    *string `json:"updated_time,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (TagLaborResponse) String

func (o TagLaborResponse) String() string

type TagSatisfactionRequest

type TagSatisfactionRequest struct {

	// qabot编号,UUID格式。
	QabotId string `json:"qabot_id"`

	// 请求ID,由问答机器人会话生成。
	RequestId string `json:"request_id"`

	Body *PostSatisfactionReq `json:"body,omitempty"`
}

Request Object

func (TagSatisfactionRequest) String

func (o TagSatisfactionRequest) String() string

type TagSatisfactionResponse

type TagSatisfactionResponse struct {

	// 调用成功时的返回请求ID。  调用失败时无此字段。
	RequestId *string `json:"request_id,omitempty"`

	// 反馈满意度的时间。格式为“yyyy-MM-dd THH:mm:ssZ”。其中,T指某个时间的开始;Z指UTC时间。  调用失败时无此字段。
	UpdatedTime    *string `json:"updated_time,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (TagSatisfactionResponse) String

func (o TagSatisfactionResponse) String() string

type TaskBotAnswers

type TaskBotAnswers struct {

	// 答案。
	Answer string `json:"answer"`

	// 技能ID。
	SkillId string `json:"skill_id"`

	// 技能回复信息。
	SkillResponses []SkillResponse `json:"skill_responses"`
}

func (TaskBotAnswers) String

func (o TaskBotAnswers) String() string

type Time added in v0.1.37

type Time struct {

	// 创建时间
	CreateTime string `json:"create_time"`

	// 更新时间
	UpdateTime string `json:"update_time"`
}

func (Time) String added in v0.1.37

func (o Time) String() string

type TtsConfig added in v0.1.37

type TtsConfig struct {

	// 用于设置音色
	Property string `json:"property"`

	// 用户设置音速
	Speed int32 `json:"speed"`

	// 用于设置音量
	Volume int32 `json:"volume"`

	// 段首停顿时间。 范围:0~60; 单位:秒 默认:0
	Delay float32 `json:"delay"`

	// 音高。 取值范围: -500~500 默认值:0
	Pitch *string `json:"pitch,omitempty"`

	// 语音格式头:wav、mp3、pcm 默认:wav
	AudioFormat *string `json:"audio_format,omitempty"`

	// 采样率:16000、8000 默认:8000
	SampleRate *string `json:"sample_rate,omitempty"`

	// tts来源: 0:huawei 1:ali 2:用户克隆声音 默认:0
	TtsSource *int32 `json:"tts_source,omitempty"`
}

语音合成配置 - 目前可用tts资源尚未确定,校验待定,测试可以先不测后端接口校验

func (TtsConfig) String added in v0.1.37

func (o TtsConfig) String() string

type UpdateImageNameReq added in v0.1.37

type UpdateImageNameReq struct {

	// 视频名,长度3~63位。 大小写字母,数字,汉字及部分符号(“_”、“-”、“#”)组成
	Name string `json:"name"`
}

This is a auto create Body Object

func (UpdateImageNameReq) String added in v0.1.37

func (o UpdateImageNameReq) String() string

type UpdateReq added in v0.1.37

type UpdateReq struct {

	// 视频名,长度3~63位。 大小写字母,数字,汉字及部分符号(“_”、“-”、“#”)组成
	Name string `json:"name"`
}

This is a auto create Body Object

func (UpdateReq) String added in v0.1.37

func (o UpdateReq) String() string

type UrlResp added in v0.1.37

type UrlResp struct {

	// 图片id
	Id string `json:"id"`

	//
	Name *string `json:"name,omitempty"`

	// 访问地址
	Url string `json:"url"`
}

func (UrlResp) String added in v0.1.37

func (o UrlResp) String() string

type Video added in v0.1.37

type Video struct {

	// 创建时间
	CreateTime string `json:"create_time"`

	// 更新时间
	UpdateTime string `json:"update_time"`

	// 错误信息 如: {\\\"error_code\\\":\\\"0001\\\",\\\"error_msg\\\":\\\"播报内容超过10分钟,请重新调整播报内容。\\\"}
	ErrorMsg *string `json:"error_msg,omitempty"`

	//
	Id string `json:"id"`

	// 视频名称
	Name string `json:"name"`

	// 视频生成进度 0~100
	Progress *int32 `json:"progress,omitempty"`

	// 0:未初始化 1:生成中 2:生成成功 3:生成失败
	Status int32 `json:"status"`

	// 字幕地址
	SubtitleUrl string `json:"subtitle_url"`

	// 视频的obs地址,当视频生成成功时返回
	VideoUrl *string `json:"video_url,omitempty"`

	// 视频截图地址,jpg格式 分辨率480 * 270 当status=2:生成成功时返回
	VideoShot *string `json:"video_shot,omitempty"`
}

func (Video) String added in v0.1.37

func (o Video) String() string

type VideoConfig added in v0.1.37

type VideoConfig struct {

	// 背景id
	BackgroundId string `json:"background_id"`

	// 图标id
	LogoId *string `json:"logo_id,omitempty"`

	// 是否显示字幕 默认:false
	ShowSubtitles *bool `json:"show_subtitles,omitempty"`

	// 画面分辨率: 0: 宽屏landscape(默认) 1: 竖屏portrait
	ResolutionType *int32 `json:"resolution_type,omitempty"`
}

func (VideoConfig) String added in v0.1.37

func (o VideoConfig) String() string

type VideoConfigResp added in v0.1.37

type VideoConfigResp struct {

	// 背景id
	BackgroundId string `json:"background_id"`

	// 图标id
	LogoId *string `json:"logo_id,omitempty"`

	// 是否显示字幕 默认:false
	ShowSubtitles *bool `json:"show_subtitles,omitempty"`

	// 画面分辨率: 0: 宽屏landscape(默认) 1: 竖屏portrait
	ResolutionType *int32 `json:"resolution_type,omitempty"`

	// 背景图片地址,取默认背景的第一张
	BackgroundUrl string `json:"background_url"`

	// 播报框地址 和background绑定,如果使用用户自定义背景,则使用演播厅框
	ImageFrameUrl string `json:"image_frame_url"`

	// logo地址
	LogoUrl *string `json:"logo_url,omitempty"`
}

func (VideoConfigResp) String added in v0.1.37

func (o VideoConfigResp) String() string

Source Files

Jump to

Keyboard shortcuts

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