-
Notifications
You must be signed in to change notification settings - Fork 117
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(assistant-v1): update models and add new methods
NEW methods: createWorkspaceAsync, updateWorkspaceAsync, exportWorkspaceAsync
- Loading branch information
Showing
9 changed files
with
619 additions
and
17 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/** | ||
* (C) Copyright IBM Corp. 2022. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
* | ||
*/ | ||
|
||
using Newtonsoft.Json; | ||
|
||
namespace IBM.Watson.Assistant.v1.Model | ||
{ | ||
/// <summary> | ||
/// An object describing an error that occurred during processing of an asynchronous operation. | ||
/// </summary> | ||
public class StatusError | ||
{ | ||
/// <summary> | ||
/// The text of the error message. | ||
/// </summary> | ||
[JsonProperty("message", NullValueHandling = NullValueHandling.Ignore)] | ||
public string Message { get; set; } | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
/** | ||
* (C) Copyright IBM Corp. 2022. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
* | ||
*/ | ||
|
||
using Newtonsoft.Json; | ||
|
||
namespace IBM.Watson.Assistant.v1.Model | ||
{ | ||
/// <summary> | ||
/// An object containing properties that indicate how many intents, entities, and dialog nodes are defined in the | ||
/// workspace. This property is included only in responses from the **Export workspace asynchronously** method, and | ||
/// only when the **verbose** query parameter is set to `true`. | ||
/// </summary> | ||
public class WorkspaceCounts | ||
{ | ||
/// <summary> | ||
/// The number of intents defined in the workspace. | ||
/// </summary> | ||
[JsonProperty("intent", NullValueHandling = NullValueHandling.Ignore)] | ||
public long? Intent { get; set; } | ||
/// <summary> | ||
/// The number of entities defined in the workspace. | ||
/// </summary> | ||
[JsonProperty("entity", NullValueHandling = NullValueHandling.Ignore)] | ||
public long? Entity { get; set; } | ||
/// <summary> | ||
/// The number of nodes defined in the workspace. | ||
/// </summary> | ||
[JsonProperty("node", NullValueHandling = NullValueHandling.Ignore)] | ||
public long? Node { get; set; } | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
57 changes: 57 additions & 0 deletions
57
src/IBM.Watson.Assistant.v1/Model/WorkspaceSystemSettingsNlp.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
/** | ||
* (C) Copyright IBM Corp. 2022. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
* | ||
*/ | ||
|
||
using Newtonsoft.Json; | ||
|
||
namespace IBM.Watson.Assistant.v1.Model | ||
{ | ||
/// <summary> | ||
/// Workspace settings related to the version of the training algorithms currently used by the skill. | ||
/// </summary> | ||
public class WorkspaceSystemSettingsNlp | ||
{ | ||
/// <summary> | ||
/// The policy the skill follows for selecting the algorithm version to use: | ||
/// | ||
/// - `baseline`: the latest mature version | ||
/// - `beta`: the latest beta version. | ||
/// </summary> | ||
public class ModelEnumValue | ||
{ | ||
/// <summary> | ||
/// Constant BASELINE for baseline | ||
/// </summary> | ||
public const string BASELINE = "baseline"; | ||
/// <summary> | ||
/// Constant BETA for beta | ||
/// </summary> | ||
public const string BETA = "beta"; | ||
|
||
} | ||
|
||
/// <summary> | ||
/// The policy the skill follows for selecting the algorithm version to use: | ||
/// | ||
/// - `baseline`: the latest mature version | ||
/// - `beta`: the latest beta version. | ||
/// Constants for possible values can be found using WorkspaceSystemSettingsNlp.ModelEnumValue | ||
/// </summary> | ||
[JsonProperty("model", NullValueHandling = NullValueHandling.Ignore)] | ||
public string Model { get; set; } | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters