-
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(assistantv2): add several new functions
BREAKING CHANGE: removing and changing of classes
- Loading branch information
1 parent
f32894a
commit 0f5dff8
Showing
59 changed files
with
2,589 additions
and
203 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
/** | ||
* (C) Copyright IBM Corp. 2023. | ||
* | ||
* 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 System.Collections.Generic; | ||
using Newtonsoft.Json; | ||
|
||
namespace IBM.Watson.Assistant.v2.Model | ||
{ | ||
/// <summary> | ||
/// AssistantCollection. | ||
/// </summary> | ||
public class AssistantCollection | ||
{ | ||
/// <summary> | ||
/// An array of objects describing the assistants associated with the instance. | ||
/// </summary> | ||
[JsonProperty("assistants", NullValueHandling = NullValueHandling.Ignore)] | ||
public List<AssistantData> Assistants { get; set; } | ||
/// <summary> | ||
/// The pagination data for the returned objects. For more information about using pagination, see | ||
/// [Pagination](#pagination). | ||
/// </summary> | ||
[JsonProperty("pagination", NullValueHandling = NullValueHandling.Ignore)] | ||
public Pagination Pagination { 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
/** | ||
* (C) Copyright IBM Corp. 2023. | ||
* | ||
* 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 System.Collections.Generic; | ||
using Newtonsoft.Json; | ||
|
||
namespace IBM.Watson.Assistant.v2.Model | ||
{ | ||
/// <summary> | ||
/// AssistantData. | ||
/// </summary> | ||
public class AssistantData | ||
{ | ||
/// <summary> | ||
/// The unique identifier of the assistant. | ||
/// </summary> | ||
[JsonProperty("assistant_id", NullValueHandling = NullValueHandling.Ignore)] | ||
public virtual string AssistantId { get; private set; } | ||
/// <summary> | ||
/// The name of the assistant. This string cannot contain carriage return, newline, or tab characters. | ||
/// </summary> | ||
[JsonProperty("name", NullValueHandling = NullValueHandling.Ignore)] | ||
public string Name { get; set; } | ||
/// <summary> | ||
/// The description of the assistant. This string cannot contain carriage return, newline, or tab characters. | ||
/// </summary> | ||
[JsonProperty("description", NullValueHandling = NullValueHandling.Ignore)] | ||
public string Description { get; set; } | ||
/// <summary> | ||
/// The language of the assistant. | ||
/// </summary> | ||
[JsonProperty("language", NullValueHandling = NullValueHandling.Ignore)] | ||
public string Language { get; set; } | ||
/// <summary> | ||
/// An array of skill references identifying the skills associated with the assistant. | ||
/// </summary> | ||
[JsonProperty("assistant_skills", NullValueHandling = NullValueHandling.Ignore)] | ||
public virtual List<AssistantSkill> AssistantSkills { get; private set; } | ||
/// <summary> | ||
/// An array of objects describing the environments defined for the assistant. | ||
/// </summary> | ||
[JsonProperty("assistant_environments", NullValueHandling = NullValueHandling.Ignore)] | ||
public virtual List<EnvironmentReference> AssistantEnvironments { get; private 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
/** | ||
* (C) Copyright IBM Corp. 2023. | ||
* | ||
* 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.v2.Model | ||
{ | ||
/// <summary> | ||
/// AssistantSkill. | ||
/// </summary> | ||
public class AssistantSkill | ||
{ | ||
/// <summary> | ||
/// The type of the skill. | ||
/// </summary> | ||
public class TypeEnumValue | ||
{ | ||
/// <summary> | ||
/// Constant DIALOG for dialog | ||
/// </summary> | ||
public const string DIALOG = "dialog"; | ||
/// <summary> | ||
/// Constant ACTION for action | ||
/// </summary> | ||
public const string ACTION = "action"; | ||
/// <summary> | ||
/// Constant SEARCH for search | ||
/// </summary> | ||
public const string SEARCH = "search"; | ||
|
||
} | ||
|
||
/// <summary> | ||
/// The type of the skill. | ||
/// Constants for possible values can be found using AssistantSkill.TypeEnumValue | ||
/// </summary> | ||
[JsonProperty("type", NullValueHandling = NullValueHandling.Ignore)] | ||
public string Type { get; set; } | ||
/// <summary> | ||
/// The skill ID of the skill. | ||
/// </summary> | ||
[JsonProperty("skill_id", NullValueHandling = NullValueHandling.Ignore)] | ||
public string SkillId { 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
/** | ||
* (C) Copyright IBM Corp. 2023. | ||
* | ||
* 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.v2.Model | ||
{ | ||
/// <summary> | ||
/// Status information about the skills for the assistant. Included in responses only if **status**=`Available`. | ||
/// </summary> | ||
public class AssistantState | ||
{ | ||
/// <summary> | ||
/// Whether the action skill is disabled in the draft environment. | ||
/// </summary> | ||
[JsonProperty("action_disabled", NullValueHandling = NullValueHandling.Ignore)] | ||
public bool? ActionDisabled { get; set; } | ||
/// <summary> | ||
/// Whether the dialog skill is disabled in the draft environment. | ||
/// </summary> | ||
[JsonProperty("dialog_disabled", NullValueHandling = NullValueHandling.Ignore)] | ||
public bool? DialogDisabled { 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
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
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
Oops, something went wrong.