File tree 2 files changed +38
-6
lines changed
assistant/src/main/java/com/ibm/watson/assistant/v2/model
2 files changed +38
-6
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * (C) Copyright IBM Corp. 2018, 2020 .
2
+ * (C) Copyright IBM Corp. 2021 .
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
5
5
* the License. You may obtain a copy of the License at
20
20
/** An input object that includes the input text. */
21
21
public class MessageInput extends GenericModel {
22
22
23
- /** The type of user input. Currently, only text input is supported. */
23
+ /**
24
+ * The type of the message:
25
+ *
26
+ * <p>- `text`: The user input is processed normally by the assistant. - `search`: Only search
27
+ * results are returned. (Any dialog or actions skill is bypassed.)
28
+ *
29
+ * <p>**Note:** A `search` message results in an error if no search skill is configured for the
30
+ * assistant.
31
+ */
24
32
public interface MessageType {
25
33
/** text. */
26
34
String TEXT = "text" ;
35
+ /** search. */
36
+ String SEARCH = "search" ;
27
37
}
28
38
29
39
@ SerializedName ("message_type" )
@@ -186,7 +196,13 @@ public Builder newBuilder() {
186
196
/**
187
197
* Gets the messageType.
188
198
*
189
- * <p>The type of user input. Currently, only text input is supported.
199
+ * <p>The type of the message:
200
+ *
201
+ * <p>- `text`: The user input is processed normally by the assistant. - `search`: Only search
202
+ * results are returned. (Any dialog or actions skill is bypassed.)
203
+ *
204
+ * <p>**Note:** A `search` message results in an error if no search skill is configured for the
205
+ * assistant.
190
206
*
191
207
* @return the messageType
192
208
*/
Original file line number Diff line number Diff line change 1
1
/*
2
- * (C) Copyright IBM Corp. 2020 .
2
+ * (C) Copyright IBM Corp. 2021 .
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
5
5
* the License. You may obtain a copy of the License at
20
20
/** An input object that includes the input text. */
21
21
public class MessageInputStateless extends GenericModel {
22
22
23
- /** The type of user input. Currently, only text input is supported. */
23
+ /**
24
+ * The type of the message:
25
+ *
26
+ * <p>- `text`: The user input is processed normally by the assistant. - `search`: Only search
27
+ * results are returned. (Any dialog or actions skill is bypassed.)
28
+ *
29
+ * <p>**Note:** A `search` message results in an error if no search skill is configured for the
30
+ * assistant.
31
+ */
24
32
public interface MessageType {
25
33
/** text. */
26
34
String TEXT = "text" ;
35
+ /** search. */
36
+ String SEARCH = "search" ;
27
37
}
28
38
29
39
@ SerializedName ("message_type" )
@@ -186,7 +196,13 @@ public Builder newBuilder() {
186
196
/**
187
197
* Gets the messageType.
188
198
*
189
- * <p>The type of user input. Currently, only text input is supported.
199
+ * <p>The type of the message:
200
+ *
201
+ * <p>- `text`: The user input is processed normally by the assistant. - `search`: Only search
202
+ * results are returned. (Any dialog or actions skill is bypassed.)
203
+ *
204
+ * <p>**Note:** A `search` message results in an error if no search skill is configured for the
205
+ * assistant.
190
206
*
191
207
* @return the messageType
192
208
*/
You can’t perform that action at this time.
0 commit comments