Documentation ¶
Index ¶
- func CbsClientBuilder() *http_client.HcHttpClientBuilder
- func GenReqDefForCollectHotQuestions() *def.HttpRequestDef
- func GenReqDefForCollectKeyWords() *def.HttpRequestDef
- func GenReqDefForCollectReplyRates() *def.HttpRequestDef
- func GenReqDefForCollectSessionStats() *def.HttpRequestDef
- func GenReqDefForCreateSession() *def.HttpRequestDef
- func GenReqDefForDeleteSession() *def.HttpRequestDef
- func GenReqDefForExecuteQaChat() *def.HttpRequestDef
- func GenReqDefForExecuteSession() *def.HttpRequestDef
- func GenReqDefForListSuggestions() *def.HttpRequestDef
- func GenReqDefForTagLabor() *def.HttpRequestDef
- func GenReqDefForTagSatisfaction() *def.HttpRequestDef
- type CbsClient
- func (c *CbsClient) CollectHotQuestions(request *model.CollectHotQuestionsRequest) (*model.CollectHotQuestionsResponse, error)
- func (c *CbsClient) CollectKeyWords(request *model.CollectKeyWordsRequest) (*model.CollectKeyWordsResponse, error)
- func (c *CbsClient) CollectReplyRates(request *model.CollectReplyRatesRequest) (*model.CollectReplyRatesResponse, error)
- func (c *CbsClient) CollectSessionStats(request *model.CollectSessionStatsRequest) (*model.CollectSessionStatsResponse, error)
- func (c *CbsClient) CreateSession(request *model.CreateSessionRequest) (*model.CreateSessionResponse, error)
- func (c *CbsClient) DeleteSession(request *model.DeleteSessionRequest) (*model.DeleteSessionResponse, error)
- func (c *CbsClient) ExecuteQaChat(request *model.ExecuteQaChatRequest) (*model.ExecuteQaChatResponse, error)
- func (c *CbsClient) ExecuteSession(request *model.ExecuteSessionRequest) (*model.ExecuteSessionResponse, error)
- func (c *CbsClient) ListSuggestions(request *model.ListSuggestionsRequest) (*model.ListSuggestionsResponse, error)
- func (c *CbsClient) TagLabor(request *model.TagLaborRequest) (*model.TagLaborResponse, error)
- func (c *CbsClient) TagSatisfaction(request *model.TagSatisfactionRequest) (*model.TagSatisfactionResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CbsClientBuilder ¶
func CbsClientBuilder() *http_client.HcHttpClientBuilder
func GenReqDefForCollectHotQuestions ¶
func GenReqDefForCollectHotQuestions() *def.HttpRequestDef
func GenReqDefForCollectKeyWords ¶
func GenReqDefForCollectKeyWords() *def.HttpRequestDef
func GenReqDefForCollectReplyRates ¶
func GenReqDefForCollectReplyRates() *def.HttpRequestDef
func GenReqDefForCollectSessionStats ¶
func GenReqDefForCollectSessionStats() *def.HttpRequestDef
func GenReqDefForCreateSession ¶
func GenReqDefForCreateSession() *def.HttpRequestDef
func GenReqDefForDeleteSession ¶
func GenReqDefForDeleteSession() *def.HttpRequestDef
func GenReqDefForExecuteQaChat ¶
func GenReqDefForExecuteQaChat() *def.HttpRequestDef
func GenReqDefForExecuteSession ¶
func GenReqDefForExecuteSession() *def.HttpRequestDef
func GenReqDefForListSuggestions ¶
func GenReqDefForListSuggestions() *def.HttpRequestDef
func GenReqDefForTagLabor ¶
func GenReqDefForTagLabor() *def.HttpRequestDef
func GenReqDefForTagSatisfaction ¶
func GenReqDefForTagSatisfaction() *def.HttpRequestDef
Types ¶
type CbsClient ¶
type CbsClient struct {
HcClient *http_client.HcHttpClient
}
func NewCbsClient ¶
func NewCbsClient(hcClient *http_client.HcHttpClient) *CbsClient
func (*CbsClient) CollectHotQuestions ¶
func (c *CbsClient) CollectHotQuestions(request *model.CollectHotQuestionsRequest) (*model.CollectHotQuestionsResponse, error)
获取完全匹配的热点标准问题列表。 默认按照完全匹配标准问题被问及的频次降序排序。
func (*CbsClient) CollectKeyWords ¶
func (c *CbsClient) CollectKeyWords(request *model.CollectKeyWordsRequest) (*model.CollectKeyWordsResponse, error)
用户问关键词统计。
func (*CbsClient) CollectReplyRates ¶
func (c *CbsClient) CollectReplyRates(request *model.CollectReplyRatesRequest) (*model.CollectReplyRatesResponse, error)
指定领域获取指定时间范围内的问题答复率,支持按周期统计。 如果领域未指定则表示获取所有领域的问题答复率。
func (*CbsClient) CollectSessionStats ¶
func (c *CbsClient) CollectSessionStats(request *model.CollectSessionStatsRequest) (*model.CollectSessionStatsResponse, error)
获取用户会话统计信息。
func (*CbsClient) CreateSession ¶
func (c *CbsClient) CreateSession(request *model.CreateSessionRequest) (*model.CreateSessionResponse, error)
问答会话API由开启会话、处理会话、关闭会话三个接口组成。用户可通过调用该接口创建会话。该接口仅支持老用户,新用户请优先使用问答机器人API接口进行调用。
func (*CbsClient) DeleteSession ¶
func (c *CbsClient) DeleteSession(request *model.DeleteSessionRequest) (*model.DeleteSessionResponse, error)
问答会话API由开启会话、处理会话、关闭会话三个接口组成。用户可通过调用该接口关闭会话。该接口即将下线,请优先使用问答机器人API接口进行调用。
func (*CbsClient) ExecuteQaChat ¶
func (c *CbsClient) ExecuteQaChat(request *model.ExecuteQaChatRequest) (*model.ExecuteQaChatResponse, error)
用户调用该接口和机器人进行聊天。
func (*CbsClient) ExecuteSession ¶
func (c *CbsClient) ExecuteSession(request *model.ExecuteSessionRequest) (*model.ExecuteSessionResponse, error)
问答会话API由开启会话、处理会话、关闭会话三个接口组成。用户可通过调用该接口与机器人进行会话。该接口即将下线,请优先使用问答机器人API接口进行调用。
func (*CbsClient) ListSuggestions ¶
func (c *CbsClient) ListSuggestions(request *model.ListSuggestionsRequest) (*model.ListSuggestionsResponse, error)
获取用户输入问题的提示问题列表。
func (*CbsClient) TagLabor ¶
func (c *CbsClient) TagLabor(request *model.TagLaborRequest) (*model.TagLaborResponse, error)
智能问答返回的结果后,用户是否转人工。
func (*CbsClient) TagSatisfaction ¶
func (c *CbsClient) TagSatisfaction(request *model.TagSatisfactionRequest) (*model.TagSatisfactionResponse, error)
用户提出问题后,对智能问答返回的结果是否满意。
Click to show internal directories.
Click to hide internal directories.