10xgraph-client 0.6.0 → 1.0.0-rc.2
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 +207 -0
- package/README.md +11 -5
- package/dist/agent.d.ts +17 -5
- package/dist/agent.d.ts.map +1 -1
- package/dist/cjs/agent.d.ts +33 -0
- package/dist/cjs/client.d.ts +533 -0
- package/dist/cjs/compat.d.ts +27 -0
- package/dist/cjs/endpoints/addThreadMessages.d.ts +25 -0
- package/dist/cjs/endpoints/clearThreadState.d.ts +14 -0
- package/dist/cjs/endpoints/deleteFile.d.ts +13 -0
- package/dist/cjs/endpoints/deleteMemory.d.ts +18 -0
- package/dist/cjs/endpoints/deleteThread.d.ts +18 -0
- package/dist/cjs/endpoints/deleteThreadMessage.d.ts +19 -0
- package/dist/cjs/endpoints/files.d.ts +115 -0
- package/dist/cjs/endpoints/fixGraph.d.ts +33 -0
- package/dist/cjs/endpoints/forgetMemories.d.ts +21 -0
- package/dist/cjs/endpoints/getMemory.d.ts +18 -0
- package/dist/cjs/endpoints/graph.d.ts +50 -0
- package/dist/cjs/endpoints/graphTools.d.ts +31 -0
- package/dist/cjs/endpoints/invoke.d.ts +66 -0
- package/dist/cjs/endpoints/listMemories.d.ts +24 -0
- package/dist/cjs/endpoints/metadata.d.ts +5 -0
- package/dist/cjs/endpoints/observability.d.ts +111 -0
- package/dist/cjs/endpoints/ping.d.ts +9 -0
- package/dist/cjs/endpoints/realtime.d.ts +154 -0
- package/dist/cjs/endpoints/searchMemory.d.ts +56 -0
- package/dist/cjs/endpoints/stateSchema.d.ts +49 -0
- package/dist/cjs/endpoints/stopGraph.d.ts +35 -0
- package/dist/cjs/endpoints/storeMemory.d.ts +32 -0
- package/dist/cjs/endpoints/stream.d.ts +67 -0
- package/dist/cjs/endpoints/threadDetails.d.ts +18 -0
- package/dist/cjs/endpoints/threadMessage.d.ts +16 -0
- package/dist/cjs/endpoints/threadMessages.d.ts +28 -0
- package/dist/cjs/endpoints/threadState.d.ts +13 -0
- package/dist/cjs/endpoints/threads.d.ts +35 -0
- package/dist/cjs/endpoints/updateMemory.d.ts +20 -0
- package/dist/cjs/endpoints/updateThreadMessageFeedback.d.ts +19 -0
- package/dist/cjs/endpoints/updateThreadState.d.ts +22 -0
- package/dist/cjs/endpoints/wsStream.d.ts +34 -0
- package/dist/cjs/errors.d.ts +212 -0
- package/dist/cjs/index.d.ts +41 -0
- package/dist/cjs/interrupt.d.ts +45 -0
- package/dist/cjs/message.d.ts +173 -0
- package/dist/cjs/package.json +1 -0
- package/dist/cjs/request.d.ts +60 -0
- package/dist/cjs/tools.d.ts +80 -0
- package/dist/cjs/ws.d.ts +47 -0
- package/dist/client.d.ts +95 -40
- package/dist/client.d.ts.map +1 -1
- package/dist/endpoints/addThreadMessages.d.ts +4 -0
- package/dist/endpoints/addThreadMessages.d.ts.map +1 -1
- package/dist/endpoints/clearThreadState.d.ts.map +1 -1
- package/dist/endpoints/deleteFile.d.ts +14 -0
- package/dist/endpoints/deleteFile.d.ts.map +1 -0
- package/dist/endpoints/deleteMemory.d.ts.map +1 -1
- package/dist/endpoints/deleteThread.d.ts.map +1 -1
- package/dist/endpoints/deleteThreadMessage.d.ts.map +1 -1
- package/dist/endpoints/files.d.ts +33 -0
- package/dist/endpoints/files.d.ts.map +1 -1
- package/dist/endpoints/fixGraph.d.ts +8 -3
- package/dist/endpoints/fixGraph.d.ts.map +1 -1
- package/dist/endpoints/forgetMemories.d.ts.map +1 -1
- package/dist/endpoints/getMemory.d.ts.map +1 -1
- package/dist/endpoints/graph.d.ts +20 -8
- package/dist/endpoints/graph.d.ts.map +1 -1
- package/dist/endpoints/graphTools.d.ts.map +1 -1
- package/dist/endpoints/invoke.d.ts +8 -0
- package/dist/endpoints/invoke.d.ts.map +1 -1
- package/dist/endpoints/listMemories.d.ts +6 -0
- package/dist/endpoints/listMemories.d.ts.map +1 -1
- package/dist/endpoints/observability.d.ts +54 -0
- package/dist/endpoints/observability.d.ts.map +1 -1
- package/dist/endpoints/ping.d.ts.map +1 -1
- package/dist/endpoints/realtime.d.ts +25 -4
- package/dist/endpoints/realtime.d.ts.map +1 -1
- package/dist/endpoints/searchMemory.d.ts.map +1 -1
- package/dist/endpoints/stateSchema.d.ts.map +1 -1
- package/dist/endpoints/stopGraph.d.ts +13 -3
- package/dist/endpoints/stopGraph.d.ts.map +1 -1
- package/dist/endpoints/storeMemory.d.ts.map +1 -1
- package/dist/endpoints/stream.d.ts +8 -0
- package/dist/endpoints/stream.d.ts.map +1 -1
- package/dist/endpoints/threadDetails.d.ts.map +1 -1
- package/dist/endpoints/threadMessage.d.ts.map +1 -1
- package/dist/endpoints/threadMessages.d.ts +6 -0
- package/dist/endpoints/threadMessages.d.ts.map +1 -1
- package/dist/endpoints/threadState.d.ts.map +1 -1
- package/dist/endpoints/threads.d.ts +6 -0
- package/dist/endpoints/threads.d.ts.map +1 -1
- package/dist/endpoints/updateMemory.d.ts.map +1 -1
- package/dist/endpoints/updateThreadMessageFeedback.d.ts +20 -0
- package/dist/endpoints/updateThreadMessageFeedback.d.ts.map +1 -0
- package/dist/endpoints/updateThreadState.d.ts +6 -1
- package/dist/endpoints/updateThreadState.d.ts.map +1 -1
- package/dist/endpoints/wsStream.d.ts +2 -0
- package/dist/endpoints/wsStream.d.ts.map +1 -1
- package/dist/errors.d.ts +60 -2
- package/dist/errors.d.ts.map +1 -1
- package/dist/index.cjs +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1742 -1217
- package/dist/index.js.map +1 -1
- package/dist/interrupt.d.ts +46 -0
- package/dist/interrupt.d.ts.map +1 -0
- package/dist/request.d.ts +28 -0
- package/dist/request.d.ts.map +1 -1
- package/dist/tools.d.ts +14 -0
- package/dist/tools.d.ts.map +1 -1
- package/package.json +11 -6
- package/src/agent.ts +17 -4
- package/src/client.ts +248 -128
- package/src/endpoints/addThreadMessages.ts +15 -10
- package/src/endpoints/clearThreadState.ts +19 -20
- package/src/endpoints/deleteFile.ts +65 -0
- package/src/endpoints/deleteMemory.ts +9 -13
- package/src/endpoints/deleteThread.ts +9 -13
- package/src/endpoints/deleteThreadMessage.ts +9 -13
- package/src/endpoints/files.ts +164 -131
- package/src/endpoints/fixGraph.ts +15 -16
- package/src/endpoints/forgetMemories.ts +44 -60
- package/src/endpoints/getMemory.ts +9 -9
- package/src/endpoints/graph.ts +28 -21
- package/src/endpoints/graphTools.ts +7 -13
- package/src/endpoints/invoke.ts +105 -84
- package/src/endpoints/listMemories.ts +18 -13
- package/src/endpoints/observability.ts +77 -34
- package/src/endpoints/ping.ts +7 -13
- package/src/endpoints/realtime.ts +101 -39
- package/src/endpoints/searchMemory.ts +19 -13
- package/src/endpoints/stateSchema.ts +7 -13
- package/src/endpoints/stopGraph.ts +20 -16
- package/src/endpoints/storeMemory.ts +7 -8
- package/src/endpoints/stream.ts +179 -61
- package/src/endpoints/threadDetails.ts +9 -14
- package/src/endpoints/threadMessage.ts +9 -9
- package/src/endpoints/threadMessages.ts +15 -9
- package/src/endpoints/threadState.ts +19 -20
- package/src/endpoints/threads.ts +13 -12
- package/src/endpoints/updateMemory.ts +9 -9
- package/src/endpoints/updateThreadMessageFeedback.ts +80 -0
- package/src/endpoints/updateThreadState.ts +28 -22
- package/src/endpoints/wsStream.ts +167 -42
- package/src/errors.ts +332 -93
- package/src/index.ts +9 -0
- package/src/interrupt.ts +60 -0
- package/src/request.ts +134 -0
- package/src/tools.ts +95 -0
package/dist/client.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ import { AddThreadMessagesResponse } from './endpoints/addThreadMessages.js';
|
|
|
13
13
|
import { ThreadMessageResponse } from './endpoints/threadMessage.js';
|
|
14
14
|
import { ThreadDetailsResponse } from './endpoints/threadDetails.js';
|
|
15
15
|
import { DeleteThreadMessageResponse } from './endpoints/deleteThreadMessage.js';
|
|
16
|
+
import { UpdateThreadMessageFeedbackResponse } from './endpoints/updateThreadMessageFeedback.js';
|
|
16
17
|
import { DeleteThreadResponse } from './endpoints/deleteThread.js';
|
|
17
18
|
import { ThreadsRequest, ThreadsResponse } from './endpoints/threads.js';
|
|
18
19
|
import { InvokeResult, InvokeCallback } from './endpoints/invoke.js';
|
|
@@ -28,11 +29,16 @@ import { ListMemoriesResponse } from './endpoints/listMemories.js';
|
|
|
28
29
|
import { ForgetMemoriesResponse } from './endpoints/forgetMemories.js';
|
|
29
30
|
import { StopGraphResponse } from './endpoints/stopGraph.js';
|
|
30
31
|
import { FixGraphResponse } from './endpoints/fixGraph.js';
|
|
31
|
-
import { FileUploadResponse, FileAccessUrlResponse, FileInfoResponse, MultimodalConfigResponse } from './endpoints/files.js';
|
|
32
|
-
import {
|
|
32
|
+
import { ListFilesRequest, ListFilesResponse, FileUploadResponse, FileAccessUrlResponse, FileInfoResponse, MultimodalConfigResponse } from './endpoints/files.js';
|
|
33
|
+
import { DeleteFileResponse } from './endpoints/deleteFile.js';
|
|
34
|
+
import { TenxGraphAuth, RequestOptions } from './request.js';
|
|
33
35
|
export interface TenxGraphConfig {
|
|
34
36
|
baseUrl: string;
|
|
35
|
-
|
|
37
|
+
/**
|
|
38
|
+
* Bearer token, or a function returning one. A function is called before every request,
|
|
39
|
+
* so a short-lived JWT can be refreshed without rebuilding the client.
|
|
40
|
+
*/
|
|
41
|
+
authToken?: string | null | (() => string | null | undefined);
|
|
36
42
|
auth?: TenxGraphAuth | null;
|
|
37
43
|
headers?: HeadersInit;
|
|
38
44
|
credentials?: RequestCredentials;
|
|
@@ -51,6 +57,13 @@ export declare class TenxGraphClient {
|
|
|
51
57
|
private webSocketImpl?;
|
|
52
58
|
private toolExecutor;
|
|
53
59
|
constructor(config: TenxGraphConfig);
|
|
60
|
+
/**
|
|
61
|
+
* Replace the bearer token used for later requests (for example after a refresh).
|
|
62
|
+
* Does not touch an open stream or socket.
|
|
63
|
+
*/
|
|
64
|
+
setAuthToken(token: string | null | (() => string | null | undefined)): void;
|
|
65
|
+
/** Drop the bearer token and any `auth` credentials. Later requests are sent without them. */
|
|
66
|
+
clearAuth(): void;
|
|
54
67
|
private createContext;
|
|
55
68
|
/**
|
|
56
69
|
* Register a tool for remote execution
|
|
@@ -64,45 +77,48 @@ export declare class TenxGraphClient {
|
|
|
64
77
|
/**
|
|
65
78
|
* Ping the server to check connectivity
|
|
66
79
|
*/
|
|
67
|
-
ping(): Promise<PingResponse>;
|
|
80
|
+
ping(options?: RequestOptions): Promise<PingResponse>;
|
|
68
81
|
/**
|
|
69
82
|
* Fetch the agent graph
|
|
70
83
|
*/
|
|
71
|
-
graph(): Promise<GraphResponse>;
|
|
84
|
+
graph(options?: RequestOptions): Promise<GraphResponse>;
|
|
72
85
|
/**
|
|
73
86
|
* Fetch the tools exposed by the graph's tool nodes, grouped by node.
|
|
74
87
|
* Each tool is tagged with its source (local / mcp / remote).
|
|
75
88
|
*/
|
|
76
|
-
graphTools(): Promise<GraphToolsResponse>;
|
|
89
|
+
graphTools(options?: RequestOptions): Promise<GraphToolsResponse>;
|
|
77
90
|
/**
|
|
78
91
|
* Fetch the reconstructed observability trace (spans, events, cost) for a
|
|
79
92
|
* thread. Returns the latest run by default, or a specific run when given.
|
|
80
93
|
*/
|
|
81
|
-
observability(threadId: string, runId?: string): Promise<ObservabilityResponse>;
|
|
94
|
+
observability(threadId: string, runId?: string, options?: RequestOptions): Promise<ObservabilityResponse>;
|
|
82
95
|
/**
|
|
83
96
|
* Stop a running graph execution for a specific thread
|
|
84
97
|
* @param threadId - The ID of the thread to stop execution for
|
|
85
98
|
* @param config - Optional configuration for the stop operation
|
|
86
99
|
* @returns StopGraphResponse with the stop operation result
|
|
87
100
|
*/
|
|
88
|
-
stopGraph(threadId: string, config?: Record<string, any
|
|
101
|
+
stopGraph(threadId: string, config?: Record<string, any>, options?: RequestOptions): Promise<StopGraphResponse>;
|
|
89
102
|
/**
|
|
90
|
-
*
|
|
91
|
-
*
|
|
92
|
-
*
|
|
103
|
+
* Repair a thread whose run stopped after the model asked for tools but before
|
|
104
|
+
* the results were saved. The server removes assistant messages with unanswered
|
|
105
|
+
* tool calls (matched by tool call id) and tool results whose call no longer
|
|
106
|
+
* exists. Unanswered calls of the latest assistant message are kept while the
|
|
107
|
+
* thread is paused (interrupt, client tool call or human approval). When nothing
|
|
108
|
+
* needs fixing, removed_count is 0 and the state is not written.
|
|
93
109
|
*
|
|
94
110
|
* @param threadId - The ID of the thread to fix state for
|
|
95
111
|
* @param config - Optional configuration for the fix operation
|
|
96
112
|
* @returns FixGraphResponse with the fix operation result including removed_count
|
|
97
113
|
*/
|
|
98
|
-
fixGraph(threadId: string, config?: Record<string, any
|
|
114
|
+
fixGraph(threadId: string, config?: Record<string, any>, options?: RequestOptions): Promise<FixGraphResponse>;
|
|
99
115
|
/**
|
|
100
116
|
*
|
|
101
117
|
|
|
102
118
|
/**
|
|
103
119
|
* Fetch the state schema of the agent
|
|
104
120
|
*/
|
|
105
|
-
graphStateSchema(): Promise<StateSchemaResponse>;
|
|
121
|
+
graphStateSchema(options?: RequestOptions): Promise<StateSchemaResponse>;
|
|
106
122
|
/**
|
|
107
123
|
* ***************** ALL THREAD APIS *****************
|
|
108
124
|
*/
|
|
@@ -111,7 +127,7 @@ export declare class TenxGraphClient {
|
|
|
111
127
|
* @param threadId - The ID of the thread to fetch state for
|
|
112
128
|
* @returns ThreadStateResponse containing the thread's current state
|
|
113
129
|
*/
|
|
114
|
-
threadState(threadId: string | number): Promise<ThreadStateResponse>;
|
|
130
|
+
threadState(threadId: string | number, options?: RequestOptions): Promise<ThreadStateResponse>;
|
|
115
131
|
/**
|
|
116
132
|
* Update the state of a specific thread (checkpoint)
|
|
117
133
|
* @param threadId - The ID of the thread to update
|
|
@@ -119,19 +135,20 @@ export declare class TenxGraphClient {
|
|
|
119
135
|
* @param state - New AgentState for the thread
|
|
120
136
|
* @returns UpdateThreadStateResponse with the updated state
|
|
121
137
|
*/
|
|
122
|
-
updateThreadState(threadId: string | number, config: Record<string, any>, state: any
|
|
138
|
+
updateThreadState(threadId: string | number, config: Record<string, any>, state: any, // AgentState
|
|
139
|
+
options?: RequestOptions): Promise<UpdateThreadStateResponse>;
|
|
123
140
|
/**
|
|
124
141
|
* Clear the state of a specific thread (delete checkpoint)
|
|
125
142
|
* @param threadId - The ID of the thread to clear state for
|
|
126
143
|
* @returns ClearThreadStateResponse with the clear operation result
|
|
127
144
|
*/
|
|
128
|
-
clearThreadState(threadId: string | number): Promise<ClearThreadStateResponse>;
|
|
145
|
+
clearThreadState(threadId: string | number, options?: RequestOptions): Promise<ClearThreadStateResponse>;
|
|
129
146
|
/**
|
|
130
147
|
* Fetch details for a specific thread
|
|
131
148
|
* @param threadId - The ID of the thread to fetch
|
|
132
149
|
* @returns ThreadDetailsResponse containing thread details
|
|
133
150
|
*/
|
|
134
|
-
threadDetails(threadId: string | number): Promise<ThreadDetailsResponse>;
|
|
151
|
+
threadDetails(threadId: string | number, options?: RequestOptions): Promise<ThreadDetailsResponse>;
|
|
135
152
|
/**
|
|
136
153
|
* Fetch list of threads with optional search and pagination
|
|
137
154
|
* @param search - Optional search term to filter threads
|
|
@@ -140,7 +157,7 @@ export declare class TenxGraphClient {
|
|
|
140
157
|
* @returns ThreadsResponse containing the list of threads and metadata
|
|
141
158
|
*/
|
|
142
159
|
threads(): Promise<ThreadsResponse>;
|
|
143
|
-
threads(request: ThreadsRequest): Promise<ThreadsResponse>;
|
|
160
|
+
threads(request: ThreadsRequest, options?: RequestOptions): Promise<ThreadsResponse>;
|
|
144
161
|
/**
|
|
145
162
|
* Fetch messages from a specific thread with optional search and pagination
|
|
146
163
|
* @param threadId - The ID of the thread to fetch messages from
|
|
@@ -149,23 +166,27 @@ export declare class TenxGraphClient {
|
|
|
149
166
|
* @param limit - Optional limit for pagination (default no limit)
|
|
150
167
|
* @returns ThreadMessagesResponse containing the messages and metadata
|
|
151
168
|
*/
|
|
152
|
-
threadMessages(threadId: string | number, request: Omit<ThreadMessagesRequest, 'threadId'
|
|
169
|
+
threadMessages(threadId: string | number, request: Omit<ThreadMessagesRequest, 'threadId'>, options?: RequestOptions): Promise<ThreadMessagesResponse>;
|
|
153
170
|
/**
|
|
154
171
|
* Add messages to a specific thread checkpoint
|
|
172
|
+
*
|
|
173
|
+
* @deprecated Requires the `checkpointer:import` scope (admin only) in 10xgraph-api releases after 0.9.0.
|
|
174
|
+
* Use `updateThreadMessageFeedback` to attach feedback to a message.
|
|
175
|
+
*
|
|
155
176
|
* @param threadId - The ID of the thread to add messages to
|
|
156
177
|
* @param messages - Array of messages to add to the checkpoint
|
|
157
178
|
* @param config - Configuration map for the checkpoint
|
|
158
179
|
* @param metadata - Optional metadata for the checkpoint
|
|
159
180
|
* @returns AddCheckpointMessagesResponse containing the operation result
|
|
160
181
|
*/
|
|
161
|
-
addThreadMessages(threadId: string | number, messages: Message[], config?: Record<string, any>, metadata?: Record<string, any
|
|
182
|
+
addThreadMessages(threadId: string | number, messages: Message[], config?: Record<string, any>, metadata?: Record<string, any>, options?: RequestOptions): Promise<AddThreadMessagesResponse>;
|
|
162
183
|
/**
|
|
163
184
|
* Fetch a specific message from a thread by message ID
|
|
164
185
|
* @param threadId - The ID of the thread
|
|
165
186
|
* @param messageId - The ID of the message to fetch
|
|
166
187
|
* @returns ThreadMessageResponse containing the message and metadata
|
|
167
188
|
*/
|
|
168
|
-
singleMessage(threadId: string | number, messageId: string): Promise<ThreadMessageResponse>;
|
|
189
|
+
singleMessage(threadId: string | number, messageId: string, options?: RequestOptions): Promise<ThreadMessageResponse>;
|
|
169
190
|
/**
|
|
170
191
|
* Delete a specific message from a thread
|
|
171
192
|
* @param threadId - The ID of the thread
|
|
@@ -173,14 +194,23 @@ export declare class TenxGraphClient {
|
|
|
173
194
|
* @param config - Optional configuration map to send with the request body
|
|
174
195
|
* @returns DeleteThreadMessageResponse containing the deletion result
|
|
175
196
|
*/
|
|
176
|
-
deleteMessage(threadId: string | number, messageId: string, config?: Record<string, any
|
|
197
|
+
deleteMessage(threadId: string | number, messageId: string, config?: Record<string, any>, options?: RequestOptions): Promise<DeleteThreadMessageResponse>;
|
|
198
|
+
/**
|
|
199
|
+
* Replace the feedback attached to a message (`message.metadata.feedback`).
|
|
200
|
+
* Nothing else on the message changes.
|
|
201
|
+
* @param threadId - The ID of the thread
|
|
202
|
+
* @param messageId - The ID of the message to attach feedback to
|
|
203
|
+
* @param feedback - Any JSON object, at most 8192 serialized bytes and nesting depth 10
|
|
204
|
+
* @returns UpdateThreadMessageFeedbackResponse containing the updated message
|
|
205
|
+
*/
|
|
206
|
+
updateThreadMessageFeedback(threadId: string | number, messageId: string, feedback: Record<string, unknown>, options?: RequestOptions): Promise<UpdateThreadMessageFeedbackResponse>;
|
|
177
207
|
/**
|
|
178
208
|
* Delete a specific thread
|
|
179
209
|
* @param threadId - The ID of the thread to delete
|
|
180
210
|
* @param config - Optional configuration map to send with the request body
|
|
181
211
|
* @returns DeleteThreadResponse containing the deletion result
|
|
182
212
|
*/
|
|
183
|
-
deleteThread(threadId: string | number, config?: Record<string, any
|
|
213
|
+
deleteThread(threadId: string | number, config?: Record<string, any>, options?: RequestOptions): Promise<DeleteThreadResponse>;
|
|
184
214
|
/**
|
|
185
215
|
* Invoke the agent graph with automatic tool execution loop
|
|
186
216
|
* @param messages - Array of messages to send
|
|
@@ -191,7 +221,12 @@ export declare class TenxGraphClient {
|
|
|
191
221
|
initial_state?: Record<string, any>;
|
|
192
222
|
config?: Record<string, any>;
|
|
193
223
|
recursion_limit?: number;
|
|
224
|
+
on_busy?: 'wait' | 'cancel';
|
|
225
|
+
resume?: unknown;
|
|
226
|
+
interrupt_id?: string;
|
|
194
227
|
response_granularity?: 'full' | 'partial' | 'low';
|
|
228
|
+
/** Abort to cancel the request (and the open stream or socket). */
|
|
229
|
+
signal?: AbortSignal;
|
|
195
230
|
onPartialResult?: InvokeCallback;
|
|
196
231
|
}): Promise<InvokeResult>;
|
|
197
232
|
/**
|
|
@@ -222,7 +257,12 @@ export declare class TenxGraphClient {
|
|
|
222
257
|
initial_state?: Record<string, any>;
|
|
223
258
|
config?: Record<string, any>;
|
|
224
259
|
recursion_limit?: number;
|
|
260
|
+
on_busy?: 'wait' | 'cancel';
|
|
261
|
+
resume?: unknown;
|
|
262
|
+
interrupt_id?: string;
|
|
225
263
|
response_granularity?: 'full' | 'partial' | 'low';
|
|
264
|
+
/** Abort to cancel the request (and the open stream or socket). */
|
|
265
|
+
signal?: AbortSignal;
|
|
226
266
|
}): AsyncGenerator<StreamChunk, void, unknown>;
|
|
227
267
|
/**
|
|
228
268
|
* Stream invoke via a persistent WebSocket connection.
|
|
@@ -264,7 +304,12 @@ export declare class TenxGraphClient {
|
|
|
264
304
|
initial_state?: Record<string, any>;
|
|
265
305
|
config?: Record<string, any>;
|
|
266
306
|
recursion_limit?: number;
|
|
307
|
+
on_busy?: 'wait' | 'cancel';
|
|
308
|
+
resume?: unknown;
|
|
309
|
+
interrupt_id?: string;
|
|
267
310
|
response_granularity?: 'full' | 'partial' | 'low';
|
|
311
|
+
/** Abort to cancel the request (and the open stream or socket). */
|
|
312
|
+
signal?: AbortSignal;
|
|
268
313
|
}): AsyncGenerator<StreamChunk, void, unknown>;
|
|
269
314
|
/**
|
|
270
315
|
* Open a realtime (audio-to-audio) session over ``/v1/graph/live``.
|
|
@@ -276,7 +321,7 @@ export declare class TenxGraphClient {
|
|
|
276
321
|
*
|
|
277
322
|
* @example
|
|
278
323
|
* ```ts
|
|
279
|
-
* const session = client.realtime({ model: 'gemini-
|
|
324
|
+
* const session = client.realtime({ model: 'gemini-3.8-live' });
|
|
280
325
|
* session.on('audio', (pcm) => speaker.write(pcm));
|
|
281
326
|
* session.on('output_transcript', (e) => console.log(e.text));
|
|
282
327
|
* await session.ready;
|
|
@@ -301,7 +346,7 @@ export declare class TenxGraphClient {
|
|
|
301
346
|
* console.log('Memory stored with ID:', result.data.memory_id);
|
|
302
347
|
* ```
|
|
303
348
|
*/
|
|
304
|
-
storeMemory(request: StoreMemoryRequest): Promise<StoreMemoryResponse>;
|
|
349
|
+
storeMemory(request: StoreMemoryRequest, options?: RequestOptions): Promise<StoreMemoryResponse>;
|
|
305
350
|
/**
|
|
306
351
|
* Search for memories in the agent's memory system
|
|
307
352
|
*
|
|
@@ -321,7 +366,7 @@ export declare class TenxGraphClient {
|
|
|
321
366
|
* });
|
|
322
367
|
* ```
|
|
323
368
|
*/
|
|
324
|
-
searchMemory(request: SearchMemoryRequest): Promise<SearchMemoryResponse>;
|
|
369
|
+
searchMemory(request: SearchMemoryRequest, options?: RequestOptions): Promise<SearchMemoryResponse>;
|
|
325
370
|
/**
|
|
326
371
|
* Get a specific memory by ID
|
|
327
372
|
*
|
|
@@ -341,6 +386,7 @@ export declare class TenxGraphClient {
|
|
|
341
386
|
getMemory(memoryId: string, options?: {
|
|
342
387
|
config?: Record<string, any>;
|
|
343
388
|
options?: Record<string, any>;
|
|
389
|
+
signal?: AbortSignal;
|
|
344
390
|
}): Promise<GetMemoryResponse>;
|
|
345
391
|
/**
|
|
346
392
|
* Update an existing memory by ID
|
|
@@ -362,6 +408,7 @@ export declare class TenxGraphClient {
|
|
|
362
408
|
config?: Record<string, any>;
|
|
363
409
|
options?: Record<string, any>;
|
|
364
410
|
metadata?: Record<string, any>;
|
|
411
|
+
signal?: AbortSignal;
|
|
365
412
|
}): Promise<UpdateMemoryResponse>;
|
|
366
413
|
/**
|
|
367
414
|
* Delete a memory by ID
|
|
@@ -382,6 +429,7 @@ export declare class TenxGraphClient {
|
|
|
382
429
|
deleteMemory(memoryId: string, options?: {
|
|
383
430
|
config?: Record<string, any>;
|
|
384
431
|
options?: Record<string, any>;
|
|
432
|
+
signal?: AbortSignal;
|
|
385
433
|
}): Promise<DeleteMemoryResponse>;
|
|
386
434
|
/**
|
|
387
435
|
* List all memories with optional pagination
|
|
@@ -405,6 +453,8 @@ export declare class TenxGraphClient {
|
|
|
405
453
|
config?: Record<string, any>;
|
|
406
454
|
options?: Record<string, any>;
|
|
407
455
|
limit?: number;
|
|
456
|
+
offset?: number;
|
|
457
|
+
signal?: AbortSignal;
|
|
408
458
|
}): Promise<ListMemoriesResponse>;
|
|
409
459
|
/**
|
|
410
460
|
* Forget (delete) memories based on filters and criteria
|
|
@@ -429,6 +479,7 @@ export declare class TenxGraphClient {
|
|
|
429
479
|
memory_type?: any;
|
|
430
480
|
category?: string;
|
|
431
481
|
filters?: Record<string, any>;
|
|
482
|
+
signal?: AbortSignal;
|
|
432
483
|
}): Promise<ForgetMemoriesResponse>;
|
|
433
484
|
/**
|
|
434
485
|
* Upload a file (image, audio, document) to the server.
|
|
@@ -446,34 +497,38 @@ export declare class TenxGraphClient {
|
|
|
446
497
|
uploadFile(file: File | Blob | {
|
|
447
498
|
data: Blob;
|
|
448
499
|
filename: string;
|
|
449
|
-
}): Promise<FileUploadResponse>;
|
|
500
|
+
}, options?: RequestOptions): Promise<FileUploadResponse>;
|
|
450
501
|
/**
|
|
451
502
|
* Download a file by its file_id. Returns raw Blob.
|
|
452
503
|
*/
|
|
453
|
-
getFile(fileId: string): Promise<Blob>;
|
|
504
|
+
getFile(fileId: string, options?: RequestOptions): Promise<Blob>;
|
|
505
|
+
/**
|
|
506
|
+
* List the caller's uploaded files (GET /v1/files).
|
|
507
|
+
* Throws a TenxGraphError with status 501 when the media store cannot enumerate files.
|
|
508
|
+
*/
|
|
509
|
+
listFiles(params?: ListFilesRequest, options?: RequestOptions): Promise<ListFilesResponse>;
|
|
454
510
|
/**
|
|
455
511
|
* Get metadata about a stored file.
|
|
456
512
|
*/
|
|
457
|
-
getFileInfo(fileId: string): Promise<FileInfoResponse>;
|
|
513
|
+
getFileInfo(fileId: string, options?: RequestOptions): Promise<FileInfoResponse>;
|
|
458
514
|
/**
|
|
459
515
|
* Get the best access URL for a stored file.
|
|
460
516
|
* For cloud-backed media this will typically be a signed URL.
|
|
461
517
|
* For local or memory-backed media this may fall back to the API file route.
|
|
462
518
|
*/
|
|
463
|
-
getFileAccessUrl(fileId: string): Promise<FileAccessUrlResponse>;
|
|
464
|
-
/**
|
|
465
|
-
* Get the current multimodal configuration from the server.
|
|
466
|
-
*/
|
|
467
|
-
getMultimodalConfig(): Promise<MultimodalConfigResponse>;
|
|
519
|
+
getFileAccessUrl(fileId: string, options?: RequestOptions): Promise<FileAccessUrlResponse>;
|
|
468
520
|
/**
|
|
469
|
-
*
|
|
470
|
-
*
|
|
521
|
+
* Delete a stored file. Only the file's owner can delete it.
|
|
522
|
+
* Requires the `files:delete` permission; the server returns 404 when the file
|
|
523
|
+
* does not exist or belongs to someone else.
|
|
524
|
+
*
|
|
525
|
+
* @param fileId - The file_id returned by `uploadFile`
|
|
526
|
+
* @returns DeleteFileResponse with `data.file_id` and `data.deleted`
|
|
471
527
|
*/
|
|
472
|
-
|
|
528
|
+
deleteFile(fileId: string, options?: RequestOptions): Promise<DeleteFileResponse>;
|
|
473
529
|
/**
|
|
474
|
-
*
|
|
475
|
-
* Server requires array of content blocks, not simplified string
|
|
530
|
+
* Get the current multimodal configuration from the server.
|
|
476
531
|
*/
|
|
477
|
-
|
|
532
|
+
getMultimodalConfig(options?: RequestOptions): Promise<MultimodalConfigResponse>;
|
|
478
533
|
}
|
|
479
534
|
//# sourceMappingURL=client.d.ts.map
|
package/dist/client.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAgB,MAAM,YAAY,CAAC;AACzE,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAqB,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACtE,OAAO,EAAuB,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAC1E,OAAO,EAAiC,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC9F,OAAO,EAGL,qBAAqB,EACtB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAmC,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACl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B,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;QAC9B,MAAM,CAAC,EAAE,WAAW,CAAC;KACtB,GAAG,OAAO,CAAC,sBAAsB,CAAC;IAkBnC;;;;;;;;;;;;OAYG;IACG,UAAU,CACd,IAAI,EAAE,IAAI,GAAG,IAAI,GAAG;QAAE,IAAI,EAAE,IAAI,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,EACpD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,kBAAkB,CAAC;IAK9B;;OAEG;IACG,OAAO,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;IAKtE;;;OAGG;IACG,SAAS,CAAC,MAAM,CAAC,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAKhG;;OAEG;IACG,WAAW,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAKtF;;;;OAIG;IACG,gBAAgB,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,qBAAqB,CAAC;IAKhG;;;;;;;OAOG;IACG,UAAU,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAKvF;;OAEG;IACG,mBAAmB,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,wBAAwB,CAAC;CAIvF"}
|
|
@@ -18,5 +18,9 @@ export interface AddThreadMessagesResponse {
|
|
|
18
18
|
data: AddThreadMessagesData;
|
|
19
19
|
metadata: ResponseMetadata;
|
|
20
20
|
}
|
|
21
|
+
/**
|
|
22
|
+
* @deprecated Requires the `checkpointer:import` scope (admin only) in 10xgraph-api releases after 0.9.0.
|
|
23
|
+
* Use `updateThreadMessageFeedback` to attach feedback to a message.
|
|
24
|
+
*/
|
|
21
25
|
export declare function addThreadMessages(context: AddThreadMessagesContext, request: AddThreadMessagesRequest): Promise<AddThreadMessagesResponse>;
|
|
22
26
|
//# sourceMappingURL=addThreadMessages.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"addThreadMessages.d.ts","sourceRoot":"","sources":["../../src/endpoints/addThreadMessages.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"addThreadMessages.d.ts","sourceRoot":"","sources":["../../src/endpoints/addThreadMessages.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAGxC,OAAO,EAGL,cAAc,EAGf,MAAM,eAAe,CAAC;AAEvB,MAAM,WAAW,wBAAyB,SAAQ,cAAc;CAAG;AAEnE,MAAM,WAAW,wBAAwB;IACvC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAAC;IAC1B,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC5B,QAAQ,EAAE,OAAO,EAAE,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAChC;AAED,MAAM,WAAW,qBAAqB;IACpC,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAC3B;AAED,MAAM,WAAW,yBAAyB;IACxC,IAAI,EAAE,qBAAqB,CAAC;IAC5B,QAAQ,EAAE,gBAAgB,CAAC;CAC5B;AAED;;;GAGG;AACH,wBAAsB,iBAAiB,CACrC,OAAO,EAAE,wBAAwB,EACjC,OAAO,EAAE,wBAAwB,GAChC,OAAO,CAAC,yBAAyB,CAAC,CAgDpC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"clearThreadState.d.ts","sourceRoot":"","sources":["../../src/endpoints/clearThreadState.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAEjD,OAAO,
|
|
1
|
+
{"version":3,"file":"clearThreadState.d.ts","sourceRoot":"","sources":["../../src/endpoints/clearThreadState.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAEjD,OAAO,EAGL,cAAc,EAGf,MAAM,eAAe,CAAC;AAEvB,MAAM,WAAW,uBAAwB,SAAQ,cAAc;CAAG;AAElE,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,OAAO,CAAC;CACf;AAED,MAAM,WAAW,wBAAwB;IACvC,IAAI,EAAE,oBAAoB,CAAC;IAC3B,QAAQ,EAAE,gBAAgB,CAAC;CAC5B;AAED,wBAAsB,gBAAgB,CACpC,OAAO,EAAE,uBAAuB,EAChC,QAAQ,EAAE,MAAM,GAAG,MAAM,GACxB,OAAO,CAAC,wBAAwB,CAAC,CA+CnC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ResponseMetadata } from './metadata.js';
|
|
2
|
+
import { RequestContext } from '../request.js';
|
|
3
|
+
export interface DeleteFileContext extends RequestContext {
|
|
4
|
+
}
|
|
5
|
+
export interface DeleteFileData {
|
|
6
|
+
file_id: string;
|
|
7
|
+
deleted: boolean;
|
|
8
|
+
}
|
|
9
|
+
export interface DeleteFileResponse {
|
|
10
|
+
data: DeleteFileData;
|
|
11
|
+
metadata: ResponseMetadata;
|
|
12
|
+
}
|
|
13
|
+
export declare function deleteFile(context: DeleteFileContext, fileId: string): Promise<DeleteFileResponse>;
|
|
14
|
+
//# sourceMappingURL=deleteFile.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deleteFile.d.ts","sourceRoot":"","sources":["../../src/endpoints/deleteFile.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAEjD,OAAO,EAGL,cAAc,EAEf,MAAM,eAAe,CAAC;AAEvB,MAAM,WAAW,iBAAkB,SAAQ,cAAc;CAAG;AAE5D,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,cAAc,CAAC;IACrB,QAAQ,EAAE,gBAAgB,CAAC;CAC5B;AAED,wBAAsB,UAAU,CAC9B,OAAO,EAAE,iBAAiB,EAC1B,MAAM,EAAE,MAAM,GACb,OAAO,CAAC,kBAAkB,CAAC,CAwC7B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deleteMemory.d.ts","sourceRoot":"","sources":["../../src/endpoints/deleteMemory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAEjD,OAAO,
|
|
1
|
+
{"version":3,"file":"deleteMemory.d.ts","sourceRoot":"","sources":["../../src/endpoints/deleteMemory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAEjD,OAAO,EAGL,cAAc,EAGf,MAAM,eAAe,CAAC;AAEvB,MAAM,WAAW,mBAAoB,SAAQ,cAAc;CAAG;AAE9D,MAAM,WAAW,mBAAmB;IAClC,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC7B,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAC/B;AAED,MAAM,WAAW,gBAAgB;IAC/B,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,gBAAgB,CAAC;IACvB,QAAQ,EAAE,gBAAgB,CAAC;CAC5B;AAED,wBAAsB,YAAY,CAChC,OAAO,EAAE,mBAAmB,EAC5B,OAAO,EAAE,mBAAmB,GAC3B,OAAO,CAAC,oBAAoB,CAAC,CAuD/B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deleteThread.d.ts","sourceRoot":"","sources":["../../src/endpoints/deleteThread.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAEjD,OAAO,
|
|
1
|
+
{"version":3,"file":"deleteThread.d.ts","sourceRoot":"","sources":["../../src/endpoints/deleteThread.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAEjD,OAAO,EAGL,cAAc,EAGf,MAAM,eAAe,CAAC;AAEvB,MAAM,WAAW,mBAAoB,SAAQ,cAAc;CAAG;AAE9D,MAAM,WAAW,mBAAmB;IAClC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAAC;IAC1B,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAC9B;AAED,MAAM,WAAW,gBAAgB;IAC/B,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,OAAO,CAAC;CACf;AAED,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,gBAAgB,CAAC;IACvB,QAAQ,EAAE,gBAAgB,CAAC;CAC5B;AAED,wBAAsB,YAAY,CAChC,OAAO,EAAE,mBAAmB,EAC5B,OAAO,EAAE,mBAAmB,GAC3B,OAAO,CAAC,oBAAoB,CAAC,CA0C/B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deleteThreadMessage.d.ts","sourceRoot":"","sources":["../../src/endpoints/deleteThreadMessage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAEjD,OAAO,
|
|
1
|
+
{"version":3,"file":"deleteThreadMessage.d.ts","sourceRoot":"","sources":["../../src/endpoints/deleteThreadMessage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAEjD,OAAO,EAGL,cAAc,EAGf,MAAM,eAAe,CAAC;AAEvB,MAAM,WAAW,0BAA2B,SAAQ,cAAc;CAAG;AAErE,MAAM,WAAW,0BAA0B;IACzC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAAC;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAC9B;AAED,MAAM,WAAW,uBAAuB;IACtC,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAC3B;AAED,MAAM,WAAW,2BAA2B;IAC1C,IAAI,EAAE,uBAAuB,CAAC;IAC9B,QAAQ,EAAE,gBAAgB,CAAC;CAC5B;AAED,wBAAsB,mBAAmB,CACvC,OAAO,EAAE,0BAA0B,EACnC,OAAO,EAAE,0BAA0B,GAClC,OAAO,CAAC,2BAA2B,CAAC,CA8CtC"}
|
|
@@ -77,6 +77,39 @@ export declare function uploadFile(ctx: FileUploadContext, file: File | Blob | {
|
|
|
77
77
|
* Download a file by its file_id. Returns raw Blob.
|
|
78
78
|
*/
|
|
79
79
|
export declare function getFile(ctx: FileUploadContext, fileId: string): Promise<Blob>;
|
|
80
|
+
export interface ListFilesRequest {
|
|
81
|
+
/** Page size (server default 50, maximum 200). */
|
|
82
|
+
limit?: number;
|
|
83
|
+
/** Number of files to skip. */
|
|
84
|
+
offset?: number;
|
|
85
|
+
}
|
|
86
|
+
export interface FileListItem {
|
|
87
|
+
file_id: string;
|
|
88
|
+
filename: string | null;
|
|
89
|
+
mime_type: string;
|
|
90
|
+
size_bytes: number;
|
|
91
|
+
url: string;
|
|
92
|
+
/** Unix seconds, or null when the store records no timestamp. */
|
|
93
|
+
created_at: number | null;
|
|
94
|
+
}
|
|
95
|
+
export interface ListFilesResponse {
|
|
96
|
+
data: {
|
|
97
|
+
files: FileListItem[];
|
|
98
|
+
has_more: boolean;
|
|
99
|
+
offset: number;
|
|
100
|
+
limit: number;
|
|
101
|
+
};
|
|
102
|
+
metadata?: {
|
|
103
|
+
request_id: string;
|
|
104
|
+
timestamp: string;
|
|
105
|
+
message: string;
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* List the caller's uploaded files. A store that cannot enumerate its files
|
|
110
|
+
* (for example a cloud store) answers 501, which is thrown as a TenxGraphError.
|
|
111
|
+
*/
|
|
112
|
+
export declare function listFiles(ctx: FileUploadContext, params?: ListFilesRequest): Promise<ListFilesResponse>;
|
|
80
113
|
export declare function getFileInfo(ctx: FileUploadContext, fileId: string): Promise<FileInfoResponse>;
|
|
81
114
|
export declare function getFileAccessUrl(ctx: FileUploadContext, fileId: string): Promise<FileAccessUrlResponse>;
|
|
82
115
|
export declare function getMultimodalConfig(ctx: FileUploadContext): Promise<MultimodalConfigResponse>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"files.d.ts","sourceRoot":"","sources":["../../src/endpoints/files.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,
|
|
1
|
+
{"version":3,"file":"files.d.ts","sourceRoot":"","sources":["../../src/endpoints/files.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,EAGL,cAAc,EAEf,MAAM,eAAe,CAAC;AAKvB,MAAM,WAAW,iBAAkB,SAAQ,cAAc;CAAG;AAE5D,MAAM,WAAW,kBAAkB;IACjC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AAU,EAAE,MAAM,CAAC;QACnB,SAAS,EAAE,MAAM,CAAC;QAClB,OAAO,EAAE,MAAM,CAAC;KACjB,CAAC;CACH;AAED;;;GAGG;AACH,wBAAsB,SAAS,CAC7B,GAAG,EAAE,iBAAiB,EACtB,MAAM,CAAC,EAAE,gBAAgB,GACxB,OAAO,CAAC,iBAAiB,CAAC,CAuB5B;AAKD,wBAAsB,WAAW,CAC/B,GAAG,EAAE,iBAAiB,EACtB,MAAM,EAAE,MAAM,GACb,OAAO,CAAC,gBAAgB,CAAC,CAsB3B;AAKD,wBAAsB,gBAAgB,CACpC,GAAG,EAAE,iBAAiB,EACtB,MAAM,EAAE,MAAM,GACb,OAAO,CAAC,qBAAqB,CAAC,CAsBhC;AAKD,wBAAsB,mBAAmB,CACvC,GAAG,EAAE,iBAAiB,GACrB,OAAO,CAAC,wBAAwB,CAAC,CAoBnC"}
|
|
@@ -16,10 +16,15 @@ export interface FixGraphResponse {
|
|
|
16
16
|
metadata: ResponseMetadata;
|
|
17
17
|
}
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* Repair a thread whose run stopped after the model asked for tools but before
|
|
20
|
+
* the results were saved.
|
|
20
21
|
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
22
|
+
* The server removes an assistant message when any of its tool calls has no
|
|
23
|
+
* matching tool result (matched by tool call id), then removes tool result
|
|
24
|
+
* messages whose call no longer exists. If the thread is paused (interrupt,
|
|
25
|
+
* client tool call or human approval), the unanswered calls of the latest
|
|
26
|
+
* assistant message are kept. Messages without tool calls are never touched.
|
|
27
|
+
* When nothing needs fixing, removed_count is 0 and the state is not written.
|
|
23
28
|
*
|
|
24
29
|
* @param context - Request context with baseUrl, auth, timeout
|
|
25
30
|
* @param request - Fix request with thread_id and optional config
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fixGraph.d.ts","sourceRoot":"","sources":["../../src/endpoints/fixGraph.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAEjD,OAAO,
|
|
1
|
+
{"version":3,"file":"fixGraph.d.ts","sourceRoot":"","sources":["../../src/endpoints/fixGraph.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAEjD,OAAO,EAGL,cAAc,EAEf,MAAM,eAAe,CAAC;AAEvB,MAAM,WAAW,eAAgB,SAAQ,cAAc;CAAG;AAE1D,MAAM,WAAW,eAAe;IAC9B,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAC9B;AAED,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE;QACJ,OAAO,EAAE,OAAO,CAAC;QACjB,OAAO,EAAE,MAAM,CAAC;QAChB,aAAa,EAAE,MAAM,CAAC;QACtB,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;KAC7B,CAAC;IACF,QAAQ,EAAE,gBAAgB,CAAC;CAC5B;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,QAAQ,CAC5B,OAAO,EAAE,eAAe,EACxB,OAAO,EAAE,eAAe,GACvB,OAAO,CAAC,gBAAgB,CAAC,CA6C3B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"forgetMemories.d.ts","sourceRoot":"","sources":["../../src/endpoints/forgetMemories.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,
|
|
1
|
+
{"version":3,"file":"forgetMemories.d.ts","sourceRoot":"","sources":["../../src/endpoints/forgetMemories.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAGL,cAAc,EAEf,MAAM,eAAe,CAAC;AAEvB,MAAM,WAAW,qBAAsB,SAAQ,cAAc;CAAG;AAEhE,MAAM,WAAW,qBAAqB;IACpC,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC7B,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC9B,WAAW,CAAC,EAAE,UAAU,CAAC;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAC/B;AAED,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAC3B;AAED,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,kBAAkB,CAAC;IACzB,QAAQ,EAAE,gBAAgB,CAAC;CAC5B;AAED,wBAAsB,cAAc,CAClC,OAAO,EAAE,qBAAqB,EAC9B,OAAO,EAAE,qBAAqB,GAC7B,OAAO,CAAC,sBAAsB,CAAC,CA8CjC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getMemory.d.ts","sourceRoot":"","sources":["../../src/endpoints/getMemory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAEjD,OAAO,
|
|
1
|
+
{"version":3,"file":"getMemory.d.ts","sourceRoot":"","sources":["../../src/endpoints/getMemory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAEjD,OAAO,EAGL,cAAc,EAGf,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEjD,MAAM,WAAW,gBAAiB,SAAQ,cAAc;CAAG;AAE3D,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC7B,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAC/B;AAED,MAAM,WAAW,aAAa;IAC5B,MAAM,EAAE,YAAY,CAAC;CACtB;AAED,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,aAAa,CAAC;IACpB,QAAQ,EAAE,gBAAgB,CAAC;CAC5B;AAED,wBAAsB,SAAS,CAC7B,OAAO,EAAE,gBAAgB,EACzB,OAAO,EAAE,gBAAgB,GACxB,OAAO,CAAC,iBAAiB,CAAC,CAkD5B"}
|
|
@@ -11,20 +11,32 @@ export interface GraphEdge {
|
|
|
11
11
|
source: string;
|
|
12
12
|
target: string;
|
|
13
13
|
}
|
|
14
|
+
/** Live (realtime) init options the server honors. */
|
|
15
|
+
export interface GraphRealtimeOptions {
|
|
16
|
+
/** Init-frame keys applied from the client (subset of voice, modalities, vad, system_prompt). */
|
|
17
|
+
client_overrides: string[];
|
|
18
|
+
/** Accepted values for the init `model`; empty means the client cannot choose. */
|
|
19
|
+
models: string[];
|
|
20
|
+
model_selectable: boolean;
|
|
21
|
+
/** The client may narrow (never widen) the agent's tool tags. */
|
|
22
|
+
tools_tags: boolean;
|
|
23
|
+
}
|
|
14
24
|
export interface GraphInfo {
|
|
15
25
|
node_count: number;
|
|
16
26
|
edge_count: number;
|
|
17
27
|
checkpointer: boolean;
|
|
18
|
-
checkpointer_type: string;
|
|
28
|
+
checkpointer_type: string | null;
|
|
19
29
|
publisher: boolean;
|
|
20
30
|
store: boolean;
|
|
21
|
-
interrupt_before: string[];
|
|
22
|
-
interrupt_after: string[];
|
|
23
|
-
context_type: string;
|
|
24
|
-
id_generator: string;
|
|
25
|
-
id_type: string;
|
|
26
|
-
state_type: string;
|
|
27
|
-
state_fields: string[];
|
|
31
|
+
interrupt_before: string[] | null;
|
|
32
|
+
interrupt_after: string[] | null;
|
|
33
|
+
context_type: string | null;
|
|
34
|
+
id_generator: string | null;
|
|
35
|
+
id_type: string | null;
|
|
36
|
+
state_type: string | null;
|
|
37
|
+
state_fields: string[] | null;
|
|
38
|
+
/** Live options the server honors; null when the graph is not a realtime agent. */
|
|
39
|
+
realtime_options?: GraphRealtimeOptions | null;
|
|
28
40
|
}
|
|
29
41
|
export interface GraphData {
|
|
30
42
|
info: GraphInfo;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graph.d.ts","sourceRoot":"","sources":["../../src/endpoints/graph.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAEjD,OAAO,
|
|
1
|
+
{"version":3,"file":"graph.d.ts","sourceRoot":"","sources":["../../src/endpoints/graph.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAEjD,OAAO,EAGL,cAAc,EAEf,MAAM,eAAe,CAAC;AAEvB,MAAM,WAAW,YAAa,SAAQ,cAAc;CAAG;AAEvD,MAAM,WAAW,SAAS;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,SAAS;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,sDAAsD;AACtD,MAAM,WAAW,oBAAoB;IACnC,iGAAiG;IACjG,gBAAgB,EAAE,MAAM,EAAE,CAAC;IAC3B,kFAAkF;IAClF,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,iEAAiE;IACjE,UAAU,EAAE,OAAO,CAAC;CACrB;AAED,MAAM,WAAW,SAAS;IACxB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,OAAO,CAAC;IACtB,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,SAAS,EAAE,OAAO,CAAC;IACnB,KAAK,EAAE,OAAO,CAAC;IACf,gBAAgB,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;IAClC,eAAe,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;IACjC,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,YAAY,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;IAC9B,mFAAmF;IACnF,gBAAgB,CAAC,EAAE,oBAAoB,GAAG,IAAI,CAAC;CAChD;AAED,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,SAAS,CAAC;IAChB,KAAK,EAAE,SAAS,EAAE,CAAC;IACnB,KAAK,EAAE,SAAS,EAAE,CAAC;CACpB;AAED,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,SAAS,CAAC;IAChB,QAAQ,EAAE,gBAAgB,CAAC;CAC5B;AAED,wBAAsB,KAAK,CAAC,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,aAAa,CAAC,CAyCzE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graphTools.d.ts","sourceRoot":"","sources":["../../src/endpoints/graphTools.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAEjD,OAAO,
|
|
1
|
+
{"version":3,"file":"graphTools.d.ts","sourceRoot":"","sources":["../../src/endpoints/graphTools.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAEjD,OAAO,EAGL,cAAc,EAEf,MAAM,eAAe,CAAC;AAEvB,MAAM,WAAW,iBAAkB,SAAQ,cAAc;CAAG;AAE5D,MAAM,MAAM,UAAU,GAAG,OAAO,GAAG,KAAK,GAAG,QAAQ,CAAC;AAEpD,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,UAAU,CAAC;IACnB,0EAA0E;IAC1E,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CACjC;AAED,MAAM,WAAW,aAAa;IAC5B,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,SAAS,EAAE,CAAC;CACpB;AAED,MAAM,WAAW,cAAc;IAC7B,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,aAAa,EAAE,CAAC;CACxB;AAED,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,cAAc,CAAC;IACrB,QAAQ,EAAE,gBAAgB,CAAC;CAC5B;AAED;;;GAGG;AACH,wBAAsB,UAAU,CAAC,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAyCxF"}
|