Documentation ¶
Index ¶
- type Answer
- type AnswerType
- type AppInfo
- type Article
- type ArticleType
- type BidStat
- type DocumentClassify
- type FmAnsDetail
- type FmFeed
- type Image
- type Message
- type MiniProgram
- type MoreInfo
- type MusicAnsDetail
- type MusicFeed
- type NLUResult
- type Ner
- type NerNorm
- type NerType
- type News
- type NewsAbstraction
- type PlayCommand
- type PlayInfo
- type Rank
- type RankResult
- type SimilarQuery
- type Slot
- type SpeakCommand
- type Status
- type TokenizeResult
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Answer ¶
type Answer struct { News *News `json:"news,omitempty"` Image *Image `json:"image,omitempty"` MiniProgram *MiniProgram `json:"miniprogram,omitempty"` Multimsg []Answer `json:"multimsg,omitempty"` }
type AnswerType ¶
type AnswerType = string
const ( TEXT AnswerType = "text" MUSIC AnswerType = "music" NEWS AnswerType = "news" )
type Article ¶
type Article struct { Title string `json:"title,omitempty"` Desc string `json:"description,omitempty"` Url string `json:"url,omitempty"` Pic string `json:"picurl,omitempty"` Type ArticleType `json:"type,omitempty"` }
type DocumentClassify ¶
type FmAnsDetail ¶
type FmAnsDetail struct { Code int `json:"err_code,omitempty"` Msg string `json:"msg,omitempty"` AppInfo *AppInfo `json:"app_info,omitempty"` Feed *FmFeed `json:"feed,omitempty"` NodeName string `json:"node_name,omitempty"` SpeakCommand *SpeakCommand `json:"speak_command,omitempty"` PlayCommand *PlayCommand `json:"audio_play_command,omitempty"` }
type Message ¶
type Message struct { RequestID uint64 `json:"request_id,omitempty"` AnsNodeID uint64 `json:"ans_node_id,omitempty"` AnsNodeName string `json:"ans_node_name,omitempty"` Article string `json:"article,omitempty"` Confidence float64 `json:"confidence,omitempty"` Content string `json:"content,omitempty"` DebugInfo string `json:"debug_info,omitempty"` Event string `json:"event,omitempty"` ListOptions bool `json:"list_options,omitempty"` Opening string `json:"opening,omitempty"` MsgType string `json:"msg_type,omitempty"` RespTitle string `json:"resp_title,omitempty"` SessionID string `json:"session_id,omitempty"` SceneStatus string `json:"scene_status,omitempty"` Status Status `json:"status,omitempty"` TakeOptionsOnly bool `json:"take_options_only,omitempty"` AlbumName string `json:"album_name,omitempty"` MusicUrl string `json:"music_url,omitempty"` PicUrl string `json:"pic_url,omitempty"` SingerName string `json:"singer_name,omitempty"` SongName string `json:"song_name,omitempty"` }
type MiniProgram ¶
type MusicAnsDetail ¶
type MusicAnsDetail struct { Code int `json:"code,omitempty"` Msg string `json:"msg,omitempty"` Feed *MusicFeed `json:"feed,omitempty"` PlayCommand *PlayCommand `json:"play_command,omitempty"` SpeakCommand *SpeakCommand `json:"speak_command,omitempty"` }
type NLUResult ¶
type NLUResult struct { RequestID uint64 `json:"request_id,omitempty"` Ret int `json:"ret,omitempty"` AnsNodeID uint64 `json:"ans_node_id,omitempty"` AnsNodeName string `json:"ans_node_name,omitempty"` SessionID string `json:"session_id,omitempty"` SceneStatus string `json:"scene_status,omitempty"` Title string `json:"title,omitempty"` Answer string `json:"answer,omitempty"` AnswerOpen int `json:"answer_open,omitempty"` AnswerType AnswerType `json:"answer_type,omitempty"` Article string `json:"article,omitempty"` Confidence float64 `json:"confidence,omitempty"` CreateTime json.Number `json:"create_time,omitempty"` DialogSessionStatus string `json:"dialog_session_status,omitempty"` DialogStatus string `json:"dialog_status,omitempty"` Event string `json:"event,omitempty"` IntentConfirmStatus string `json:"intent_confirm_status,omitempty"` ListOptions bool `json:"list_options,omitempty"` MsgID string `json:"msg_id,omitempty"` Opening string `json:"opening,omitempty"` Msg []Message `json:"msg,omitempty"` FromUserName string `json:"from_user_name,omitempty"` ToUserName string `json:"to_user_name,omitempty"` Status Status `json:"status,omitempty"` SlotInfo []map[string]string `json:"slot_info,omitempty"` Slots []Slot `json:"slots_info,omitempty"` TakeOptionsOnly bool `json:"take_options_only,omitempty"` Query string `json:"query,omitempty"` BidStat *BidStat `json:"bid_stat,omitempty"` MoreInfo *MoreInfo `json:"more_info,omitempty"` }
type Ner ¶
type Ner struct { Type NerType `json:"type,omitempty"` Span []int `json:"span,omitempty"` Text string `json:"text,omitempty"` Norm json.RawMessage `json:"norm,omitempty"` }
type NewsAbstraction ¶
type PlayCommand ¶
type PlayCommand struct { CanPreGetFront bool `json:"can_pre_get_front,omitempty"` NeedGetHistory bool `json:"need_get_history,omitempty"` NeedPreGet bool `json:"need_pre_get,omitempty"` Recoverable bool `json:"recoverable,omitempty"` RepeatModeSupport int `json:"repeat_mode_support,omitempty"` Type int `json:"type,omitempty"` Playlist []PlayInfo `json:"play_list,omitempty"` }
type PlayInfo ¶
type PlayInfo struct { Id string `json:"id,omitempty"` AlbumId string `json:"album_id,omitempty"` AlbumName string `json:"album_name,omitempty"` AlbumPicUrl string `json:"album_pic_url,omitempty"` Author string `json:"author,omitempty"` Mid string `json:"mid,omitempty"` Name string `json:"name,omitempty"` Url string `json:"url,omitempty"` }
type RankResult ¶
type SimilarQuery ¶
type Slot ¶
type Slot struct { AllNerTypes string `json:"all_ner_types,omitempty"` ConfirmStatus string `json:"confirm_status,omitempty"` Start int `json:"start,omitempty"` End int `json:"end,omitempty"` EntityType string `json:"entity_type,omitempty"` Norm string `json:"norm,omitempty"` NormDetail string `json:"norm_detail,omitempty"` SlotName string `json:"slot_name,omitempty"` SlotValue string `json:"slot_value,omitempty"` }
type SpeakCommand ¶
type TokenizeResult ¶
Click to show internal directories.
Click to hide internal directories.