watson-assistant 1.0.3 → 1.0.4
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/README.md +5 -5
- data/lib/watson/assistant/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: be5337b37d85e9265f8ccf81d1ee2d26c6b7e0444a6b79a4706c282b9d0022c1
|
4
|
+
data.tar.gz: a851a5b445a381b1d979c6fafc9de80ba57541bdc5ae927308d10d29756e4f15
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6df070cb49ddbc6ede92b6547b9e318bbcbca6da3505ca38524bef2e77f13c0a14ad417cd1b15ba82d7362db9193f56563de2d6d043b29da796a8a9224dd3164
|
7
|
+
data.tar.gz: e034e3a6179bfe3ec28e8b37808112997f66f614a566f5078f4c4c8b08fbbbcd9007597fadd9b8131ef8e32608fe8faa88cec0a1c4847128dc9eafb8e56ca777
|
data/README.md
CHANGED
@@ -38,7 +38,7 @@ export STORAGE="hash" # Default
|
|
38
38
|
```ruby
|
39
39
|
require 'watson/assistant'
|
40
40
|
|
41
|
-
|
41
|
+
manager = Watson::Assistant::Manage.new(
|
42
42
|
username: ENV["USERNAME"],
|
43
43
|
password: ENV["PASSWORD"],
|
44
44
|
workspace_id: ENV["WORKSPACE_ID"],
|
@@ -47,18 +47,18 @@ manage = Watson::Assistant::ManageDialog.new(
|
|
47
47
|
)
|
48
48
|
|
49
49
|
# Get a greet message from a assistant service.
|
50
|
-
puts response1 =
|
50
|
+
puts response1 = manager.talk("user1", "")
|
51
51
|
#=> {user: user1, status_code: 200, output: [\"What would you like me to do?\"]}
|
52
52
|
|
53
53
|
# Get a response to a user's input.
|
54
|
-
puts response2 =
|
54
|
+
puts response2 = manager.talk("user1", "I would like you to ...")
|
55
55
|
#=> {user: user1, status_code: 200, output: [\"I help you ...\"]}
|
56
56
|
|
57
57
|
# Check if the user exists
|
58
|
-
puts
|
58
|
+
puts manager.has_key?("user1")
|
59
59
|
|
60
60
|
# Delete the user
|
61
|
-
puts
|
61
|
+
puts manager.delete("user1")
|
62
62
|
```
|
63
63
|
|
64
64
|
## Development
|