Udostępnij za pośrednictwem


QnAMaker Konstruktory

Definicja

Przeciążenia

QnAMaker(QnAMakerEndpoint, QnAMakerOptions, HttpClient)

Inicjuje nowe wystąpienie klasy QnAMaker.

QnAMaker(QnAMakerService, QnAMakerOptions, HttpClient)
Przestarzałe.

Inicjuje nowe wystąpienie klasy QnAMaker.

QnAMaker(QnAMakerEndpoint, QnAMakerOptions, HttpClient, IBotTelemetryClient, Boolean)

Inicjuje nowe wystąpienie klasy QnAMaker.

QnAMaker(QnAMakerService, QnAMakerOptions, HttpClient, IBotTelemetryClient, Boolean)
Przestarzałe.

Inicjuje nowe wystąpienie klasy QnAMaker.

QnAMaker(QnAMakerEndpoint, QnAMakerOptions, HttpClient)

Inicjuje nowe wystąpienie klasy QnAMaker.

public QnAMaker (Microsoft.Bot.Builder.AI.QnA.QnAMakerEndpoint endpoint, Microsoft.Bot.Builder.AI.QnA.QnAMakerOptions options = default, System.Net.Http.HttpClient httpClient = default);
new Microsoft.Bot.Builder.AI.QnA.QnAMaker : Microsoft.Bot.Builder.AI.QnA.QnAMakerEndpoint * Microsoft.Bot.Builder.AI.QnA.QnAMakerOptions * System.Net.Http.HttpClient -> Microsoft.Bot.Builder.AI.QnA.QnAMaker
Public Sub New (endpoint As QnAMakerEndpoint, Optional options As QnAMakerOptions = Nothing, Optional httpClient As HttpClient = Nothing)

Parametry

endpoint
QnAMakerEndpoint

Punkt końcowy baza wiedzy do wykonywania zapytań.

options
QnAMakerOptions

Opcje baza wiedzy usługi QnA Maker.

httpClient
HttpClient

Alternatywny klient, z którym można porozmawiać z usługą QnAMaker. Jeśli ma wartość null, dla tego wystąpienia jest używany domyślny klient.

Dotyczy

QnAMaker(QnAMakerService, QnAMakerOptions, HttpClient)

Przestroga

Constructor is deprecated, please use QnAMaker(QnAMakerEndpoint endpoint, QnAMakerOptions options, HttpClient httpClient).

Inicjuje nowe wystąpienie klasy QnAMaker.

[System.Obsolete("Constructor is deprecated, please use QnAMaker(QnAMakerEndpoint endpoint, QnAMakerOptions options, HttpClient httpClient).")]
public QnAMaker (Microsoft.Bot.Configuration.QnAMakerService service, Microsoft.Bot.Builder.AI.QnA.QnAMakerOptions options = default, System.Net.Http.HttpClient httpClient = default);
[<System.Obsolete("Constructor is deprecated, please use QnAMaker(QnAMakerEndpoint endpoint, QnAMakerOptions options, HttpClient httpClient).")>]
new Microsoft.Bot.Builder.AI.QnA.QnAMaker : Microsoft.Bot.Configuration.QnAMakerService * Microsoft.Bot.Builder.AI.QnA.QnAMakerOptions * System.Net.Http.HttpClient -> Microsoft.Bot.Builder.AI.QnA.QnAMaker
Public Sub New (service As QnAMakerService, Optional options As QnAMakerOptions = Nothing, Optional httpClient As HttpClient = Nothing)

Parametry

service
QnAMakerService

Szczegóły usługi QnA z konfiguracji.

options
QnAMakerOptions

Opcje baza wiedzy usługi QnA Maker.

httpClient
HttpClient

Alternatywny klient, z którym można porozmawiać z usługą QnAMaker. Jeśli ma wartość null, dla tego wystąpienia jest używany domyślny klient.

Atrybuty

Dotyczy

QnAMaker(QnAMakerEndpoint, QnAMakerOptions, HttpClient, IBotTelemetryClient, Boolean)

Inicjuje nowe wystąpienie klasy QnAMaker.

public QnAMaker (Microsoft.Bot.Builder.AI.QnA.QnAMakerEndpoint endpoint, Microsoft.Bot.Builder.AI.QnA.QnAMakerOptions options, System.Net.Http.HttpClient httpClient, Microsoft.Bot.Builder.IBotTelemetryClient telemetryClient, bool logPersonalInformation = false);
new Microsoft.Bot.Builder.AI.QnA.QnAMaker : Microsoft.Bot.Builder.AI.QnA.QnAMakerEndpoint * Microsoft.Bot.Builder.AI.QnA.QnAMakerOptions * System.Net.Http.HttpClient * Microsoft.Bot.Builder.IBotTelemetryClient * bool -> Microsoft.Bot.Builder.AI.QnA.QnAMaker
Public Sub New (endpoint As QnAMakerEndpoint, options As QnAMakerOptions, httpClient As HttpClient, telemetryClient As IBotTelemetryClient, Optional logPersonalInformation As Boolean = false)

Parametry

endpoint
QnAMakerEndpoint

Punkt końcowy baza wiedzy do wykonywania zapytań.

options
QnAMakerOptions

Opcje baza wiedzy usługi QnA Maker.

httpClient
HttpClient

Alternatywny klient, z którym można porozmawiać z usługą QnAMaker. Jeśli ma wartość null, dla tego wystąpienia jest używany domyślny klient.

telemetryClient
IBotTelemetryClient

Element IBotTelemetryClient używany do rejestrowania zdarzeń telemetrii.

logPersonalInformation
Boolean

Ustaw wartość true, aby uwzględnić dane osobowe w zdarzeniach telemetrycznych.

Dotyczy

QnAMaker(QnAMakerService, QnAMakerOptions, HttpClient, IBotTelemetryClient, Boolean)

Przestroga

Constructor is deprecated, please use QnAMaker(QnAMakerEndpoint endpoint, QnAMakerOptions options, HttpClient httpClient).

Inicjuje nowe wystąpienie klasy QnAMaker.

[System.Obsolete("Constructor is deprecated, please use QnAMaker(QnAMakerEndpoint endpoint, QnAMakerOptions options, HttpClient httpClient).")]
public QnAMaker (Microsoft.Bot.Configuration.QnAMakerService service, Microsoft.Bot.Builder.AI.QnA.QnAMakerOptions options, System.Net.Http.HttpClient httpClient, Microsoft.Bot.Builder.IBotTelemetryClient telemetryClient, bool logPersonalInformation = false);
[<System.Obsolete("Constructor is deprecated, please use QnAMaker(QnAMakerEndpoint endpoint, QnAMakerOptions options, HttpClient httpClient).")>]
new Microsoft.Bot.Builder.AI.QnA.QnAMaker : Microsoft.Bot.Configuration.QnAMakerService * Microsoft.Bot.Builder.AI.QnA.QnAMakerOptions * System.Net.Http.HttpClient * Microsoft.Bot.Builder.IBotTelemetryClient * bool -> Microsoft.Bot.Builder.AI.QnA.QnAMaker
Public Sub New (service As QnAMakerService, options As QnAMakerOptions, httpClient As HttpClient, telemetryClient As IBotTelemetryClient, Optional logPersonalInformation As Boolean = false)

Parametry

service
QnAMakerService

Szczegóły usługi QnA z konfiguracji.

options
QnAMakerOptions

Opcje baza wiedzy usługi QnA Maker.

httpClient
HttpClient

Alternatywny klient, z którym można porozmawiać z usługą QnAMaker. Jeśli ma wartość null, dla tego wystąpienia jest używany domyślny klient.

telemetryClient
IBotTelemetryClient

Element IBotTelemetryClient używany do rejestrowania zdarzeń telemetrii.

logPersonalInformation
Boolean

Ustaw wartość true, aby uwzględnić dane osobowe w zdarzeniach telemetrycznych.

Atrybuty

Dotyczy