model

package
v0.0.79 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2022 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"`

	Score *float32 `json:"score,omitempty"`
}

func (ChatAnswers) String

func (o ChatAnswers) String() string

type CollectHotQuestionsRequest

type CollectHotQuestionsRequest struct {
	QabotId string `json:"qabot_id"`

	StartTime *string `json:"start_time,omitempty"`

	EndTime *string `json:"end_time,omitempty"`

	Top *string `json:"top,omitempty"`

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

	DomainId *string `json:"domain_id,omitempty"`

	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 {
	QabotId string `json:"qabot_id"`

	StartTime *string `json:"start_time,omitempty"`

	EndTime *string `json:"end_time,omitempty"`

	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 {
	QabotId string `json:"qabot_id"`

	StartTime *string `json:"start_time,omitempty"`

	EndTime *string `json:"end_time,omitempty"`

	Interval *CollectReplyRatesRequestInterval `json:"interval,omitempty"`

	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

type CollectReplyRatesResponse

type CollectReplyRatesResponse struct {
	Interval *string `json:"interval,omitempty"`

	TimeZone *string `json:"time_zone,omitempty"`

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

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

	Startutc *int64 `json:"startutc,omitempty"`

	Endutc         *int64 `json:"endutc,omitempty"`
	HttpStatusCode int    `json:"-"`
}

Response Object

func (CollectReplyRatesResponse) String

func (o CollectReplyRatesResponse) String() string

type CollectSessionStatsRequest

type CollectSessionStatsRequest struct {
	QabotId string `json:"qabot_id"`

	StartTime *string `json:"start_time,omitempty"`

	EndTime *string `json:"end_time,omitempty"`

	Interval *CollectSessionStatsRequestInterval `json:"interval,omitempty"`

	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

type CollectSessionStatsResponse

type CollectSessionStatsResponse struct {
	Interval *string `json:"interval,omitempty"`

	TimeZone *string `json:"time_zone,omitempty"`

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

	Intervals *[]SessionStatsIntervals `json:"intervals,omitempty"`

	Startutc *int64 `json:"startutc,omitempty"`

	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 CreateTbSessionRequest added in v0.0.59

type CreateTbSessionRequest struct {
	BotId string `json:"bot_id"`
}

Request Object

func (CreateTbSessionRequest) String added in v0.0.59

func (o CreateTbSessionRequest) String() string

type CreateTbSessionResponse added in v0.0.59

type CreateTbSessionResponse struct {
	Question *string `json:"question,omitempty"`

	Action *int32 `json:"action,omitempty"`

	SessionId *string `json:"session_id,omitempty"`

	QuestionId *string `json:"question_id,omitempty"`

	AudioFilePath  *string `json:"audio_file_path,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (CreateTbSessionResponse) String added in v0.0.59

func (o CreateTbSessionResponse) String() string

type CurrentSlot

type CurrentSlot struct {
	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 DeleteTbSessionRequest added in v0.0.59

type DeleteTbSessionRequest struct {
	BotId string `json:"bot_id"`

	SessionId string `json:"session_id"`
}

Request Object

func (DeleteTbSessionRequest) String added in v0.0.59

func (o DeleteTbSessionRequest) String() string

type DeleteTbSessionResponse added in v0.0.59

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

Response Object

func (DeleteTbSessionResponse) String added in v0.0.59

func (o DeleteTbSessionResponse) 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"`

	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 {
	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 {
	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"`

	SessionId *string `json:"session_id,omitempty"`

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

	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 {
	ReplyType *int32 `json:"reply_type,omitempty"`

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

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

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

	RequestId      *string `json:"request_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ExecuteSessionResponse) String

func (o ExecuteSessionResponse) String() string

type ExecuteTbQuestion added in v0.0.59

type ExecuteTbQuestion struct {
	QuestionId string `json:"question_id"`

	AudioFilePath *string `json:"audio_file_path,omitempty"`

	Question string `json:"question"`

	Action int32 `json:"action"`
}

func (ExecuteTbQuestion) String added in v0.0.59

func (o ExecuteTbQuestion) String() string

type ExecuteTbSessionReq added in v0.0.59

type ExecuteTbSessionReq struct {
	Reply *string `json:"reply,omitempty"`

	Type int32 `json:"type"`
}

func (ExecuteTbSessionReq) String added in v0.0.59

func (o ExecuteTbSessionReq) String() string

type ExecuteTbSessionRequest added in v0.0.59

type ExecuteTbSessionRequest struct {
	BotId string `json:"bot_id"`

	SessionId string `json:"session_id"`

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

Request Object

func (ExecuteTbSessionRequest) String added in v0.0.59

func (o ExecuteTbSessionRequest) String() string

type ExecuteTbSessionResponse added in v0.0.59

type ExecuteTbSessionResponse struct {
	Questions      *[]ExecuteTbQuestion `json:"questions,omitempty"`
	HttpStatusCode int                  `json:"-"`
}

Response Object

func (ExecuteTbSessionResponse) String added in v0.0.59

func (o ExecuteTbSessionResponse) String() string

type Extends

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

	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 {
	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 {
	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"`

	ChatEnable *bool `json:"chat_enable,omitempty"`

	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"`

	ChatEnable *bool `json:"chat_enable,omitempty"`

	UserId *string `json:"user_id,omitempty"`

	Question string `json:"question"`

	SessionId *string `json:"session_id,omitempty"`

	QueryTypes *[]int32 `json:"query_types,omitempty"`
}

func (PostRequestsReq) String

func (o PostRequestsReq) String() string

type PostSatisfactionReq

type PostSatisfactionReq struct {
	Degree int32 `json:"degree"`
}

func (PostSatisfactionReq) String

func (o PostSatisfactionReq) String() string

type PostSuggestionsReq

type PostSuggestionsReq struct {
	Question string `json:"question"`

	Top *int32 `json:"top,omitempty"`
}

func (PostSuggestionsReq) String

func (o PostSuggestionsReq) String() string

type QaBotAnswer

type QaBotAnswer struct {
	QaPairId *string `json:"qa_pair_id,omitempty"`

	StQuestion *string `json:"st_question,omitempty"`

	Answer *string `json:"answer,omitempty"`

	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"`

	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 {
	QaPairId *string `json:"qa_pair_id,omitempty"`

	StQuestion *string `json:"st_question,omitempty"`

	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"`

	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 {
	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"`

	TableId string `json:"table_id"`
}

func (TableQaAnswers) String

func (o TableQaAnswers) String() string

type Tag

type Tag struct {
	Should *[]string `json:"should,omitempty"`
}

func (Tag) String

func (o Tag) String() string

type TagLaborRequest

type TagLaborRequest struct {
	QabotId string `json:"qabot_id"`

	RequestId string `json:"request_id"`
}

Request Object

func (TagLaborRequest) String

func (o TagLaborRequest) String() string

type TagLaborResponse

type TagLaborResponse struct {
	RequestId *string `json:"request_id,omitempty"`

	UpdatedTime    *string `json:"updated_time,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (TagLaborResponse) String

func (o TagLaborResponse) String() string

type TagSatisfactionRequest

type TagSatisfactionRequest struct {
	QabotId string `json:"qabot_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 {
	RequestId *string `json:"request_id,omitempty"`

	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"`

	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