@tambo-ai/typescript-sdk 0.85.0 → 0.87.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 +16 -0
- package/bin/migration-config.json +37 -0
- package/client.d.mts +2 -2
- package/client.d.mts.map +1 -1
- package/client.d.ts +2 -2
- package/client.d.ts.map +1 -1
- package/client.js.map +1 -1
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/index.d.mts +1 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/threads/index.d.mts +2 -1
- package/resources/threads/index.d.mts.map +1 -1
- package/resources/threads/index.d.ts +2 -1
- package/resources/threads/index.d.ts.map +1 -1
- package/resources/threads/index.js +3 -1
- package/resources/threads/index.js.map +1 -1
- package/resources/threads/index.mjs +1 -0
- package/resources/threads/index.mjs.map +1 -1
- package/resources/threads/runs.d.mts +12 -4
- package/resources/threads/runs.d.mts.map +1 -1
- package/resources/threads/runs.d.ts +12 -4
- package/resources/threads/runs.d.ts.map +1 -1
- package/resources/threads/state.d.mts +62 -0
- package/resources/threads/state.d.mts.map +1 -0
- package/resources/threads/state.d.ts +62 -0
- package/resources/threads/state.d.ts.map +1 -0
- package/resources/threads/state.js +29 -0
- package/resources/threads/state.js.map +1 -0
- package/resources/threads/state.mjs +25 -0
- package/resources/threads/state.mjs.map +1 -0
- package/resources/threads/threads.d.mts +32 -22
- package/resources/threads/threads.d.mts.map +1 -1
- package/resources/threads/threads.d.ts +32 -22
- package/resources/threads/threads.d.ts.map +1 -1
- package/resources/threads/threads.js +7 -3
- package/resources/threads/threads.js.map +1 -1
- package/resources/threads/threads.mjs +7 -3
- package/resources/threads/threads.mjs.map +1 -1
- package/src/client.ts +2 -0
- package/src/resources/index.ts +1 -0
- package/src/resources/threads/index.ts +2 -0
- package/src/resources/threads/runs.ts +15 -5
- package/src/resources/threads/state.ts +87 -0
- package/src/resources/threads/threads.ts +48 -26
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
+
import { APIPromise } from "../../core/api-promise.mjs";
|
|
3
|
+
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
4
|
+
export declare class State extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Update the state of a component in a thread. Supports both full replacement and
|
|
7
|
+
* JSON Patch operations. Thread must not have an active run.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```ts
|
|
11
|
+
* const response = await client.threads.state.updateState(
|
|
12
|
+
* 'comp_xyz789abc',
|
|
13
|
+
* { threadId: 'thr_abc123xyz' },
|
|
14
|
+
* );
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
updateState(componentID: string, params: StateUpdateStateParams, options?: RequestOptions): APIPromise<StateUpdateStateResponse>;
|
|
18
|
+
}
|
|
19
|
+
export interface StateUpdateStateResponse {
|
|
20
|
+
/**
|
|
21
|
+
* New complete state of the component
|
|
22
|
+
*/
|
|
23
|
+
state: unknown;
|
|
24
|
+
}
|
|
25
|
+
export interface StateUpdateStateParams {
|
|
26
|
+
/**
|
|
27
|
+
* Path param: Thread ID
|
|
28
|
+
*/
|
|
29
|
+
threadId: string;
|
|
30
|
+
/**
|
|
31
|
+
* Body param: JSON Patch operations to apply to current state
|
|
32
|
+
*/
|
|
33
|
+
patch?: Array<StateUpdateStateParams.Patch>;
|
|
34
|
+
/**
|
|
35
|
+
* Body param: Full replacement state object
|
|
36
|
+
*/
|
|
37
|
+
state?: unknown;
|
|
38
|
+
}
|
|
39
|
+
export declare namespace StateUpdateStateParams {
|
|
40
|
+
interface Patch {
|
|
41
|
+
/**
|
|
42
|
+
* Operation type
|
|
43
|
+
*/
|
|
44
|
+
op: 'add' | 'remove' | 'replace' | 'move' | 'copy' | 'test';
|
|
45
|
+
/**
|
|
46
|
+
* JSON Pointer path to the target location
|
|
47
|
+
*/
|
|
48
|
+
path: string;
|
|
49
|
+
/**
|
|
50
|
+
* Source path for move and copy operations
|
|
51
|
+
*/
|
|
52
|
+
from?: string;
|
|
53
|
+
/**
|
|
54
|
+
* Value to add, replace, or test (required for add, replace, test)
|
|
55
|
+
*/
|
|
56
|
+
value?: unknown;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
export declare namespace State {
|
|
60
|
+
export { type StateUpdateStateResponse as StateUpdateStateResponse, type StateUpdateStateParams as StateUpdateStateParams, };
|
|
61
|
+
}
|
|
62
|
+
//# sourceMappingURL=state.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"state.d.mts","sourceRoot":"","sources":["../../src/resources/threads/state.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;;;;;;;;;OAWG;IACH,WAAW,CACT,WAAW,EAAE,MAAM,EACnB,MAAM,EAAE,sBAAsB,EAC9B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,wBAAwB,CAAC;CAOxC;AAED,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,KAAK,EAAE,OAAO,CAAC;CAChB;AAED,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,sBAAsB,CAAC,KAAK,CAAC,CAAC;IAE5C;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED,yBAAiB,sBAAsB,CAAC;IACtC,UAAiB,KAAK;QACpB;;WAEG;QACH,EAAE,EAAE,KAAK,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;QAE5D;;WAEG;QACH,IAAI,EAAE,MAAM,CAAC;QAEb;;WAEG;QACH,IAAI,CAAC,EAAE,MAAM,CAAC;QAEd;;WAEG;QACH,KAAK,CAAC,EAAE,OAAO,CAAC;KACjB;CACF;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EACL,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../../core/api-promise.js";
|
|
3
|
+
import { RequestOptions } from "../../internal/request-options.js";
|
|
4
|
+
export declare class State extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Update the state of a component in a thread. Supports both full replacement and
|
|
7
|
+
* JSON Patch operations. Thread must not have an active run.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```ts
|
|
11
|
+
* const response = await client.threads.state.updateState(
|
|
12
|
+
* 'comp_xyz789abc',
|
|
13
|
+
* { threadId: 'thr_abc123xyz' },
|
|
14
|
+
* );
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
updateState(componentID: string, params: StateUpdateStateParams, options?: RequestOptions): APIPromise<StateUpdateStateResponse>;
|
|
18
|
+
}
|
|
19
|
+
export interface StateUpdateStateResponse {
|
|
20
|
+
/**
|
|
21
|
+
* New complete state of the component
|
|
22
|
+
*/
|
|
23
|
+
state: unknown;
|
|
24
|
+
}
|
|
25
|
+
export interface StateUpdateStateParams {
|
|
26
|
+
/**
|
|
27
|
+
* Path param: Thread ID
|
|
28
|
+
*/
|
|
29
|
+
threadId: string;
|
|
30
|
+
/**
|
|
31
|
+
* Body param: JSON Patch operations to apply to current state
|
|
32
|
+
*/
|
|
33
|
+
patch?: Array<StateUpdateStateParams.Patch>;
|
|
34
|
+
/**
|
|
35
|
+
* Body param: Full replacement state object
|
|
36
|
+
*/
|
|
37
|
+
state?: unknown;
|
|
38
|
+
}
|
|
39
|
+
export declare namespace StateUpdateStateParams {
|
|
40
|
+
interface Patch {
|
|
41
|
+
/**
|
|
42
|
+
* Operation type
|
|
43
|
+
*/
|
|
44
|
+
op: 'add' | 'remove' | 'replace' | 'move' | 'copy' | 'test';
|
|
45
|
+
/**
|
|
46
|
+
* JSON Pointer path to the target location
|
|
47
|
+
*/
|
|
48
|
+
path: string;
|
|
49
|
+
/**
|
|
50
|
+
* Source path for move and copy operations
|
|
51
|
+
*/
|
|
52
|
+
from?: string;
|
|
53
|
+
/**
|
|
54
|
+
* Value to add, replace, or test (required for add, replace, test)
|
|
55
|
+
*/
|
|
56
|
+
value?: unknown;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
export declare namespace State {
|
|
60
|
+
export { type StateUpdateStateResponse as StateUpdateStateResponse, type StateUpdateStateParams as StateUpdateStateParams, };
|
|
61
|
+
}
|
|
62
|
+
//# sourceMappingURL=state.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"state.d.ts","sourceRoot":"","sources":["../../src/resources/threads/state.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;;;;;;;;;OAWG;IACH,WAAW,CACT,WAAW,EAAE,MAAM,EACnB,MAAM,EAAE,sBAAsB,EAC9B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,wBAAwB,CAAC;CAOxC;AAED,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,KAAK,EAAE,OAAO,CAAC;CAChB;AAED,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,sBAAsB,CAAC,KAAK,CAAC,CAAC;IAE5C;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED,yBAAiB,sBAAsB,CAAC;IACtC,UAAiB,KAAK;QACpB;;WAEG;QACH,EAAE,EAAE,KAAK,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;QAE5D;;WAEG;QACH,IAAI,EAAE,MAAM,CAAC;QAEb;;WAEG;QACH,IAAI,CAAC,EAAE,MAAM,CAAC;QAEd;;WAEG;QACH,KAAK,CAAC,EAAE,OAAO,CAAC;KACjB;CACF;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EACL,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
|
|
@@ -0,0 +1,29 @@
|
|
|
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.State = void 0;
|
|
5
|
+
const resource_1 = require("../../core/resource.js");
|
|
6
|
+
const path_1 = require("../../internal/utils/path.js");
|
|
7
|
+
class State extends resource_1.APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Update the state of a component in a thread. Supports both full replacement and
|
|
10
|
+
* JSON Patch operations. Thread must not have an active run.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* const response = await client.threads.state.updateState(
|
|
15
|
+
* 'comp_xyz789abc',
|
|
16
|
+
* { threadId: 'thr_abc123xyz' },
|
|
17
|
+
* );
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
updateState(componentID, params, options) {
|
|
21
|
+
const { threadId, ...body } = params;
|
|
22
|
+
return this._client.post((0, path_1.path) `/v1/threads/${threadId}/components/${componentID}/state`, {
|
|
23
|
+
body,
|
|
24
|
+
...options,
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
exports.State = State;
|
|
29
|
+
//# sourceMappingURL=state.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../src/resources/threads/state.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAGlD,uDAAiD;AAEjD,MAAa,KAAM,SAAQ,sBAAW;IACpC;;;;;;;;;;;OAWG;IACH,WAAW,CACT,WAAmB,EACnB,MAA8B,EAC9B,OAAwB;QAExB,MAAM,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACrC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,eAAe,QAAQ,eAAe,WAAW,QAAQ,EAAE;YACtF,IAAI;YACJ,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;CACF;AAxBD,sBAwBC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
+
import { path } from "../../internal/utils/path.mjs";
|
|
4
|
+
export class State extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Update the state of a component in a thread. Supports both full replacement and
|
|
7
|
+
* JSON Patch operations. Thread must not have an active run.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```ts
|
|
11
|
+
* const response = await client.threads.state.updateState(
|
|
12
|
+
* 'comp_xyz789abc',
|
|
13
|
+
* { threadId: 'thr_abc123xyz' },
|
|
14
|
+
* );
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
updateState(componentID, params, options) {
|
|
18
|
+
const { threadId, ...body } = params;
|
|
19
|
+
return this._client.post(path `/v1/threads/${threadId}/components/${componentID}/state`, {
|
|
20
|
+
body,
|
|
21
|
+
...options,
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=state.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"state.mjs","sourceRoot":"","sources":["../../src/resources/threads/state.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,KAAM,SAAQ,WAAW;IACpC;;;;;;;;;;;OAWG;IACH,WAAW,CACT,WAAmB,EACnB,MAA8B,EAC9B,OAAwB;QAExB,MAAM,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACrC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,eAAe,QAAQ,eAAe,WAAW,QAAQ,EAAE;YACtF,IAAI;YACJ,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -5,9 +5,12 @@ import * as MessagesAPI from "./messages.mjs";
|
|
|
5
5
|
import { MessageGetParams, MessageGetResponse, MessageListParams, MessageListResponse, Messages } from "./messages.mjs";
|
|
6
6
|
import * as RunsAPI from "./runs.mjs";
|
|
7
7
|
import { InputMessage, RunCreateParams, RunCreateResponse, RunDeleteParams, RunDeleteResponse, RunRunParams, RunRunResponse, Runs } from "./runs.mjs";
|
|
8
|
+
import * as StateAPI from "./state.mjs";
|
|
9
|
+
import { State, StateUpdateStateParams, StateUpdateStateResponse } from "./state.mjs";
|
|
8
10
|
import { APIPromise } from "../../core/api-promise.mjs";
|
|
9
11
|
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
10
12
|
export declare class Threads extends APIResource {
|
|
13
|
+
state: StateAPI.State;
|
|
11
14
|
messages: MessagesAPI.Messages;
|
|
12
15
|
runs: RunsAPI.Runs;
|
|
13
16
|
/**
|
|
@@ -31,10 +34,10 @@ export declare class Threads extends APIResource {
|
|
|
31
34
|
* );
|
|
32
35
|
* ```
|
|
33
36
|
*/
|
|
34
|
-
retrieve(threadID: string, options?: RequestOptions): APIPromise<ThreadRetrieveResponse>;
|
|
37
|
+
retrieve(threadID: string, query?: ThreadRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<ThreadRetrieveResponse>;
|
|
35
38
|
/**
|
|
36
39
|
* List all threads for the authenticated project. Supports cursor-based pagination
|
|
37
|
-
* and filtering by
|
|
40
|
+
* and filtering by user key.
|
|
38
41
|
*
|
|
39
42
|
* @example
|
|
40
43
|
* ```ts
|
|
@@ -158,10 +161,6 @@ export interface ThreadCreateResponse {
|
|
|
158
161
|
* When the thread was last updated (ISO 8601)
|
|
159
162
|
*/
|
|
160
163
|
updatedAt: string;
|
|
161
|
-
/**
|
|
162
|
-
* Optional context key for thread organization
|
|
163
|
-
*/
|
|
164
|
-
contextKey?: string;
|
|
165
164
|
/**
|
|
166
165
|
* ID of the currently active run (when not idle)
|
|
167
166
|
*/
|
|
@@ -192,6 +191,10 @@ export interface ThreadCreateResponse {
|
|
|
192
191
|
* Human-readable status message (e.g., 'Fetching weather data...')
|
|
193
192
|
*/
|
|
194
193
|
statusMessage?: string;
|
|
194
|
+
/**
|
|
195
|
+
* Optional user key for thread organization
|
|
196
|
+
*/
|
|
197
|
+
userKey?: string;
|
|
195
198
|
}
|
|
196
199
|
export interface ThreadRetrieveResponse {
|
|
197
200
|
/**
|
|
@@ -215,10 +218,6 @@ export interface ThreadRetrieveResponse {
|
|
|
215
218
|
* When the thread was last updated (ISO 8601)
|
|
216
219
|
*/
|
|
217
220
|
updatedAt: string;
|
|
218
|
-
/**
|
|
219
|
-
* Optional context key for thread organization
|
|
220
|
-
*/
|
|
221
|
-
contextKey?: string;
|
|
222
221
|
/**
|
|
223
222
|
* ID of the currently active run (when not idle)
|
|
224
223
|
*/
|
|
@@ -249,6 +248,10 @@ export interface ThreadRetrieveResponse {
|
|
|
249
248
|
* Human-readable status message (e.g., 'Fetching weather data...')
|
|
250
249
|
*/
|
|
251
250
|
statusMessage?: string;
|
|
251
|
+
/**
|
|
252
|
+
* Optional user key for thread organization
|
|
253
|
+
*/
|
|
254
|
+
userKey?: string;
|
|
252
255
|
}
|
|
253
256
|
export declare namespace ThreadRetrieveResponse {
|
|
254
257
|
interface Message {
|
|
@@ -307,10 +310,6 @@ export declare namespace ThreadListResponse {
|
|
|
307
310
|
* When the thread was last updated (ISO 8601)
|
|
308
311
|
*/
|
|
309
312
|
updatedAt: string;
|
|
310
|
-
/**
|
|
311
|
-
* Optional context key for thread organization
|
|
312
|
-
*/
|
|
313
|
-
contextKey?: string;
|
|
314
313
|
/**
|
|
315
314
|
* ID of the currently active run (when not idle)
|
|
316
315
|
*/
|
|
@@ -341,13 +340,13 @@ export declare namespace ThreadListResponse {
|
|
|
341
340
|
* Human-readable status message (e.g., 'Fetching weather data...')
|
|
342
341
|
*/
|
|
343
342
|
statusMessage?: string;
|
|
343
|
+
/**
|
|
344
|
+
* Optional user key for thread organization
|
|
345
|
+
*/
|
|
346
|
+
userKey?: string;
|
|
344
347
|
}
|
|
345
348
|
}
|
|
346
349
|
export interface ThreadCreateParams {
|
|
347
|
-
/**
|
|
348
|
-
* Optional context key for thread organization
|
|
349
|
-
*/
|
|
350
|
-
contextKey?: string;
|
|
351
350
|
/**
|
|
352
351
|
* Initial messages to seed the thread with
|
|
353
352
|
*/
|
|
@@ -356,12 +355,18 @@ export interface ThreadCreateParams {
|
|
|
356
355
|
* Additional metadata to attach to the thread
|
|
357
356
|
*/
|
|
358
357
|
metadata?: unknown;
|
|
358
|
+
/**
|
|
359
|
+
* Optional user key for thread organization
|
|
360
|
+
*/
|
|
361
|
+
userKey?: string;
|
|
359
362
|
}
|
|
360
|
-
export interface
|
|
363
|
+
export interface ThreadRetrieveParams {
|
|
361
364
|
/**
|
|
362
|
-
*
|
|
365
|
+
* Optional user key for thread organization
|
|
363
366
|
*/
|
|
364
|
-
|
|
367
|
+
userKey?: string;
|
|
368
|
+
}
|
|
369
|
+
export interface ThreadListParams {
|
|
365
370
|
/**
|
|
366
371
|
* Cursor for pagination
|
|
367
372
|
*/
|
|
@@ -370,9 +375,14 @@ export interface ThreadListParams {
|
|
|
370
375
|
* Maximum number of threads to return
|
|
371
376
|
*/
|
|
372
377
|
limit?: string;
|
|
378
|
+
/**
|
|
379
|
+
* Filter by user key
|
|
380
|
+
*/
|
|
381
|
+
userKey?: string;
|
|
373
382
|
}
|
|
374
383
|
export declare namespace Threads {
|
|
375
|
-
export { type ComponentContent as ComponentContent, type ResourceContent as ResourceContent, type RunError as RunError, type TextContent as TextContent, type ToolResultContent as ToolResultContent, type ToolUseContent as ToolUseContent, type ThreadCreateResponse as ThreadCreateResponse, type ThreadRetrieveResponse as ThreadRetrieveResponse, type ThreadListResponse as ThreadListResponse, type ThreadCreateParams as ThreadCreateParams, type ThreadListParams as ThreadListParams, };
|
|
384
|
+
export { type ComponentContent as ComponentContent, type ResourceContent as ResourceContent, type RunError as RunError, type TextContent as TextContent, type ToolResultContent as ToolResultContent, type ToolUseContent as ToolUseContent, type ThreadCreateResponse as ThreadCreateResponse, type ThreadRetrieveResponse as ThreadRetrieveResponse, type ThreadListResponse as ThreadListResponse, type ThreadCreateParams as ThreadCreateParams, type ThreadRetrieveParams as ThreadRetrieveParams, type ThreadListParams as ThreadListParams, };
|
|
385
|
+
export { State as State, type StateUpdateStateResponse as StateUpdateStateResponse, type StateUpdateStateParams as StateUpdateStateParams, };
|
|
376
386
|
export { Messages as Messages, type MessageListResponse as MessageListResponse, type MessageGetResponse as MessageGetResponse, type MessageListParams as MessageListParams, type MessageGetParams as MessageGetParams, };
|
|
377
387
|
export { Runs as Runs, type InputMessage as InputMessage, type RunCreateResponse as RunCreateResponse, type RunDeleteResponse as RunDeleteResponse, type RunRunResponse as RunRunResponse, type RunCreateParams as RunCreateParams, type RunDeleteParams as RunDeleteParams, type RunRunParams as RunRunParams, };
|
|
378
388
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"threads.d.mts","sourceRoot":"","sources":["../../src/resources/threads/threads.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,UAAU;OACf,KAAK,MAAM;OACX,KAAK,WAAW;OAChB,EACL,gBAAgB,EAChB,kBAAkB,EAClB,iBAAiB,EACjB,mBAAmB,EACnB,QAAQ,EACT;OACM,KAAK,OAAO;OACZ,EACL,YAAY,EACZ,eAAe,EACf,iBAAiB,EACjB,eAAe,EACf,iBAAiB,EACjB,YAAY,EACZ,cAAc,EACd,IAAI,EACL;OACM,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,OAAQ,SAAQ,WAAW;IACtC,QAAQ,EAAE,WAAW,CAAC,QAAQ,CAA0C;IACxE,IAAI,EAAE,OAAO,CAAC,IAAI,CAAkC;IAEpD;;;;;;;;OAQG;IACH,MAAM,CAAC,IAAI,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,oBAAoB,CAAC;IAI5F;;;;;;;;;;OAUG;IACH,QAAQ,
|
|
1
|
+
{"version":3,"file":"threads.d.mts","sourceRoot":"","sources":["../../src/resources/threads/threads.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,UAAU;OACf,KAAK,MAAM;OACX,KAAK,WAAW;OAChB,EACL,gBAAgB,EAChB,kBAAkB,EAClB,iBAAiB,EACjB,mBAAmB,EACnB,QAAQ,EACT;OACM,KAAK,OAAO;OACZ,EACL,YAAY,EACZ,eAAe,EACf,iBAAiB,EACjB,eAAe,EACf,iBAAiB,EACjB,YAAY,EACZ,cAAc,EACd,IAAI,EACL;OACM,KAAK,QAAQ;OACb,EAAE,KAAK,EAAE,sBAAsB,EAAE,wBAAwB,EAAE;OAC3D,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,OAAQ,SAAQ,WAAW;IACtC,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAoC;IACzD,QAAQ,EAAE,WAAW,CAAC,QAAQ,CAA0C;I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AAe,IAAI,eAAe,EACvC,KAAK,QAAQ,IAAI,QAAQ,EACzB,KAAK,WAAW,IAAI,WAAW,EAC/B,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;IAEF,OAAO,EACL,KAAK,IAAI,KAAK,EACd,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;IAEF,OAAO,EACL,QAAQ,IAAI,QAAQ,EACpB,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;IAEF,OAAO,EACL,IAAI,IAAI,IAAI,EACZ,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,YAAY,IAAI,YAAY,GAClC,CAAC;CACH"}
|
|
@@ -5,9 +5,12 @@ import * as MessagesAPI from "./messages.js";
|
|
|
5
5
|
import { MessageGetParams, MessageGetResponse, MessageListParams, MessageListResponse, Messages } from "./messages.js";
|
|
6
6
|
import * as RunsAPI from "./runs.js";
|
|
7
7
|
import { InputMessage, RunCreateParams, RunCreateResponse, RunDeleteParams, RunDeleteResponse, RunRunParams, RunRunResponse, Runs } from "./runs.js";
|
|
8
|
+
import * as StateAPI from "./state.js";
|
|
9
|
+
import { State, StateUpdateStateParams, StateUpdateStateResponse } from "./state.js";
|
|
8
10
|
import { APIPromise } from "../../core/api-promise.js";
|
|
9
11
|
import { RequestOptions } from "../../internal/request-options.js";
|
|
10
12
|
export declare class Threads extends APIResource {
|
|
13
|
+
state: StateAPI.State;
|
|
11
14
|
messages: MessagesAPI.Messages;
|
|
12
15
|
runs: RunsAPI.Runs;
|
|
13
16
|
/**
|
|
@@ -31,10 +34,10 @@ export declare class Threads extends APIResource {
|
|
|
31
34
|
* );
|
|
32
35
|
* ```
|
|
33
36
|
*/
|
|
34
|
-
retrieve(threadID: string, options?: RequestOptions): APIPromise<ThreadRetrieveResponse>;
|
|
37
|
+
retrieve(threadID: string, query?: ThreadRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<ThreadRetrieveResponse>;
|
|
35
38
|
/**
|
|
36
39
|
* List all threads for the authenticated project. Supports cursor-based pagination
|
|
37
|
-
* and filtering by
|
|
40
|
+
* and filtering by user key.
|
|
38
41
|
*
|
|
39
42
|
* @example
|
|
40
43
|
* ```ts
|
|
@@ -158,10 +161,6 @@ export interface ThreadCreateResponse {
|
|
|
158
161
|
* When the thread was last updated (ISO 8601)
|
|
159
162
|
*/
|
|
160
163
|
updatedAt: string;
|
|
161
|
-
/**
|
|
162
|
-
* Optional context key for thread organization
|
|
163
|
-
*/
|
|
164
|
-
contextKey?: string;
|
|
165
164
|
/**
|
|
166
165
|
* ID of the currently active run (when not idle)
|
|
167
166
|
*/
|
|
@@ -192,6 +191,10 @@ export interface ThreadCreateResponse {
|
|
|
192
191
|
* Human-readable status message (e.g., 'Fetching weather data...')
|
|
193
192
|
*/
|
|
194
193
|
statusMessage?: string;
|
|
194
|
+
/**
|
|
195
|
+
* Optional user key for thread organization
|
|
196
|
+
*/
|
|
197
|
+
userKey?: string;
|
|
195
198
|
}
|
|
196
199
|
export interface ThreadRetrieveResponse {
|
|
197
200
|
/**
|
|
@@ -215,10 +218,6 @@ export interface ThreadRetrieveResponse {
|
|
|
215
218
|
* When the thread was last updated (ISO 8601)
|
|
216
219
|
*/
|
|
217
220
|
updatedAt: string;
|
|
218
|
-
/**
|
|
219
|
-
* Optional context key for thread organization
|
|
220
|
-
*/
|
|
221
|
-
contextKey?: string;
|
|
222
221
|
/**
|
|
223
222
|
* ID of the currently active run (when not idle)
|
|
224
223
|
*/
|
|
@@ -249,6 +248,10 @@ export interface ThreadRetrieveResponse {
|
|
|
249
248
|
* Human-readable status message (e.g., 'Fetching weather data...')
|
|
250
249
|
*/
|
|
251
250
|
statusMessage?: string;
|
|
251
|
+
/**
|
|
252
|
+
* Optional user key for thread organization
|
|
253
|
+
*/
|
|
254
|
+
userKey?: string;
|
|
252
255
|
}
|
|
253
256
|
export declare namespace ThreadRetrieveResponse {
|
|
254
257
|
interface Message {
|
|
@@ -307,10 +310,6 @@ export declare namespace ThreadListResponse {
|
|
|
307
310
|
* When the thread was last updated (ISO 8601)
|
|
308
311
|
*/
|
|
309
312
|
updatedAt: string;
|
|
310
|
-
/**
|
|
311
|
-
* Optional context key for thread organization
|
|
312
|
-
*/
|
|
313
|
-
contextKey?: string;
|
|
314
313
|
/**
|
|
315
314
|
* ID of the currently active run (when not idle)
|
|
316
315
|
*/
|
|
@@ -341,13 +340,13 @@ export declare namespace ThreadListResponse {
|
|
|
341
340
|
* Human-readable status message (e.g., 'Fetching weather data...')
|
|
342
341
|
*/
|
|
343
342
|
statusMessage?: string;
|
|
343
|
+
/**
|
|
344
|
+
* Optional user key for thread organization
|
|
345
|
+
*/
|
|
346
|
+
userKey?: string;
|
|
344
347
|
}
|
|
345
348
|
}
|
|
346
349
|
export interface ThreadCreateParams {
|
|
347
|
-
/**
|
|
348
|
-
* Optional context key for thread organization
|
|
349
|
-
*/
|
|
350
|
-
contextKey?: string;
|
|
351
350
|
/**
|
|
352
351
|
* Initial messages to seed the thread with
|
|
353
352
|
*/
|
|
@@ -356,12 +355,18 @@ export interface ThreadCreateParams {
|
|
|
356
355
|
* Additional metadata to attach to the thread
|
|
357
356
|
*/
|
|
358
357
|
metadata?: unknown;
|
|
358
|
+
/**
|
|
359
|
+
* Optional user key for thread organization
|
|
360
|
+
*/
|
|
361
|
+
userKey?: string;
|
|
359
362
|
}
|
|
360
|
-
export interface
|
|
363
|
+
export interface ThreadRetrieveParams {
|
|
361
364
|
/**
|
|
362
|
-
*
|
|
365
|
+
* Optional user key for thread organization
|
|
363
366
|
*/
|
|
364
|
-
|
|
367
|
+
userKey?: string;
|
|
368
|
+
}
|
|
369
|
+
export interface ThreadListParams {
|
|
365
370
|
/**
|
|
366
371
|
* Cursor for pagination
|
|
367
372
|
*/
|
|
@@ -370,9 +375,14 @@ export interface ThreadListParams {
|
|
|
370
375
|
* Maximum number of threads to return
|
|
371
376
|
*/
|
|
372
377
|
limit?: string;
|
|
378
|
+
/**
|
|
379
|
+
* Filter by user key
|
|
380
|
+
*/
|
|
381
|
+
userKey?: string;
|
|
373
382
|
}
|
|
374
383
|
export declare namespace Threads {
|
|
375
|
-
export { type ComponentContent as ComponentContent, type ResourceContent as ResourceContent, type RunError as RunError, type TextContent as TextContent, type ToolResultContent as ToolResultContent, type ToolUseContent as ToolUseContent, type ThreadCreateResponse as ThreadCreateResponse, type ThreadRetrieveResponse as ThreadRetrieveResponse, type ThreadListResponse as ThreadListResponse, type ThreadCreateParams as ThreadCreateParams, type ThreadListParams as ThreadListParams, };
|
|
384
|
+
export { type ComponentContent as ComponentContent, type ResourceContent as ResourceContent, type RunError as RunError, type TextContent as TextContent, type ToolResultContent as ToolResultContent, type ToolUseContent as ToolUseContent, type ThreadCreateResponse as ThreadCreateResponse, type ThreadRetrieveResponse as ThreadRetrieveResponse, type ThreadListResponse as ThreadListResponse, type ThreadCreateParams as ThreadCreateParams, type ThreadRetrieveParams as ThreadRetrieveParams, type ThreadListParams as ThreadListParams, };
|
|
385
|
+
export { State as State, type StateUpdateStateResponse as StateUpdateStateResponse, type StateUpdateStateParams as StateUpdateStateParams, };
|
|
376
386
|
export { Messages as Messages, type MessageListResponse as MessageListResponse, type MessageGetResponse as MessageGetResponse, type MessageListParams as MessageListParams, type MessageGetParams as MessageGetParams, };
|
|
377
387
|
export { Runs as Runs, type InputMessage as InputMessage, type RunCreateResponse as RunCreateResponse, type RunDeleteResponse as RunDeleteResponse, type RunRunResponse as RunRunResponse, type RunCreateParams as RunCreateParams, type RunDeleteParams as RunDeleteParams, type RunRunParams as RunRunParams, };
|
|
378
388
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"threads.d.ts","sourceRoot":"","sources":["../../src/resources/threads/threads.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,UAAU;OACf,KAAK,MAAM;OACX,KAAK,WAAW;OAChB,EACL,gBAAgB,EAChB,kBAAkB,EAClB,iBAAiB,EACjB,mBAAmB,EACnB,QAAQ,EACT;OACM,KAAK,OAAO;OACZ,EACL,YAAY,EACZ,eAAe,EACf,iBAAiB,EACjB,eAAe,EACf,iBAAiB,EACjB,YAAY,EACZ,cAAc,EACd,IAAI,EACL;OACM,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,OAAQ,SAAQ,WAAW;IACtC,QAAQ,EAAE,WAAW,CAAC,QAAQ,CAA0C;IACxE,IAAI,EAAE,OAAO,CAAC,IAAI,CAAkC;IAEpD;;;;;;;;OAQG;IACH,MAAM,CAAC,IAAI,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,oBAAoB,CAAC;IAI5F;;;;;;;;;;OAUG;IACH,QAAQ,
|
|
1
|
+
{"version":3,"file":"threads.d.ts","sourceRoot":"","sources":["../../src/resources/threads/threads.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,UAAU;OACf,KAAK,MAAM;OACX,KAAK,WAAW;OAChB,EACL,gBAAgB,EAChB,kBAAkB,EAClB,iBAAiB,EACjB,mBAAmB,EACnB,QAAQ,EACT;O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e,IAAI,eAAe,EACvC,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,YAAY,IAAI,YAAY,GAClC,CAAC;CACH"}
|
|
@@ -8,11 +8,14 @@ const MessagesAPI = tslib_1.__importStar(require("./messages.js"));
|
|
|
8
8
|
const messages_1 = require("./messages.js");
|
|
9
9
|
const RunsAPI = tslib_1.__importStar(require("./runs.js"));
|
|
10
10
|
const runs_1 = require("./runs.js");
|
|
11
|
+
const StateAPI = tslib_1.__importStar(require("./state.js"));
|
|
12
|
+
const state_1 = require("./state.js");
|
|
11
13
|
const headers_1 = require("../../internal/headers.js");
|
|
12
14
|
const path_1 = require("../../internal/utils/path.js");
|
|
13
15
|
class Threads extends resource_1.APIResource {
|
|
14
16
|
constructor() {
|
|
15
17
|
super(...arguments);
|
|
18
|
+
this.state = new StateAPI.State(this._client);
|
|
16
19
|
this.messages = new MessagesAPI.Messages(this._client);
|
|
17
20
|
this.runs = new RunsAPI.Runs(this._client);
|
|
18
21
|
}
|
|
@@ -39,12 +42,12 @@ class Threads extends resource_1.APIResource {
|
|
|
39
42
|
* );
|
|
40
43
|
* ```
|
|
41
44
|
*/
|
|
42
|
-
retrieve(threadID, options) {
|
|
43
|
-
return this._client.get((0, path_1.path) `/v1/threads/${threadID}`, options);
|
|
45
|
+
retrieve(threadID, query = {}, options) {
|
|
46
|
+
return this._client.get((0, path_1.path) `/v1/threads/${threadID}`, { query, ...options });
|
|
44
47
|
}
|
|
45
48
|
/**
|
|
46
49
|
* List all threads for the authenticated project. Supports cursor-based pagination
|
|
47
|
-
* and filtering by
|
|
50
|
+
* and filtering by user key.
|
|
48
51
|
*
|
|
49
52
|
* @example
|
|
50
53
|
* ```ts
|
|
@@ -70,6 +73,7 @@ class Threads extends resource_1.APIResource {
|
|
|
70
73
|
}
|
|
71
74
|
}
|
|
72
75
|
exports.Threads = Threads;
|
|
76
|
+
Threads.State = state_1.State;
|
|
73
77
|
Threads.Messages = messages_1.Messages;
|
|
74
78
|
Threads.Runs = runs_1.Runs;
|
|
75
79
|
//# sourceMappingURL=threads.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"threads.js","sourceRoot":"","sources":["../../src/resources/threads/threads.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAGlD,mEAA0C;AAC1C,4CAMoB;AACpB,2DAAkC;AAClC,oCASgB;
|
|
1
|
+
{"version":3,"file":"threads.js","sourceRoot":"","sources":["../../src/resources/threads/threads.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAGlD,mEAA0C;AAC1C,4CAMoB;AACpB,2DAAkC;AAClC,oCASgB;AAChB,6DAAoC;AACpC,sCAAkF;AAElF,uDAAsD;AAEtD,uDAAiD;AAEjD,MAAa,OAAQ,SAAQ,sBAAW;IAAxC;;QACE,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACzD,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxE,SAAI,GAAiB,IAAI,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAgEtD,CAAC;IA9DC;;;;;;;;OAQG;IACH,MAAM,CAAC,IAAwB,EAAE,OAAwB;QACvD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,aAAa,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChE,CAAC;IAED;;;;;;;;;;OAUG;IACH,QAAQ,CACN,QAAgB,EAChB,QAAiD,EAAE,EACnD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,eAAe,QAAQ,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChF,CAAC;IAED;;;;;;;;OAQG;IACH,IAAI,CACF,QAA6C,EAAE,EAC/C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChE,CAAC;IAED;;;;;;;OAOG;IACH,MAAM,CAAC,QAAgB,EAAE,OAAwB;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,eAAe,QAAQ,EAAE,EAAE;YACxD,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF;AAnED,0BAmEC;AAoZD,OAAO,CAAC,KAAK,GAAG,aAAK,CAAC;AACtB,OAAO,CAAC,QAAQ,GAAG,mBAAQ,CAAC;AAC5B,OAAO,CAAC,IAAI,GAAG,WAAI,CAAC"}
|
|
@@ -4,11 +4,14 @@ import * as MessagesAPI from "./messages.mjs";
|
|
|
4
4
|
import { Messages, } from "./messages.mjs";
|
|
5
5
|
import * as RunsAPI from "./runs.mjs";
|
|
6
6
|
import { Runs, } from "./runs.mjs";
|
|
7
|
+
import * as StateAPI from "./state.mjs";
|
|
8
|
+
import { State } from "./state.mjs";
|
|
7
9
|
import { buildHeaders } from "../../internal/headers.mjs";
|
|
8
10
|
import { path } from "../../internal/utils/path.mjs";
|
|
9
11
|
export class Threads extends APIResource {
|
|
10
12
|
constructor() {
|
|
11
13
|
super(...arguments);
|
|
14
|
+
this.state = new StateAPI.State(this._client);
|
|
12
15
|
this.messages = new MessagesAPI.Messages(this._client);
|
|
13
16
|
this.runs = new RunsAPI.Runs(this._client);
|
|
14
17
|
}
|
|
@@ -35,12 +38,12 @@ export class Threads extends APIResource {
|
|
|
35
38
|
* );
|
|
36
39
|
* ```
|
|
37
40
|
*/
|
|
38
|
-
retrieve(threadID, options) {
|
|
39
|
-
return this._client.get(path `/v1/threads/${threadID}`, options);
|
|
41
|
+
retrieve(threadID, query = {}, options) {
|
|
42
|
+
return this._client.get(path `/v1/threads/${threadID}`, { query, ...options });
|
|
40
43
|
}
|
|
41
44
|
/**
|
|
42
45
|
* List all threads for the authenticated project. Supports cursor-based pagination
|
|
43
|
-
* and filtering by
|
|
46
|
+
* and filtering by user key.
|
|
44
47
|
*
|
|
45
48
|
* @example
|
|
46
49
|
* ```ts
|
|
@@ -65,6 +68,7 @@ export class Threads extends APIResource {
|
|
|
65
68
|
});
|
|
66
69
|
}
|
|
67
70
|
}
|
|
71
|
+
Threads.State = State;
|
|
68
72
|
Threads.Messages = Messages;
|
|
69
73
|
Threads.Runs = Runs;
|
|
70
74
|
//# sourceMappingURL=threads.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"threads.mjs","sourceRoot":"","sources":["../../src/resources/threads/threads.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,KAAK,WAAW;OAChB,EAKL,QAAQ,GACT;OACM,KAAK,OAAO;OACZ,EAQL,IAAI,GACL;
|
|
1
|
+
{"version":3,"file":"threads.mjs","sourceRoot":"","sources":["../../src/resources/threads/threads.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,KAAK,WAAW;OAChB,EAKL,QAAQ,GACT;OACM,KAAK,OAAO;OACZ,EAQL,IAAI,GACL;OACM,KAAK,QAAQ;OACb,EAAE,KAAK,EAAoD;OAE3D,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,OAAQ,SAAQ,WAAW;IAAxC;;QACE,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACzD,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxE,SAAI,GAAiB,IAAI,OAAO,CAAC,IAAI,C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etrieveResponse,
|
|
33
34
|
Threads,
|
|
34
35
|
ToolResultContent,
|
|
@@ -847,6 +848,7 @@ export declare namespace TamboAI {
|
|
|
847
848
|
type ThreadRetrieveResponse as ThreadRetrieveResponse,
|
|
848
849
|
type ThreadListResponse as ThreadListResponse,
|
|
849
850
|
type ThreadCreateParams as ThreadCreateParams,
|
|
851
|
+
type ThreadRetrieveParams as ThreadRetrieveParams,
|
|
850
852
|
type ThreadListParams as ThreadListParams,
|
|
851
853
|
};
|
|
852
854
|
|