diff --git a/assistant/src/main/java/com/ibm/watson/assistant/v2/model/MessageOutputDebugTurnEvent.java b/assistant/src/main/java/com/ibm/watson/assistant/v2/model/MessageOutputDebugTurnEvent.java index 97057b4dd96..5fa36b5ca4f 100644 --- a/assistant/src/main/java/com/ibm/watson/assistant/v2/model/MessageOutputDebugTurnEvent.java +++ b/assistant/src/main/java/com/ibm/watson/assistant/v2/model/MessageOutputDebugTurnEvent.java @@ -47,6 +47,7 @@ public class MessageOutputDebugTurnEvent extends GenericModel { discriminatorMapping.put("callout", MessageOutputDebugTurnEventTurnEventCallout.class); discriminatorMapping.put("search", MessageOutputDebugTurnEventTurnEventSearch.class); discriminatorMapping.put("node_visited", MessageOutputDebugTurnEventTurnEventNodeVisited.class); + discriminatorMapping.put("conversational_search_end", MessageOutputDebugTurnEventTurnEventConversationalSearchEnd.class); } /** The type of condition (if any) that is defined for the action. */ public interface ConditionType { diff --git a/assistant/src/main/java/com/ibm/watson/assistant/v2/model/MessageOutputDebugTurnEventTurnEventConversationalSearchEnd.java b/assistant/src/main/java/com/ibm/watson/assistant/v2/model/MessageOutputDebugTurnEventTurnEventConversationalSearchEnd.java new file mode 100644 index 00000000000..6ae60e14193 --- /dev/null +++ b/assistant/src/main/java/com/ibm/watson/assistant/v2/model/MessageOutputDebugTurnEventTurnEventConversationalSearchEnd.java @@ -0,0 +1,42 @@ +/* + * (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; + + /** MessageOutputDebugTurnEventTurnEventActionVisited. */ + public class MessageOutputDebugTurnEventTurnEventConversationalSearchEnd 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"; + } + + protected TurnEventActionSource source; + + protected MessageOutputDebugTurnEventTurnEventConversationalSearchEnd() {} + + /** + * Gets the source. + * + * @return the source + */ + public TurnEventActionSource getSource() { + return source; + } + } + \ No newline at end of file diff --git a/assistant/src/test/java/com/ibm/watson/assistant/v2/model/MessageOutputDebugTurnEventTurnEventConversationalSearchEndTest.java b/assistant/src/test/java/com/ibm/watson/assistant/v2/model/MessageOutputDebugTurnEventTurnEventConversationalSearchEndTest.java new file mode 100644 index 00000000000..beaba9cdca5 --- /dev/null +++ b/assistant/src/test/java/com/ibm/watson/assistant/v2/model/MessageOutputDebugTurnEventTurnEventConversationalSearchEndTest.java @@ -0,0 +1,41 @@ +/* + * (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 static org.testng.Assert.*; + + import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; + import com.ibm.watson.assistant.v2.utils.TestUtilities; + import java.io.InputStream; + import java.util.HashMap; + import java.util.List; + import org.testng.annotations.Test; + + /** Unit test class for the MessageOutputDebugTurnEventTurnEventConversationalSearchEnd model. */ + public class MessageOutputDebugTurnEventTurnEventConversationalSearchEndTest { + final HashMap mockStreamMap = TestUtilities.createMockStreamMap(); + final List mockListFileWithMetadata = + TestUtilities.creatMockListFileWithMetadata(); + + @Test + public void testMessageOutputDebugTurnEventTurnEventConversationalSearchEnd() throws Throwable { + MessageOutputDebugTurnEventTurnEventConversationalSearchEnd + messageOutputDebugTurnEventTurnEventConversationalSearchEndModel = + new MessageOutputDebugTurnEventTurnEventConversationalSearchEnd(); + assertNull(messageOutputDebugTurnEventTurnEventConversationalSearchEndModel.getEvent()); + assertNull(messageOutputDebugTurnEventTurnEventConversationalSearchEndModel.getSource()); + assertNull(messageOutputDebugTurnEventTurnEventConversationalSearchEndModel.getConditionType()); + } + } + \ No newline at end of file