@instructure/athena-api-client 3.14.0 → 3.15.1
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.
|
@@ -55,6 +55,12 @@ export interface ChatRequest {
|
|
|
55
55
|
* @memberof ChatRequest
|
|
56
56
|
*/
|
|
57
57
|
quizContext?: ChatRequestQuizContext;
|
|
58
|
+
/**
|
|
59
|
+
* When true, extract text from every PDF attachment up front and send it as text instead of as page-rendered file parts. Set by the client when retrying after a pdf_context_overflow failure. Acts as the loop guard: a textOnly request is never auto-retried again.
|
|
60
|
+
* @type {boolean}
|
|
61
|
+
* @memberof ChatRequest
|
|
62
|
+
*/
|
|
63
|
+
textOnly?: boolean;
|
|
58
64
|
/**
|
|
59
65
|
* Optional taxonomy ID to scope this chat to a taxonomy. Only applied when a new chat is created. Requires an active enrollment.
|
|
60
66
|
* @type {string}
|
|
@@ -47,6 +47,7 @@ export function ChatRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
47
47
|
'attachments': json['attachments'] == null ? undefined : (json['attachments'].map(ChatRequestAttachmentsInnerFromJSON)),
|
|
48
48
|
'externalFileUrl': json['externalFileUrl'] == null ? undefined : ChatRequestExternalFileUrlFromJSON(json['externalFileUrl']),
|
|
49
49
|
'quizContext': json['quizContext'] == null ? undefined : ChatRequestQuizContextFromJSON(json['quizContext']),
|
|
50
|
+
'textOnly': json['textOnly'] == null ? undefined : json['textOnly'],
|
|
50
51
|
'taxonomyId': json['taxonomyId'] == null ? undefined : json['taxonomyId'],
|
|
51
52
|
'trigger': json['trigger'] == null ? undefined : json['trigger'],
|
|
52
53
|
'messageMetadata': json['messageMetadata'] == null ? undefined : ChatRequestMessageMetadataFromJSON(json['messageMetadata']),
|
|
@@ -66,6 +67,7 @@ export function ChatRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
66
67
|
'attachments': value['attachments'] == null ? undefined : (value['attachments'].map(ChatRequestAttachmentsInnerToJSON)),
|
|
67
68
|
'externalFileUrl': ChatRequestExternalFileUrlToJSON(value['externalFileUrl']),
|
|
68
69
|
'quizContext': ChatRequestQuizContextToJSON(value['quizContext']),
|
|
70
|
+
'textOnly': value['textOnly'],
|
|
69
71
|
'taxonomyId': value['taxonomyId'],
|
|
70
72
|
'trigger': value['trigger'],
|
|
71
73
|
'messageMetadata': ChatRequestMessageMetadataToJSON(value['messageMetadata']),
|
|
@@ -55,6 +55,12 @@ export interface ChatRequest {
|
|
|
55
55
|
* @memberof ChatRequest
|
|
56
56
|
*/
|
|
57
57
|
quizContext?: ChatRequestQuizContext;
|
|
58
|
+
/**
|
|
59
|
+
* When true, extract text from every PDF attachment up front and send it as text instead of as page-rendered file parts. Set by the client when retrying after a pdf_context_overflow failure. Acts as the loop guard: a textOnly request is never auto-retried again.
|
|
60
|
+
* @type {boolean}
|
|
61
|
+
* @memberof ChatRequest
|
|
62
|
+
*/
|
|
63
|
+
textOnly?: boolean;
|
|
58
64
|
/**
|
|
59
65
|
* Optional taxonomy ID to scope this chat to a taxonomy. Only applied when a new chat is created. Requires an active enrollment.
|
|
60
66
|
* @type {string}
|
|
@@ -55,6 +55,7 @@ function ChatRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
55
55
|
'attachments': json['attachments'] == null ? undefined : (json['attachments'].map(ChatRequestAttachmentsInner_1.ChatRequestAttachmentsInnerFromJSON)),
|
|
56
56
|
'externalFileUrl': json['externalFileUrl'] == null ? undefined : (0, ChatRequestExternalFileUrl_1.ChatRequestExternalFileUrlFromJSON)(json['externalFileUrl']),
|
|
57
57
|
'quizContext': json['quizContext'] == null ? undefined : (0, ChatRequestQuizContext_1.ChatRequestQuizContextFromJSON)(json['quizContext']),
|
|
58
|
+
'textOnly': json['textOnly'] == null ? undefined : json['textOnly'],
|
|
58
59
|
'taxonomyId': json['taxonomyId'] == null ? undefined : json['taxonomyId'],
|
|
59
60
|
'trigger': json['trigger'] == null ? undefined : json['trigger'],
|
|
60
61
|
'messageMetadata': json['messageMetadata'] == null ? undefined : (0, ChatRequestMessageMetadata_1.ChatRequestMessageMetadataFromJSON)(json['messageMetadata']),
|
|
@@ -74,6 +75,7 @@ function ChatRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
74
75
|
'attachments': value['attachments'] == null ? undefined : (value['attachments'].map(ChatRequestAttachmentsInner_1.ChatRequestAttachmentsInnerToJSON)),
|
|
75
76
|
'externalFileUrl': (0, ChatRequestExternalFileUrl_1.ChatRequestExternalFileUrlToJSON)(value['externalFileUrl']),
|
|
76
77
|
'quizContext': (0, ChatRequestQuizContext_1.ChatRequestQuizContextToJSON)(value['quizContext']),
|
|
78
|
+
'textOnly': value['textOnly'],
|
|
77
79
|
'taxonomyId': value['taxonomyId'],
|
|
78
80
|
'trigger': value['trigger'],
|
|
79
81
|
'messageMetadata': (0, ChatRequestMessageMetadata_1.ChatRequestMessageMetadataToJSON)(value['messageMetadata']),
|