@instructure/athena-api-client 3.19.9 → 3.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -20,11 +20,11 @@ import type { ChatRequestQuizContext } from './ChatRequestQuizContext';
|
|
|
20
20
|
*/
|
|
21
21
|
export interface ChatRequest {
|
|
22
22
|
/**
|
|
23
|
-
* The user's message to send to the AI assistant
|
|
23
|
+
* The user's message to send to the AI assistant. May be omitted or empty when the request carries at least one attachment or an externalFileUrl — the file is then the whole turn.
|
|
24
24
|
* @type {string}
|
|
25
25
|
* @memberof ChatRequest
|
|
26
26
|
*/
|
|
27
|
-
message
|
|
27
|
+
message?: string;
|
|
28
28
|
/**
|
|
29
29
|
* Optional ID of an existing chat to continue. If omitted, a new chat will be created.
|
|
30
30
|
* @type {string}
|
|
@@ -27,8 +27,6 @@ export const ChatRequestTriggerEnum = {
|
|
|
27
27
|
* Check if a given object implements the ChatRequest interface.
|
|
28
28
|
*/
|
|
29
29
|
export function instanceOfChatRequest(value) {
|
|
30
|
-
if (!('message' in value) || value['message'] === undefined)
|
|
31
|
-
return false;
|
|
32
30
|
if (!('chatId' in value) || value['chatId'] === undefined)
|
|
33
31
|
return false;
|
|
34
32
|
return true;
|
|
@@ -41,7 +39,7 @@ export function ChatRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
41
39
|
return json;
|
|
42
40
|
}
|
|
43
41
|
return {
|
|
44
|
-
'message': json['message'],
|
|
42
|
+
'message': json['message'] == null ? undefined : json['message'],
|
|
45
43
|
'chatId': json['chatId'],
|
|
46
44
|
'chatType': json['chatType'] == null ? undefined : json['chatType'],
|
|
47
45
|
'attachments': json['attachments'] == null ? undefined : (json['attachments'].map(ChatRequestAttachmentsInnerFromJSON)),
|
|
@@ -20,11 +20,11 @@ import type { ChatRequestQuizContext } from './ChatRequestQuizContext';
|
|
|
20
20
|
*/
|
|
21
21
|
export interface ChatRequest {
|
|
22
22
|
/**
|
|
23
|
-
* The user's message to send to the AI assistant
|
|
23
|
+
* The user's message to send to the AI assistant. May be omitted or empty when the request carries at least one attachment or an externalFileUrl — the file is then the whole turn.
|
|
24
24
|
* @type {string}
|
|
25
25
|
* @memberof ChatRequest
|
|
26
26
|
*/
|
|
27
|
-
message
|
|
27
|
+
message?: string;
|
|
28
28
|
/**
|
|
29
29
|
* Optional ID of an existing chat to continue. If omitted, a new chat will be created.
|
|
30
30
|
* @type {string}
|
|
@@ -35,8 +35,6 @@ exports.ChatRequestTriggerEnum = {
|
|
|
35
35
|
* Check if a given object implements the ChatRequest interface.
|
|
36
36
|
*/
|
|
37
37
|
function instanceOfChatRequest(value) {
|
|
38
|
-
if (!('message' in value) || value['message'] === undefined)
|
|
39
|
-
return false;
|
|
40
38
|
if (!('chatId' in value) || value['chatId'] === undefined)
|
|
41
39
|
return false;
|
|
42
40
|
return true;
|
|
@@ -49,7 +47,7 @@ function ChatRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
49
47
|
return json;
|
|
50
48
|
}
|
|
51
49
|
return {
|
|
52
|
-
'message': json['message'],
|
|
50
|
+
'message': json['message'] == null ? undefined : json['message'],
|
|
53
51
|
'chatId': json['chatId'],
|
|
54
52
|
'chatType': json['chatType'] == null ? undefined : json['chatType'],
|
|
55
53
|
'attachments': json['attachments'] == null ? undefined : (json['attachments'].map(ChatRequestAttachmentsInner_1.ChatRequestAttachmentsInnerFromJSON)),
|