You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Examples/ServiceExamples/Scripts/ExampleConversation.cs
+52-10Lines changed: 52 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -27,19 +27,33 @@
27
27
publicclassExampleConversation:MonoBehaviour
28
28
{
29
29
#region PLEASE SET THESE VARIABLES IN THE INSPECTOR
30
+
[Space(10)]
31
+
[Tooltip("The service URL (optional). This defaults to \"https://gateway.watsonplatform.net/conversation/api\"")]
32
+
[SerializeField]
33
+
privatestring_serviceUrl;
34
+
[Tooltip("The workspaceId to run the example.")]
35
+
[SerializeField]
36
+
privatestring_workspaceId;
37
+
[Tooltip("The version date with which you would like to use the service in the form YYYY-MM-DD.")]
38
+
[SerializeField]
39
+
privatestring_versionDate;
40
+
[Header("CF Authentication")]
41
+
[Tooltip("The authentication username.")]
30
42
[SerializeField]
31
43
privatestring_username;
44
+
[Tooltip("The authentication password.")]
32
45
[SerializeField]
33
46
privatestring_password;
47
+
[Header("IAM Authentication")]
48
+
[Tooltip("The IAM apikey.")]
34
49
[SerializeField]
35
-
privatestring_url;
50
+
privatestring_iamApikey;
51
+
[Tooltip("The IAM url used to authenticate the apikey (optional). This defaults to \"https://iam.bluemix.net/identity/token\".")]
36
52
[SerializeField]
37
-
privatestring_workspaceId;
38
-
[SerializeField]
39
-
privatestring_versionDate;
53
+
privatestring_iamUrl;
40
54
#endregion
41
55
42
-
privateConversation_conversation;
56
+
privateConversation_service;
43
57
44
58
privatestring[]_questionArray={"can you turn up the AC","can you turn on the wipers","can you turn off the wipers","can you turn down the ac","can you unlock the door"};
45
59
privatefsSerializer_serializer=newfsSerializer();
@@ -50,19 +64,47 @@ public class ExampleConversation : MonoBehaviour
0 commit comments