v1

package
v0.0.64 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2021 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

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

func GenReqDefForCreateTbSession() *def.HttpRequestDef

func GenReqDefForDeleteSession

func GenReqDefForDeleteSession() *def.HttpRequestDef

func GenReqDefForDeleteTbSession added in v0.0.59

func GenReqDefForDeleteTbSession() *def.HttpRequestDef

func GenReqDefForExecuteQaChat

func GenReqDefForExecuteQaChat() *def.HttpRequestDef

func GenReqDefForExecuteSession

func GenReqDefForExecuteSession() *def.HttpRequestDef

func GenReqDefForExecuteTbSession added in v0.0.59

func GenReqDefForExecuteTbSession() *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 (*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 (*CbsClient) CreateSession

func (c *CbsClient) CreateSession(request *model.CreateSessionRequest) (*model.CreateSessionResponse, error)

问答会话API由开启会话、处理会话、关闭会话三个接口组成。用户可通过调用该接口创建会话。该接口仅支持老用户,新用户请优先使用问答机器人API接口进行调用。

func (*CbsClient) CreateTbSession added in v0.0.59

func (c *CbsClient) CreateTbSession(request *model.CreateTbSessionRequest) (*model.CreateTbSessionResponse, error)

发起话务机器人会话。

func (*CbsClient) DeleteSession

func (c *CbsClient) DeleteSession(request *model.DeleteSessionRequest) (*model.DeleteSessionResponse, error)

问答会话API由开启会话、处理会话、关闭会话三个接口组成。用户可通过调用该接口关闭会话。该接口即将下线,请优先使用问答机器人API接口进行调用。

func (*CbsClient) DeleteTbSession added in v0.0.59

func (c *CbsClient) DeleteTbSession(request *model.DeleteTbSessionRequest) (*model.DeleteTbSessionResponse, error)

结束话务机器人会话。如果会话持续10分钟无会话请求则被清理。

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

func (c *CbsClient) ExecuteTbSession(request *model.ExecuteTbSessionRequest) (*model.ExecuteTbSessionResponse, error)

进行话务机器人会话。

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)

用户提出问题后,对智能问答返回的结果是否满意。

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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