Skip to content

Commit 75b97d2

Browse files
committed
feat(Assistant V2): Generated Assistant V2 and applied manual changes
1 parent 4d22427 commit 75b97d2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+2015
-0
lines changed

Scripts/Services/Assistant/v2.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Scripts/Services/Assistant/v2/Assistant.cs

Lines changed: 423 additions & 0 deletions
Large diffs are not rendered by default.

Scripts/Services/Assistant/v2/Assistant.cs.meta

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Scripts/Services/Assistant/v2/Models.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
/**
2+
* Copyright 2018 IBM Corp. All Rights Reserved.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*
16+
*/
17+
18+
using FullSerializer;
19+
using System.Collections.Generic;
20+
21+
namespace IBM.WatsonDeveloperCloud.Assistant.v2
22+
{
23+
/// <summary>
24+
/// CaptureGroup
25+
/// </summary>
26+
[fsObject]
27+
public class CaptureGroup
28+
{
29+
/// <summary>
30+
/// A recognized capture group for the entity.
31+
/// </summary>
32+
[fsProperty("group")]
33+
public string Group { get; set; }
34+
/// <summary>
35+
/// Zero-based character offsets that indicate where the entity value begins and ends in the input text.
36+
/// </summary>
37+
[fsProperty("location")]
38+
public List<long> Location { get; set; }
39+
}
40+
41+
}

Scripts/Services/Assistant/v2/Models/CaptureGroup.cs.meta

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
/**
2+
* Copyright 2018 IBM Corp. All Rights Reserved.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*
16+
*/
17+
18+
using FullSerializer;
19+
using System.Runtime.Serialization;
20+
21+
namespace IBM.WatsonDeveloperCloud.Assistant.v2
22+
{
23+
/// <summary>
24+
/// Dialog log message details.
25+
/// </summary>
26+
[fsObject]
27+
public class DialogLogMessage
28+
{
29+
/// <summary>
30+
/// The severity of the log message.
31+
/// </summary>
32+
public enum LevelEnum
33+
{
34+
/// <summary>
35+
/// Enum info for info
36+
/// </summary>
37+
[EnumMember(Value = "info")]
38+
info,
39+
/// <summary>
40+
/// Enum error for error
41+
/// </summary>
42+
[EnumMember(Value = "error")]
43+
error,
44+
/// <summary>
45+
/// Enum warn for warn
46+
/// </summary>
47+
[EnumMember(Value = "warn")]
48+
warn
49+
}
50+
51+
/// <summary>
52+
/// The severity of the log message.
53+
/// </summary>
54+
[fsProperty("level")]
55+
public LevelEnum? Level { get; set; }
56+
/// <summary>
57+
/// The text of the log message.
58+
/// </summary>
59+
[fsProperty("message")]
60+
public string Message { get; set; }
61+
}
62+
63+
}

Scripts/Services/Assistant/v2/Models/DialogLogMessage.cs.meta

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
/**
2+
* Copyright 2018 IBM Corp. All Rights Reserved.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*
16+
*/
17+
18+
using FullSerializer;
19+
using System.Runtime.Serialization;
20+
21+
namespace IBM.WatsonDeveloperCloud.Assistant.v2
22+
{
23+
/// <summary>
24+
/// DialogNodeAction
25+
/// </summary>
26+
[fsObject]
27+
public class DialogNodeAction
28+
{
29+
/// <summary>
30+
/// The type of action to invoke.
31+
/// </summary>
32+
public enum ActionTypeEnum
33+
{
34+
/// <summary>
35+
/// Enum client for client
36+
/// </summary>
37+
[EnumMember(Value = "client")]
38+
client,
39+
/// <summary>
40+
/// Enum server for server
41+
/// </summary>
42+
[EnumMember(Value = "server")]
43+
server
44+
}
45+
46+
/// <summary>
47+
/// The type of action to invoke.
48+
/// </summary>
49+
[fsProperty("type")]
50+
public ActionTypeEnum? ActionType { get; set; }
51+
/// <summary>
52+
/// The name of the action.
53+
/// </summary>
54+
[fsProperty("name")]
55+
public string Name { get; set; }
56+
/// <summary>
57+
/// A map of key/value pairs to be provided to the action.
58+
/// </summary>
59+
[fsProperty("parameters")]
60+
public object Parameters { get; set; }
61+
/// <summary>
62+
/// The location in the dialog context where the result of the action is stored.
63+
/// </summary>
64+
[fsProperty("result_variable")]
65+
public string ResultVariable { get; set; }
66+
/// <summary>
67+
/// The name of the context variable that the client application will use to pass in credentials for the action.
68+
/// </summary>
69+
[fsProperty("credentials")]
70+
public string Credentials { get; set; }
71+
}
72+
73+
}

Scripts/Services/Assistant/v2/Models/DialogNodeAction.cs.meta

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
/**
2+
* Copyright 2018 IBM Corp. All Rights Reserved.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*
16+
*/
17+
18+
using FullSerializer;
19+
20+
namespace IBM.WatsonDeveloperCloud.Assistant.v2
21+
{
22+
/// <summary>
23+
/// DialogNodeOutputOptionsElement
24+
/// </summary>
25+
[fsObject]
26+
public class DialogNodeOutputOptionsElement
27+
{
28+
/// <summary>
29+
/// The user-facing label for the option.
30+
/// </summary>
31+
[fsProperty("label")]
32+
public string Label { get; set; }
33+
/// <summary>
34+
/// An object defining the message input to be sent to the assistant if the user selects the corresponding
35+
/// option.
36+
/// </summary>
37+
[fsProperty("value")]
38+
public DialogNodeOutputOptionsElementValue Value { get; set; }
39+
}
40+
41+
}

Scripts/Services/Assistant/v2/Models/DialogNodeOutputOptionsElement.cs.meta

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
/**
2+
* Copyright 2018 IBM Corp. All Rights Reserved.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*
16+
*/
17+
18+
using FullSerializer;
19+
20+
namespace IBM.WatsonDeveloperCloud.Assistant.v2
21+
{
22+
/// <summary>
23+
/// An object defining the message input to be sent to the assistant if the user selects the corresponding option.
24+
/// </summary>
25+
[fsObject]
26+
public class DialogNodeOutputOptionsElementValue
27+
{
28+
/// <summary>
29+
/// The user input.
30+
/// </summary>
31+
[fsProperty("input")]
32+
public MessageInput Input { get; set; }
33+
}
34+
35+
}

Scripts/Services/Assistant/v2/Models/DialogNodeOutputOptionsElementValue.cs.meta

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
/**
2+
* Copyright 2018 IBM Corp. All Rights Reserved.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*
16+
*/
17+
18+
using FullSerializer;
19+
20+
namespace IBM.WatsonDeveloperCloud.Assistant.v2
21+
{
22+
/// <summary>
23+
/// DialogNodesVisited
24+
/// </summary>
25+
[fsObject]
26+
public class DialogNodesVisited
27+
{
28+
/// <summary>
29+
/// A dialog node that was triggered during processing of the input message.
30+
/// </summary>
31+
[fsProperty("dialog_node")]
32+
public string DialogNode { get; set; }
33+
/// <summary>
34+
/// The title of the dialog node.
35+
/// </summary>
36+
[fsProperty("title")]
37+
public string Title { get; set; }
38+
/// <summary>
39+
/// The conditions that trigger the dialog node.
40+
/// </summary>
41+
[fsProperty("conditions")]
42+
public string Conditions { get; set; }
43+
}
44+
45+
}

0 commit comments

Comments
 (0)