azure_cognitiveservices_luisruntime 0.17.2 → 0.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/2.0/generated/azure_cognitiveservices_luisruntime/luis_runtime_client.rb +1 -1
- data/lib/2.0/generated/azure_cognitiveservices_luisruntime/prediction.rb +2 -0
- data/lib/{3.0-preview → 3.0}/generated/azure_cognitiveservices_luisruntime.rb +15 -15
- data/lib/{3.0-preview → 3.0}/generated/azure_cognitiveservices_luisruntime/luis_runtime_client.rb +3 -3
- data/lib/{3.0-preview → 3.0}/generated/azure_cognitiveservices_luisruntime/models/dynamic_list.rb +1 -1
- data/lib/{3.0-preview → 3.0}/generated/azure_cognitiveservices_luisruntime/models/error.rb +1 -1
- data/lib/{3.0-preview → 3.0}/generated/azure_cognitiveservices_luisruntime/models/error_body.rb +1 -1
- data/lib/{3.0-preview → 3.0}/generated/azure_cognitiveservices_luisruntime/models/external_entity.rb +13 -1
- data/lib/{3.0-preview → 3.0}/generated/azure_cognitiveservices_luisruntime/models/intent.rb +1 -1
- data/lib/{3.0-preview → 3.0}/generated/azure_cognitiveservices_luisruntime/models/prediction.rb +2 -13
- data/lib/{3.0-preview → 3.0}/generated/azure_cognitiveservices_luisruntime/models/prediction_request.rb +4 -4
- data/lib/{3.0-preview → 3.0}/generated/azure_cognitiveservices_luisruntime/models/prediction_request_options.rb +4 -4
- data/lib/{3.0-preview → 3.0}/generated/azure_cognitiveservices_luisruntime/models/prediction_response.rb +1 -1
- data/lib/{3.0-preview → 3.0}/generated/azure_cognitiveservices_luisruntime/models/request_list.rb +1 -1
- data/lib/{3.0-preview → 3.0}/generated/azure_cognitiveservices_luisruntime/models/sentiment.rb +12 -12
- data/lib/{3.0-preview → 3.0}/generated/azure_cognitiveservices_luisruntime/module_definition.rb +1 -1
- data/lib/{3.0-preview → 3.0}/generated/azure_cognitiveservices_luisruntime/prediction_operations.rb +9 -5
- data/lib/azure_cognitiveservices_luisruntime.rb +1 -1
- data/lib/profiles/latest/modules/luisruntime_profile_module.rb +32 -32
- data/lib/version.rb +1 -1
- metadata +20 -20
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2111b6579a782974b2d132c2ec3a4c968d455245a65dd511e210f6114cf9163d
|
4
|
+
data.tar.gz: 75410359959f83adec8cb745775f08b37f1081fc0c4b76f2d0ea597c42e5a6f3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 141452910ab4fa22a5c93ed993b757c8acf687442921ed915d997449fd48ea41b2c89dbc2ae0be9ad03117cc2640f9cb11b34d3eeec586a29fbad01364a5a53f
|
7
|
+
data.tar.gz: 200c0bd563a928aeaa056dd84cc2ce85042ffe83c42b9fc6088e1eb9e3458990d7d529b15d545fe51306d8b757722730a9ee1828f72936f817211403aef5bc1b
|
@@ -124,7 +124,7 @@ module Azure::CognitiveServices::LuisRuntime::V2_0
|
|
124
124
|
#
|
125
125
|
def add_telemetry
|
126
126
|
sdk_information = 'azure_cognitiveservices_luisruntime'
|
127
|
-
sdk_information = "#{sdk_information}/0.
|
127
|
+
sdk_information = "#{sdk_information}/0.18.0"
|
128
128
|
add_user_agent_information(sdk_information)
|
129
129
|
end
|
130
130
|
end
|
@@ -140,6 +140,8 @@ module Azure::CognitiveServices::LuisRuntime::V2_0
|
|
140
140
|
end
|
141
141
|
|
142
142
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
143
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
144
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
143
145
|
# Deserialize Response
|
144
146
|
if status_code == 200
|
145
147
|
begin
|
@@ -16,24 +16,24 @@ require 'faraday'
|
|
16
16
|
require 'faraday-cookie_jar'
|
17
17
|
require 'concurrent'
|
18
18
|
require 'ms_rest'
|
19
|
-
require '3.0
|
19
|
+
require '3.0/generated/azure_cognitiveservices_luisruntime/module_definition'
|
20
20
|
require 'ms_rest_azure'
|
21
21
|
|
22
|
-
module Azure::CognitiveServices::LuisRuntime::
|
23
|
-
autoload :PredictionOperations, '3.0
|
24
|
-
autoload :LuisRuntimeClient, '3.0
|
22
|
+
module Azure::CognitiveServices::LuisRuntime::V3_0
|
23
|
+
autoload :PredictionOperations, '3.0/generated/azure_cognitiveservices_luisruntime/prediction_operations.rb'
|
24
|
+
autoload :LuisRuntimeClient, '3.0/generated/azure_cognitiveservices_luisruntime/luis_runtime_client.rb'
|
25
25
|
|
26
26
|
module Models
|
27
|
-
autoload :
|
28
|
-
autoload :
|
29
|
-
autoload :
|
30
|
-
autoload :
|
31
|
-
autoload :
|
32
|
-
autoload :
|
33
|
-
autoload :
|
34
|
-
autoload :
|
35
|
-
autoload :
|
36
|
-
autoload :
|
37
|
-
autoload :
|
27
|
+
autoload :Error, '3.0/generated/azure_cognitiveservices_luisruntime/models/error.rb'
|
28
|
+
autoload :PredictionRequestOptions, '3.0/generated/azure_cognitiveservices_luisruntime/models/prediction_request_options.rb'
|
29
|
+
autoload :Sentiment, '3.0/generated/azure_cognitiveservices_luisruntime/models/sentiment.rb'
|
30
|
+
autoload :ExternalEntity, '3.0/generated/azure_cognitiveservices_luisruntime/models/external_entity.rb'
|
31
|
+
autoload :PredictionResponse, '3.0/generated/azure_cognitiveservices_luisruntime/models/prediction_response.rb'
|
32
|
+
autoload :RequestList, '3.0/generated/azure_cognitiveservices_luisruntime/models/request_list.rb'
|
33
|
+
autoload :Intent, '3.0/generated/azure_cognitiveservices_luisruntime/models/intent.rb'
|
34
|
+
autoload :DynamicList, '3.0/generated/azure_cognitiveservices_luisruntime/models/dynamic_list.rb'
|
35
|
+
autoload :ErrorBody, '3.0/generated/azure_cognitiveservices_luisruntime/models/error_body.rb'
|
36
|
+
autoload :PredictionRequest, '3.0/generated/azure_cognitiveservices_luisruntime/models/prediction_request.rb'
|
37
|
+
autoload :Prediction, '3.0/generated/azure_cognitiveservices_luisruntime/models/prediction.rb'
|
38
38
|
end
|
39
39
|
end
|
data/lib/{3.0-preview → 3.0}/generated/azure_cognitiveservices_luisruntime/luis_runtime_client.rb
RENAMED
@@ -3,7 +3,7 @@
|
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
6
|
-
module Azure::CognitiveServices::LuisRuntime::
|
6
|
+
module Azure::CognitiveServices::LuisRuntime::V3_0
|
7
7
|
#
|
8
8
|
# A service client - single point of access to the REST API.
|
9
9
|
#
|
@@ -47,7 +47,7 @@ module Azure::CognitiveServices::LuisRuntime::V3_0_preview
|
|
47
47
|
#
|
48
48
|
def initialize(credentials = nil, options = nil)
|
49
49
|
super(credentials, options)
|
50
|
-
@base_url = '{Endpoint}/luis/v3.0
|
50
|
+
@base_url = '{Endpoint}/luis/prediction/v3.0'
|
51
51
|
|
52
52
|
fail ArgumentError, 'invalid type of credentials input parameter' unless credentials.is_a?(MsRest::ServiceClientCredentials) unless credentials.nil?
|
53
53
|
@credentials = credentials
|
@@ -124,7 +124,7 @@ module Azure::CognitiveServices::LuisRuntime::V3_0_preview
|
|
124
124
|
#
|
125
125
|
def add_telemetry
|
126
126
|
sdk_information = 'azure_cognitiveservices_luisruntime'
|
127
|
-
sdk_information = "#{sdk_information}/0.
|
127
|
+
sdk_information = "#{sdk_information}/0.18.0"
|
128
128
|
add_user_agent_information(sdk_information)
|
129
129
|
end
|
130
130
|
end
|
data/lib/{3.0-preview → 3.0}/generated/azure_cognitiveservices_luisruntime/models/dynamic_list.rb
RENAMED
@@ -3,7 +3,7 @@
|
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
6
|
-
module Azure::CognitiveServices::LuisRuntime::
|
6
|
+
module Azure::CognitiveServices::LuisRuntime::V3_0
|
7
7
|
module Models
|
8
8
|
#
|
9
9
|
# Defines an extension for a list entity.
|
data/lib/{3.0-preview → 3.0}/generated/azure_cognitiveservices_luisruntime/models/error_body.rb
RENAMED
@@ -3,7 +3,7 @@
|
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
6
|
-
module Azure::CognitiveServices::LuisRuntime::
|
6
|
+
module Azure::CognitiveServices::LuisRuntime::V3_0
|
7
7
|
module Models
|
8
8
|
#
|
9
9
|
# Represents the definition of the error that occurred.
|
data/lib/{3.0-preview → 3.0}/generated/azure_cognitiveservices_luisruntime/models/external_entity.rb
RENAMED
@@ -3,7 +3,7 @@
|
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
6
|
-
module Azure::CognitiveServices::LuisRuntime::
|
6
|
+
module Azure::CognitiveServices::LuisRuntime::V3_0
|
7
7
|
module Models
|
8
8
|
#
|
9
9
|
# Defines a user predicted entity that extends an already existing one.
|
@@ -25,6 +25,10 @@ module Azure::CognitiveServices::LuisRuntime::V3_0_preview
|
|
25
25
|
# prediction.
|
26
26
|
attr_accessor :resolution
|
27
27
|
|
28
|
+
# @return [Float] A user supplied score to return as the entity's
|
29
|
+
# prediction score.
|
30
|
+
attr_accessor :score
|
31
|
+
|
28
32
|
|
29
33
|
#
|
30
34
|
# Mapper for ExternalEntity class as Ruby Hash.
|
@@ -70,6 +74,14 @@ module Azure::CognitiveServices::LuisRuntime::V3_0_preview
|
|
70
74
|
type: {
|
71
75
|
name: 'Object'
|
72
76
|
}
|
77
|
+
},
|
78
|
+
score: {
|
79
|
+
client_side_validation: true,
|
80
|
+
required: false,
|
81
|
+
serialized_name: 'score',
|
82
|
+
type: {
|
83
|
+
name: 'Double'
|
84
|
+
}
|
73
85
|
}
|
74
86
|
}
|
75
87
|
}
|
data/lib/{3.0-preview → 3.0}/generated/azure_cognitiveservices_luisruntime/models/prediction.rb
RENAMED
@@ -3,7 +3,7 @@
|
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
6
|
-
module Azure::CognitiveServices::LuisRuntime::
|
6
|
+
module Azure::CognitiveServices::LuisRuntime::V3_0
|
7
7
|
module Models
|
8
8
|
#
|
9
9
|
# Represents the prediction of a query.
|
@@ -12,9 +12,6 @@ module Azure::CognitiveServices::LuisRuntime::V3_0_preview
|
|
12
12
|
|
13
13
|
include MsRestAzure
|
14
14
|
|
15
|
-
# @return [String] The query after pre-processing and normalization.
|
16
|
-
attr_accessor :normalized_query
|
17
|
-
|
18
15
|
# @return [String] The query after spell checking. Only set if spell
|
19
16
|
# check was enabled and a spelling mistake was found.
|
20
17
|
attr_accessor :altered_query
|
@@ -26,7 +23,7 @@ module Azure::CognitiveServices::LuisRuntime::V3_0_preview
|
|
26
23
|
# that fired.
|
27
24
|
attr_accessor :intents
|
28
25
|
|
29
|
-
# @return
|
26
|
+
# @return A dictionary representing the entities that fired.
|
30
27
|
attr_accessor :entities
|
31
28
|
|
32
29
|
# @return [Sentiment] The result of the sentiment analysis.
|
@@ -46,14 +43,6 @@ module Azure::CognitiveServices::LuisRuntime::V3_0_preview
|
|
46
43
|
name: 'Composite',
|
47
44
|
class_name: 'Prediction',
|
48
45
|
model_properties: {
|
49
|
-
normalized_query: {
|
50
|
-
client_side_validation: true,
|
51
|
-
required: true,
|
52
|
-
serialized_name: 'normalizedQuery',
|
53
|
-
type: {
|
54
|
-
name: 'String'
|
55
|
-
}
|
56
|
-
},
|
57
46
|
altered_query: {
|
58
47
|
client_side_validation: true,
|
59
48
|
required: false,
|
@@ -3,7 +3,7 @@
|
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
6
|
-
module Azure::CognitiveServices::LuisRuntime::
|
6
|
+
module Azure::CognitiveServices::LuisRuntime::V3_0
|
7
7
|
module Models
|
8
8
|
#
|
9
9
|
# Represents the prediction request parameters.
|
@@ -12,7 +12,7 @@ module Azure::CognitiveServices::LuisRuntime::V3_0_preview
|
|
12
12
|
|
13
13
|
include MsRestAzure
|
14
14
|
|
15
|
-
# @return [String] The query to predict
|
15
|
+
# @return [String] The query to predict.
|
16
16
|
attr_accessor :query
|
17
17
|
|
18
18
|
# @return [PredictionRequestOptions] The custom options defined for this
|
@@ -20,11 +20,11 @@ module Azure::CognitiveServices::LuisRuntime::V3_0_preview
|
|
20
20
|
attr_accessor :options
|
21
21
|
|
22
22
|
# @return [Array<ExternalEntity>] The externally predicted entities for
|
23
|
-
# this request
|
23
|
+
# this request.
|
24
24
|
attr_accessor :external_entities
|
25
25
|
|
26
26
|
# @return [Array<DynamicList>] The dynamically created list entities for
|
27
|
-
# this request
|
27
|
+
# this request.
|
28
28
|
attr_accessor :dynamic_lists
|
29
29
|
|
30
30
|
|
@@ -3,7 +3,7 @@
|
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
6
|
-
module Azure::CognitiveServices::LuisRuntime::
|
6
|
+
module Azure::CognitiveServices::LuisRuntime::V3_0
|
7
7
|
module Models
|
8
8
|
#
|
9
9
|
# The custom options for the prediction request.
|
@@ -18,7 +18,7 @@ module Azure::CognitiveServices::LuisRuntime::V3_0_preview
|
|
18
18
|
|
19
19
|
# @return [Boolean] Whether to make the external entities resolution
|
20
20
|
# override the predictions if an overlap occurs.
|
21
|
-
attr_accessor :
|
21
|
+
attr_accessor :prefer_external_entities
|
22
22
|
|
23
23
|
|
24
24
|
#
|
@@ -42,10 +42,10 @@ module Azure::CognitiveServices::LuisRuntime::V3_0_preview
|
|
42
42
|
name: 'DateTime'
|
43
43
|
}
|
44
44
|
},
|
45
|
-
|
45
|
+
prefer_external_entities: {
|
46
46
|
client_side_validation: true,
|
47
47
|
required: false,
|
48
|
-
serialized_name: '
|
48
|
+
serialized_name: 'preferExternalEntities',
|
49
49
|
type: {
|
50
50
|
name: 'Boolean'
|
51
51
|
}
|
data/lib/{3.0-preview → 3.0}/generated/azure_cognitiveservices_luisruntime/models/request_list.rb
RENAMED
@@ -3,7 +3,7 @@
|
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
6
|
-
module Azure::CognitiveServices::LuisRuntime::
|
6
|
+
module Azure::CognitiveServices::LuisRuntime::V3_0
|
7
7
|
module Models
|
8
8
|
#
|
9
9
|
# Defines a sub-list to append to an existing list entity.
|
data/lib/{3.0-preview → 3.0}/generated/azure_cognitiveservices_luisruntime/models/sentiment.rb
RENAMED
@@ -3,7 +3,7 @@
|
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
6
|
-
module Azure::CognitiveServices::LuisRuntime::
|
6
|
+
module Azure::CognitiveServices::LuisRuntime::V3_0
|
7
7
|
module Models
|
8
8
|
#
|
9
9
|
# The result of the sentiment analysis.
|
@@ -12,12 +12,12 @@ module Azure::CognitiveServices::LuisRuntime::V3_0_preview
|
|
12
12
|
|
13
13
|
include MsRestAzure
|
14
14
|
|
15
|
-
# @return [Float] The sentiment score of the query.
|
16
|
-
attr_accessor :score
|
17
|
-
|
18
15
|
# @return [String] The label of the sentiment analysis result.
|
19
16
|
attr_accessor :label
|
20
17
|
|
18
|
+
# @return [Float] The sentiment score of the query.
|
19
|
+
attr_accessor :score
|
20
|
+
|
21
21
|
|
22
22
|
#
|
23
23
|
# Mapper for Sentiment class as Ruby Hash.
|
@@ -32,14 +32,6 @@ module Azure::CognitiveServices::LuisRuntime::V3_0_preview
|
|
32
32
|
name: 'Composite',
|
33
33
|
class_name: 'Sentiment',
|
34
34
|
model_properties: {
|
35
|
-
score: {
|
36
|
-
client_side_validation: true,
|
37
|
-
required: true,
|
38
|
-
serialized_name: 'score',
|
39
|
-
type: {
|
40
|
-
name: 'Double'
|
41
|
-
}
|
42
|
-
},
|
43
35
|
label: {
|
44
36
|
client_side_validation: true,
|
45
37
|
required: false,
|
@@ -47,6 +39,14 @@ module Azure::CognitiveServices::LuisRuntime::V3_0_preview
|
|
47
39
|
type: {
|
48
40
|
name: 'String'
|
49
41
|
}
|
42
|
+
},
|
43
|
+
score: {
|
44
|
+
client_side_validation: true,
|
45
|
+
required: true,
|
46
|
+
serialized_name: 'score',
|
47
|
+
type: {
|
48
|
+
name: 'Double'
|
49
|
+
}
|
50
50
|
}
|
51
51
|
}
|
52
52
|
}
|
data/lib/{3.0-preview → 3.0}/generated/azure_cognitiveservices_luisruntime/prediction_operations.rb
RENAMED
@@ -3,7 +3,7 @@
|
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
6
|
-
module Azure::CognitiveServices::LuisRuntime::
|
6
|
+
module Azure::CognitiveServices::LuisRuntime::V3_0
|
7
7
|
#
|
8
8
|
# PredictionOperations
|
9
9
|
#
|
@@ -96,7 +96,7 @@ module Azure::CognitiveServices::LuisRuntime::V3_0_preview
|
|
96
96
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
97
97
|
|
98
98
|
# Serialize Request
|
99
|
-
request_mapper = Azure::CognitiveServices::LuisRuntime::
|
99
|
+
request_mapper = Azure::CognitiveServices::LuisRuntime::V3_0::Models::PredictionRequest.mapper()
|
100
100
|
request_content = @client.serialize(request_mapper, prediction_request)
|
101
101
|
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
102
102
|
|
@@ -125,11 +125,13 @@ module Azure::CognitiveServices::LuisRuntime::V3_0_preview
|
|
125
125
|
end
|
126
126
|
|
127
127
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
128
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
129
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
128
130
|
# Deserialize Response
|
129
131
|
if status_code == 200
|
130
132
|
begin
|
131
133
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
132
|
-
result_mapper = Azure::CognitiveServices::LuisRuntime::
|
134
|
+
result_mapper = Azure::CognitiveServices::LuisRuntime::V3_0::Models::PredictionResponse.mapper()
|
133
135
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
134
136
|
rescue Exception => e
|
135
137
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -217,7 +219,7 @@ module Azure::CognitiveServices::LuisRuntime::V3_0_preview
|
|
217
219
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
218
220
|
|
219
221
|
# Serialize Request
|
220
|
-
request_mapper = Azure::CognitiveServices::LuisRuntime::
|
222
|
+
request_mapper = Azure::CognitiveServices::LuisRuntime::V3_0::Models::PredictionRequest.mapper()
|
221
223
|
request_content = @client.serialize(request_mapper, prediction_request)
|
222
224
|
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
223
225
|
|
@@ -246,11 +248,13 @@ module Azure::CognitiveServices::LuisRuntime::V3_0_preview
|
|
246
248
|
end
|
247
249
|
|
248
250
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
251
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
252
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
249
253
|
# Deserialize Response
|
250
254
|
if status_code == 200
|
251
255
|
begin
|
252
256
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
253
|
-
result_mapper = Azure::CognitiveServices::LuisRuntime::
|
257
|
+
result_mapper = Azure::CognitiveServices::LuisRuntime::V3_0::Models::PredictionResponse.mapper()
|
254
258
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
255
259
|
rescue Exception => e
|
256
260
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -2,6 +2,6 @@
|
|
2
2
|
# Copyright (c) Microsoft Corporation. All rights reserved.
|
3
3
|
# Licensed under the MIT License. See License.txt in the project root for license information.
|
4
4
|
|
5
|
+
require '3.0/generated/azure_cognitiveservices_luisruntime'
|
5
6
|
require '2.0/generated/azure_cognitiveservices_luisruntime'
|
6
|
-
require '3.0-preview/generated/azure_cognitiveservices_luisruntime'
|
7
7
|
require 'profiles/latest/luisruntime_latest_profile_client'
|
@@ -5,20 +5,20 @@
|
|
5
5
|
require 'azure_cognitiveservices_luisruntime'
|
6
6
|
|
7
7
|
module Azure::LuisRuntime::Profiles::Latest
|
8
|
-
PredictionOperations = Azure::CognitiveServices::LuisRuntime::
|
8
|
+
PredictionOperations = Azure::CognitiveServices::LuisRuntime::V3_0::PredictionOperations
|
9
9
|
|
10
10
|
module Models
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
11
|
+
Error = Azure::CognitiveServices::LuisRuntime::V3_0::Models::Error
|
12
|
+
PredictionRequestOptions = Azure::CognitiveServices::LuisRuntime::V3_0::Models::PredictionRequestOptions
|
13
|
+
Sentiment = Azure::CognitiveServices::LuisRuntime::V3_0::Models::Sentiment
|
14
|
+
ExternalEntity = Azure::CognitiveServices::LuisRuntime::V3_0::Models::ExternalEntity
|
15
|
+
PredictionResponse = Azure::CognitiveServices::LuisRuntime::V3_0::Models::PredictionResponse
|
16
|
+
RequestList = Azure::CognitiveServices::LuisRuntime::V3_0::Models::RequestList
|
17
|
+
Intent = Azure::CognitiveServices::LuisRuntime::V3_0::Models::Intent
|
18
|
+
DynamicList = Azure::CognitiveServices::LuisRuntime::V3_0::Models::DynamicList
|
19
|
+
ErrorBody = Azure::CognitiveServices::LuisRuntime::V3_0::Models::ErrorBody
|
20
|
+
PredictionRequest = Azure::CognitiveServices::LuisRuntime::V3_0::Models::PredictionRequest
|
21
|
+
Prediction = Azure::CognitiveServices::LuisRuntime::V3_0::Models::Prediction
|
22
22
|
end
|
23
23
|
|
24
24
|
#
|
@@ -40,7 +40,7 @@ module Azure::LuisRuntime::Profiles::Latest
|
|
40
40
|
@base_url = options[:base_url].nil? ? nil:options[:base_url]
|
41
41
|
@options = options[:options].nil? ? nil:options[:options]
|
42
42
|
|
43
|
-
@client_0 = Azure::CognitiveServices::LuisRuntime::
|
43
|
+
@client_0 = Azure::CognitiveServices::LuisRuntime::V3_0::LuisRuntimeClient.new(configurable.credentials, options)
|
44
44
|
if(@client_0.respond_to?(:subscription_id))
|
45
45
|
@client_0.subscription_id = configurable.subscription_id
|
46
46
|
end
|
@@ -66,38 +66,38 @@ module Azure::LuisRuntime::Profiles::Latest
|
|
66
66
|
end
|
67
67
|
|
68
68
|
class ModelClasses
|
69
|
-
def
|
70
|
-
Azure::CognitiveServices::LuisRuntime::
|
69
|
+
def error
|
70
|
+
Azure::CognitiveServices::LuisRuntime::V3_0::Models::Error
|
71
|
+
end
|
72
|
+
def prediction_request_options
|
73
|
+
Azure::CognitiveServices::LuisRuntime::V3_0::Models::PredictionRequestOptions
|
71
74
|
end
|
72
75
|
def sentiment
|
73
|
-
Azure::CognitiveServices::LuisRuntime::
|
76
|
+
Azure::CognitiveServices::LuisRuntime::V3_0::Models::Sentiment
|
74
77
|
end
|
75
78
|
def external_entity
|
76
|
-
Azure::CognitiveServices::LuisRuntime::
|
79
|
+
Azure::CognitiveServices::LuisRuntime::V3_0::Models::ExternalEntity
|
77
80
|
end
|
78
|
-
def
|
79
|
-
Azure::CognitiveServices::LuisRuntime::
|
81
|
+
def prediction_response
|
82
|
+
Azure::CognitiveServices::LuisRuntime::V3_0::Models::PredictionResponse
|
80
83
|
end
|
81
|
-
def
|
82
|
-
Azure::CognitiveServices::LuisRuntime::
|
84
|
+
def request_list
|
85
|
+
Azure::CognitiveServices::LuisRuntime::V3_0::Models::RequestList
|
83
86
|
end
|
84
|
-
def
|
85
|
-
Azure::CognitiveServices::LuisRuntime::
|
87
|
+
def intent
|
88
|
+
Azure::CognitiveServices::LuisRuntime::V3_0::Models::Intent
|
86
89
|
end
|
87
|
-
def
|
88
|
-
Azure::CognitiveServices::LuisRuntime::
|
90
|
+
def dynamic_list
|
91
|
+
Azure::CognitiveServices::LuisRuntime::V3_0::Models::DynamicList
|
89
92
|
end
|
90
93
|
def error_body
|
91
|
-
Azure::CognitiveServices::LuisRuntime::
|
94
|
+
Azure::CognitiveServices::LuisRuntime::V3_0::Models::ErrorBody
|
92
95
|
end
|
93
96
|
def prediction_request
|
94
|
-
Azure::CognitiveServices::LuisRuntime::
|
97
|
+
Azure::CognitiveServices::LuisRuntime::V3_0::Models::PredictionRequest
|
95
98
|
end
|
96
|
-
def
|
97
|
-
Azure::CognitiveServices::LuisRuntime::
|
98
|
-
end
|
99
|
-
def request_list
|
100
|
-
Azure::CognitiveServices::LuisRuntime::V3_0_preview::Models::RequestList
|
99
|
+
def prediction
|
100
|
+
Azure::CognitiveServices::LuisRuntime::V3_0::Models::Prediction
|
101
101
|
end
|
102
102
|
end
|
103
103
|
end
|
data/lib/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: azure_cognitiveservices_luisruntime
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.18.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Microsoft Corporation
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-11-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -72,14 +72,14 @@ dependencies:
|
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: 0.11.
|
75
|
+
version: 0.11.1
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: 0.11.
|
82
|
+
version: 0.11.1
|
83
83
|
description: Microsoft Azure Cognitive Services LUIS Runtime Client Library for Ruby
|
84
84
|
email: azrubyteam@microsoft.com
|
85
85
|
executables: []
|
@@ -100,21 +100,21 @@ files:
|
|
100
100
|
- lib/2.0/generated/azure_cognitiveservices_luisruntime/models/sentiment.rb
|
101
101
|
- lib/2.0/generated/azure_cognitiveservices_luisruntime/module_definition.rb
|
102
102
|
- lib/2.0/generated/azure_cognitiveservices_luisruntime/prediction.rb
|
103
|
-
- lib/3.0
|
104
|
-
- lib/3.0
|
105
|
-
- lib/3.0
|
106
|
-
- lib/3.0
|
107
|
-
- lib/3.0
|
108
|
-
- lib/3.0
|
109
|
-
- lib/3.0
|
110
|
-
- lib/3.0
|
111
|
-
- lib/3.0
|
112
|
-
- lib/3.0
|
113
|
-
- lib/3.0
|
114
|
-
- lib/3.0
|
115
|
-
- lib/3.0
|
116
|
-
- lib/3.0
|
117
|
-
- lib/3.0
|
103
|
+
- lib/3.0/generated/azure_cognitiveservices_luisruntime.rb
|
104
|
+
- lib/3.0/generated/azure_cognitiveservices_luisruntime/luis_runtime_client.rb
|
105
|
+
- lib/3.0/generated/azure_cognitiveservices_luisruntime/models/dynamic_list.rb
|
106
|
+
- lib/3.0/generated/azure_cognitiveservices_luisruntime/models/error.rb
|
107
|
+
- lib/3.0/generated/azure_cognitiveservices_luisruntime/models/error_body.rb
|
108
|
+
- lib/3.0/generated/azure_cognitiveservices_luisruntime/models/external_entity.rb
|
109
|
+
- lib/3.0/generated/azure_cognitiveservices_luisruntime/models/intent.rb
|
110
|
+
- lib/3.0/generated/azure_cognitiveservices_luisruntime/models/prediction.rb
|
111
|
+
- lib/3.0/generated/azure_cognitiveservices_luisruntime/models/prediction_request.rb
|
112
|
+
- lib/3.0/generated/azure_cognitiveservices_luisruntime/models/prediction_request_options.rb
|
113
|
+
- lib/3.0/generated/azure_cognitiveservices_luisruntime/models/prediction_response.rb
|
114
|
+
- lib/3.0/generated/azure_cognitiveservices_luisruntime/models/request_list.rb
|
115
|
+
- lib/3.0/generated/azure_cognitiveservices_luisruntime/models/sentiment.rb
|
116
|
+
- lib/3.0/generated/azure_cognitiveservices_luisruntime/module_definition.rb
|
117
|
+
- lib/3.0/generated/azure_cognitiveservices_luisruntime/prediction_operations.rb
|
118
118
|
- lib/azure_cognitiveservices_luisruntime.rb
|
119
119
|
- lib/module_definition.rb
|
120
120
|
- lib/profiles/latest/luisruntime_latest_profile_client.rb
|
@@ -146,7 +146,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
146
146
|
version: '0'
|
147
147
|
requirements: []
|
148
148
|
rubyforge_project:
|
149
|
-
rubygems_version: 2.7.
|
149
|
+
rubygems_version: 2.7.8
|
150
150
|
signing_key:
|
151
151
|
specification_version: 4
|
152
152
|
summary: Official Ruby client library to consume Microsoft Azure Cognitive Services
|