ibm-watson-ruby 0.6.1 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ibm_watson/base_service.rb +1 -3
- data/lib/ibm_watson/conversation.rb +1 -0
- data/lib/ibm_watson/conversation/create_example_response.rb +9 -0
- data/lib/ibm_watson/conversation/service.rb +10 -0
- data/lib/ibm_watson/version.rb +1 -1
- data/spec/ibm_watson/conversation/service_spec.rb +8 -0
- data/spec/vcr_cassettes/ibm_watson/conversation/service/ibm_watson_conversation_service_create_example_.yml +255 -0
- metadata +6 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4ad6ca10f77eed8a2386f95b7ac76c1be0c0c1fc
|
4
|
+
data.tar.gz: 6e1dade8c85bd7aaff082706b26e93d3530f93a3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 42686ba010e5d89b984f00038c08c0cb748ace6256ce543d55327320ccd044493a8676407f181fffc8007f5cdb2b5a3a7c32d676c493a92da1166ac66f03b3d7
|
7
|
+
data.tar.gz: 511df1c6c12f0a8bdf39868a602dde5e813caabd30df15e5ac58f4d3caa233c6d31813a746384c91237181f9dc5dd46dd8a672e9ccf5e80b63e90f963b92d8ea
|
@@ -31,7 +31,7 @@ module IBMWatson
|
|
31
31
|
attr_reader :username, :password, :timeouts
|
32
32
|
|
33
33
|
def default_timeouts
|
34
|
-
TimeoutConfig.new(connect:
|
34
|
+
TimeoutConfig.new(connect: 5, read: 5)
|
35
35
|
end
|
36
36
|
|
37
37
|
def connection
|
@@ -112,8 +112,6 @@ module IBMWatson
|
|
112
112
|
|
113
113
|
def handle_timeout
|
114
114
|
yield
|
115
|
-
rescue Net::OpenTimeout => error
|
116
|
-
handle_timeout_error(error)
|
117
115
|
rescue Faraday::Error::TimeoutError => error
|
118
116
|
handle_timeout_error(error)
|
119
117
|
end
|
@@ -52,6 +52,16 @@ module IBMWatson
|
|
52
52
|
end
|
53
53
|
end
|
54
54
|
|
55
|
+
def create_example(workspace_id:, intent:, example:)
|
56
|
+
handle_timeout do
|
57
|
+
params = {
|
58
|
+
text: example
|
59
|
+
}
|
60
|
+
result = post "workspaces/#{workspace_id}/intents/#{intent}/examples?version=#{QUERY_VERSION}", params
|
61
|
+
IBMWatson::Conversation::CreateExampleResponse.new(result)
|
62
|
+
end
|
63
|
+
end
|
64
|
+
|
55
65
|
private
|
56
66
|
|
57
67
|
def upload_workspace(url, workspace_data)
|
data/lib/ibm_watson/version.rb
CHANGED
@@ -94,4 +94,12 @@ describe IBMWatson::Conversation::Service, record: :once do
|
|
94
94
|
subject.delete_workspace(workspace_id: delete_workspace_id)
|
95
95
|
end
|
96
96
|
end
|
97
|
+
|
98
|
+
describe "#create_example" do
|
99
|
+
let(:intent) { "anything_else" }
|
100
|
+
let(:example) { "You want Something else?" }
|
101
|
+
example do
|
102
|
+
subject.create_example(workspace_id: workspace_id, intent: intent, example: example)
|
103
|
+
end
|
104
|
+
end
|
97
105
|
end
|
@@ -0,0 +1,255 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://gateway.watsonplatform.net/conversation/api/v1/workspaces/41804601-d5b6-4695-b740-5c9306777bc9/intents/anything_else/examples
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"text":"What else?"}'
|
9
|
+
headers:
|
10
|
+
Content-Type:
|
11
|
+
- application/json; charset=UTF-8
|
12
|
+
Accept:
|
13
|
+
- application/json
|
14
|
+
response:
|
15
|
+
status:
|
16
|
+
code: 400
|
17
|
+
message: Bad Request
|
18
|
+
headers:
|
19
|
+
X-Backside-Transport:
|
20
|
+
- FAIL FAIL
|
21
|
+
Connection:
|
22
|
+
- close
|
23
|
+
Transfer-Encoding:
|
24
|
+
- chunked
|
25
|
+
X-Content-Type-Options:
|
26
|
+
- nosniff
|
27
|
+
X-Download-Options:
|
28
|
+
- noopen
|
29
|
+
X-Ratelimit-Reset:
|
30
|
+
- '1511813278'
|
31
|
+
Date:
|
32
|
+
- Mon, 27 Nov 2017 19:37:57 GMT
|
33
|
+
X-Frame-Options:
|
34
|
+
- SAMEORIGIN
|
35
|
+
Strict-Transport-Security:
|
36
|
+
- max-age=31536000;
|
37
|
+
X-Ratelimit-Remaining:
|
38
|
+
- '999'
|
39
|
+
X-Dns-Prefetch-Control:
|
40
|
+
- 'off'
|
41
|
+
Vary:
|
42
|
+
- Accept-Encoding
|
43
|
+
X-Ratelimit-Limit:
|
44
|
+
- '1000'
|
45
|
+
X-Xss-Protection:
|
46
|
+
- 1; mode=block
|
47
|
+
Content-Type:
|
48
|
+
- application/json;charset=utf-8
|
49
|
+
Server:
|
50
|
+
- "-"
|
51
|
+
Set-Cookie:
|
52
|
+
- Watson-DPAT=7gmKdltpPSGyTFqXGSB7YbriTLBSwbeQhptyWKWb8%2FBOCr%2FdTO%2FmSSPxrH7yQb4Z45lURpE7Yxp8PXbFuKd3NYp17VflSTPqV9bwNfai3PTozgGqHrDeT9%2F13On%2Bs4%2B8eG7GX4G7VDohvykUhrGR9%2FJAaNJaFfRNm6hMcoHdfqOgOCoMhHPqN0qHJLp35pgMpOfJqlfp%2FS3McaVtJf7gUCpRIXp%2FFfnHzx0M2TEHGT0AGfHPfbEiRhZHL%2F220PyCZekRLeLQxyyinmdAsaA5jYMhlFyV87UVrZwk%2F65AAKBsEm%2FtCavwzj4Vq5Ral5uKWZVK5qhZsUDCTAE9gAfUE3GVQ3lSUji6v5tPp27KT4%2BCRs7WpBCYqyaHaozhErODI5m5piAMnatC89PqPstsY1ojXpP4kAICR1hCJbrWCGamc1La92%2BdRIYPZyr321uzzaffAOYUYqY7P%2BKHqMVOQySPG%2FwEAeCEgTXqs%2BQtE49FH%2BFWgTfYwgVxBADV8%2BCWsZEbkSbJon%2BhK4ZKmWM9YMRjmOgQGbZfPr5FexbgOsOkj1R%2B504Bhtxf3seraAh6VRt%2BEHBnez8NBKO%2ByY2DD7mqYy6iXMGwzbYIKKBJEXfyRLBX%2FNNz0bSdaYVDUOjdRg1%2B4SEc%2BqyKx4yiyN7eqiFofEH2%2BNA52bvJg9pQ1b1Sz7Jg46eAQDaeCAAq%2FDqu9rgiuNOpAhMZN9qDWF2mqVuBOvOdbT%2FjyVVCfQTYO45D1ffPXxLOY7rOypqLi6zRN03%2FZdpPDYYwghFITiKZmqe%2B5HeMP29CLw5FWvMTjqQ2LAv%2FGoXu8HLLSHT59Yvu1VrZKmXLHq1qopU4erJ%2FoWiJoR84mrFe4PVwKB4dGGT5gSRZrJ4DX2HNGstmA3ZAvZAgyICX99nkRjrueQPfHvj%2Fvxb6NhQ6gENXReqpenfcy7UZhFZwB0Yc3eCeKQgar1TjieTxIJibriZvBWuJGNDHYqrMDfU1TyB%2BLTdD2hjhApAs2iBKhaBQ15C4wK2jeBDxrDarszo%3D;
|
53
|
+
path=/conversation/api; secure; HttpOnly
|
54
|
+
X-Global-Transaction-Id:
|
55
|
+
- b1d426355a1c699506857378
|
56
|
+
X-Dp-Watson-Tran-Id:
|
57
|
+
- gateway-dp01-109409144
|
58
|
+
body:
|
59
|
+
encoding: ASCII-8BIT
|
60
|
+
string: '{"error":{"error":"Missing ''version'' query parameter"},"code":400}'
|
61
|
+
http_version:
|
62
|
+
recorded_at: Mon, 27 Nov 2017 19:37:57 GMT
|
63
|
+
- request:
|
64
|
+
method: post
|
65
|
+
uri: https://gateway.watsonplatform.net/conversation/api/v1/workspaces/41804601-d5b6-4695-b740-5c9306777bc9/intents/anything_else/examples?version=2017-02-03
|
66
|
+
body:
|
67
|
+
encoding: UTF-8
|
68
|
+
string: '{"text":"What else?"}'
|
69
|
+
headers:
|
70
|
+
Content-Type:
|
71
|
+
- application/json; charset=UTF-8
|
72
|
+
Accept:
|
73
|
+
- application/json
|
74
|
+
response:
|
75
|
+
status:
|
76
|
+
code: 201
|
77
|
+
message: Created
|
78
|
+
headers:
|
79
|
+
X-Backside-Transport:
|
80
|
+
- OK OK
|
81
|
+
Connection:
|
82
|
+
- close
|
83
|
+
Transfer-Encoding:
|
84
|
+
- chunked
|
85
|
+
X-Content-Type-Options:
|
86
|
+
- nosniff
|
87
|
+
X-Download-Options:
|
88
|
+
- noopen
|
89
|
+
X-Ratelimit-Reset:
|
90
|
+
- '1511813278'
|
91
|
+
Date:
|
92
|
+
- Mon, 27 Nov 2017 19:38:47 GMT
|
93
|
+
X-Frame-Options:
|
94
|
+
- SAMEORIGIN
|
95
|
+
Strict-Transport-Security:
|
96
|
+
- max-age=86400
|
97
|
+
X-Ratelimit-Remaining:
|
98
|
+
- '998'
|
99
|
+
Etag:
|
100
|
+
- '1511811527027'
|
101
|
+
X-Dns-Prefetch-Control:
|
102
|
+
- 'off'
|
103
|
+
Vary:
|
104
|
+
- Accept-Encoding
|
105
|
+
X-Ratelimit-Limit:
|
106
|
+
- '1000'
|
107
|
+
X-Xss-Protection:
|
108
|
+
- 1; mode=block
|
109
|
+
Location:
|
110
|
+
- "/v1/workspaces/41804601-d5b6-4695-b740-5c9306777bc9/intents/anything_else/examples/What%20else%3F"
|
111
|
+
Content-Type:
|
112
|
+
- application/json;charset=utf-8
|
113
|
+
Server:
|
114
|
+
- "-"
|
115
|
+
Set-Cookie:
|
116
|
+
- Watson-DPAT=%2BSlMXBNyP8yTKiCy9Cxr8T6lrnqC1icWM1CmB4FQGStYNIAvCE2I%2BPs3wVOKxz5mCtpaxj4u8rJL02s730Gf8m2MzQgtltRBwg3mYkPF3%2FPWrRb19PkuYLWbSFVGhH%2FEqeXECFxCq97G2HowaSNVr%2BqcFdDhVEOaGljkmHn8ZXm7yz1amfxVw9Y0492NPyUm5wwJoPHmrL5Q3V2Ab4ih7INQft5H%2BeylaJBZX7wn1%2B%2FCQx89jNikICb2NJPqfxn1mOAAUbtGmPR64F6Ga%2Blvq0zeFHIq9HgbeaTV70EOULbD%2FOkEacxZrjxVc6jdwLdwFxTa6BWElUxJG%2FbM8YZ%2B5XR39XoDwtOPMQA8V3jmiR5y47x8gMSv9n6LpPNNSDH1wcvFnLsIf5FQfw2EpGprRoiUJmSoo9J%2F9RDs54jZZgOy9gQgmT56RvXVJZ0p5vxHNgh3SwU8uEDLBSEYMH3h3kX6ivqfI9XD8yJu%2BeN%2BpGNwYRmVKaD1dyZ527HDtTC4wHJD8REgOyx2mGumgqixcz5%2F7idzKcbqHkgPCUtfMvqbOpGxYV7o2ZnDdrZs2M2wtBB7hAIb0atMJtvdSFci5XfAUmfpo24fD5OC5Ei415YRO3PSB8rKwcBMjOA%2FT75ABTUdmQ32q3nzOnbrGvW9i0WwrMf5Z7TlybGhs0wCDEtb2s%2BO0y6yYNdSKAz9lvNJjzPHZTr9QAXDBPn7D89b%2F28W2%2F%2Bcgltrn8DvzzJ59Y%2FFPs4jISS1peqC8bD5NOWE4cJ5%2FPTVZs%2BPDeKogyT%2FvRQ2Duan%2Fv47lWhQDz4CevSM9TDyMufp2TVyUuFswBHLcHYnhu54Z2XKN78BSU97uHeoXyVe6%2BZZcLB%2FrV5rKaVcu3108gXV3J9Q11cuuqI2slKV0nbAp6axFLVZSLyf03pHUc86umALiNmzPCFwpTz6wxdBPk1GhZBFtuKsOJHtieJdXX%2FlIkgJVVrgQhNh6jZf8PDwmPAlhWbTa5WkbovhDF%2BEzb1NHWKZJ%2BpCSGPl%2BS0IqLuihtOSi8VCYv%2FNRBKA5%2Bao6igE;
|
117
|
+
path=/conversation/api; secure; HttpOnly
|
118
|
+
X-Global-Transaction-Id:
|
119
|
+
- b1d426355a1c69c60689bedc
|
120
|
+
X-Dp-Watson-Tran-Id:
|
121
|
+
- gateway-dp01-109690588
|
122
|
+
body:
|
123
|
+
encoding: ASCII-8BIT
|
124
|
+
string: '{"text":"What else?","created":"2017-11-27T19:38:47.027Z","updated":"2017-11-27T19:38:47.027Z"}'
|
125
|
+
http_version:
|
126
|
+
recorded_at: Mon, 27 Nov 2017 19:38:47 GMT
|
127
|
+
- request:
|
128
|
+
method: post
|
129
|
+
uri: https://gateway.watsonplatform.net/conversation/api/v1/workspaces/41804601-d5b6-4695-b740-5c9306777bc9/intents/anything_else/examples?version=2017-02-03
|
130
|
+
body:
|
131
|
+
encoding: UTF-8
|
132
|
+
string: '{"text":"Something else?"}'
|
133
|
+
headers:
|
134
|
+
Content-Type:
|
135
|
+
- application/json; charset=UTF-8
|
136
|
+
Accept:
|
137
|
+
- application/json
|
138
|
+
response:
|
139
|
+
status:
|
140
|
+
code: 201
|
141
|
+
message: Created
|
142
|
+
headers:
|
143
|
+
X-Backside-Transport:
|
144
|
+
- OK OK
|
145
|
+
Connection:
|
146
|
+
- close
|
147
|
+
Transfer-Encoding:
|
148
|
+
- chunked
|
149
|
+
X-Content-Type-Options:
|
150
|
+
- nosniff
|
151
|
+
X-Download-Options:
|
152
|
+
- noopen
|
153
|
+
X-Ratelimit-Reset:
|
154
|
+
- '1511813278'
|
155
|
+
Date:
|
156
|
+
- Mon, 27 Nov 2017 19:40:56 GMT
|
157
|
+
X-Frame-Options:
|
158
|
+
- SAMEORIGIN
|
159
|
+
Strict-Transport-Security:
|
160
|
+
- max-age=86400
|
161
|
+
X-Ratelimit-Remaining:
|
162
|
+
- '996'
|
163
|
+
Etag:
|
164
|
+
- '1511811656383'
|
165
|
+
X-Dns-Prefetch-Control:
|
166
|
+
- 'off'
|
167
|
+
Vary:
|
168
|
+
- Accept-Encoding
|
169
|
+
X-Ratelimit-Limit:
|
170
|
+
- '1000'
|
171
|
+
X-Xss-Protection:
|
172
|
+
- 1; mode=block
|
173
|
+
Location:
|
174
|
+
- "/v1/workspaces/41804601-d5b6-4695-b740-5c9306777bc9/intents/anything_else/examples/Something%20else%3F"
|
175
|
+
Content-Type:
|
176
|
+
- application/json;charset=utf-8
|
177
|
+
Server:
|
178
|
+
- "-"
|
179
|
+
Set-Cookie:
|
180
|
+
- Watson-DPAT=f18z4312%2FuvVIfaMZ0c%2FJXCs9maaiQg6K9y%2BhsEDc0l0GuiFefEkdKhYdUPPYNbXlsjwQNgVsxVE6f1asb18ap3beOgcHsKgoqJ9fiXST9C2rJg9WQtvvDoBDwBOxEEXzBItoCfZsP2FyfuuAhPhkzuOCsIh9nNM3cM0i8SXKYGa11DlWjQ363N4ytQ%2Fo%2B56N5nVgQ%2Bi0KyZXAgqUNsmYu3nNudIGCa489DhRDPpkWy7y4dJsIaapk2MoPE1g0gbB1r44PwIiBlVhNtZO75EL4OzAVvMNwua0%2BZNzcs03Z8D7Qla%2BsH9QIWyxVi2HEA2RwNkHkD40z85pj6NezItyG%2BLJGZ83daQ%2F91bC5T5CuBdc%2BoDsAVNk0DfLDw11MoHOZ%2FrnRIiPezJI6cWBDmBBiUIyKhfQz7DbKuNNrp945jBL6F6g%2FljcvyeuOytKNCqFledEE9UVcwHvkIMA%2B37fH8xIgbP%2B8YFh4mQdEAtB2AKpwzSkvsi5Qr0vXTVgKzlFkdPg79iWvXl%2F%2Fvr5xF7FA0AJ6sp1CdfhFFGfgW16Nq1%2BqhjCAygeThPZ%2Bw5FOixamCl%2BxVoIQhscfGL5xHk9UGxiKwVhIAJ29Cgv80LCAZyhZYwAEk2Hb0bFA8wLA3ug3vkVwG4X%2F%2BfoSYeb%2F3KoR88FBBDAh2FZNqdIl7p9j5tSqAn%2FECDavt27qL%2BMYmtcnFoYZuORXjS4Y48HVXeWgRxiQoPhnhCbp9eO3jQUpFNSET%2FBxF2tFhYzJ1HOlpv1L3G1JPRiaSvcphnGPVAya%2ByRDGhpJl8iG5lzttwF8zELiyhh14o%2FwGQaKTUWPO%2BR7JVuNb5cZjClR18lrlJIDmnwzLKREfUtfzQokn52KpQeGMyrmazPR%2B69kOnaXchG%2BwhkmGK%2Bm7EoLkSTi413wO50Kofkbr1IF93tNF8J38cSUk0JDhPrE%2Bk46d4rqM5mMd1stAY1gyqzX7mObjX7VXw9Kds7AA4CUprnO0nhbi2MeR7PmC9MVBYQyNvhCCIdmEuxdhRmcBdb23WuXWGfz8xqhlvefEu;
|
181
|
+
path=/conversation/api; secure; HttpOnly
|
182
|
+
X-Global-Transaction-Id:
|
183
|
+
- b1d426355a1c6a48068b7f8c
|
184
|
+
X-Dp-Watson-Tran-Id:
|
185
|
+
- gateway-dp01-109805452
|
186
|
+
body:
|
187
|
+
encoding: ASCII-8BIT
|
188
|
+
string: '{"text":"Something else?","created":"2017-11-27T19:40:56.383Z","updated":"2017-11-27T19:40:56.383Z"}'
|
189
|
+
http_version:
|
190
|
+
recorded_at: Mon, 27 Nov 2017 19:40:56 GMT
|
191
|
+
- request:
|
192
|
+
method: post
|
193
|
+
uri: https://gateway.watsonplatform.net/conversation/api/v1/workspaces/41804601-d5b6-4695-b740-5c9306777bc9/intents/anything_else/examples?version=2017-02-03
|
194
|
+
body:
|
195
|
+
encoding: UTF-8
|
196
|
+
string: '{"text":"You want Something else?"}'
|
197
|
+
headers:
|
198
|
+
Content-Type:
|
199
|
+
- application/json; charset=UTF-8
|
200
|
+
Accept:
|
201
|
+
- application/json
|
202
|
+
response:
|
203
|
+
status:
|
204
|
+
code: 201
|
205
|
+
message: Created
|
206
|
+
headers:
|
207
|
+
X-Backside-Transport:
|
208
|
+
- OK OK
|
209
|
+
Connection:
|
210
|
+
- close
|
211
|
+
Transfer-Encoding:
|
212
|
+
- chunked
|
213
|
+
X-Content-Type-Options:
|
214
|
+
- nosniff
|
215
|
+
X-Download-Options:
|
216
|
+
- noopen
|
217
|
+
X-Ratelimit-Reset:
|
218
|
+
- '1511813278'
|
219
|
+
Date:
|
220
|
+
- Mon, 27 Nov 2017 19:41:10 GMT
|
221
|
+
X-Frame-Options:
|
222
|
+
- SAMEORIGIN
|
223
|
+
Strict-Transport-Security:
|
224
|
+
- max-age=86400
|
225
|
+
X-Ratelimit-Remaining:
|
226
|
+
- '995'
|
227
|
+
Etag:
|
228
|
+
- '1511811670927'
|
229
|
+
X-Dns-Prefetch-Control:
|
230
|
+
- 'off'
|
231
|
+
Vary:
|
232
|
+
- Accept-Encoding
|
233
|
+
X-Ratelimit-Limit:
|
234
|
+
- '1000'
|
235
|
+
X-Xss-Protection:
|
236
|
+
- 1; mode=block
|
237
|
+
Location:
|
238
|
+
- "/v1/workspaces/41804601-d5b6-4695-b740-5c9306777bc9/intents/anything_else/examples/You%20want%20Something%20else%3F"
|
239
|
+
Content-Type:
|
240
|
+
- application/json;charset=utf-8
|
241
|
+
Server:
|
242
|
+
- "-"
|
243
|
+
Set-Cookie:
|
244
|
+
- Watson-DPAT=64GrMTzdV%2FJZf1Q5qvqTW8HPRp%2F1nB5cFnTi2gh86ndAkgPZAneICQORIDsxo9ddfUmwaPYscboDktV%2BqDK7VI8pH4cSh4iUNCRO6GEiKAbq0dZLU8Gln1Tuz6O58vgKXlBGYxvYaH7qZ3dXqtwxF3%2FIeCo7wjdgdFHHLe0kT30nMYbMiTPpK8Sjlhssct5dYDkUZaKoXpmAAxwrcrvFJiVV6J4vGAAwdgVKnXIAfHrcoBNrC0mJ25JX8TXNcADnJkLa1ReVGwqjBSnqtHzrprhhBnkkhOwnjLMT6yulY4e0GvGhUqX1oBGfuEtPb1vlL6IYbi8ZVx7adMu%2BQm0N6Llb1kMF0GMwOkYliNDAU00q5pDkObn47oWokoQuVk5ELukxrE0mFgT6ZHAKQTiPoK18Fl0A83%2Be6cfZI9HUT0fEZP5QeVXOEbBFW2ZglhSa49R0ueOLCu99MvPS9ttwoH5VCqyQ34QtmQvKwogSe9HrwsE54%2F9OoIpGeIWwU1QasxX5hJrdiuFf9j9rPZqR4f6j7OoQvwC%2FfFlXRgNfH1bSSYJO%2BKg14X8TnI8BaZ0xLGMO89ub9Wdtwt2EuvOZG0BrpNGvWe06HmUyGqyXtaCyj2JXPQgOwhg5t3e5tTFCRt5d36yKMqj1B0dot00vCN1k%2BKuS9mk4G5Mf69DIhA%2BYWdmfEzEQY6zcFZheaMLLgNpKktq7yFmBW3UpYByrnDlPcJ%2FmyfdbJL2iD5MCWtPKcIxGEoF0A61qDKX63c77%2B5K9jF3wgRks8yUwCDuL%2B9yZWVgn8SEGeIzfvW9EFXgZcW1jaKtPZmSEL6EFxBHFid5OfDka5lirP98eLDXmFZkG3HJ5XyC6s4hA6Dl8VIasfEy30S8zgLBhFpE7f1y1HwfkPf5JdNF4cmOX3VUiMWeN6CznpgHzUIehGI694t0Zph0Td%2BxfhGb6OIBHOEQrNKS59rLAhMjsgH17xeqE6gELXldqkl14wNq2l5If1Hgjznxx%2B0Mm71piysfIobw%2Bo3mknNMeSiFeT8J%2F2Cx3aMZhgbukjO9s;
|
245
|
+
path=/conversation/api; secure; HttpOnly
|
246
|
+
X-Global-Transaction-Id:
|
247
|
+
- b1d426355a1c6a56068b9bac
|
248
|
+
X-Dp-Watson-Tran-Id:
|
249
|
+
- gateway-dp01-109812652
|
250
|
+
body:
|
251
|
+
encoding: ASCII-8BIT
|
252
|
+
string: '{"text":"You want Something else?","created":"2017-11-27T19:41:10.927Z","updated":"2017-11-27T19:41:10.927Z"}'
|
253
|
+
http_version:
|
254
|
+
recorded_at: Mon, 27 Nov 2017 19:41:10 GMT
|
255
|
+
recorded_with: VCR 3.0.3
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ibm-watson-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bram Whillock
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2017-
|
12
|
+
date: 2017-11-27 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: faraday
|
@@ -209,6 +209,7 @@ files:
|
|
209
209
|
- lib/ibm_watson/base_model.rb
|
210
210
|
- lib/ibm_watson/base_service.rb
|
211
211
|
- lib/ibm_watson/conversation.rb
|
212
|
+
- lib/ibm_watson/conversation/create_example_response.rb
|
212
213
|
- lib/ibm_watson/conversation/dialog_node.rb
|
213
214
|
- lib/ibm_watson/conversation/intent.rb
|
214
215
|
- lib/ibm_watson/conversation/message_response.rb
|
@@ -227,6 +228,7 @@ files:
|
|
227
228
|
- spec/ibm_watson/conversation/service_spec.rb
|
228
229
|
- spec/ibm_watson/nlu/service_spec.rb
|
229
230
|
- spec/spec_helper.rb
|
231
|
+
- spec/vcr_cassettes/ibm_watson/conversation/service/ibm_watson_conversation_service_create_example_.yml
|
230
232
|
- spec/vcr_cassettes/ibm_watson/conversation/service/ibm_watson_conversation_service_create_workspace_.yml
|
231
233
|
- spec/vcr_cassettes/ibm_watson/conversation/service/ibm_watson_conversation_service_delete_workspace_.yml
|
232
234
|
- spec/vcr_cassettes/ibm_watson/conversation/service/ibm_watson_conversation_service_list_workspaces_.yml
|
@@ -254,7 +256,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
254
256
|
version: '0'
|
255
257
|
requirements: []
|
256
258
|
rubyforge_project:
|
257
|
-
rubygems_version: 2.
|
259
|
+
rubygems_version: 2.6.11
|
258
260
|
signing_key:
|
259
261
|
specification_version: 4
|
260
262
|
summary: IBM Watson services in ruby
|
@@ -263,6 +265,7 @@ test_files:
|
|
263
265
|
- spec/ibm_watson/conversation/service_spec.rb
|
264
266
|
- spec/ibm_watson/nlu/service_spec.rb
|
265
267
|
- spec/spec_helper.rb
|
268
|
+
- spec/vcr_cassettes/ibm_watson/conversation/service/ibm_watson_conversation_service_create_example_.yml
|
266
269
|
- spec/vcr_cassettes/ibm_watson/conversation/service/ibm_watson_conversation_service_create_workspace_.yml
|
267
270
|
- spec/vcr_cassettes/ibm_watson/conversation/service/ibm_watson_conversation_service_delete_workspace_.yml
|
268
271
|
- spec/vcr_cassettes/ibm_watson/conversation/service/ibm_watson_conversation_service_list_workspaces_.yml
|