model

package
v0.1.32 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2023 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CandidateIntention

type CandidateIntention struct {

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

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

func (CandidateIntention) String

func (o CandidateIntention) 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 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 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 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 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 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 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 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 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 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 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 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

Source Files

Jump to

Keyboard shortcuts

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