Skip to content

Commit 20e42e3

Browse files
committed
feat(AssistantV1): Add support for BulkClassify
1 parent b28567e commit 20e42e3

File tree

42 files changed

+1544
-162
lines changed

Some content is hidden

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

42 files changed

+1544
-162
lines changed

Scripts/Services/Assistant/V1/AssistantService.cs

Lines changed: 171 additions & 35 deletions
Large diffs are not rendered by default.
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
/**
2+
* (C) Copyright IBM Corp. 2020.
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 System.Collections.Generic;
19+
using Newtonsoft.Json;
20+
21+
namespace IBM.Watson.Assistant.V1.Model
22+
{
23+
/// <summary>
24+
/// BulkClassifyOutput.
25+
/// </summary>
26+
public class BulkClassifyOutput
27+
{
28+
/// <summary>
29+
/// The user input utterance to classify.
30+
/// </summary>
31+
[JsonProperty("input", NullValueHandling = NullValueHandling.Ignore)]
32+
public BulkClassifyUtterance Input { get; set; }
33+
/// <summary>
34+
/// An array of entities identified in the utterance.
35+
/// </summary>
36+
[JsonProperty("entities", NullValueHandling = NullValueHandling.Ignore)]
37+
public List<RuntimeEntity> Entities { get; set; }
38+
/// <summary>
39+
/// An array of intents recognized in the utterance.
40+
/// </summary>
41+
[JsonProperty("intents", NullValueHandling = NullValueHandling.Ignore)]
42+
public List<RuntimeIntent> Intents { get; set; }
43+
}
44+
}

Scripts/Services/Assistant/V1/Model/BulkClassifyOutput.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: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
/**
2+
* (C) Copyright IBM Corp. 2020.
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 System.Collections.Generic;
19+
using Newtonsoft.Json;
20+
21+
namespace IBM.Watson.Assistant.V1.Model
22+
{
23+
/// <summary>
24+
/// BulkClassifyResponse.
25+
/// </summary>
26+
public class BulkClassifyResponse
27+
{
28+
/// <summary>
29+
/// An array of objects that contain classification information for the submitted input utterances.
30+
/// </summary>
31+
[JsonProperty("output", NullValueHandling = NullValueHandling.Ignore)]
32+
public List<BulkClassifyOutput> Output { get; set; }
33+
}
34+
}

Scripts/Services/Assistant/V1/Model/BulkClassifyResponse.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: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
/**
2+
* (C) Copyright IBM Corp. 2020.
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 Newtonsoft.Json;
19+
20+
namespace IBM.Watson.Assistant.V1.Model
21+
{
22+
/// <summary>
23+
/// The user input utterance to classify.
24+
/// </summary>
25+
public class BulkClassifyUtterance
26+
{
27+
/// <summary>
28+
/// The text of the input utterance.
29+
/// </summary>
30+
[JsonProperty("text", NullValueHandling = NullValueHandling.Ignore)]
31+
public string Text { get; set; }
32+
}
33+
}

Scripts/Services/Assistant/V1/Model/BulkClassifyUtterance.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/V1/Model/DialogNode.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* (C) Copyright IBM Corp. 2018, 2020.
2+
* (C) Copyright IBM Corp. 2020.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -230,7 +230,7 @@ public class DigressOutSlotsValue
230230
/// The context for the dialog node.
231231
/// </summary>
232232
[JsonProperty("context", NullValueHandling = NullValueHandling.Ignore)]
233-
public Dictionary<string, object> Context { get; set; }
233+
public DialogNodeContext Context { get; set; }
234234
/// <summary>
235235
/// The metadata for the dialog node.
236236
/// </summary>
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
/**
2+
* (C) Copyright IBM Corp. 2020.
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 System.Collections.Generic;
19+
using IBM.Cloud.SDK.Model;
20+
using Newtonsoft.Json;
21+
22+
namespace IBM.Watson.Assistant.V1.Model
23+
{
24+
/// <summary>
25+
/// The context for the dialog node.
26+
/// </summary>
27+
public class DialogNodeContext: DynamicModel<object>
28+
{
29+
/// <summary>
30+
/// Context data intended for specific integrations.
31+
/// </summary>
32+
[JsonProperty("integrations", NullValueHandling = NullValueHandling.Ignore)]
33+
public Dictionary<string, Dictionary<string, object>> Integrations { get; set; }
34+
}
35+
}

Scripts/Services/Assistant/V1/Model/DialogNodeContext.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/V1/Model/DialogNodeOutput.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* (C) Copyright IBM Corp. 2018, 2020.
2+
* (C) Copyright IBM Corp. 2020.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -33,6 +33,12 @@ public class DialogNodeOutput: DynamicModel<object>
3333
[JsonProperty("generic", NullValueHandling = NullValueHandling.Ignore)]
3434
public List<DialogNodeOutputGeneric> Generic { get; set; }
3535
/// <summary>
36+
/// Output intended for specific integrations. For more information, see the
37+
/// [documentation](https://cloud.ibm.com/docs/assistant?topic=assistant-dialog-responses-json).
38+
/// </summary>
39+
[JsonProperty("integrations", NullValueHandling = NullValueHandling.Ignore)]
40+
public Dictionary<string, Dictionary<string, object>> Integrations { get; set; }
41+
/// <summary>
3642
/// Options that modify how specified output is handled.
3743
/// </summary>
3844
[JsonProperty("modifiers", NullValueHandling = NullValueHandling.Ignore)]
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
/**
2+
* (C) Copyright IBM Corp. 2020.
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 System.Collections.Generic;
19+
using Newtonsoft.Json;
20+
21+
namespace IBM.Watson.Assistant.V1.Model
22+
{
23+
/// <summary>
24+
/// Routing or other contextual information to be used by target service desk systems.
25+
/// </summary>
26+
public class DialogNodeOutputConnectToAgentTransferInfo
27+
{
28+
/// <summary>
29+
/// Gets or Sets Target
30+
/// </summary>
31+
[JsonProperty("target", NullValueHandling = NullValueHandling.Ignore)]
32+
public Dictionary<string, Dictionary<string, object>> Target { get; set; }
33+
}
34+
}

Scripts/Services/Assistant/V1/Model/DialogNodeOutputConnectToAgentTransferInfo.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.

0 commit comments

Comments
 (0)