You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* AssistantModel encapsulates the AI assistant and its interactions with the user.
31
39
* It includes properties and methods for configuring the assistant, handling chat interactions, and maintaining the assistant's
32
40
* thread and transcript.
33
41
*
42
+
* @property {Object} apiConnection - The API connection object for interacting with the assistant
34
43
* @property {Object|null} assistant - The assistant object, or `null` if not initialized.
35
44
* @property {string} assistantId - The unique ID of the assistant being used, or `null` if not initialized.
36
-
* @property {Object} apiConnection - The API connection object for interacting with the assistant
37
-
* @property {Object|null} thread - The assistant's thread used for the current chat, or `null` if no thread is active.
38
-
* @property {ChatTranscriptModel} transcriptStore - The assistant's chat transcript store for recording and managing chat messages.
39
-
* @property {boolean} isLoadingResponse - Flag indicating whether the assistant is currently processing a response.
45
+
* @property {Object} assistantList - A map of available assistants, where the key is the assistant ID and the value is the assistant name.
40
46
* @property {string[]} codapNotificationQueue - Queue of messages to be sent to the assistant. Used if CODAP generates notifications while assistant is processing a response.
41
-
* @property {string[]} messageQueue - Queue of messages to be sent to the assistant. Used if user sends messages while assistant is processing a response.
42
-
* @property {boolean} showLoadingIndicator - Flag indicating whether to show a loading indicator to the user; this is decoupled from the assistant's internal loading state to allow for more control over UI elements.
47
+
* @property {string} dataUri - The data URI of the file to be uploaded.
48
+
* @property {string} dataContextForGraph - The data context for the graph being processed by the assistant.
43
49
* @property {boolean} isCancelling - Flag indicating whether the assistant is currently cancelling a request.
50
+
* @property {boolean} isLoadingResponse - Flag indicating whether the assistant is currently processing a response.
44
51
* @property {boolean} isResetting - Flag indicating whether the assistant is currently resetting the chat.
52
+
* @property {string[]} messageQueue - Queue of messages to be sent to the assistant. Used if user sends messages while assistant is processing a response.
53
+
* @property {boolean} showLoadingIndicator - Flag indicating whether to show a loading indicator to the user; this is decoupled from the assistant's internal loading state to allow for more control over UI elements.
54
+
* @property {Object|null} thread - The assistant's thread used for the current chat, or `null` if no thread is active.
55
+
* @property {ChatTranscriptModel} transcriptStore - The assistant's chat transcript store for recording and managing chat messages.
45
56
* @property {boolean} uploadFileAfterRun - Flag indicating whether to upload a file after the assistant completes a run.
46
-
* @property {string} dataUri - The data URI of the file to be uploaded.
47
-
* @property {string} graphToSonify - The name of the graph to sonify, if applicable.
text: `The following JSON data describes key aspects of the graph in the image. Use this context to improve your interpretation and explanation of the graph. ${JSON.stringify(self.dataContextForGraph)}`
0 commit comments