@tambo-ai/typescript-sdk 0.44.0 → 0.46.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.
- package/CHANGELOG.md +18 -0
- package/README.md +28 -107
- package/index.d.mts +0 -3
- package/index.d.ts +0 -3
- package/index.d.ts.map +1 -1
- package/index.js +0 -3
- package/index.js.map +1 -1
- package/index.mjs +0 -3
- package/index.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/beta/threads/suggestions.d.ts +8 -2
- package/resources/beta/threads/suggestions.d.ts.map +1 -1
- package/resources/index.d.ts +0 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +1 -3
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +0 -1
- package/resources/index.mjs.map +1 -1
- package/src/index.ts +0 -19
- package/src/resources/beta/threads/suggestions.ts +8 -2
- package/src/resources/index.ts +0 -8
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/resources/components.d.ts +0 -57
- package/resources/components.d.ts.map +0 -1
- package/resources/components.js +0 -15
- package/resources/components.js.map +0 -1
- package/resources/components.mjs +0 -11
- package/resources/components.mjs.map +0 -1
- package/src/resources/components.ts +0 -105
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.46.0 (2025-04-29)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.45.0...v0.46.0](https://github.com/tambo-ai/typescript-sdk/compare/v0.45.0...v0.46.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** api update ([8beaf2c](https://github.com/tambo-ai/typescript-sdk/commit/8beaf2cfceeb5744efdedf765b5ef5ad310381d0))
|
|
10
|
+
* **api:** remove config for old apis ([c90706e](https://github.com/tambo-ai/typescript-sdk/commit/c90706ed35a8542394a864850f555d8431c6c8e2))
|
|
11
|
+
|
|
12
|
+
## 0.45.0 (2025-04-28)
|
|
13
|
+
|
|
14
|
+
Full Changelog: [v0.44.0...v0.45.0](https://github.com/tambo-ai/typescript-sdk/compare/v0.44.0...v0.45.0)
|
|
15
|
+
|
|
16
|
+
### Features
|
|
17
|
+
|
|
18
|
+
* **api:** api update ([2870a89](https://github.com/tambo-ai/typescript-sdk/commit/2870a89bc11c2c801533e8b06f274cb26713b0f0))
|
|
19
|
+
* **api:** updated examples, params ([ff132ee](https://github.com/tambo-ai/typescript-sdk/commit/ff132ee0759dd7c3d9157457281d5a08c15da63e))
|
|
20
|
+
|
|
3
21
|
## 0.44.0 (2025-04-24)
|
|
4
22
|
|
|
5
23
|
Full Changelog: [v0.43.0...v0.44.0](https://github.com/tambo-ai/typescript-sdk/compare/v0.43.0...v0.44.0)
|
package/README.md
CHANGED
|
@@ -28,25 +28,14 @@ const client = new TamboAI({
|
|
|
28
28
|
});
|
|
29
29
|
|
|
30
30
|
async function main() {
|
|
31
|
-
const response = await client.
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
{
|
|
36
|
-
description: 'description',
|
|
37
|
-
name: 'name',
|
|
38
|
-
parameters: [{ description: 'description', isRequired: true, name: 'name', type: 'type' }],
|
|
39
|
-
},
|
|
40
|
-
],
|
|
41
|
-
description: 'description',
|
|
42
|
-
name: 'name',
|
|
43
|
-
props: { foo: 'bar' },
|
|
44
|
-
},
|
|
31
|
+
const response = await client.beta.threads.advance({
|
|
32
|
+
messageToAppend: {
|
|
33
|
+
'role"': 'user',
|
|
34
|
+
content: [{ type: 'text', text: 'What is the weather in berkeley?' }],
|
|
45
35
|
},
|
|
46
|
-
messageHistory: [{ message: 'message', sender: 'hydra' }],
|
|
47
36
|
});
|
|
48
37
|
|
|
49
|
-
console.log(response.
|
|
38
|
+
console.log(response.generationStage);
|
|
50
39
|
}
|
|
51
40
|
|
|
52
41
|
main();
|
|
@@ -66,24 +55,13 @@ const client = new TamboAI({
|
|
|
66
55
|
});
|
|
67
56
|
|
|
68
57
|
async function main() {
|
|
69
|
-
const params: TamboAI.
|
|
70
|
-
|
|
71
|
-
foo: {
|
|
72
|
-
contextTools: [
|
|
73
|
-
{
|
|
74
|
-
description: 'description',
|
|
75
|
-
name: 'name',
|
|
76
|
-
parameters: [{ description: 'description', isRequired: true, name: 'name', type: 'type' }],
|
|
77
|
-
},
|
|
78
|
-
],
|
|
79
|
-
description: 'description',
|
|
80
|
-
name: 'name',
|
|
81
|
-
props: { foo: 'bar' },
|
|
82
|
-
},
|
|
83
|
-
},
|
|
84
|
-
messageHistory: [{ message: 'message', sender: 'hydra' }],
|
|
58
|
+
const params: TamboAI.Beta.ThreadAdvanceByIDParams = {
|
|
59
|
+
messageToAppend: { role: 'user', content: [{ type: 'text', text: 'And what about oakland?' }] },
|
|
85
60
|
};
|
|
86
|
-
const response: TamboAI.
|
|
61
|
+
const response: TamboAI.Beta.ThreadAdvanceByIDResponse = await client.beta.threads.advanceById(
|
|
62
|
+
'thr_123',
|
|
63
|
+
params,
|
|
64
|
+
);
|
|
87
65
|
}
|
|
88
66
|
|
|
89
67
|
main();
|
|
@@ -100,23 +78,9 @@ a subclass of `APIError` will be thrown:
|
|
|
100
78
|
<!-- prettier-ignore -->
|
|
101
79
|
```ts
|
|
102
80
|
async function main() {
|
|
103
|
-
const response = await client.
|
|
104
|
-
.
|
|
105
|
-
|
|
106
|
-
foo: {
|
|
107
|
-
contextTools: [
|
|
108
|
-
{
|
|
109
|
-
description: 'description',
|
|
110
|
-
name: 'name',
|
|
111
|
-
parameters: [{ description: 'description', isRequired: true, name: 'name', type: 'type' }],
|
|
112
|
-
},
|
|
113
|
-
],
|
|
114
|
-
description: 'description',
|
|
115
|
-
name: 'name',
|
|
116
|
-
props: { foo: 'bar' },
|
|
117
|
-
},
|
|
118
|
-
},
|
|
119
|
-
messageHistory: [{ message: 'message', sender: 'hydra' }],
|
|
81
|
+
const response = await client.beta.threads
|
|
82
|
+
.advanceById('thr_123', {
|
|
83
|
+
messageToAppend: { role: 'user', content: [{ type: 'text', text: 'And what about oakland?' }] },
|
|
120
84
|
})
|
|
121
85
|
.catch(async (err) => {
|
|
122
86
|
if (err instanceof TamboAI.APIError) {
|
|
@@ -161,7 +125,7 @@ const client = new TamboAI({
|
|
|
161
125
|
});
|
|
162
126
|
|
|
163
127
|
// Or, configure per-request:
|
|
164
|
-
await client.
|
|
128
|
+
await client.beta.threads.advanceById('thr_123', { messageToAppend: { role: 'user', content: [{ type: 'text', text: 'And what about oakland?' }] } }, {
|
|
165
129
|
maxRetries: 5,
|
|
166
130
|
});
|
|
167
131
|
```
|
|
@@ -178,7 +142,7 @@ const client = new TamboAI({
|
|
|
178
142
|
});
|
|
179
143
|
|
|
180
144
|
// Override per-request:
|
|
181
|
-
await client.
|
|
145
|
+
await client.beta.threads.advanceById('thr_123', { messageToAppend: { role: 'user', content: [{ type: 'text', text: 'And what about oakland?' }] } }, {
|
|
182
146
|
timeout: 5 * 1000,
|
|
183
147
|
});
|
|
184
148
|
```
|
|
@@ -196,7 +160,7 @@ You can use the `for await … of` syntax to iterate through items across all pa
|
|
|
196
160
|
async function fetchAllBetaThreads(params) {
|
|
197
161
|
const allBetaThreads = [];
|
|
198
162
|
// Automatically fetches more pages as needed.
|
|
199
|
-
for await (const thread of client.beta.threads.list('
|
|
163
|
+
for await (const thread of client.beta.threads.list('p_123')) {
|
|
200
164
|
allBetaThreads.push(thread);
|
|
201
165
|
}
|
|
202
166
|
return allBetaThreads;
|
|
@@ -206,7 +170,7 @@ async function fetchAllBetaThreads(params) {
|
|
|
206
170
|
Alternatively, you can request a single page at a time:
|
|
207
171
|
|
|
208
172
|
```ts
|
|
209
|
-
let page = await client.beta.threads.list('
|
|
173
|
+
let page = await client.beta.threads.list('p_123');
|
|
210
174
|
for (const thread of page.items) {
|
|
211
175
|
console.log(thread);
|
|
212
176
|
}
|
|
@@ -230,49 +194,21 @@ You can also use the `.withResponse()` method to get the raw `Response` along wi
|
|
|
230
194
|
```ts
|
|
231
195
|
const client = new TamboAI();
|
|
232
196
|
|
|
233
|
-
const response = await client.
|
|
234
|
-
.
|
|
235
|
-
|
|
236
|
-
foo: {
|
|
237
|
-
contextTools: [
|
|
238
|
-
{
|
|
239
|
-
description: 'description',
|
|
240
|
-
name: 'name',
|
|
241
|
-
parameters: [{ description: 'description', isRequired: true, name: 'name', type: 'type' }],
|
|
242
|
-
},
|
|
243
|
-
],
|
|
244
|
-
description: 'description',
|
|
245
|
-
name: 'name',
|
|
246
|
-
props: { foo: 'bar' },
|
|
247
|
-
},
|
|
248
|
-
},
|
|
249
|
-
messageHistory: [{ message: 'message', sender: 'hydra' }],
|
|
197
|
+
const response = await client.beta.threads
|
|
198
|
+
.advanceById('thr_123', {
|
|
199
|
+
messageToAppend: { role: 'user', content: [{ type: 'text', text: 'And what about oakland?' }] },
|
|
250
200
|
})
|
|
251
201
|
.asResponse();
|
|
252
202
|
console.log(response.headers.get('X-My-Header'));
|
|
253
203
|
console.log(response.statusText); // access the underlying Response object
|
|
254
204
|
|
|
255
|
-
const { data: response, response: raw } = await client.
|
|
256
|
-
.
|
|
257
|
-
|
|
258
|
-
foo: {
|
|
259
|
-
contextTools: [
|
|
260
|
-
{
|
|
261
|
-
description: 'description',
|
|
262
|
-
name: 'name',
|
|
263
|
-
parameters: [{ description: 'description', isRequired: true, name: 'name', type: 'type' }],
|
|
264
|
-
},
|
|
265
|
-
],
|
|
266
|
-
description: 'description',
|
|
267
|
-
name: 'name',
|
|
268
|
-
props: { foo: 'bar' },
|
|
269
|
-
},
|
|
270
|
-
},
|
|
271
|
-
messageHistory: [{ message: 'message', sender: 'hydra' }],
|
|
205
|
+
const { data: response, response: raw } = await client.beta.threads
|
|
206
|
+
.advanceById('thr_123', {
|
|
207
|
+
messageToAppend: { role: 'user', content: [{ type: 'text', text: 'And what about oakland?' }] },
|
|
272
208
|
})
|
|
273
209
|
.withResponse();
|
|
274
210
|
console.log(raw.headers.get('X-My-Header'));
|
|
275
|
-
console.log(response.
|
|
211
|
+
console.log(response.generationStage);
|
|
276
212
|
```
|
|
277
213
|
|
|
278
214
|
### Making custom/undocumented requests
|
|
@@ -376,24 +312,9 @@ const client = new TamboAI({
|
|
|
376
312
|
});
|
|
377
313
|
|
|
378
314
|
// Override per-request:
|
|
379
|
-
await client.
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
foo: {
|
|
383
|
-
contextTools: [
|
|
384
|
-
{
|
|
385
|
-
description: 'description',
|
|
386
|
-
name: 'name',
|
|
387
|
-
parameters: [{ description: 'description', isRequired: true, name: 'name', type: 'type' }],
|
|
388
|
-
},
|
|
389
|
-
],
|
|
390
|
-
description: 'description',
|
|
391
|
-
name: 'name',
|
|
392
|
-
props: { foo: 'bar' },
|
|
393
|
-
},
|
|
394
|
-
},
|
|
395
|
-
messageHistory: [{ message: 'message', sender: 'hydra' }],
|
|
396
|
-
},
|
|
315
|
+
await client.beta.threads.advanceById(
|
|
316
|
+
'thr_123',
|
|
317
|
+
{ messageToAppend: { role: 'user', content: [{ type: 'text', text: 'And what about oakland?' }] } },
|
|
397
318
|
{
|
|
398
319
|
httpAgent: new http.Agent({ keepAlive: false }),
|
|
399
320
|
},
|
package/index.d.mts
CHANGED
|
@@ -5,7 +5,6 @@ import * as Pagination from "./pagination.js";
|
|
|
5
5
|
import { type OffsetAndLimitParams, OffsetAndLimitResponse } from "./pagination.js";
|
|
6
6
|
import * as Uploads from "./uploads.js";
|
|
7
7
|
import * as API from "./resources/index.js";
|
|
8
|
-
import { ComponentGenerateParams, ComponentGenerateResponse, ComponentHydrateParams, ComponentHydrateResponse, Components, LegacyChatMessage } from "./resources/components.js";
|
|
9
8
|
import { Beta } from "./resources/beta/beta.js";
|
|
10
9
|
declare const environments: {
|
|
11
10
|
production: string;
|
|
@@ -95,7 +94,6 @@ export declare class TamboAI extends Core.APIClient {
|
|
|
95
94
|
* @param {Core.DefaultQuery} opts.defaultQuery - Default query parameters to include with every request to the API.
|
|
96
95
|
*/
|
|
97
96
|
constructor({ baseURL, apiKey, ...opts }?: ClientOptions);
|
|
98
|
-
components: API.Components;
|
|
99
97
|
beta: API.Beta;
|
|
100
98
|
protected defaultQuery(): Core.DefaultQuery | undefined;
|
|
101
99
|
protected defaultHeaders(opts: Core.FinalRequestOptions): Core.Headers;
|
|
@@ -123,7 +121,6 @@ export declare namespace TamboAI {
|
|
|
123
121
|
export type RequestOptions = Core.RequestOptions;
|
|
124
122
|
export import OffsetAndLimit = Pagination.OffsetAndLimit;
|
|
125
123
|
export { type OffsetAndLimitParams as OffsetAndLimitParams, type OffsetAndLimitResponse as OffsetAndLimitResponse, };
|
|
126
|
-
export { Components as Components, type LegacyChatMessage as LegacyChatMessage, type ComponentGenerateResponse as ComponentGenerateResponse, type ComponentHydrateResponse as ComponentHydrateResponse, type ComponentGenerateParams as ComponentGenerateParams, type ComponentHydrateParams as ComponentHydrateParams, };
|
|
127
124
|
export { Beta as Beta };
|
|
128
125
|
export type AvailableComponent = API.AvailableComponent;
|
|
129
126
|
export type ComponentContextToolMetadata = API.ComponentContextToolMetadata;
|
package/index.d.ts
CHANGED
|
@@ -5,7 +5,6 @@ import * as Pagination from "./pagination.js";
|
|
|
5
5
|
import { type OffsetAndLimitParams, OffsetAndLimitResponse } from "./pagination.js";
|
|
6
6
|
import * as Uploads from "./uploads.js";
|
|
7
7
|
import * as API from "./resources/index.js";
|
|
8
|
-
import { ComponentGenerateParams, ComponentGenerateResponse, ComponentHydrateParams, ComponentHydrateResponse, Components, LegacyChatMessage } from "./resources/components.js";
|
|
9
8
|
import { Beta } from "./resources/beta/beta.js";
|
|
10
9
|
declare const environments: {
|
|
11
10
|
production: string;
|
|
@@ -95,7 +94,6 @@ export declare class TamboAI extends Core.APIClient {
|
|
|
95
94
|
* @param {Core.DefaultQuery} opts.defaultQuery - Default query parameters to include with every request to the API.
|
|
96
95
|
*/
|
|
97
96
|
constructor({ baseURL, apiKey, ...opts }?: ClientOptions);
|
|
98
|
-
components: API.Components;
|
|
99
97
|
beta: API.Beta;
|
|
100
98
|
protected defaultQuery(): Core.DefaultQuery | undefined;
|
|
101
99
|
protected defaultHeaders(opts: Core.FinalRequestOptions): Core.Headers;
|
|
@@ -123,7 +121,6 @@ export declare namespace TamboAI {
|
|
|
123
121
|
export type RequestOptions = Core.RequestOptions;
|
|
124
122
|
export import OffsetAndLimit = Pagination.OffsetAndLimit;
|
|
125
123
|
export { type OffsetAndLimitParams as OffsetAndLimitParams, type OffsetAndLimitResponse as OffsetAndLimitResponse, };
|
|
126
|
-
export { Components as Components, type LegacyChatMessage as LegacyChatMessage, type ComponentGenerateResponse as ComponentGenerateResponse, type ComponentHydrateResponse as ComponentHydrateResponse, type ComponentGenerateParams as ComponentGenerateParams, type ComponentHydrateParams as ComponentHydrateParams, };
|
|
127
124
|
export { Beta as Beta };
|
|
128
125
|
export type AvailableComponent = API.AvailableComponent;
|
|
129
126
|
export type ComponentContextToolMetadata = API.ComponentContextToolMetadata;
|
package/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,KAAK,IAAI,MAAM,QAAQ,CAAC;AAC/B,OAAO,KAAK,MAAM,MAAM,SAAS,CAAC;AAClC,OAAO,KAAK,UAAU,MAAM,cAAc,CAAC;AAC3C,OAAO,EAAE,KAAK,oBAAoB,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AACjF,OAAO,KAAK,OAAO,MAAM,WAAW,CAAC;AACrC,OAAO,KAAK,GAAG,MAAM,mBAAmB,CAAC;AACzC,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,KAAK,IAAI,MAAM,QAAQ,CAAC;AAC/B,OAA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AI,IAAI,EAAE,CAAC;IAExB,MAAM,MAAM,kBAAkB,GAAG,GAAG,CAAC,kBAAkB,CAAC;IACxD,MAAM,MAAM,4BAA4B,GAAG,GAAG,CAAC,4BAA4B,CAAC;IAC5E,MAAM,MAAM,eAAe,GAAG,GAAG,CAAC,eAAe,CAAC;IAClD,MAAM,MAAM,cAAc,GAAG,GAAG,CAAC,cAAc,CAAC;CACjD;AAED,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACjD,OAAO,EACL,YAAY,EACZ,QAAQ,EACR,kBAAkB,EAClB,yBAAyB,EACzB,iBAAiB,EACjB,aAAa,EACb,aAAa,EACb,cAAc,EACd,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACrB,wBAAwB,GACzB,MAAM,SAAS,CAAC;AAEjB,eAAe,OAAO,CAAC;AACvB,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC"}
|
package/index.js
CHANGED
|
@@ -31,7 +31,6 @@ const Errors = __importStar(require("./error.js"));
|
|
|
31
31
|
const Pagination = __importStar(require("./pagination.js"));
|
|
32
32
|
const Uploads = __importStar(require("./uploads.js"));
|
|
33
33
|
const API = __importStar(require("./resources/index.js"));
|
|
34
|
-
const components_1 = require("./resources/components.js");
|
|
35
34
|
const beta_1 = require("./resources/beta/beta.js");
|
|
36
35
|
const environments = {
|
|
37
36
|
production: 'https://api.tambo.co',
|
|
@@ -71,7 +70,6 @@ class TamboAI extends Core.APIClient {
|
|
|
71
70
|
maxRetries: options.maxRetries,
|
|
72
71
|
fetch: options.fetch,
|
|
73
72
|
});
|
|
74
|
-
this.components = new API.Components(this);
|
|
75
73
|
this.beta = new API.Beta(this);
|
|
76
74
|
this._options = options;
|
|
77
75
|
this.apiKey = apiKey;
|
|
@@ -120,7 +118,6 @@ TamboAI.PermissionDeniedError = Errors.PermissionDeniedError;
|
|
|
120
118
|
TamboAI.UnprocessableEntityError = Errors.UnprocessableEntityError;
|
|
121
119
|
TamboAI.toFile = Uploads.toFile;
|
|
122
120
|
TamboAI.fileFromPath = Uploads.fileFromPath;
|
|
123
|
-
TamboAI.Components = components_1.Components;
|
|
124
121
|
TamboAI.Beta = beta_1.Beta;
|
|
125
122
|
var uploads_1 = require("./uploads.js");
|
|
126
123
|
Object.defineProperty(exports, "toFile", { enumerable: true, get: function () { return uploads_1.toFile; } });
|
package/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGtF,gDAA+B;AAC/B,mDAAkC;AAClC,4DAA2C;AAE3C,sDAAqC;AACrC,0DAAyC;AACzC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGtF,gDAA+B;AAC/B,mDAAkC;AAClC,4DAA2C;AAE3C,sDAAqC;AACrC,0DAAyC;AACzC,mDAA6C;AAE7C,MAAM,YAAY,GAAG;IACnB,UAAU,EAAE,sBAAsB;IAClC,OAAO,EAAE,sCAAsC;CAChD,CAAC;AA2EF;;GAEG;AACH,MAAa,OAAQ,SAAQ,IAAI,CAAC,SAAS;IAKzC;;;;;;;;;;;;OAYG;IACH,YAAY,EACV,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,mBAAmB,CAAC,EAC3C,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,IAAI,IAAI,EAC9C,GAAG,IAAI,KACU,EAAE;QACnB,MAAM,OAAO,GAAkB;YAC7B,MAAM;YACN,GAAG,IAAI;YACP,OAAO;YACP,WAAW,EAAE,IAAI,CAAC,WAAW,IAAI,YAAY;SAC9C,CAAC;QAEF,IAAI,OAAO,IAAI,IAAI,CAAC,WAAW,EAAE;YAC/B,MAAM,IAAI,MAAM,CAAC,YAAY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"}
|
package/index.mjs
CHANGED
|
@@ -5,7 +5,6 @@ import * as Errors from "./error.mjs";
|
|
|
5
5
|
import * as Pagination from "./pagination.mjs";
|
|
6
6
|
import * as Uploads from "./uploads.mjs";
|
|
7
7
|
import * as API from "./resources/index.mjs";
|
|
8
|
-
import { Components, } from "./resources/components.mjs";
|
|
9
8
|
import { Beta } from "./resources/beta/beta.mjs";
|
|
10
9
|
const environments = {
|
|
11
10
|
production: 'https://api.tambo.co',
|
|
@@ -45,7 +44,6 @@ export class TamboAI extends Core.APIClient {
|
|
|
45
44
|
maxRetries: options.maxRetries,
|
|
46
45
|
fetch: options.fetch,
|
|
47
46
|
});
|
|
48
|
-
this.components = new API.Components(this);
|
|
49
47
|
this.beta = new API.Beta(this);
|
|
50
48
|
this._options = options;
|
|
51
49
|
this.apiKey = apiKey;
|
|
@@ -93,7 +91,6 @@ TamboAI.PermissionDeniedError = Errors.PermissionDeniedError;
|
|
|
93
91
|
TamboAI.UnprocessableEntityError = Errors.UnprocessableEntityError;
|
|
94
92
|
TamboAI.toFile = Uploads.toFile;
|
|
95
93
|
TamboAI.fileFromPath = Uploads.fileFromPath;
|
|
96
|
-
TamboAI.Components = Components;
|
|
97
94
|
TamboAI.Beta = Beta;
|
|
98
95
|
export { toFile, fileFromPath } from "./uploads.mjs";
|
|
99
96
|
export { TamboAIError, APIError, APIConnectionError, APIConnectionTimeoutError, APIUserAbortError, NotFoundError, ConflictError, RateLimitError, BadRequestError, AuthenticationError, InternalServerError, PermissionDeniedError, UnprocessableEntityError, } from "./error.mjs";
|
package/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;;OAG/E,KAAK,IAAI;OACT,KAAK,MAAM;OACX,KAAK,UAAU;OAEf,KAAK,OAAO;OACZ,KAAK,GAAG;OACR,
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["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AAC,qBAAqB,CAAC;AACrD,gCAAwB,GAAG,MAAM,CAAC,wBAAwB,CAAC;AAE3D,cAAM,GAAG,OAAO,CAAC,MAAM,CAAC;AACxB,oBAAY,GAAG,OAAO,CAAC,YAAY,CAAC;AAG7C,OAAO,CAAC,IAAI,GAAG,IAAI,CAAC;OAkBb,EAAE,MAAM,EAAE,YAAY,EAAE;OACxB,EACL,YAAY,EACZ,QAAQ,EACR,kBAAkB,EAClB,yBAAyB,EACzB,iBAAiB,EACjB,aAAa,EACb,aAAa,EACb,cAAc,EACd,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACrB,wBAAwB,GACzB;AAED,eAAe,OAAO,CAAC;OAChB,EAAE,aAAa,EAAE"}
|
package/package.json
CHANGED
|
@@ -34,7 +34,10 @@ export interface Suggestion {
|
|
|
34
34
|
metadata?: Record<string, string>;
|
|
35
35
|
}
|
|
36
36
|
export interface SuggestionsGenerate {
|
|
37
|
-
|
|
37
|
+
/**
|
|
38
|
+
* Available components that can be used with this suggestion
|
|
39
|
+
*/
|
|
40
|
+
availableComponents?: Array<Shared.AvailableComponent>;
|
|
38
41
|
/**
|
|
39
42
|
* Maximum number of suggestions to generate
|
|
40
43
|
*/
|
|
@@ -43,7 +46,10 @@ export interface SuggestionsGenerate {
|
|
|
43
46
|
export type SuggestionListResponse = Array<Suggestion>;
|
|
44
47
|
export type SuggestionGenerateResponse = Array<Suggestion>;
|
|
45
48
|
export interface SuggestionGenerateParams {
|
|
46
|
-
|
|
49
|
+
/**
|
|
50
|
+
* Available components that can be used with this suggestion
|
|
51
|
+
*/
|
|
52
|
+
availableComponents?: Array<Shared.AvailableComponent>;
|
|
47
53
|
/**
|
|
48
54
|
* Maximum number of suggestions to generate
|
|
49
55
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"suggestions.d.ts","sourceRoot":"","sources":["../../../src/resources/beta/threads/suggestions.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,W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@@ -1,4 +1,3 @@
|
|
|
1
1
|
export * from "./shared.js";
|
|
2
2
|
export { Beta } from "./beta/beta.js";
|
|
3
|
-
export { Components, type LegacyChatMessage, type ComponentGenerateResponse, type ComponentHydrateResponse, type ComponentGenerateParams, type ComponentHydrateParams, } from "./components.js";
|
|
4
3
|
//# sourceMappingURL=index.d.ts.map
|
package/resources/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAEA,cAAc,UAAU,CAAC;AACzB,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAEA,cAAc,UAAU,CAAC;AACzB,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC"}
|
package/resources/index.js
CHANGED
|
@@ -15,10 +15,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
16
16
|
};
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.
|
|
18
|
+
exports.Beta = void 0;
|
|
19
19
|
__exportStar(require("./shared.js"), exports);
|
|
20
20
|
var beta_1 = require("./beta/beta.js");
|
|
21
21
|
Object.defineProperty(exports, "Beta", { enumerable: true, get: function () { return beta_1.Beta; } });
|
|
22
|
-
var components_1 = require("./components.js");
|
|
23
|
-
Object.defineProperty(exports, "Components", { enumerable: true, get: function () { return components_1.Components; } });
|
|
24
22
|
//# sourceMappingURL=index.js.map
|
package/resources/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;;AAEtF,8CAAyB;AACzB,uCAAmC;AAA1B,4FAAA,IAAI,OAAA
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;;AAEtF,8CAAyB;AACzB,uCAAmC;AAA1B,4FAAA,IAAI,OAAA"}
|
package/resources/index.mjs
CHANGED
package/resources/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;;OAG/E,EAAE,IAAI,EAAE
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;;OAG/E,EAAE,IAAI,EAAE"}
|
package/src/index.ts
CHANGED
|
@@ -7,14 +7,6 @@ import * as Pagination from './pagination';
|
|
|
7
7
|
import { type OffsetAndLimitParams, OffsetAndLimitResponse } from './pagination';
|
|
8
8
|
import * as Uploads from './uploads';
|
|
9
9
|
import * as API from './resources/index';
|
|
10
|
-
import {
|
|
11
|
-
ComponentGenerateParams,
|
|
12
|
-
ComponentGenerateResponse,
|
|
13
|
-
ComponentHydrateParams,
|
|
14
|
-
ComponentHydrateResponse,
|
|
15
|
-
Components,
|
|
16
|
-
LegacyChatMessage,
|
|
17
|
-
} from './resources/components';
|
|
18
10
|
import { Beta } from './resources/beta/beta';
|
|
19
11
|
|
|
20
12
|
const environments = {
|
|
@@ -147,7 +139,6 @@ export class TamboAI extends Core.APIClient {
|
|
|
147
139
|
this.apiKey = apiKey;
|
|
148
140
|
}
|
|
149
141
|
|
|
150
|
-
components: API.Components = new API.Components(this);
|
|
151
142
|
beta: API.Beta = new API.Beta(this);
|
|
152
143
|
|
|
153
144
|
protected override defaultQuery(): Core.DefaultQuery | undefined {
|
|
@@ -202,7 +193,6 @@ export class TamboAI extends Core.APIClient {
|
|
|
202
193
|
static fileFromPath = Uploads.fileFromPath;
|
|
203
194
|
}
|
|
204
195
|
|
|
205
|
-
TamboAI.Components = Components;
|
|
206
196
|
TamboAI.Beta = Beta;
|
|
207
197
|
export declare namespace TamboAI {
|
|
208
198
|
export type RequestOptions = Core.RequestOptions;
|
|
@@ -213,15 +203,6 @@ export declare namespace TamboAI {
|
|
|
213
203
|
type OffsetAndLimitResponse as OffsetAndLimitResponse,
|
|
214
204
|
};
|
|
215
205
|
|
|
216
|
-
export {
|
|
217
|
-
Components as Components,
|
|
218
|
-
type LegacyChatMessage as LegacyChatMessage,
|
|
219
|
-
type ComponentGenerateResponse as ComponentGenerateResponse,
|
|
220
|
-
type ComponentHydrateResponse as ComponentHydrateResponse,
|
|
221
|
-
type ComponentGenerateParams as ComponentGenerateParams,
|
|
222
|
-
type ComponentHydrateParams as ComponentHydrateParams,
|
|
223
|
-
};
|
|
224
|
-
|
|
225
206
|
export { Beta as Beta };
|
|
226
207
|
|
|
227
208
|
export type AvailableComponent = API.AvailableComponent;
|
|
@@ -57,7 +57,10 @@ export interface Suggestion {
|
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
export interface SuggestionsGenerate {
|
|
60
|
-
|
|
60
|
+
/**
|
|
61
|
+
* Available components that can be used with this suggestion
|
|
62
|
+
*/
|
|
63
|
+
availableComponents?: Array<Shared.AvailableComponent>;
|
|
61
64
|
|
|
62
65
|
/**
|
|
63
66
|
* Maximum number of suggestions to generate
|
|
@@ -70,7 +73,10 @@ export type SuggestionListResponse = Array<Suggestion>;
|
|
|
70
73
|
export type SuggestionGenerateResponse = Array<Suggestion>;
|
|
71
74
|
|
|
72
75
|
export interface SuggestionGenerateParams {
|
|
73
|
-
|
|
76
|
+
/**
|
|
77
|
+
* Available components that can be used with this suggestion
|
|
78
|
+
*/
|
|
79
|
+
availableComponents?: Array<Shared.AvailableComponent>;
|
|
74
80
|
|
|
75
81
|
/**
|
|
76
82
|
* Maximum number of suggestions to generate
|
package/src/resources/index.ts
CHANGED
|
@@ -2,11 +2,3 @@
|
|
|
2
2
|
|
|
3
3
|
export * from './shared';
|
|
4
4
|
export { Beta } from './beta/beta';
|
|
5
|
-
export {
|
|
6
|
-
Components,
|
|
7
|
-
type LegacyChatMessage,
|
|
8
|
-
type ComponentGenerateResponse,
|
|
9
|
-
type ComponentHydrateResponse,
|
|
10
|
-
type ComponentGenerateParams,
|
|
11
|
-
type ComponentHydrateParams,
|
|
12
|
-
} from './components';
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.46.0'; // x-release-please-version
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.46.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.46.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { APIResource } from "../resource.js";
|
|
2
|
-
import * as Core from "../core.js";
|
|
3
|
-
import * as Shared from "./shared.js";
|
|
4
|
-
export declare class Components extends APIResource {
|
|
5
|
-
generate(body: ComponentGenerateParams, options?: Core.RequestOptions): Core.APIPromise<ComponentGenerateResponse>;
|
|
6
|
-
hydrate(body: ComponentHydrateParams, options?: Core.RequestOptions): Core.APIPromise<ComponentHydrateResponse>;
|
|
7
|
-
}
|
|
8
|
-
export interface LegacyChatMessage {
|
|
9
|
-
message: string;
|
|
10
|
-
sender: 'hydra' | 'user' | 'tool';
|
|
11
|
-
additionalContext?: string;
|
|
12
|
-
}
|
|
13
|
-
export interface ComponentGenerateResponse {
|
|
14
|
-
componentName: string | null;
|
|
15
|
-
message: string;
|
|
16
|
-
props: Record<string, unknown>;
|
|
17
|
-
threadId: string;
|
|
18
|
-
suggestedActions?: Array<ComponentGenerateResponse.SuggestedAction>;
|
|
19
|
-
toolCallRequest?: Shared.ToolCallRequest;
|
|
20
|
-
}
|
|
21
|
-
export declare namespace ComponentGenerateResponse {
|
|
22
|
-
interface SuggestedAction {
|
|
23
|
-
actionText: string;
|
|
24
|
-
label: string;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
export interface ComponentHydrateResponse {
|
|
28
|
-
componentName: string | null;
|
|
29
|
-
message: string;
|
|
30
|
-
props: Record<string, unknown>;
|
|
31
|
-
threadId: string;
|
|
32
|
-
suggestedActions?: Array<ComponentHydrateResponse.SuggestedAction>;
|
|
33
|
-
toolCallRequest?: Shared.ToolCallRequest;
|
|
34
|
-
}
|
|
35
|
-
export declare namespace ComponentHydrateResponse {
|
|
36
|
-
interface SuggestedAction {
|
|
37
|
-
actionText: string;
|
|
38
|
-
label: string;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
export interface ComponentGenerateParams {
|
|
42
|
-
availableComponents: Record<string, Shared.AvailableComponent>;
|
|
43
|
-
messageHistory: Array<LegacyChatMessage>;
|
|
44
|
-
contextKey?: string;
|
|
45
|
-
threadId?: string;
|
|
46
|
-
}
|
|
47
|
-
export interface ComponentHydrateParams {
|
|
48
|
-
component: Shared.AvailableComponent;
|
|
49
|
-
messageHistory: Array<LegacyChatMessage>;
|
|
50
|
-
contextKey?: string;
|
|
51
|
-
threadId?: string;
|
|
52
|
-
toolResponse?: unknown;
|
|
53
|
-
}
|
|
54
|
-
export declare namespace Components {
|
|
55
|
-
export { type LegacyChatMessage as LegacyChatMessage, type ComponentGenerateResponse as ComponentGenerateResponse, type ComponentHydrateResponse as ComponentHydrateResponse, type ComponentGenerateParams as ComponentGenerateParams, type ComponentHydrateParams as ComponentHydrateParams, };
|
|
56
|
-
}
|
|
57
|
-
//# sourceMappingURL=components.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"components.d.ts","sourceRoot":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Q,EAAE,MAAM,CAAC;IAEjB,gBAAgB,CAAC,EAAE,KAAK,CAAC,wBAAwB,CAAC,eAAe,CAAC,CAAC;IAEnE,eAAe,CAAC,EAAE,MAAM,CAAC,eAAe,CAAC;CAC1C;AAED,yBAAiB,wBAAwB,CAAC;IACxC,UAAiB,eAAe;QAC9B,UAAU,EAAE,MAAM,CAAC;QAEnB,KAAK,EAAE,MAAM,CAAC;KACf;CACF;AAED,MAAM,WAAW,uBAAuB;IACtC,mBAAmB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,kBAAkB,CAAC,CAAC;IAE/D,cAAc,EAAE,KAAK,CAAC,iBAAiB,CAAC,CAAC;IAEzC,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,sBAAsB;IACrC,SAAS,EAAE,MAAM,CAAC,kBAAkB,CAAC;IAErC,cAAc,EAAE,KAAK,CAAC,iBAAiB,CAAC,CAAC;IAEzC,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAED,MAAM,CAAC,OAAO,WAAW,UAAU,CAAC;IAClC,OAAO,EACL,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
|
package/resources/components.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.Components = void 0;
|
|
5
|
-
const resource_1 = require("../resource.js");
|
|
6
|
-
class Components extends resource_1.APIResource {
|
|
7
|
-
generate(body, options) {
|
|
8
|
-
return this._client.post('/components/generate', { body, ...options });
|
|
9
|
-
}
|
|
10
|
-
hydrate(body, options) {
|
|
11
|
-
return this._client.post('/components/hydrate', { body, ...options });
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
exports.Components = Components;
|
|
15
|
-
//# sourceMappingURL=components.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"components.js","sourceRoot":"","sources":["../src/resources/components.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,6CAA0C;AAI1C,MAAa,UAAW,SAAQ,sBAAW;IACzC,QAAQ,CACN,IAA6B,EAC7B,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,sBAAsB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzE,CAAC;IAED,OAAO,CACL,IAA4B,EAC5B,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,qBAAqB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxE,CAAC;CACF;AAdD,gCAcC"}
|
package/resources/components.mjs
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
import { APIResource } from "../resource.mjs";
|
|
3
|
-
export class Components extends APIResource {
|
|
4
|
-
generate(body, options) {
|
|
5
|
-
return this._client.post('/components/generate', { body, ...options });
|
|
6
|
-
}
|
|
7
|
-
hydrate(body, options) {
|
|
8
|
-
return this._client.post('/components/hydrate', { body, ...options });
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
//# sourceMappingURL=components.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"components.mjs","sourceRoot":"","sources":["../src/resources/components.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAItB,MAAM,OAAO,UAAW,SAAQ,WAAW;IACzC,QAAQ,CACN,IAA6B,EAC7B,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,sBAAsB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzE,CAAC;IAED,OAAO,CACL,IAA4B,EAC5B,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,qBAAqB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxE,CAAC;CACF"}
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
import { APIResource } from '../resource';
|
|
4
|
-
import * as Core from '../core';
|
|
5
|
-
import * as Shared from './shared';
|
|
6
|
-
|
|
7
|
-
export class Components extends APIResource {
|
|
8
|
-
generate(
|
|
9
|
-
body: ComponentGenerateParams,
|
|
10
|
-
options?: Core.RequestOptions,
|
|
11
|
-
): Core.APIPromise<ComponentGenerateResponse> {
|
|
12
|
-
return this._client.post('/components/generate', { body, ...options });
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
hydrate(
|
|
16
|
-
body: ComponentHydrateParams,
|
|
17
|
-
options?: Core.RequestOptions,
|
|
18
|
-
): Core.APIPromise<ComponentHydrateResponse> {
|
|
19
|
-
return this._client.post('/components/hydrate', { body, ...options });
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export interface LegacyChatMessage {
|
|
24
|
-
message: string;
|
|
25
|
-
|
|
26
|
-
sender: 'hydra' | 'user' | 'tool';
|
|
27
|
-
|
|
28
|
-
additionalContext?: string;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
export interface ComponentGenerateResponse {
|
|
32
|
-
componentName: string | null;
|
|
33
|
-
|
|
34
|
-
message: string;
|
|
35
|
-
|
|
36
|
-
props: Record<string, unknown>;
|
|
37
|
-
|
|
38
|
-
threadId: string;
|
|
39
|
-
|
|
40
|
-
suggestedActions?: Array<ComponentGenerateResponse.SuggestedAction>;
|
|
41
|
-
|
|
42
|
-
toolCallRequest?: Shared.ToolCallRequest;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export namespace ComponentGenerateResponse {
|
|
46
|
-
export interface SuggestedAction {
|
|
47
|
-
actionText: string;
|
|
48
|
-
|
|
49
|
-
label: string;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
export interface ComponentHydrateResponse {
|
|
54
|
-
componentName: string | null;
|
|
55
|
-
|
|
56
|
-
message: string;
|
|
57
|
-
|
|
58
|
-
props: Record<string, unknown>;
|
|
59
|
-
|
|
60
|
-
threadId: string;
|
|
61
|
-
|
|
62
|
-
suggestedActions?: Array<ComponentHydrateResponse.SuggestedAction>;
|
|
63
|
-
|
|
64
|
-
toolCallRequest?: Shared.ToolCallRequest;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
export namespace ComponentHydrateResponse {
|
|
68
|
-
export interface SuggestedAction {
|
|
69
|
-
actionText: string;
|
|
70
|
-
|
|
71
|
-
label: string;
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
export interface ComponentGenerateParams {
|
|
76
|
-
availableComponents: Record<string, Shared.AvailableComponent>;
|
|
77
|
-
|
|
78
|
-
messageHistory: Array<LegacyChatMessage>;
|
|
79
|
-
|
|
80
|
-
contextKey?: string;
|
|
81
|
-
|
|
82
|
-
threadId?: string;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
export interface ComponentHydrateParams {
|
|
86
|
-
component: Shared.AvailableComponent;
|
|
87
|
-
|
|
88
|
-
messageHistory: Array<LegacyChatMessage>;
|
|
89
|
-
|
|
90
|
-
contextKey?: string;
|
|
91
|
-
|
|
92
|
-
threadId?: string;
|
|
93
|
-
|
|
94
|
-
toolResponse?: unknown;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
export declare namespace Components {
|
|
98
|
-
export {
|
|
99
|
-
type LegacyChatMessage as LegacyChatMessage,
|
|
100
|
-
type ComponentGenerateResponse as ComponentGenerateResponse,
|
|
101
|
-
type ComponentHydrateResponse as ComponentHydrateResponse,
|
|
102
|
-
type ComponentGenerateParams as ComponentGenerateParams,
|
|
103
|
-
type ComponentHydrateParams as ComponentHydrateParams,
|
|
104
|
-
};
|
|
105
|
-
}
|