diff --git a/services/cognitiveservices/v2.0/luis/runtime/prediction.go b/services/cognitiveservices/v2.0/luis/runtime/prediction.go index 30528a6b9842..61b8bda76873 100644 --- a/services/cognitiveservices/v2.0/luis/runtime/prediction.go +++ b/services/cognitiveservices/v2.0/luis/runtime/prediction.go @@ -23,6 +23,7 @@ import ( "github.com/Azure/go-autorest/autorest/azure" "github.com/Azure/go-autorest/autorest/validation" "github.com/Azure/go-autorest/tracing" + "github.com/satori/go.uuid" "net/http" ) @@ -45,9 +46,9 @@ func NewPredictionClient(endpoint string) PredictionClient { // verbose - if true, return all intents instead of just the top scoring intent. // staging - use the staging endpoint slot. // spellCheck - enable spell checking. -// bingSpellCheckSubscriptionKey - the subscription key to use when enabling bing spell check +// bingSpellCheckSubscriptionKey - the subscription key to use when enabling Bing spell check // logParameter - log query (default is true) -func (client PredictionClient) Resolve(ctx context.Context, appID string, query string, timezoneOffset *float64, verbose *bool, staging *bool, spellCheck *bool, bingSpellCheckSubscriptionKey string, logParameter *bool) (result LuisResult, err error) { +func (client PredictionClient) Resolve(ctx context.Context, appID uuid.UUID, query string, timezoneOffset *float64, verbose *bool, staging *bool, spellCheck *bool, bingSpellCheckSubscriptionKey string, logParameter *bool) (result LuisResult, err error) { if tracing.IsEnabled() { ctx = tracing.StartSpan(ctx, fqdn+"/PredictionClient.Resolve") defer func() { @@ -86,7 +87,7 @@ func (client PredictionClient) Resolve(ctx context.Context, appID string, query } // ResolvePreparer prepares the Resolve request. -func (client PredictionClient) ResolvePreparer(ctx context.Context, appID string, query string, timezoneOffset *float64, verbose *bool, staging *bool, spellCheck *bool, bingSpellCheckSubscriptionKey string, logParameter *bool) (*http.Request, error) { +func (client PredictionClient) ResolvePreparer(ctx context.Context, appID uuid.UUID, query string, timezoneOffset *float64, verbose *bool, staging *bool, spellCheck *bool, bingSpellCheckSubscriptionKey string, logParameter *bool) (*http.Request, error) { urlParameters := map[string]interface{}{ "Endpoint": client.Endpoint, } diff --git a/services/cognitiveservices/v2.0/luis/runtime/runtimeapi/interfaces.go b/services/cognitiveservices/v2.0/luis/runtime/runtimeapi/interfaces.go index 2274d144443a..bdfec6f97633 100644 --- a/services/cognitiveservices/v2.0/luis/runtime/runtimeapi/interfaces.go +++ b/services/cognitiveservices/v2.0/luis/runtime/runtimeapi/interfaces.go @@ -20,11 +20,12 @@ package runtimeapi import ( "context" "github.com/Azure/azure-sdk-for-go/services/cognitiveservices/v2.0/luis/runtime" + "github.com/satori/go.uuid" ) // PredictionClientAPI contains the set of methods on the PredictionClient type. type PredictionClientAPI interface { - Resolve(ctx context.Context, appID string, query string, timezoneOffset *float64, verbose *bool, staging *bool, spellCheck *bool, bingSpellCheckSubscriptionKey string, logParameter *bool) (result runtime.LuisResult, err error) + Resolve(ctx context.Context, appID uuid.UUID, query string, timezoneOffset *float64, verbose *bool, staging *bool, spellCheck *bool, bingSpellCheckSubscriptionKey string, logParameter *bool) (result runtime.LuisResult, err error) } var _ PredictionClientAPI = (*runtime.PredictionClient)(nil)