ttc-ai-chat-sdk 0.0.12-beta → 0.0.14-dev
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.
- package/README.md +52 -29
- package/dist/assistant.js +107 -0
- package/dist/assistant.js.map +1 -0
- package/dist/construct.js +2 -2
- package/dist/construct.js.map +1 -1
- package/dist/core.js +10 -24
- package/dist/core.js.map +1 -1
- package/dist/index.d.ts +142 -298
- package/dist/internal.js +61 -65
- package/dist/internal.js.map +1 -1
- package/dist/public-types.js +7 -0
- package/dist/public-types.js.map +1 -0
- package/dist/ttc_server.js +38 -133
- package/dist/ttc_server.js.map +1 -1
- package/package.json +1 -1
package/dist/ttc_server.js
CHANGED
|
@@ -31,207 +31,112 @@ class RPCClient {
|
|
|
31
31
|
/**
|
|
32
32
|
* sends a message to the ai
|
|
33
33
|
*
|
|
34
|
-
* @param {
|
|
34
|
+
* @param {message: string}
|
|
35
35
|
* @returns {Promise<rpcResponseType<any>>}
|
|
36
36
|
*/
|
|
37
|
-
async chatAI(
|
|
38
|
-
_a.
|
|
39
|
-
return await _a.apiCallback('ttcCore.chatAI', [conversation_id, message]);
|
|
37
|
+
async chatAI(message) {
|
|
38
|
+
return await _a.apiCallback('ttcCore.chatAI', [message]);
|
|
40
39
|
},
|
|
41
40
|
/**
|
|
42
|
-
*
|
|
43
|
-
*
|
|
44
|
-
* @param {conversation_id: string, response: any[], image_urls: any[]}
|
|
45
|
-
* @returns {Promise<rpcResponseType<any>>}
|
|
46
|
-
*/
|
|
47
|
-
async functionResponse(conversation_id, response, image_urls) {
|
|
48
|
-
return await _a.apiCallback('ttcCore.functionResponse', [conversation_id, response, image_urls]);
|
|
49
|
-
},
|
|
50
|
-
/**
|
|
51
|
-
* get chat history
|
|
41
|
+
* This function is used to invoke the llm with a description and instruction
|
|
52
42
|
*
|
|
53
|
-
* @param {
|
|
43
|
+
* @param {input: Partial<{ description: string, instruction: string, construct_id: string }> }
|
|
54
44
|
* @returns {Promise<rpcResponseType<any>>}
|
|
55
45
|
*/
|
|
56
|
-
async
|
|
57
|
-
return await _a.apiCallback('ttcCore.
|
|
46
|
+
async invoke(input) {
|
|
47
|
+
return await _a.apiCallback('ttcCore.invoke', [input]);
|
|
58
48
|
},
|
|
59
49
|
/**
|
|
60
|
-
*
|
|
50
|
+
* sends a function response to the ai
|
|
61
51
|
*
|
|
62
|
-
* @param {
|
|
52
|
+
* @param {response: any[], image_urls: any[]}
|
|
63
53
|
* @returns {Promise<rpcResponseType<any>>}
|
|
64
54
|
*/
|
|
65
|
-
async
|
|
66
|
-
return await _a.apiCallback('ttcCore.
|
|
67
|
-
},
|
|
68
|
-
/**
|
|
69
|
-
* Generates a chat token
|
|
70
|
-
*
|
|
71
|
-
* @param {uuid: string}
|
|
72
|
-
* @returns {Promise<rpcResponseType<{ chatId: string }>>}
|
|
73
|
-
*/
|
|
74
|
-
async createChat(uuid) {
|
|
75
|
-
return await _a.apiCallback('ttcCore.createChat', [uuid]);
|
|
55
|
+
async functionResponse(response, image_urls) {
|
|
56
|
+
return await _a.apiCallback('ttcCore.functionResponse', [response, image_urls]);
|
|
76
57
|
},
|
|
77
58
|
/**
|
|
78
|
-
*
|
|
59
|
+
* get chat history
|
|
79
60
|
*
|
|
80
|
-
* @param {
|
|
61
|
+
* @param {limit: number, page: number}
|
|
81
62
|
* @returns {Promise<rpcResponseType<any>>}
|
|
82
63
|
*/
|
|
83
|
-
async
|
|
84
|
-
return await _a.apiCallback('ttcCore.
|
|
85
|
-
},
|
|
86
|
-
/**
|
|
87
|
-
* Fetches all chats for an app
|
|
88
|
-
*
|
|
89
|
-
* @param {page: number, limit: number}
|
|
90
|
-
* @returns {Promise<rpcResponseType<string[]>>}
|
|
91
|
-
*/
|
|
92
|
-
async fetchChats(page, limit) {
|
|
93
|
-
return await _a.apiCallback('ttcCore.fetchChats', [page, limit]);
|
|
94
|
-
},
|
|
95
|
-
/**
|
|
96
|
-
* Fetches a chat
|
|
97
|
-
*
|
|
98
|
-
* @param {chatId: string}
|
|
99
|
-
* @returns {Promise<rpcResponseType<{ id: string; inputTokens: number; outputTokens: number; metadata?: any }>>}
|
|
100
|
-
*/
|
|
101
|
-
async fetchChat(chatId) {
|
|
102
|
-
return await _a.apiCallback('ttcCore.fetchChat', [chatId]);
|
|
64
|
+
async fetchChatHistory(limit, page) {
|
|
65
|
+
return await _a.apiCallback('ttcCore.fetchChatHistory', [limit, page]);
|
|
103
66
|
},
|
|
104
67
|
/**
|
|
105
|
-
*
|
|
68
|
+
* sets a function for the app
|
|
106
69
|
*
|
|
107
|
-
* @param {
|
|
70
|
+
* @param {func: Partial<{ }> }
|
|
108
71
|
* @returns {Promise<rpcResponseType<any>>}
|
|
109
72
|
*/
|
|
110
|
-
async
|
|
111
|
-
return await _a.apiCallback('ttcCore.
|
|
73
|
+
async setAppFunctions(func) {
|
|
74
|
+
return await _a.apiCallback('ttcCore.setAppFunctions', [func]);
|
|
112
75
|
},
|
|
113
76
|
/**
|
|
114
77
|
* Clears chat history, soft clears messages but retains system prompt and functions, hard clears everything
|
|
115
78
|
*
|
|
116
|
-
* @param {
|
|
79
|
+
* @param {mode: string}
|
|
117
80
|
* @returns {Promise<rpcResponseType<string>>}
|
|
118
81
|
*/
|
|
119
|
-
async
|
|
120
|
-
return await _a.apiCallback('ttcCore.
|
|
121
|
-
},
|
|
122
|
-
/**
|
|
123
|
-
* fetches an emote
|
|
124
|
-
*
|
|
125
|
-
* @param {}
|
|
126
|
-
* @returns {Promise<rpcResponseType<{ emote: string; modelId?: string }>>}
|
|
127
|
-
*/
|
|
128
|
-
async fetchEmote() {
|
|
129
|
-
return await _a.apiCallback('ttcCore.fetchEmote');
|
|
82
|
+
async reset(mode) {
|
|
83
|
+
return await _a.apiCallback('ttcCore.reset', [mode]);
|
|
130
84
|
},
|
|
131
85
|
/**
|
|
132
86
|
* Adds a remote origin for an app
|
|
133
87
|
*
|
|
134
88
|
* @param {app_id: string}
|
|
135
|
-
* @returns {Promise<rpcResponseType<{ url: string; name: string }[]>>}
|
|
89
|
+
* @returns {Promise<rpcResponseType<{ url: string; name: string; apikey: string }[]>>}
|
|
136
90
|
*/
|
|
137
91
|
async fetchOrigins(app_id) {
|
|
138
92
|
return await _a.apiCallback('ttcCore.fetchOrigins', [app_id]);
|
|
139
93
|
},
|
|
140
94
|
};
|
|
141
|
-
this.AppOAuth = {
|
|
142
|
-
/**
|
|
143
|
-
* Generate OAuth authorization URL for app integration. Platform embeds this URL to start OAuth flow.
|
|
144
|
-
*
|
|
145
|
-
* @param {appId: string, redirectUri: string, scopes: string, state: string}
|
|
146
|
-
* @returns {Promise<rpcResponseType<{ authorizationUrl: string; state: string }>>}
|
|
147
|
-
*/
|
|
148
|
-
async generateAuthorizationUrl(appId, redirectUri, scopes, state) {
|
|
149
|
-
return await _a.apiCallback('AppOAuth.generateAuthorizationUrl', [appId, redirectUri, scopes, state]);
|
|
150
|
-
},
|
|
151
|
-
/**
|
|
152
|
-
* Exchange authorization code for access token. Called by platform backend after receiving code.
|
|
153
|
-
*
|
|
154
|
-
* @param {code: string, appId: string, redirectUri: string}
|
|
155
|
-
* @returns {Promise<rpcResponseType<{ accessToken: string; tokenType: string; expiresIn: number; appUserId: string; emote: any }>>}
|
|
156
|
-
*/
|
|
157
|
-
async exchangeCodeForToken(code, appId, redirectUri) {
|
|
158
|
-
return await _a.apiCallback('AppOAuth.exchangeCodeForToken', [code, appId, redirectUri]);
|
|
159
|
-
},
|
|
160
|
-
/**
|
|
161
|
-
* Refresh an expired access token for continued API access.
|
|
162
|
-
*
|
|
163
|
-
* @param {appUserId: string, appId: string}
|
|
164
|
-
* @returns {Promise<rpcResponseType<{ accessToken: string; tokenType: string; expiresIn: number; appUserId: string }>>}
|
|
165
|
-
*/
|
|
166
|
-
async refreshToken(appUserId, appId) {
|
|
167
|
-
return await _a.apiCallback('AppOAuth.refreshToken', [appUserId, appId]);
|
|
168
|
-
},
|
|
169
|
-
};
|
|
170
|
-
this.Media = {
|
|
171
|
-
/**
|
|
172
|
-
* Uploads an image to S3 and returns its URL. Replaces any existing image for the conversation.
|
|
173
|
-
*
|
|
174
|
-
* @param {appId: string, conversationId: string, file: any}
|
|
175
|
-
* @returns {Promise<rpcResponseType<{ url: string }>>}
|
|
176
|
-
*/
|
|
177
|
-
async uploadImage(appId, conversationId, file) {
|
|
178
|
-
return await _a.mediaCallback('Media.uploadImage', [appId, conversationId], file);
|
|
179
|
-
},
|
|
180
|
-
};
|
|
181
95
|
this.TCC = {
|
|
182
96
|
/**
|
|
183
97
|
* Get list of all models available to you
|
|
184
98
|
*
|
|
185
|
-
* @param {
|
|
99
|
+
* @param {}
|
|
186
100
|
* @returns {Promise<rpcResponseType<{ id: string; name: string; type: string; provider: string }[]>>}
|
|
187
101
|
*/
|
|
188
|
-
async get_models(
|
|
189
|
-
return await _a.apiCallback('TCC.get_models'
|
|
102
|
+
async get_models() {
|
|
103
|
+
return await _a.apiCallback('TCC.get_models');
|
|
190
104
|
},
|
|
191
105
|
/**
|
|
192
106
|
* Get current model for a conversation
|
|
193
107
|
*
|
|
194
|
-
* @param {
|
|
108
|
+
* @param {}
|
|
195
109
|
* @returns {Promise<rpcResponseType<{ emote: string; nlp_model: string; assistant: string }>>}
|
|
196
110
|
*/
|
|
197
|
-
async conversation_stats(
|
|
198
|
-
return await _a.apiCallback('TCC.conversation_stats'
|
|
111
|
+
async conversation_stats() {
|
|
112
|
+
return await _a.apiCallback('TCC.conversation_stats');
|
|
199
113
|
},
|
|
200
114
|
/**
|
|
201
115
|
* Changes the model for a conversation, use with caution, may discontinue chat if model is not compatible
|
|
202
116
|
*
|
|
203
|
-
* @param {
|
|
117
|
+
* @param {model_id: string, type: string}
|
|
204
118
|
* @returns {Promise<rpcResponseType<any>>}
|
|
205
119
|
*/
|
|
206
|
-
async change_to_model(
|
|
207
|
-
return await _a.apiCallback('TCC.change_to_model', [
|
|
120
|
+
async change_to_model(model_id, type) {
|
|
121
|
+
return await _a.apiCallback('TCC.change_to_model', [model_id, type]);
|
|
208
122
|
},
|
|
209
123
|
/**
|
|
210
124
|
* Trigger the ai to act based on a trigger message
|
|
211
125
|
*
|
|
212
|
-
* @param {
|
|
213
|
-
* @returns {Promise<rpcResponseType<any>>}
|
|
214
|
-
*/
|
|
215
|
-
async trigger(conversation_id, message, eta_seconds) {
|
|
216
|
-
return await _a.apiCallback('TCC.trigger', [conversation_id, message, eta_seconds]);
|
|
217
|
-
},
|
|
218
|
-
/**
|
|
219
|
-
* This function is used to invoke the llm with a description and instruction
|
|
220
|
-
*
|
|
221
|
-
* @param {conversation_id: string, input: Partial<{ description: string, instruction: string, construct_id: string }> }
|
|
126
|
+
* @param {message: string, eta_seconds: number}
|
|
222
127
|
* @returns {Promise<rpcResponseType<any>>}
|
|
223
128
|
*/
|
|
224
|
-
async
|
|
225
|
-
return await _a.apiCallback('TCC.
|
|
129
|
+
async trigger(message, eta_seconds) {
|
|
130
|
+
return await _a.apiCallback('TCC.trigger', [message, eta_seconds]);
|
|
226
131
|
},
|
|
227
132
|
/**
|
|
228
133
|
* specifies a selected data on the client for the ai to work with
|
|
229
134
|
*
|
|
230
|
-
* @param {
|
|
135
|
+
* @param {data: string}
|
|
231
136
|
* @returns {Promise<rpcResponseType<any>>}
|
|
232
137
|
*/
|
|
233
|
-
async select_context(
|
|
234
|
-
return await _a.apiCallback('TCC.select_context', [
|
|
138
|
+
async select_context(data) {
|
|
139
|
+
return await _a.apiCallback('TCC.select_context', [data]);
|
|
235
140
|
},
|
|
236
141
|
};
|
|
237
142
|
_a.token_cb = token_cb;
|
package/dist/ttc_server.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ttc_server.js","sourceRoot":"","sources":["../src/ttc_server.ts"],"names":[],"mappings":";;;;AACA,uDAA8C;AAU9C,IAAI,GAAG,GAAG,EAAE,CAAC;AAEN,MAAM,KAAK,GAAG,GAAG,EAAE;IAEtB,IAAI,GAAG;QAAE,OAAO,GAAG,CAAC;IAEpB,MAAM,G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