Skip to content

Commit

Permalink
fix(assistantv2): add discrim bug hand edit for TurnEvent models
Browse files Browse the repository at this point in the history
  • Loading branch information
apaparazzi0329 committed Aug 10, 2022
1 parent faea1a2 commit 4f4894f
Show file tree
Hide file tree
Showing 12 changed files with 122 additions and 30 deletions.
Expand Up @@ -108,7 +108,7 @@ public String getEnvironmentId() {
/**
* Gets the environment.
*
* <p>The type of the environment. All environments other than the draft and live environments
* <p>The type of the environment. All environments other than the `draft` and `live` environments
* have the type `staging`.
*
* @return the environment
Expand All @@ -131,7 +131,7 @@ public EnvironmentReleaseReference getReleaseReference() {
/**
* Gets the orchestration.
*
* <p>The search skill orchestration settings for message API.
* <p>The search skill orchestration settings for the environment.
*
* @return the orchestration
*/
Expand All @@ -142,7 +142,7 @@ public EnvironmentOrchestration getOrchestration() {
/**
* Gets the sessionTimeout.
*
* <p>The session inactivity timeout setting of for the environment.
* <p>The session inactivity timeout setting for the environment.
*
* @return the sessionTimeout
*/
Expand Down
Expand Up @@ -15,7 +15,7 @@
import com.google.gson.annotations.SerializedName;
import com.ibm.cloud.sdk.core.service.model.GenericModel;

/** The search skill orchestration settings for message API. */
/** The search skill orchestration settings for the environment. */
public class EnvironmentOrchestration extends GenericModel {

@SerializedName("search_skill_fallback")
Expand All @@ -24,8 +24,9 @@ public class EnvironmentOrchestration extends GenericModel {
/**
* Gets the searchSkillFallback.
*
* <p>Whether to connect to discovery in the event a response cannot be matched. If search skill
* is not enabled for the environment, this property is ignored.
* <p>Whether assistants deployed to the environment fall back to a search skill when responding
* to messages that do not match any intent. If no search skill is configured for the assistant,
* this property is ignored.
*
* @return the searchSkillFallback
*/
Expand Down
Expand Up @@ -81,7 +81,6 @@ public interface Reason {
}

protected String event;
protected TurnEventActionSource source;

@SerializedName("action_start_time")
protected String actionStartTime;
Expand All @@ -99,7 +98,6 @@ public interface Reason {

protected Boolean prompted;
protected TurnEventCalloutCallout callout;
protected TurnEventCalloutError error;

protected MessageOutputDebugTurnEvent() {}

Expand All @@ -114,15 +112,6 @@ public String getEvent() {
return event;
}

/**
* Gets the source.
*
* @return the source
*/
public TurnEventActionSource getSource() {
return source;
}

/**
* Gets the actionStartTime.
*
Expand Down Expand Up @@ -198,13 +187,4 @@ public Boolean isPrompted() {
public TurnEventCalloutCallout getCallout() {
return callout;
}

/**
* Gets the error.
*
* @return the error
*/
public TurnEventCalloutError getError() {
return error;
}
}
Expand Up @@ -16,6 +16,8 @@
public class MessageOutputDebugTurnEventTurnEventActionFinished
extends MessageOutputDebugTurnEvent {

private TurnEventActionSource source;

/** The type of condition (if any) that is defined for the action. */
public interface ConditionType {
/** user_defined. */
Expand All @@ -41,4 +43,13 @@ public interface Reason {
/** fallback. */
String FALLBACK = "fallback";
}

/**
* Gets the source.
*
* @return the source
*/
public TurnEventActionSource getSource() {
return source;
}
}
Expand Up @@ -15,6 +15,8 @@
/** MessageOutputDebugTurnEventTurnEventActionVisited. */
public class MessageOutputDebugTurnEventTurnEventActionVisited extends MessageOutputDebugTurnEvent {

private TurnEventActionSource source;

/** The type of condition (if any) that is defined for the action. */
public interface ConditionType {
/** user_defined. */
Expand Down Expand Up @@ -46,4 +48,13 @@ public interface Reason {
/** no_action_matches. */
String NO_ACTION_MATCHES = "no_action_matches";
}

/**
* Gets the source.
*
* @return the source
*/
public TurnEventActionSource getSource() {
return source;
}
}
Expand Up @@ -13,4 +13,26 @@
package com.ibm.watson.assistant.v2.model;

/** MessageOutputDebugTurnEventTurnEventCallout. */
public class MessageOutputDebugTurnEventTurnEventCallout extends MessageOutputDebugTurnEvent {}
public class MessageOutputDebugTurnEventTurnEventCallout extends MessageOutputDebugTurnEvent {

private TurnEventActionSource source;
private TurnEventCalloutError error;

/**
* Gets the source.
*
* @return the source
*/
public TurnEventActionSource getSource() {
return source;
}

/**
* Gets the error.
*
* @return the error
*/
public TurnEventCalloutError getError() {
return error;
}
}
Expand Up @@ -14,4 +14,16 @@

/** MessageOutputDebugTurnEventTurnEventHandlerVisited. */
public class MessageOutputDebugTurnEventTurnEventHandlerVisited
extends MessageOutputDebugTurnEvent {}
extends MessageOutputDebugTurnEvent {

private TurnEventActionSource source;

/**
* Gets the source.
*
* @return the source
*/
public TurnEventActionSource getSource() {
return source;
}
}
Expand Up @@ -15,6 +15,8 @@
/** MessageOutputDebugTurnEventTurnEventNodeVisited. */
public class MessageOutputDebugTurnEventTurnEventNodeVisited extends MessageOutputDebugTurnEvent {

private TurnEventNodeSource source;

/** The reason the dialog node was visited. */
public interface Reason {
/** welcome. */
Expand All @@ -30,4 +32,13 @@ public interface Reason {
/** jump. */
String JUMP = "jump";
}

/**
* Gets the source.
*
* @return the source
*/
public TurnEventNodeSource getSource() {
return source;
}
}
Expand Up @@ -13,4 +13,26 @@
package com.ibm.watson.assistant.v2.model;

/** MessageOutputDebugTurnEventTurnEventSearch. */
public class MessageOutputDebugTurnEventTurnEventSearch extends MessageOutputDebugTurnEvent {}
public class MessageOutputDebugTurnEventTurnEventSearch extends MessageOutputDebugTurnEvent {

private TurnEventActionSource source;
private TurnEventSearchError error;

/**
* Gets the source.
*
* @return the source
*/
public TurnEventActionSource getSource() {
return source;
}

/**
* Gets the error.
*
* @return the error
*/
public TurnEventSearchError getError() {
return error;
}
}
Expand Up @@ -15,6 +15,7 @@
/** MessageOutputDebugTurnEventTurnEventStepAnswered. */
public class MessageOutputDebugTurnEventTurnEventStepAnswered extends MessageOutputDebugTurnEvent {

private TurnEventActionSource source;
/** The type of condition (if any) that is defined for the action. */
public interface ConditionType {
/** user_defined. */
Expand All @@ -24,4 +25,13 @@ public interface ConditionType {
/** anything_else. */
String ANYTHING_ELSE = "anything_else";
}

/**
* Gets the source.
*
* @return the source
*/
public TurnEventActionSource getSource() {
return source;
}
}
Expand Up @@ -15,6 +15,8 @@
/** MessageOutputDebugTurnEventTurnEventStepVisited. */
public class MessageOutputDebugTurnEventTurnEventStepVisited extends MessageOutputDebugTurnEvent {

private TurnEventActionSource source;

/** The type of condition (if any) that is defined for the action. */
public interface ConditionType {
/** user_defined. */
Expand All @@ -24,4 +26,13 @@ public interface ConditionType {
/** anything_else. */
String ANYTHING_ELSE = "anything_else";
}

/**
* Gets the source.
*
* @return the source
*/
public TurnEventActionSource getSource() {
return source;
}
}
Expand Up @@ -87,7 +87,8 @@ public String getSnapshot() {
/**
* Gets the skillReference.
*
* <p>The type of skill identified by the skill reference.
* <p>The type of skill identified by the skill reference. The possible values are `main skill`
* (for a dialog skill), `actions skill`, and `search skill`.
*
* @return the skillReference
*/
Expand Down

0 comments on commit 4f4894f

Please sign in to comment.