Versions in this module Expand all Collapse all v51 v51.0.0 Jan 27, 2021 Changes in this version + func UserAgent() string + func Version() string + type BaseClient struct + RuntimeEndpoint string + func New(runtimeEndpoint string) BaseClient + func NewWithoutDefaults(runtimeEndpoint string) BaseClient + type ContextDTO struct + IsContextOnly *bool + Prompts *[]PromptDTO + type Error struct + Code ErrorCodeType + Details *[]Error + InnerError *InnerErrorModel + Message *string + Target *string + type ErrorCodeType string + const BadArgument + const EndpointKeysError + const ExtractionFailure + const Forbidden + const KbNotFound + const NotFound + const OperationNotFound + const QnaRuntimeError + const QuotaExceeded + const SKULimitExceeded + const ServiceError + const Unauthorized + const Unspecified + const ValidationFailure + func PossibleErrorCodeTypeValues() []ErrorCodeType + type ErrorResponse struct + Error *ErrorResponseError + type ErrorResponseError struct + Code ErrorCodeType + Details *[]Error + InnerError *InnerErrorModel + Message *string + Target *string + type FeedbackRecordDTO struct + QnaID *int32 + UserID *string + UserQuestion *string + type FeedbackRecordsDTO struct + FeedbackRecords *[]FeedbackRecordDTO + type InnerErrorModel struct + Code *string + InnerError *InnerErrorModel + type MetadataDTO struct + Name *string + Value *string + type PromptDTO struct + DisplayOrder *int32 + DisplayText *string + Qna *PromptDTOQna + QnaID *int32 + type PromptDTOQna struct + Answer *string + Context *QnADTOContext + ID *int32 + Metadata *[]MetadataDTO + Questions *[]string + Source *string + type QnADTO struct + Answer *string + Context *QnADTOContext + ID *int32 + Metadata *[]MetadataDTO + Questions *[]string + Source *string + type QnADTOContext struct + IsContextOnly *bool + Prompts *[]PromptDTO + type QnASearchResult struct + Answer *string + Context *QnASearchResultContext + ID *int32 + Metadata *[]MetadataDTO + Questions *[]string + Score *float64 + Source *string + type QnASearchResultContext struct + IsContextOnly *bool + Prompts *[]PromptDTO + type QnASearchResultList struct + Answers *[]QnASearchResult + type QueryContextDTO struct + PreviousQnaID *string + PreviousUserQuery *string + type QueryDTO struct + Context *QueryDTOContext + IsTest *bool + QnaID *string + Question *string + RankerType *string + ScoreThreshold *float64 + StrictFilters *[]MetadataDTO + StrictFiltersCompoundOperationType StrictFiltersCompoundOperationType + Top *int32 + UserID *string + type QueryDTOContext struct + PreviousQnaID *string + PreviousUserQuery *string + type RuntimeClient struct + func NewRuntimeClient(runtimeEndpoint string) RuntimeClient + func (client RuntimeClient) GenerateAnswer(ctx context.Context, kbID string, generateAnswerPayload QueryDTO) (result QnASearchResultList, err error) + func (client RuntimeClient) GenerateAnswerPreparer(ctx context.Context, kbID string, generateAnswerPayload QueryDTO) (*http.Request, error) + func (client RuntimeClient) GenerateAnswerResponder(resp *http.Response) (result QnASearchResultList, err error) + func (client RuntimeClient) GenerateAnswerSender(req *http.Request) (*http.Response, error) + func (client RuntimeClient) Train(ctx context.Context, kbID string, trainPayload FeedbackRecordsDTO) (result autorest.Response, err error) + func (client RuntimeClient) TrainPreparer(ctx context.Context, kbID string, trainPayload FeedbackRecordsDTO) (*http.Request, error) + func (client RuntimeClient) TrainResponder(resp *http.Response) (result autorest.Response, err error) + func (client RuntimeClient) TrainSender(req *http.Request) (*http.Response, error) + type StrictFiltersCompoundOperationType string + const AND + const OR + func PossibleStrictFiltersCompoundOperationTypeValues() []StrictFiltersCompoundOperationType Other modules containing this package github.com/pmalek-sumo/azure-sdk-for-go