-
Notifications
You must be signed in to change notification settings - Fork 530
fix(wa-v2): add missing turn events #1234
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
89 changes: 89 additions & 0 deletions
89
assistant/src/main/java/com/ibm/watson/assistant/v2/model/ClientAction.java
This file contains hidden or 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,89 @@ | ||
/* | ||
* (C) Copyright IBM Corp. 2025. | ||
* | ||
* 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. | ||
*/ | ||
|
||
package com.ibm.watson.assistant.v2.model; | ||
|
||
import com.google.gson.annotations.SerializedName; | ||
import com.ibm.cloud.sdk.core.service.model.GenericModel; | ||
|
||
/** ClientAction. */ | ||
public class ClientAction extends GenericModel { | ||
|
||
/** The skill that is requesting the action. Included only if **type**=`client`. */ | ||
public interface Skill { | ||
/** main skill. */ | ||
String MAIN_SKILL = "main skill"; | ||
/** actions skill. */ | ||
String ACTIONS_SKILL = "actions skill"; | ||
} | ||
|
||
protected String name; | ||
|
||
@SerializedName("result_variable") | ||
protected String resultVariable; | ||
|
||
protected String type; | ||
protected String skill; | ||
protected ClientActionParameters parameters; | ||
|
||
protected ClientAction() {} | ||
|
||
/** | ||
* Gets the name. | ||
* | ||
* <p>The name of the client action. | ||
* | ||
* @return the name | ||
*/ | ||
public String getName() { | ||
return name; | ||
} | ||
|
||
/** | ||
* Gets the resultVariable. | ||
* | ||
* @return the resultVariable | ||
*/ | ||
public String getResultVariable() { | ||
return resultVariable; | ||
} | ||
|
||
/** | ||
* Gets the type. | ||
* | ||
* @return the type | ||
*/ | ||
public String getType() { | ||
return type; | ||
} | ||
|
||
/** | ||
* Gets the skill. | ||
* | ||
* <p>The skill that is requesting the action. Included only if **type**=`client`. | ||
* | ||
* @return the skill | ||
*/ | ||
public String getSkill() { | ||
return skill; | ||
} | ||
|
||
/** | ||
* Gets the parameters. | ||
* | ||
* @return the parameters | ||
*/ | ||
public ClientActionParameters getParameters() { | ||
return parameters; | ||
} | ||
} |
56 changes: 56 additions & 0 deletions
56
assistant/src/main/java/com/ibm/watson/assistant/v2/model/ClientActionParameters.java
This file contains hidden or 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,56 @@ | ||
/* | ||
* (C) Copyright IBM Corp. 2025. | ||
* | ||
* 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. | ||
*/ | ||
|
||
package com.ibm.watson.assistant.v2.model; | ||
|
||
import com.google.gson.annotations.SerializedName; | ||
import com.ibm.cloud.sdk.core.service.model.GenericModel; | ||
|
||
/** ClientActionParameters. */ | ||
public class ClientActionParameters extends GenericModel { | ||
|
||
@SerializedName("account_id") | ||
protected String accountId; | ||
|
||
protected String hash; | ||
protected String alias; | ||
|
||
protected ClientActionParameters() {} | ||
|
||
/** | ||
* Gets the accountId. | ||
* | ||
* @return the accountId | ||
*/ | ||
public String getAccountId() { | ||
return accountId; | ||
} | ||
|
||
/** | ||
* Gets the hash. | ||
* | ||
* @return the hash | ||
*/ | ||
public String getHash() { | ||
return hash; | ||
} | ||
|
||
/** | ||
* Gets the alias. | ||
* | ||
* @return the alias | ||
*/ | ||
public String getAlias() { | ||
return alias; | ||
} | ||
} |
This file contains hidden or 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
48 changes: 48 additions & 0 deletions
48
...bm/watson/assistant/v2/model/MessageOutputDebugTurnEventTurnEventActionRoutingDenied.java
This file contains hidden or 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,48 @@ | ||
/* | ||
* (C) Copyright IBM Corp. 2025. | ||
* | ||
* 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. | ||
*/ | ||
|
||
package com.ibm.watson.assistant.v2.model; | ||
|
||
/** MessageOutputDebugTurnEventTurnEventActionRoutingDenied. */ | ||
public class MessageOutputDebugTurnEventTurnEventActionRoutingDenied | ||
extends MessageOutputDebugTurnEvent { | ||
|
||
/** The type of condition (if any) that is defined for the action. */ | ||
public interface ConditionType { | ||
/** user_defined. */ | ||
String USER_DEFINED = "user_defined"; | ||
/** welcome. */ | ||
String WELCOME = "welcome"; | ||
/** anything_else. */ | ||
String ANYTHING_ELSE = "anything_else"; | ||
} | ||
|
||
/** The reason the action was visited. */ | ||
public interface Reason { | ||
/** action_conditions_failed. */ | ||
String ACTION_CONDITIONS_FAILED = "action_conditions_failed"; | ||
} | ||
|
||
protected TurnEventActionSource source; | ||
|
||
protected MessageOutputDebugTurnEventTurnEventActionRoutingDenied() {} | ||
|
||
/** | ||
* Gets the source. | ||
* | ||
* @return the source | ||
*/ | ||
public TurnEventActionSource getSource() { | ||
return source; | ||
} | ||
} |
31 changes: 31 additions & 0 deletions
31
.../com/ibm/watson/assistant/v2/model/MessageOutputDebugTurnEventTurnEventClientActions.java
This file contains hidden or 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,31 @@ | ||
/* | ||
* (C) Copyright IBM Corp. 2025. | ||
* | ||
* 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. | ||
*/ | ||
|
||
package com.ibm.watson.assistant.v2.model; | ||
|
||
/** MessageOutputDebugTurnEventTurnEventClientActions. */ | ||
public class MessageOutputDebugTurnEventTurnEventClientActions extends MessageOutputDebugTurnEvent { | ||
|
||
protected TurnEventStepSource source; | ||
|
||
protected MessageOutputDebugTurnEventTurnEventClientActions() {} | ||
|
||
/** | ||
* Gets the source. | ||
* | ||
* @return the source | ||
*/ | ||
public TurnEventStepSource getSource() { | ||
return source; | ||
} | ||
} |
This file contains hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.