Skip to content

Commit b570777

Browse files
chore: remove all uses of generative_ai turn_event
The generative_ai turn_event must be removed because it introduces a breaking change to the MessageOutputDebugTurnEvent callout property which is not in-scope for this patch release
1 parent 0a1651d commit b570777

26 files changed

+10
-1378
lines changed

assistant/src/main/java/com/ibm/watson/assistant/v2/model/GenerativeAITask.java

Lines changed: 0 additions & 120 deletions
This file was deleted.

assistant/src/main/java/com/ibm/watson/assistant/v2/model/GenerativeAITaskConfidenceScores.java

Lines changed: 0 additions & 74 deletions
This file was deleted.

assistant/src/main/java/com/ibm/watson/assistant/v2/model/GenerativeAITaskContentGroundedAnswering.java

Lines changed: 0 additions & 20 deletions
This file was deleted.

assistant/src/main/java/com/ibm/watson/assistant/v2/model/GenerativeAITaskGeneralPurposeAnswering.java

Lines changed: 0 additions & 20 deletions
This file was deleted.

assistant/src/main/java/com/ibm/watson/assistant/v2/model/MessageOutputDebugTurnEvent.java

Lines changed: 10 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
* MessageOutputDebugTurnEventTurnEventTopicSwitchDenied -
3333
* MessageOutputDebugTurnEventTurnEventActionRoutingDenied -
3434
* MessageOutputDebugTurnEventTurnEventSuggestionIntentsDenied -
35-
* MessageOutputDebugTurnEventTurnEventGenerativeAICalled -
3635
* MessageOutputDebugTurnEventTurnEventClientActions
3736
*/
3837
public class MessageOutputDebugTurnEvent extends GenericModel {
@@ -66,8 +65,6 @@ public class MessageOutputDebugTurnEvent extends GenericModel {
6665
discriminatorMapping.put(
6766
"suggestion_intents_denied",
6867
MessageOutputDebugTurnEventTurnEventSuggestionIntentsDenied.class);
69-
discriminatorMapping.put(
70-
"generative_ai_called", MessageOutputDebugTurnEventTurnEventGenerativeAICalled.class);
7168
discriminatorMapping.put(
7269
"client_actions", MessageOutputDebugTurnEventTurnEventClientActions.class);
7370
}
@@ -123,21 +120,13 @@ public interface Reason {
123120
protected Boolean hasQuestion;
124121

125122
protected Boolean prompted;
126-
123+
protected TurnEventCalloutCallout callout;
127124
@SerializedName("route_name")
128125
protected String routeName;
129126

130127
@SerializedName("intents_denied")
131128
protected List<RuntimeIntent> intentsDenied;
132129

133-
@SerializedName("generative_ai_start_time")
134-
protected String generativeAiStartTime;
135-
136-
@SerializedName("generative_ai")
137-
protected GenerativeAITask generativeAi;
138-
139-
protected TurnEventGenerativeAICalledMetrics metrics;
140-
141130
@SerializedName("client_actions")
142131
protected List<ClientAction> clientActions;
143132

@@ -233,6 +222,15 @@ public Boolean isPrompted() {
233222
return prompted;
234223
}
235224

225+
/**
226+
* Gets the callout.
227+
*
228+
* @return the callout
229+
*/
230+
public TurnEventCalloutCallout getCallout() {
231+
return callout;
232+
}
233+
236234
/**
237235
* Gets the routeName.
238236
*
@@ -255,35 +253,6 @@ public List<RuntimeIntent> getIntentsDenied() {
255253
return intentsDenied;
256254
}
257255

258-
/**
259-
* Gets the generativeAiStartTime.
260-
*
261-
* <p>The time when generative ai started processing the message.
262-
*
263-
* @return the generativeAiStartTime
264-
*/
265-
public String getGenerativeAiStartTime() {
266-
return generativeAiStartTime;
267-
}
268-
269-
/**
270-
* Gets the generativeAi.
271-
*
272-
* @return the generativeAi
273-
*/
274-
public GenerativeAITask getGenerativeAi() {
275-
return generativeAi;
276-
}
277-
278-
/**
279-
* Gets the metrics.
280-
*
281-
* @return the metrics
282-
*/
283-
public TurnEventGenerativeAICalledMetrics getMetrics() {
284-
return metrics;
285-
}
286-
287256
/**
288257
* Gets the clientActions.
289258
*

assistant/src/main/java/com/ibm/watson/assistant/v2/model/MessageOutputDebugTurnEventTurnEventCallout.java

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ public class MessageOutputDebugTurnEventTurnEventCallout extends MessageOutputDe
1818

1919
protected TurnEventActionSource source;
2020
protected TurnEventCalloutError error;
21-
protected TurnEventCalloutCallout callout;
2221

2322
protected MessageOutputDebugTurnEventTurnEventCallout() {}
2423

@@ -39,13 +38,4 @@ public TurnEventActionSource getSource() {
3938
public TurnEventCalloutError getError() {
4039
return error;
4140
}
42-
43-
/**
44-
* Gets the callout.
45-
*
46-
* @return the callout
47-
*/
48-
public TurnEventCalloutCallout getCallout() {
49-
return callout;
50-
}
5141
}

assistant/src/main/java/com/ibm/watson/assistant/v2/model/MessageOutputDebugTurnEventTurnEventGenerativeAICalled.java

Lines changed: 0 additions & 43 deletions
This file was deleted.

0 commit comments

Comments
 (0)