v1

package
v0.0.91 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2022 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 5 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

CollectHotQuestions 热点问题统计

获取完全匹配的热点标准问题列表。 默认按照完全匹配标准问题被问及的频次降序排序。

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*CbsClient) CollectHotQuestionsInvoker added in v0.0.90

func (c *CbsClient) CollectHotQuestionsInvoker(request *model.CollectHotQuestionsRequest) *CollectHotQuestionsInvoker

CollectHotQuestionsInvoker 热点问题统计

func (*CbsClient) CollectKeyWords

func (c *CbsClient) CollectKeyWords(request *model.CollectKeyWordsRequest) (*model.CollectKeyWordsResponse, error)

CollectKeyWords 关键词统计

用户问关键词统计。

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*CbsClient) CollectKeyWordsInvoker added in v0.0.90

func (c *CbsClient) CollectKeyWordsInvoker(request *model.CollectKeyWordsRequest) *CollectKeyWordsInvoker

CollectKeyWordsInvoker 关键词统计

func (*CbsClient) CollectReplyRates

func (c *CbsClient) CollectReplyRates(request *model.CollectReplyRatesRequest) (*model.CollectReplyRatesResponse, error)

CollectReplyRates 问答统计

指定领域获取指定时间范围内的问题答复率,支持按周期统计。 如果领域未指定则表示获取所有领域的问题答复率。

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*CbsClient) CollectReplyRatesInvoker added in v0.0.90

func (c *CbsClient) CollectReplyRatesInvoker(request *model.CollectReplyRatesRequest) *CollectReplyRatesInvoker

CollectReplyRatesInvoker 问答统计

func (*CbsClient) CollectSessionStats

CollectSessionStats 访问统计

获取用户会话统计信息。

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*CbsClient) CollectSessionStatsInvoker added in v0.0.90

func (c *CbsClient) CollectSessionStatsInvoker(request *model.CollectSessionStatsRequest) *CollectSessionStatsInvoker

CollectSessionStatsInvoker 访问统计

func (*CbsClient) CreateSession

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

CreateSession 开启会话

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

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*CbsClient) CreateSessionInvoker added in v0.0.90

func (c *CbsClient) CreateSessionInvoker(request *model.CreateSessionRequest) *CreateSessionInvoker

CreateSessionInvoker 开启会话

func (*CbsClient) CreateTbSession added in v0.0.59

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

CreateTbSession 发起会话

发起话务机器人会话。

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*CbsClient) CreateTbSessionInvoker added in v0.0.90

func (c *CbsClient) CreateTbSessionInvoker(request *model.CreateTbSessionRequest) *CreateTbSessionInvoker

CreateTbSessionInvoker 发起会话

func (*CbsClient) DeleteSession

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

DeleteSession 关闭会话

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

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*CbsClient) DeleteSessionInvoker added in v0.0.90

func (c *CbsClient) DeleteSessionInvoker(request *model.DeleteSessionRequest) *DeleteSessionInvoker

DeleteSessionInvoker 关闭会话

func (*CbsClient) DeleteTbSession added in v0.0.59

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

DeleteTbSession 结束会话

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

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*CbsClient) DeleteTbSessionInvoker added in v0.0.90

func (c *CbsClient) DeleteTbSessionInvoker(request *model.DeleteTbSessionRequest) *DeleteTbSessionInvoker

DeleteTbSessionInvoker 结束会话

func (*CbsClient) ExecuteQaChat

func (c *CbsClient) ExecuteQaChat(request *model.ExecuteQaChatRequest) (*model.ExecuteQaChatResponse, error)

ExecuteQaChat 问答机器人会话

用户调用该接口和机器人进行聊天。

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*CbsClient) ExecuteQaChatInvoker added in v0.0.90

func (c *CbsClient) ExecuteQaChatInvoker(request *model.ExecuteQaChatRequest) *ExecuteQaChatInvoker

ExecuteQaChatInvoker 问答机器人会话

func (*CbsClient) ExecuteSession

func (c *CbsClient) ExecuteSession(request *model.ExecuteSessionRequest) (*model.ExecuteSessionResponse, error)

ExecuteSession 处理会话

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

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*CbsClient) ExecuteSessionInvoker added in v0.0.90

func (c *CbsClient) ExecuteSessionInvoker(request *model.ExecuteSessionRequest) *ExecuteSessionInvoker

ExecuteSessionInvoker 处理会话

func (*CbsClient) ExecuteTbSession added in v0.0.59

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

ExecuteTbSession 进行会话

进行话务机器人会话。

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*CbsClient) ExecuteTbSessionInvoker added in v0.0.90

func (c *CbsClient) ExecuteTbSessionInvoker(request *model.ExecuteTbSessionRequest) *ExecuteTbSessionInvoker

ExecuteTbSessionInvoker 进行会话

func (*CbsClient) ListSuggestions

func (c *CbsClient) ListSuggestions(request *model.ListSuggestionsRequest) (*model.ListSuggestionsResponse, error)

ListSuggestions 获取问题提示

获取用户输入问题的提示问题列表。

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*CbsClient) ListSuggestionsInvoker added in v0.0.90

func (c *CbsClient) ListSuggestionsInvoker(request *model.ListSuggestionsRequest) *ListSuggestionsInvoker

ListSuggestionsInvoker 获取问题提示

func (*CbsClient) TagLabor

func (c *CbsClient) TagLabor(request *model.TagLaborRequest) (*model.TagLaborResponse, error)

TagLabor 标记为转人工

智能问答返回的结果后,用户是否转人工。

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*CbsClient) TagLaborInvoker added in v0.0.90

func (c *CbsClient) TagLaborInvoker(request *model.TagLaborRequest) *TagLaborInvoker

TagLaborInvoker 标记为转人工

func (*CbsClient) TagSatisfaction

func (c *CbsClient) TagSatisfaction(request *model.TagSatisfactionRequest) (*model.TagSatisfactionResponse, error)

TagSatisfaction 问答满意评价

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

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*CbsClient) TagSatisfactionInvoker added in v0.0.90

func (c *CbsClient) TagSatisfactionInvoker(request *model.TagSatisfactionRequest) *TagSatisfactionInvoker

TagSatisfactionInvoker 问答满意评价

type CollectHotQuestionsInvoker added in v0.0.90

type CollectHotQuestionsInvoker struct {
	*invoker.BaseInvoker
}

func (*CollectHotQuestionsInvoker) Invoke added in v0.0.90

type CollectKeyWordsInvoker added in v0.0.90

type CollectKeyWordsInvoker struct {
	*invoker.BaseInvoker
}

func (*CollectKeyWordsInvoker) Invoke added in v0.0.90

type CollectReplyRatesInvoker added in v0.0.90

type CollectReplyRatesInvoker struct {
	*invoker.BaseInvoker
}

func (*CollectReplyRatesInvoker) Invoke added in v0.0.90

type CollectSessionStatsInvoker added in v0.0.90

type CollectSessionStatsInvoker struct {
	*invoker.BaseInvoker
}

func (*CollectSessionStatsInvoker) Invoke added in v0.0.90

type CreateSessionInvoker added in v0.0.90

type CreateSessionInvoker struct {
	*invoker.BaseInvoker
}

func (*CreateSessionInvoker) Invoke added in v0.0.90

type CreateTbSessionInvoker added in v0.0.90

type CreateTbSessionInvoker struct {
	*invoker.BaseInvoker
}

func (*CreateTbSessionInvoker) Invoke added in v0.0.90

type DeleteSessionInvoker added in v0.0.90

type DeleteSessionInvoker struct {
	*invoker.BaseInvoker
}

func (*DeleteSessionInvoker) Invoke added in v0.0.90

type DeleteTbSessionInvoker added in v0.0.90

type DeleteTbSessionInvoker struct {
	*invoker.BaseInvoker
}

func (*DeleteTbSessionInvoker) Invoke added in v0.0.90

type ExecuteQaChatInvoker added in v0.0.90

type ExecuteQaChatInvoker struct {
	*invoker.BaseInvoker
}

func (*ExecuteQaChatInvoker) Invoke added in v0.0.90

type ExecuteSessionInvoker added in v0.0.90

type ExecuteSessionInvoker struct {
	*invoker.BaseInvoker
}

func (*ExecuteSessionInvoker) Invoke added in v0.0.90

type ExecuteTbSessionInvoker added in v0.0.90

type ExecuteTbSessionInvoker struct {
	*invoker.BaseInvoker
}

func (*ExecuteTbSessionInvoker) Invoke added in v0.0.90

type ListSuggestionsInvoker added in v0.0.90

type ListSuggestionsInvoker struct {
	*invoker.BaseInvoker
}

func (*ListSuggestionsInvoker) Invoke added in v0.0.90

type TagLaborInvoker added in v0.0.90

type TagLaborInvoker struct {
	*invoker.BaseInvoker
}

func (*TagLaborInvoker) Invoke added in v0.0.90

func (i *TagLaborInvoker) Invoke() (*model.TagLaborResponse, error)

type TagSatisfactionInvoker added in v0.0.90

type TagSatisfactionInvoker struct {
	*invoker.BaseInvoker
}

func (*TagSatisfactionInvoker) Invoke added in v0.0.90

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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