@agents24/node 0.5.22 → 0.5.24
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/compatibility.json +8 -8
- package/dist/bff.cjs +314 -199
- package/dist/bff.cjs.map +1 -1
- package/dist/bff.d.cts +3 -1
- package/dist/bff.d.ts +3 -1
- package/dist/bff.js +314 -199
- package/dist/bff.js.map +1 -1
- package/dist/{client-CR3usQ8l.d.cts → client-DMkQFCYV.d.cts} +476 -191
- package/dist/{client-CR3usQ8l.d.ts → client-DMkQFCYV.d.ts} +476 -191
- package/dist/index.cjs +211 -19
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +211 -19
- package/dist/index.js.map +1 -1
- package/dist/types/bff-agent-resolution.d.ts +2 -0
- package/dist/types/bff-agent-resolution.d.ts.map +1 -1
- package/dist/types/bff-delegations.d.ts +5 -0
- package/dist/types/bff-delegations.d.ts.map +1 -0
- package/dist/types/bff-request.d.ts +36 -0
- package/dist/types/bff-request.d.ts.map +1 -0
- package/dist/types/bff.d.ts.map +1 -1
- package/dist/types/delegations.d.ts +1 -78
- package/dist/types/delegations.d.ts.map +1 -1
- package/dist/types/embed-types.d.ts +302 -0
- package/dist/types/embed-types.d.ts.map +1 -0
- package/dist/types/embed.d.ts +3 -2
- package/dist/types/embed.d.ts.map +1 -1
- package/dist/types/generated/delegation-types.d.ts +130 -0
- package/dist/types/generated/delegation-types.d.ts.map +1 -0
- package/dist/types/generated/embedDelegations.d.ts +12 -0
- package/dist/types/generated/embedDelegations.d.ts.map +1 -0
- package/dist/types/generated/ingestion-types.d.ts +155 -3
- package/dist/types/generated/ingestion-types.d.ts.map +1 -1
- package/dist/types/generated/ingestionJobs.d.ts +6 -1
- package/dist/types/generated/ingestionJobs.d.ts.map +1 -1
- package/dist/types/generated/knowledgeStores.d.ts +8 -1
- package/dist/types/generated/knowledgeStores.d.ts.map +1 -1
- package/dist/types/generated/manifest.d.ts +1 -1
- package/dist/types/generated/manifest.d.ts.map +1 -1
- package/dist/types/generated/model-capabilities.d.ts +31 -0
- package/dist/types/generated/model-capabilities.d.ts.map +1 -0
- package/dist/types/generated/resourcePackages.d.ts.map +1 -1
- package/dist/types/types.d.ts +13 -279
- package/dist/types/types.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -1,179 +1,6 @@
|
|
|
1
1
|
import * as _agents24_client_protocol from '@agents24/client/protocol';
|
|
2
|
-
import { ToolInputOverrides, ContextWindow, RuntimeEvent, ThreadMessagesPage, ThreadMessageSubmission, ThreadMessage, RunCancelResult, AttachmentUploadResult, AttachmentContentAccess, RunResumeResult, ThreadsResponse, ThreadSummaryEvent, ThreadDetail, ThreadDeleteResult, RunContext } from '@agents24/client/protocol';
|
|
2
|
+
import { ToolInputOverrides, PublicResponseBlock, ContextWindow, RuntimeEvent, ThreadMessagesPage, ThreadMessageSubmission, ThreadMessage, RunCancelResult, AttachmentUploadResult, AttachmentContentAccess, RunResumeResult, ThreadsResponse, ThreadSummaryEvent, ThreadDetail, ThreadDeleteResult, RunContext } from '@agents24/client/protocol';
|
|
3
3
|
|
|
4
|
-
type Agents24SDKErrorKind = "protocol" | "network" | "http";
|
|
5
|
-
type Agents24NodeErrorKind = Agents24SDKErrorKind;
|
|
6
|
-
|
|
7
|
-
declare class Agents24SDKError extends Error {
|
|
8
|
-
readonly kind: Agents24SDKErrorKind;
|
|
9
|
-
readonly status?: number;
|
|
10
|
-
readonly failure?: FailureView;
|
|
11
|
-
readonly responseHeaders?: Readonly<Record<string, string>>;
|
|
12
|
-
constructor(message: string, options: {
|
|
13
|
-
kind: Agents24SDKErrorKind;
|
|
14
|
-
status?: number;
|
|
15
|
-
failure?: FailureView;
|
|
16
|
-
responseHeaders?: Readonly<Record<string, string>>;
|
|
17
|
-
cause?: unknown;
|
|
18
|
-
});
|
|
19
|
-
get code(): string | undefined;
|
|
20
|
-
get category(): string | undefined;
|
|
21
|
-
get failureId(): string | undefined;
|
|
22
|
-
get requestId(): string | undefined;
|
|
23
|
-
get retryable(): boolean;
|
|
24
|
-
get retryAfterMs(): number | undefined;
|
|
25
|
-
get details(): Readonly<Record<string, unknown>>;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
declare class DelegationsNamespace {
|
|
29
|
-
protected readonly http: Agents24HttpClient;
|
|
30
|
-
constructor(http: Agents24HttpClient);
|
|
31
|
-
history(runId: string, handle: string, options?: {
|
|
32
|
-
before?: number;
|
|
33
|
-
limit?: number;
|
|
34
|
-
}): Promise<DelegationHistory>;
|
|
35
|
-
list(runId: string): Promise<DelegationTaskList>;
|
|
36
|
-
inspect(runId: string, handle: string): Promise<DelegationTask>;
|
|
37
|
-
events(runId: string, options?: {
|
|
38
|
-
after?: number;
|
|
39
|
-
limit?: number;
|
|
40
|
-
}): Promise<DelegationEvents>;
|
|
41
|
-
act(runId: string, handle: string, request: DelegationActionRequest, options?: RequestOptions): Promise<Record<string, unknown>>;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
type DelegationStatus = "queued" | "running" | "waiting" | "paused" | "interrupt_requested" | "interrupted" | "completed" | "failed" | "cancelling" | "cancelled";
|
|
45
|
-
interface DelegationTask {
|
|
46
|
-
handle: string;
|
|
47
|
-
name: string;
|
|
48
|
-
path: string;
|
|
49
|
-
status: DelegationStatus;
|
|
50
|
-
background: boolean;
|
|
51
|
-
depth: number;
|
|
52
|
-
parent_node_id: string;
|
|
53
|
-
ownership_generation: number;
|
|
54
|
-
owner_run_id: string;
|
|
55
|
-
root_run_id: string;
|
|
56
|
-
origin: Record<string, unknown>;
|
|
57
|
-
run_id: string | null;
|
|
58
|
-
thread_id: string | null;
|
|
59
|
-
result_run_id: string | null;
|
|
60
|
-
updated_at: string;
|
|
61
|
-
capabilities: {
|
|
62
|
-
cancel: boolean;
|
|
63
|
-
interrupt: boolean;
|
|
64
|
-
};
|
|
65
|
-
result?: {
|
|
66
|
-
text: string;
|
|
67
|
-
failure_id: string | null;
|
|
68
|
-
};
|
|
69
|
-
invocations?: Array<{
|
|
70
|
-
run_id: string;
|
|
71
|
-
status: string;
|
|
72
|
-
usage: Record<string, unknown>;
|
|
73
|
-
}>;
|
|
74
|
-
pending_questions?: Array<{
|
|
75
|
-
interrupt_id: string;
|
|
76
|
-
kind: string;
|
|
77
|
-
can_answer: boolean;
|
|
78
|
-
request: Record<string, unknown>;
|
|
79
|
-
}>;
|
|
80
|
-
}
|
|
81
|
-
type DelegationAction = {
|
|
82
|
-
action: "interrupt" | "cancel";
|
|
83
|
-
};
|
|
84
|
-
type DelegationActionRequest = DelegationAction & {
|
|
85
|
-
operation_id: string;
|
|
86
|
-
};
|
|
87
|
-
interface DelegationTaskList {
|
|
88
|
-
tasks: DelegationTask[];
|
|
89
|
-
}
|
|
90
|
-
interface DelegationHistoryTurn {
|
|
91
|
-
id: string;
|
|
92
|
-
run_id: string;
|
|
93
|
-
turn_index: number;
|
|
94
|
-
status: DelegationStatus;
|
|
95
|
-
assignment_instruction: string;
|
|
96
|
-
sender: "parent";
|
|
97
|
-
created_at: string;
|
|
98
|
-
user_input_text: string | null;
|
|
99
|
-
assistant_output_text: string | null;
|
|
100
|
-
response_blocks: Array<Record<string, unknown>>;
|
|
101
|
-
}
|
|
102
|
-
interface DelegationHistory {
|
|
103
|
-
handle: string;
|
|
104
|
-
parent_agent_id: string;
|
|
105
|
-
kind: string;
|
|
106
|
-
turns: DelegationHistoryTurn[];
|
|
107
|
-
paging: {
|
|
108
|
-
has_more: boolean;
|
|
109
|
-
next_before_turn_index: number | null;
|
|
110
|
-
};
|
|
111
|
-
}
|
|
112
|
-
interface DelegationEvents {
|
|
113
|
-
schema_version: "agents24.delegation.events.v1";
|
|
114
|
-
cursor: number;
|
|
115
|
-
events: Array<{
|
|
116
|
-
seq: number;
|
|
117
|
-
kind: string;
|
|
118
|
-
task: DelegationTask;
|
|
119
|
-
}>;
|
|
120
|
-
snapshot: DelegationTask[];
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
type Agents24NodeOptions = {
|
|
124
|
-
baseUrl: string;
|
|
125
|
-
apiKey: string;
|
|
126
|
-
fetchImpl?: typeof fetch;
|
|
127
|
-
};
|
|
128
|
-
/** @deprecated Use Agents24NodeOptions. */
|
|
129
|
-
type Agents24Options = Agents24NodeOptions;
|
|
130
|
-
type RequestOptions = {
|
|
131
|
-
idempotencyKey?: string;
|
|
132
|
-
dryRun?: boolean;
|
|
133
|
-
validateOnly?: boolean;
|
|
134
|
-
requestMetadata?: Record<string, unknown>;
|
|
135
|
-
};
|
|
136
|
-
type BackendSessionRequestOptions = RequestOptions & {
|
|
137
|
-
dpopProof?: string;
|
|
138
|
-
};
|
|
139
|
-
type StreamRequestOptions = RequestOptions & {
|
|
140
|
-
signal?: AbortSignal;
|
|
141
|
-
leaseSeconds?: number;
|
|
142
|
-
onControl?: (control: _agents24_client_protocol.ObservationControl) => void | Promise<void>;
|
|
143
|
-
};
|
|
144
|
-
type AgentStreamRequest = {
|
|
145
|
-
client_submission_id?: string;
|
|
146
|
-
input?: string;
|
|
147
|
-
messages?: Array<Record<string, unknown>>;
|
|
148
|
-
attachment_ids?: string[];
|
|
149
|
-
thread_id?: string;
|
|
150
|
-
runtime_context?: Record<string, unknown>;
|
|
151
|
-
tool_inputs?: ToolInputOverrides;
|
|
152
|
-
requested_model_id?: string;
|
|
153
|
-
requested_model_node_id?: string;
|
|
154
|
-
client?: Record<string, unknown>;
|
|
155
|
-
node_state?: Record<string, unknown>;
|
|
156
|
-
runtime_target?: "draft" | "published";
|
|
157
|
-
agent_version_id?: string;
|
|
158
|
-
};
|
|
159
|
-
type ControlPlaneAgentRunRequest = {
|
|
160
|
-
input?: string;
|
|
161
|
-
messages?: Array<Record<string, unknown>>;
|
|
162
|
-
thread_id?: string;
|
|
163
|
-
runtime_context?: Record<string, unknown>;
|
|
164
|
-
tool_inputs?: ToolInputOverrides;
|
|
165
|
-
requested_model_id?: string;
|
|
166
|
-
requested_model_node_id?: string;
|
|
167
|
-
runtime_target?: "draft" | "published";
|
|
168
|
-
agent_version_id?: string;
|
|
169
|
-
};
|
|
170
|
-
type StreamResult = {
|
|
171
|
-
threadId: string | null;
|
|
172
|
-
runId: string | null;
|
|
173
|
-
messageId?: string;
|
|
174
|
-
messageStatus?: "queued" | "blocked" | "steer_pending";
|
|
175
|
-
queuePosition?: number | null;
|
|
176
|
-
};
|
|
177
4
|
type EmbedStreamRequest = {
|
|
178
5
|
client_submission_id?: string;
|
|
179
6
|
agent_version_id?: string;
|
|
@@ -181,6 +8,8 @@ type EmbedStreamRequest = {
|
|
|
181
8
|
messages?: Array<Record<string, unknown>>;
|
|
182
9
|
attachment_ids?: string[];
|
|
183
10
|
thread_id?: string;
|
|
11
|
+
knowledge_namespaces?: Record<string, string>;
|
|
12
|
+
knowledgeNamespaces?: Record<string, string>;
|
|
184
13
|
tool_inputs?: ToolInputOverrides;
|
|
185
14
|
requested_model_id?: string;
|
|
186
15
|
requested_model_node_id?: string;
|
|
@@ -190,6 +19,8 @@ type EmbedStreamRequest = {
|
|
|
190
19
|
client?: Record<string, unknown>;
|
|
191
20
|
runtime_target?: "draft" | "published";
|
|
192
21
|
integration_id: string;
|
|
22
|
+
chat_scope?: string;
|
|
23
|
+
chatScope?: string;
|
|
193
24
|
};
|
|
194
25
|
type EmbedRunStartRequest = Omit<EmbedStreamRequest, "thread_id"> & {
|
|
195
26
|
thread_id?: string;
|
|
@@ -202,6 +33,8 @@ type AttachRunRequest = {
|
|
|
202
33
|
cursor?: number;
|
|
203
34
|
runtime_target?: "draft" | "published";
|
|
204
35
|
integration_id: string;
|
|
36
|
+
chat_scope?: string;
|
|
37
|
+
chatScope?: string;
|
|
205
38
|
};
|
|
206
39
|
type FeedbackRating = "like" | "dislike";
|
|
207
40
|
type FeedbackReason = "incorrect" | "irrelevant" | "incomplete" | "unsafe" | "citation_issue" | "other";
|
|
@@ -224,6 +57,8 @@ type EmbeddedResponseFeedbackInput = {
|
|
|
224
57
|
comment?: string | null;
|
|
225
58
|
runtime_target?: "draft" | "published";
|
|
226
59
|
integration_id: string;
|
|
60
|
+
chat_scope?: string;
|
|
61
|
+
chatScope?: string;
|
|
227
62
|
};
|
|
228
63
|
type HitlAction = "approve" | "reject" | "connect" | "skip" | "respond";
|
|
229
64
|
type HitlAnswer = {
|
|
@@ -271,6 +106,8 @@ type MultiAgentThreadListRequest = {
|
|
|
271
106
|
external_session_id?: string | null;
|
|
272
107
|
runtime_target?: "draft" | "published";
|
|
273
108
|
integration_id: string;
|
|
109
|
+
chat_scope?: string;
|
|
110
|
+
chatScope?: string;
|
|
274
111
|
skip?: number;
|
|
275
112
|
limit?: number;
|
|
276
113
|
};
|
|
@@ -279,6 +116,7 @@ type ThreadListOptions = {
|
|
|
279
116
|
externalSessionId?: string;
|
|
280
117
|
runtimeTarget?: "draft" | "published";
|
|
281
118
|
integrationId: string;
|
|
119
|
+
chatScope?: string;
|
|
282
120
|
skip?: number;
|
|
283
121
|
limit?: number;
|
|
284
122
|
};
|
|
@@ -287,8 +125,13 @@ type EmbedThreadMessageScope = {
|
|
|
287
125
|
externalSessionId?: string;
|
|
288
126
|
runtimeTarget?: "draft" | "published";
|
|
289
127
|
integrationId: string;
|
|
128
|
+
chatScope?: string;
|
|
290
129
|
};
|
|
291
|
-
type EmbedThreadMessageSubmit =
|
|
130
|
+
type EmbedThreadMessageSubmit = {
|
|
131
|
+
knowledgeNamespaces?: Record<string, string>;
|
|
132
|
+
} & EmbedThreadMessageScope & {
|
|
133
|
+
agentVersionId?: string | null;
|
|
134
|
+
requestedAgentId?: string;
|
|
292
135
|
clientSubmissionId?: string;
|
|
293
136
|
mode: "queue" | "steer";
|
|
294
137
|
input: string;
|
|
@@ -298,6 +141,8 @@ type EmbedThreadMessageSubmit = EmbedThreadMessageScope & {
|
|
|
298
141
|
metadata?: Record<string, unknown>;
|
|
299
142
|
};
|
|
300
143
|
type EmbedThreadMessageEdit = EmbedThreadMessageScope & {
|
|
144
|
+
agentVersionId?: string | null;
|
|
145
|
+
requestedAgentId?: string;
|
|
301
146
|
revision: number;
|
|
302
147
|
input: string;
|
|
303
148
|
attachmentIds?: string[];
|
|
@@ -348,12 +193,14 @@ type ThreadDetailOptions = {
|
|
|
348
193
|
subthreadTurnLimit?: number;
|
|
349
194
|
subthreadChildLimit?: number;
|
|
350
195
|
integrationId: string;
|
|
196
|
+
chatScope?: string;
|
|
351
197
|
};
|
|
352
198
|
type RunContextOptions = {
|
|
353
199
|
externalUserId: string;
|
|
354
200
|
externalSessionId?: string;
|
|
355
201
|
runtimeTarget?: "draft" | "published";
|
|
356
202
|
integrationId: string;
|
|
203
|
+
chatScope?: string;
|
|
357
204
|
};
|
|
358
205
|
type RunCancelOptions = {
|
|
359
206
|
externalUserId?: string;
|
|
@@ -365,12 +212,14 @@ type EmbedRunCancelOptions = {
|
|
|
365
212
|
externalSessionId?: string;
|
|
366
213
|
runtimeTarget?: "draft" | "published";
|
|
367
214
|
integrationId: string;
|
|
215
|
+
chatScope?: string;
|
|
368
216
|
};
|
|
369
217
|
type ThreadDeleteOptions = {
|
|
370
218
|
externalUserId: string;
|
|
371
219
|
externalSessionId?: string;
|
|
372
220
|
runtimeTarget?: "draft" | "published";
|
|
373
221
|
integrationId: string;
|
|
222
|
+
chatScope?: string;
|
|
374
223
|
};
|
|
375
224
|
type ThreadSummaryEventOptions = {
|
|
376
225
|
threadId?: string;
|
|
@@ -382,6 +231,7 @@ type ThreadSummaryEventOptions = {
|
|
|
382
231
|
signal?: AbortSignal;
|
|
383
232
|
runtimeTarget?: "draft" | "published";
|
|
384
233
|
integrationId: string;
|
|
234
|
+
chatScope?: string;
|
|
385
235
|
};
|
|
386
236
|
type MultiAgentThreadSummaryEventOptions = ThreadSummaryEventOptions & {
|
|
387
237
|
agentIds: string[];
|
|
@@ -389,6 +239,7 @@ type MultiAgentThreadSummaryEventOptions = ThreadSummaryEventOptions & {
|
|
|
389
239
|
type ConversationThreadOptions = ThreadDetailOptions & {
|
|
390
240
|
agentIds: string[];
|
|
391
241
|
integrationId: string;
|
|
242
|
+
chatScope?: string;
|
|
392
243
|
};
|
|
393
244
|
type ConversationRuntimeSelectionRequest = {
|
|
394
245
|
agent_ids: string[];
|
|
@@ -397,6 +248,8 @@ type ConversationRuntimeSelectionRequest = {
|
|
|
397
248
|
external_user_id: string;
|
|
398
249
|
external_session_id?: string | null;
|
|
399
250
|
integration_id: string;
|
|
251
|
+
chat_scope?: string;
|
|
252
|
+
chatScope?: string;
|
|
400
253
|
runtime_target?: "draft" | "published";
|
|
401
254
|
};
|
|
402
255
|
type ConversationRuntimeSelectionResult = {
|
|
@@ -417,6 +270,8 @@ type ConversationRunRequest = {
|
|
|
417
270
|
external_user_id: string;
|
|
418
271
|
external_session_id?: string | null;
|
|
419
272
|
integration_id: string;
|
|
273
|
+
chat_scope?: string;
|
|
274
|
+
chatScope?: string;
|
|
420
275
|
runtime_target?: "draft" | "published";
|
|
421
276
|
};
|
|
422
277
|
type ConversationRunResult = {
|
|
@@ -436,12 +291,270 @@ type EmbedAttachmentContentAccessRequest = AttachmentContentAccessRequest & {
|
|
|
436
291
|
external_session_id?: string | null;
|
|
437
292
|
runtime_target?: "draft" | "published";
|
|
438
293
|
integration_id: string;
|
|
294
|
+
chat_scope?: string;
|
|
295
|
+
chatScope?: string;
|
|
439
296
|
};
|
|
440
297
|
type ServerEmbedAttachmentUploadOptions = ServerAttachmentUploadOptions & {
|
|
441
298
|
externalUserId: string;
|
|
442
299
|
externalSessionId?: string;
|
|
443
300
|
runtimeTarget?: "draft" | "published";
|
|
444
301
|
integrationId: string;
|
|
302
|
+
chatScope?: string;
|
|
303
|
+
};
|
|
304
|
+
|
|
305
|
+
type DelegationStatus = "queued" | "running" | "waiting" | "paused" | "interrupt_requested" | "interrupted" | "completed" | "failed" | "cancelling" | "cancelled";
|
|
306
|
+
interface DelegationCapabilities {
|
|
307
|
+
cancel: boolean;
|
|
308
|
+
interrupt: boolean;
|
|
309
|
+
}
|
|
310
|
+
interface DelegationResult {
|
|
311
|
+
text: string | null;
|
|
312
|
+
output: unknown;
|
|
313
|
+
failure_id: string | null;
|
|
314
|
+
}
|
|
315
|
+
interface DelegationInvocation {
|
|
316
|
+
run_id: string;
|
|
317
|
+
status: string;
|
|
318
|
+
usage: Record<string, unknown>;
|
|
319
|
+
}
|
|
320
|
+
interface DelegationQuestionOption {
|
|
321
|
+
id: string;
|
|
322
|
+
label: string;
|
|
323
|
+
}
|
|
324
|
+
interface DelegationQuestion {
|
|
325
|
+
id: string;
|
|
326
|
+
question: string;
|
|
327
|
+
multi_select?: boolean;
|
|
328
|
+
options: Array<DelegationQuestionOption>;
|
|
329
|
+
}
|
|
330
|
+
interface DelegationQuestionPresentation {
|
|
331
|
+
questions?: Array<DelegationQuestion>;
|
|
332
|
+
}
|
|
333
|
+
interface DelegationQuestionRequest {
|
|
334
|
+
message?: string;
|
|
335
|
+
presentation?: DelegationQuestionPresentation;
|
|
336
|
+
}
|
|
337
|
+
interface DelegationPendingQuestion {
|
|
338
|
+
interrupt_id: string;
|
|
339
|
+
kind: string;
|
|
340
|
+
can_answer: boolean;
|
|
341
|
+
request: DelegationQuestionRequest;
|
|
342
|
+
}
|
|
343
|
+
interface DelegationTask {
|
|
344
|
+
handle: string;
|
|
345
|
+
name: string;
|
|
346
|
+
path: string;
|
|
347
|
+
status: DelegationStatus;
|
|
348
|
+
background: boolean;
|
|
349
|
+
depth: number;
|
|
350
|
+
parent_node_id: string;
|
|
351
|
+
ownership_generation: number;
|
|
352
|
+
owner_run_id: string;
|
|
353
|
+
root_run_id: string;
|
|
354
|
+
origin: Record<string, unknown>;
|
|
355
|
+
run_id: string | null;
|
|
356
|
+
thread_id: string | null;
|
|
357
|
+
result_run_id: string | null;
|
|
358
|
+
updated_at: string;
|
|
359
|
+
capabilities: DelegationCapabilities;
|
|
360
|
+
result?: DelegationResult;
|
|
361
|
+
invocations?: Array<DelegationInvocation>;
|
|
362
|
+
pending_questions?: Array<DelegationPendingQuestion>;
|
|
363
|
+
}
|
|
364
|
+
interface DelegationTaskList {
|
|
365
|
+
tasks: Array<DelegationTask>;
|
|
366
|
+
}
|
|
367
|
+
interface DelegationAction {
|
|
368
|
+
action: "interrupt" | "cancel";
|
|
369
|
+
}
|
|
370
|
+
interface DelegationActionRequest {
|
|
371
|
+
action: "interrupt" | "cancel";
|
|
372
|
+
operation_id: string;
|
|
373
|
+
}
|
|
374
|
+
interface DelegationActionReceipt {
|
|
375
|
+
operation_id: string;
|
|
376
|
+
handle: string;
|
|
377
|
+
status: DelegationStatus;
|
|
378
|
+
}
|
|
379
|
+
interface DelegationHistoryTurn {
|
|
380
|
+
id: string;
|
|
381
|
+
run_id: string;
|
|
382
|
+
turn_index: number;
|
|
383
|
+
status: string;
|
|
384
|
+
assignment_instruction: string;
|
|
385
|
+
sender: "parent";
|
|
386
|
+
created_at: string;
|
|
387
|
+
user_input_text: string | null;
|
|
388
|
+
assistant_output_text: string | null;
|
|
389
|
+
response_blocks: Array<PublicResponseBlock>;
|
|
390
|
+
completed_at?: string | null;
|
|
391
|
+
final_output?: unknown;
|
|
392
|
+
run_usage?: Record<string, unknown>;
|
|
393
|
+
exchanges?: Array<DelegationExchange>;
|
|
394
|
+
}
|
|
395
|
+
interface DelegationHistoryPaging {
|
|
396
|
+
has_more: boolean;
|
|
397
|
+
next_before_turn_index: number | null;
|
|
398
|
+
}
|
|
399
|
+
interface DelegationHistory {
|
|
400
|
+
handle: string;
|
|
401
|
+
parent_agent_id: string;
|
|
402
|
+
kind: string;
|
|
403
|
+
turns: Array<DelegationHistoryTurn>;
|
|
404
|
+
paging: DelegationHistoryPaging;
|
|
405
|
+
}
|
|
406
|
+
interface DelegationEvent {
|
|
407
|
+
seq: number;
|
|
408
|
+
kind: string;
|
|
409
|
+
task: DelegationTask;
|
|
410
|
+
}
|
|
411
|
+
interface DelegationEvents {
|
|
412
|
+
schema_version: "agents24.delegation.events.v1";
|
|
413
|
+
cursor: number;
|
|
414
|
+
events: Array<DelegationEvent>;
|
|
415
|
+
snapshot: Array<DelegationTask>;
|
|
416
|
+
}
|
|
417
|
+
interface EmbedDelegationOptions {
|
|
418
|
+
externalUserId: string;
|
|
419
|
+
integrationId: string;
|
|
420
|
+
externalSessionId?: string;
|
|
421
|
+
runtimeTarget?: "draft" | "published";
|
|
422
|
+
after?: number;
|
|
423
|
+
before?: number;
|
|
424
|
+
limit?: number;
|
|
425
|
+
chatScope?: string;
|
|
426
|
+
}
|
|
427
|
+
interface DelegationExchange {
|
|
428
|
+
id: string;
|
|
429
|
+
sender: "parent" | "child";
|
|
430
|
+
text: string;
|
|
431
|
+
created_at: string;
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
type Agents24SDKErrorKind = "protocol" | "network" | "http";
|
|
435
|
+
type Agents24NodeErrorKind = Agents24SDKErrorKind;
|
|
436
|
+
|
|
437
|
+
declare class Agents24SDKError extends Error {
|
|
438
|
+
readonly kind: Agents24SDKErrorKind;
|
|
439
|
+
readonly status?: number;
|
|
440
|
+
readonly failure?: FailureView;
|
|
441
|
+
readonly responseHeaders?: Readonly<Record<string, string>>;
|
|
442
|
+
constructor(message: string, options: {
|
|
443
|
+
kind: Agents24SDKErrorKind;
|
|
444
|
+
status?: number;
|
|
445
|
+
failure?: FailureView;
|
|
446
|
+
responseHeaders?: Readonly<Record<string, string>>;
|
|
447
|
+
cause?: unknown;
|
|
448
|
+
});
|
|
449
|
+
get code(): string | undefined;
|
|
450
|
+
get category(): string | undefined;
|
|
451
|
+
get failureId(): string | undefined;
|
|
452
|
+
get requestId(): string | undefined;
|
|
453
|
+
get retryable(): boolean;
|
|
454
|
+
get retryAfterMs(): number | undefined;
|
|
455
|
+
get details(): Readonly<Record<string, unknown>>;
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
declare class DelegationsNamespace {
|
|
459
|
+
protected readonly http: Agents24HttpClient;
|
|
460
|
+
constructor(http: Agents24HttpClient);
|
|
461
|
+
history(runId: string, handle: string, options?: {
|
|
462
|
+
before?: number;
|
|
463
|
+
limit?: number;
|
|
464
|
+
}): Promise<DelegationHistory>;
|
|
465
|
+
list(runId: string): Promise<DelegationTaskList>;
|
|
466
|
+
inspect(runId: string, handle: string): Promise<DelegationTask>;
|
|
467
|
+
events(runId: string, options?: {
|
|
468
|
+
after?: number;
|
|
469
|
+
limit?: number;
|
|
470
|
+
}): Promise<DelegationEvents>;
|
|
471
|
+
act(runId: string, handle: string, request: DelegationActionRequest, options?: RequestOptions): Promise<Record<string, unknown>>;
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
type ModelCapabilityFeatures = {
|
|
475
|
+
tool_calling: boolean;
|
|
476
|
+
structured_output: boolean;
|
|
477
|
+
reasoning: boolean;
|
|
478
|
+
segment_timestamps: boolean;
|
|
479
|
+
word_timestamps: boolean;
|
|
480
|
+
};
|
|
481
|
+
type ModelCapabilityLimits = {
|
|
482
|
+
context_tokens?: number | null;
|
|
483
|
+
input_tokens?: number | null;
|
|
484
|
+
output_tokens?: number | null;
|
|
485
|
+
tools_per_request?: number | null;
|
|
486
|
+
images_per_request?: number | null;
|
|
487
|
+
audio_seconds_per_request?: number | null;
|
|
488
|
+
audio_bytes_per_request?: number | null;
|
|
489
|
+
};
|
|
490
|
+
type ModelInputModality = "text" | "image" | "audio" | "video" | "pdf";
|
|
491
|
+
type ModelOutputModality = "text" | "image" | "audio" | "video" | "embedding" | "ranking" | "transcription";
|
|
492
|
+
type ModelCapabilitiesV1 = {
|
|
493
|
+
schema_version: "agents24.model-capabilities.v1";
|
|
494
|
+
input_modalities: Array<ModelInputModality>;
|
|
495
|
+
output_modalities: Array<ModelOutputModality>;
|
|
496
|
+
features: ModelCapabilityFeatures;
|
|
497
|
+
limits: ModelCapabilityLimits;
|
|
498
|
+
};
|
|
499
|
+
type ModelRequirements = {
|
|
500
|
+
input_modalities?: Array<ModelInputModality>;
|
|
501
|
+
output_modalities?: Array<ModelOutputModality>;
|
|
502
|
+
required_features?: Array<"tool_calling" | "structured_output" | "reasoning" | "segment_timestamps" | "word_timestamps">;
|
|
503
|
+
};
|
|
504
|
+
|
|
505
|
+
type Agents24NodeOptions = {
|
|
506
|
+
baseUrl: string;
|
|
507
|
+
apiKey: string;
|
|
508
|
+
fetchImpl?: typeof fetch;
|
|
509
|
+
};
|
|
510
|
+
/** @deprecated Use Agents24NodeOptions. */
|
|
511
|
+
type Agents24Options = Agents24NodeOptions;
|
|
512
|
+
type RequestOptions = {
|
|
513
|
+
idempotencyKey?: string;
|
|
514
|
+
dryRun?: boolean;
|
|
515
|
+
validateOnly?: boolean;
|
|
516
|
+
requestMetadata?: Record<string, unknown>;
|
|
517
|
+
};
|
|
518
|
+
type BackendSessionRequestOptions = RequestOptions & {
|
|
519
|
+
dpopProof?: string;
|
|
520
|
+
};
|
|
521
|
+
type StreamRequestOptions = RequestOptions & {
|
|
522
|
+
signal?: AbortSignal;
|
|
523
|
+
leaseSeconds?: number;
|
|
524
|
+
onControl?: (control: _agents24_client_protocol.ObservationControl) => void | Promise<void>;
|
|
525
|
+
};
|
|
526
|
+
type AgentStreamRequest = {
|
|
527
|
+
client_submission_id?: string;
|
|
528
|
+
input?: string;
|
|
529
|
+
messages?: Array<Record<string, unknown>>;
|
|
530
|
+
attachment_ids?: string[];
|
|
531
|
+
thread_id?: string;
|
|
532
|
+
runtime_context?: Record<string, unknown>;
|
|
533
|
+
tool_inputs?: ToolInputOverrides;
|
|
534
|
+
requested_model_id?: string;
|
|
535
|
+
requested_model_node_id?: string;
|
|
536
|
+
client?: Record<string, unknown>;
|
|
537
|
+
node_state?: Record<string, unknown>;
|
|
538
|
+
runtime_target?: "draft" | "published";
|
|
539
|
+
agent_version_id?: string;
|
|
540
|
+
};
|
|
541
|
+
type ControlPlaneAgentRunRequest = {
|
|
542
|
+
input?: string;
|
|
543
|
+
messages?: Array<Record<string, unknown>>;
|
|
544
|
+
thread_id?: string;
|
|
545
|
+
runtime_context?: Record<string, unknown>;
|
|
546
|
+
tool_inputs?: ToolInputOverrides;
|
|
547
|
+
requested_model_id?: string;
|
|
548
|
+
requested_model_node_id?: string;
|
|
549
|
+
runtime_target?: "draft" | "published";
|
|
550
|
+
agent_version_id?: string;
|
|
551
|
+
};
|
|
552
|
+
type StreamResult = {
|
|
553
|
+
threadId: string | null;
|
|
554
|
+
runId: string | null;
|
|
555
|
+
messageId?: string;
|
|
556
|
+
messageStatus?: "queued" | "blocked" | "steer_pending";
|
|
557
|
+
queuePosition?: number | null;
|
|
445
558
|
};
|
|
446
559
|
type GraphValueRef = {
|
|
447
560
|
namespace: "workflow_input" | "state" | "node_output";
|
|
@@ -595,8 +708,6 @@ type AgentSummary = {
|
|
|
595
708
|
share_theme: "soft" | "sharp";
|
|
596
709
|
share_client_deployment_id?: string | null;
|
|
597
710
|
resource_policy_set_id?: string | null;
|
|
598
|
-
tool_binding_status?: string | null;
|
|
599
|
-
is_tool_enabled: boolean;
|
|
600
711
|
created_at: string;
|
|
601
712
|
updated_at: string;
|
|
602
713
|
published_at?: string | null;
|
|
@@ -881,7 +992,7 @@ type ClientSessionCredentials = {
|
|
|
881
992
|
refresh_expires_at: string | null;
|
|
882
993
|
dpop_nonce: string | null;
|
|
883
994
|
};
|
|
884
|
-
type PortableResourceKind = "
|
|
995
|
+
type PortableResourceKind = "rag_pipeline" | "instruction" | "knowledge_store" | "artifact";
|
|
885
996
|
type ResourceSelector = {
|
|
886
997
|
kind: PortableResourceKind;
|
|
887
998
|
id: string;
|
|
@@ -942,19 +1053,18 @@ type ResourcePackageDiagnostic = {
|
|
|
942
1053
|
};
|
|
943
1054
|
type ResourceToolExport = {
|
|
944
1055
|
source_resource_key: string;
|
|
945
|
-
source_kind: "
|
|
1056
|
+
source_kind: "rag_pipeline";
|
|
946
1057
|
key?: string;
|
|
947
1058
|
name: string;
|
|
948
1059
|
description: string;
|
|
949
1060
|
input_schema: Record<string, unknown>;
|
|
950
1061
|
output_schema: Record<string, unknown>;
|
|
951
|
-
session?: "fresh" | "persistent" | "shared";
|
|
952
1062
|
};
|
|
953
1063
|
type ResourceCallableBinding = {
|
|
954
1064
|
consumer_resource_key: string;
|
|
955
1065
|
consumer_node_id: string;
|
|
956
1066
|
source_resource_key: string;
|
|
957
|
-
source_kind: "
|
|
1067
|
+
source_kind: "rag_pipeline" | "artifact";
|
|
958
1068
|
tool_title?: string;
|
|
959
1069
|
description?: string;
|
|
960
1070
|
source_tool_id?: string;
|
|
@@ -986,7 +1096,7 @@ type ResourcePackageDependency = {
|
|
|
986
1096
|
required: boolean;
|
|
987
1097
|
bundled: boolean;
|
|
988
1098
|
included?: boolean;
|
|
989
|
-
required_capability?: "chat" | "embedding";
|
|
1099
|
+
required_capability?: "chat" | "embedding" | "speech_to_text" | "rerank";
|
|
990
1100
|
status?: "bundled" | "mapped" | "unresolved";
|
|
991
1101
|
mapped_id?: string | null;
|
|
992
1102
|
suggested_mapping?: {
|
|
@@ -1008,7 +1118,7 @@ type ResourcePackageExportPlan = {
|
|
|
1008
1118
|
kind: string;
|
|
1009
1119
|
name?: string | null;
|
|
1010
1120
|
required: boolean;
|
|
1011
|
-
required_capability?: "chat" | "embedding";
|
|
1121
|
+
required_capability?: "chat" | "embedding" | "speech_to_text" | "rerank";
|
|
1012
1122
|
}>;
|
|
1013
1123
|
warnings: string[];
|
|
1014
1124
|
blockers: Array<{
|
|
@@ -1068,12 +1178,14 @@ type ResourceCandidateList = {
|
|
|
1068
1178
|
}>;
|
|
1069
1179
|
total: number;
|
|
1070
1180
|
};
|
|
1181
|
+
|
|
1071
1182
|
type ResourcePackageCandidateOptions = {
|
|
1183
|
+
modelRequirements?: ModelRequirements;
|
|
1072
1184
|
kind: string;
|
|
1073
1185
|
query?: string;
|
|
1074
1186
|
limit?: number;
|
|
1075
1187
|
offset?: number;
|
|
1076
|
-
requiredCapability?: "chat" | "embedding";
|
|
1188
|
+
requiredCapability?: "chat" | "embedding" | "speech_to_text" | "rerank";
|
|
1077
1189
|
};
|
|
1078
1190
|
type ResourceInstallationBinding = {
|
|
1079
1191
|
resource_key: string;
|
|
@@ -1086,7 +1198,7 @@ type ResourceCallableBindingStatus = {
|
|
|
1086
1198
|
consumer_resource_key: string;
|
|
1087
1199
|
consumer_node_id: string;
|
|
1088
1200
|
source_resource_key: string;
|
|
1089
|
-
source_kind: "
|
|
1201
|
+
source_kind: "rag_pipeline" | "artifact";
|
|
1090
1202
|
registry_kind: "tool" | "toolset" | null;
|
|
1091
1203
|
tool_id: string | null;
|
|
1092
1204
|
tool_key: string | null;
|
|
@@ -1469,12 +1581,22 @@ declare class ClientSessionsNamespace {
|
|
|
1469
1581
|
createBackendSession(deploymentId: string, request: CreateBackendClientSessionRequest, options?: BackendSessionRequestOptions): Promise<ClientSessionCredentials>;
|
|
1470
1582
|
}
|
|
1471
1583
|
|
|
1472
|
-
declare class
|
|
1473
|
-
|
|
1584
|
+
declare class EmbedDelegationsNamespace {
|
|
1585
|
+
protected readonly http: Agents24HttpClient;
|
|
1586
|
+
constructor(http: Agents24HttpClient);
|
|
1587
|
+
listAgentDelegations(agentId: string, threadId: string, options: EmbedDelegationOptions): Promise<DelegationTaskList>;
|
|
1588
|
+
eventsAgentDelegations(agentId: string, threadId: string, options: EmbedDelegationOptions): Promise<DelegationEvents>;
|
|
1589
|
+
inspectAgentDelegation(agentId: string, threadId: string, handle: string, options: EmbedDelegationOptions): Promise<DelegationTask>;
|
|
1590
|
+
historyAgentDelegation(agentId: string, threadId: string, handle: string, options: EmbedDelegationOptions): Promise<DelegationHistory>;
|
|
1591
|
+
actAgentDelegation(agentId: string, threadId: string, handle: string, request: DelegationActionRequest, options: EmbedDelegationOptions): Promise<DelegationActionReceipt>;
|
|
1592
|
+
}
|
|
1593
|
+
|
|
1594
|
+
declare class EmbedNamespace extends EmbedDelegationsNamespace {
|
|
1474
1595
|
constructor(http: Agents24HttpClient);
|
|
1475
1596
|
streamAgent(agentId: string, payload: EmbedStreamRequest, onEvent?: (event: RuntimeEvent) => void | Promise<void>, options?: StreamRequestOptions): Promise<StreamResult>;
|
|
1476
1597
|
startAgentRun(agentId: string, payload: EmbedRunStartRequest, options?: RequestOptions): Promise<StartRunResult>;
|
|
1477
1598
|
attachAgentRun(agentId: string, runId: string, payload: AttachRunRequest, onEvent?: (event: RuntimeEvent) => void | Promise<void>, options?: StreamRequestOptions): Promise<StreamResult>;
|
|
1599
|
+
private namespacePayload;
|
|
1478
1600
|
private stream;
|
|
1479
1601
|
resumeAgentRun(agentId: string, runId: string, payload: ResumeRunRequest, options?: RequestOptions): Promise<RunResumeResult>;
|
|
1480
1602
|
startAgentRunMcpAuth(agentId: string, runId: string, serverId: string, payload: McpAuthStartRequest, options?: RequestOptions): Promise<McpAuthStartResult>;
|
|
@@ -1706,6 +1828,7 @@ type PipelineInputStep = {
|
|
|
1706
1828
|
type PipelineInputSchema = {
|
|
1707
1829
|
pipeline_type: string;
|
|
1708
1830
|
steps: Array<PipelineInputStep>;
|
|
1831
|
+
knowledge_namespace_inputs?: Array<Record<string, unknown>>;
|
|
1709
1832
|
};
|
|
1710
1833
|
type PipelineInputUpload = {
|
|
1711
1834
|
input_ref: string;
|
|
@@ -1716,6 +1839,9 @@ type IngestionJobStart = {
|
|
|
1716
1839
|
executable_pipeline_id: string;
|
|
1717
1840
|
input_params: Record<string, unknown>;
|
|
1718
1841
|
name?: string | null;
|
|
1842
|
+
knowledge_namespaces?: Record<string, string>;
|
|
1843
|
+
} & {
|
|
1844
|
+
knowledgeNamespaces?: Record<string, string>;
|
|
1719
1845
|
};
|
|
1720
1846
|
type IngestionJobAcknowledgment = {
|
|
1721
1847
|
job_id: string;
|
|
@@ -1734,11 +1860,12 @@ type IngestionBatch = {
|
|
|
1734
1860
|
input_count?: number;
|
|
1735
1861
|
output_count?: number;
|
|
1736
1862
|
attempt_count?: number;
|
|
1863
|
+
sources?: Array<SourceOutcome>;
|
|
1737
1864
|
};
|
|
1738
1865
|
type IngestionJob = {
|
|
1739
1866
|
id: string;
|
|
1740
1867
|
name?: string | null;
|
|
1741
|
-
executable_pipeline_id: string;
|
|
1868
|
+
executable_pipeline_id: string | null;
|
|
1742
1869
|
visual_pipeline_id?: string | null;
|
|
1743
1870
|
pipeline_name?: string | null;
|
|
1744
1871
|
pipeline_type?: string | null;
|
|
@@ -1758,6 +1885,8 @@ type IngestionJob = {
|
|
|
1758
1885
|
updated_at?: string | null;
|
|
1759
1886
|
started_at?: string | null;
|
|
1760
1887
|
completed_at?: string | null;
|
|
1888
|
+
knowledge_namespaces?: Record<string, string>;
|
|
1889
|
+
job_kind?: "pipeline" | "indexed_cleanup";
|
|
1761
1890
|
};
|
|
1762
1891
|
type IngestionJobPage = {
|
|
1763
1892
|
items: Array<IngestionJob>;
|
|
@@ -1777,7 +1906,7 @@ type KnowledgeStoreCreate = {
|
|
|
1777
1906
|
description?: string | null;
|
|
1778
1907
|
embedding_model_id: string;
|
|
1779
1908
|
chunking_strategy?: KnowledgeStoreChunking | null;
|
|
1780
|
-
retrieval_policy?: "semantic_only" | "hybrid"
|
|
1909
|
+
retrieval_policy?: "semantic_only" | "hybrid";
|
|
1781
1910
|
create_default_pipelines?: "both" | "ingestion" | "retrieval" | "none";
|
|
1782
1911
|
backend?: "pgvector" | "pinecone" | "qdrant";
|
|
1783
1912
|
backend_config?: Record<string, unknown>;
|
|
@@ -1786,7 +1915,7 @@ type KnowledgeStoreCreate = {
|
|
|
1786
1915
|
type KnowledgeStoreUpdate = {
|
|
1787
1916
|
name?: string | null;
|
|
1788
1917
|
description?: string | null;
|
|
1789
|
-
retrieval_policy?: "semantic_only" | "hybrid" |
|
|
1918
|
+
retrieval_policy?: "semantic_only" | "hybrid" | null;
|
|
1790
1919
|
credentials_ref?: string | null;
|
|
1791
1920
|
};
|
|
1792
1921
|
type KnowledgeStore = {
|
|
@@ -1877,6 +2006,151 @@ type KnowledgeStoreChunking = {
|
|
|
1877
2006
|
chunk_size?: number;
|
|
1878
2007
|
chunk_overlap?: number;
|
|
1879
2008
|
};
|
|
2009
|
+
type SourceDescriptor = {
|
|
2010
|
+
content_id: string;
|
|
2011
|
+
revision_id: string;
|
|
2012
|
+
identity_owner?: "application" | "provider";
|
|
2013
|
+
title?: string | null;
|
|
2014
|
+
external_ref?: string | null;
|
|
2015
|
+
filename?: string | null;
|
|
2016
|
+
mime_type?: string | null;
|
|
2017
|
+
byte_size?: number | null;
|
|
2018
|
+
sha256?: string | null;
|
|
2019
|
+
};
|
|
2020
|
+
type FileAssetReference = {
|
|
2021
|
+
input_ref: string;
|
|
2022
|
+
source: SourceDescriptor;
|
|
2023
|
+
};
|
|
2024
|
+
type EvidenceLocation = {
|
|
2025
|
+
kind: "pdf" | "docx" | "media" | "text" | "record";
|
|
2026
|
+
page_number?: number | null;
|
|
2027
|
+
total_pages?: number | null;
|
|
2028
|
+
bbox?: Array<number> | null;
|
|
2029
|
+
reference?: string | null;
|
|
2030
|
+
start_ms?: number | null;
|
|
2031
|
+
end_ms?: number | null;
|
|
2032
|
+
timing_granularity?: "segment" | "word" | null;
|
|
2033
|
+
};
|
|
2034
|
+
type ContentSegment = {
|
|
2035
|
+
id: string;
|
|
2036
|
+
text: string;
|
|
2037
|
+
locations?: Array<EvidenceLocation>;
|
|
2038
|
+
structure_kind?: "text" | "heading" | "table";
|
|
2039
|
+
};
|
|
2040
|
+
type ProcessedContent = {
|
|
2041
|
+
schema_version?: "agents24.processed-content.v1";
|
|
2042
|
+
source: SourceDescriptor;
|
|
2043
|
+
processing_fingerprint: string;
|
|
2044
|
+
physical_page_count?: number | null;
|
|
2045
|
+
language?: string | null;
|
|
2046
|
+
duration_ms?: number | null;
|
|
2047
|
+
completeness?: "complete" | "partial" | "blank";
|
|
2048
|
+
warnings?: Array<string>;
|
|
2049
|
+
segments?: Array<ContentSegment>;
|
|
2050
|
+
};
|
|
2051
|
+
type ProcessedContentReference = {
|
|
2052
|
+
processed_ref: string;
|
|
2053
|
+
source: SourceDescriptor;
|
|
2054
|
+
completeness: "complete" | "partial" | "blank";
|
|
2055
|
+
segment_count: number;
|
|
2056
|
+
physical_page_count?: number | null;
|
|
2057
|
+
language?: string | null;
|
|
2058
|
+
duration_ms?: number | null;
|
|
2059
|
+
};
|
|
2060
|
+
type ContentChunk = {
|
|
2061
|
+
id: string;
|
|
2062
|
+
text: string;
|
|
2063
|
+
source: SourceDescriptor;
|
|
2064
|
+
segment_ids: Array<string>;
|
|
2065
|
+
locations: Array<EvidenceLocation>;
|
|
2066
|
+
processing_fingerprint: string;
|
|
2067
|
+
metadata?: Record<string, unknown>;
|
|
2068
|
+
};
|
|
2069
|
+
type RetrievalEvidence = {
|
|
2070
|
+
schema_version?: "agents24.retrieval-evidence.v1";
|
|
2071
|
+
id: string;
|
|
2072
|
+
knowledge_store_id: string;
|
|
2073
|
+
content_id: string;
|
|
2074
|
+
revision_id: string;
|
|
2075
|
+
generation_id: string;
|
|
2076
|
+
chunk_id: string;
|
|
2077
|
+
segment_ids?: Array<string>;
|
|
2078
|
+
title?: string | null;
|
|
2079
|
+
external_ref?: string | null;
|
|
2080
|
+
locations?: Array<EvidenceLocation>;
|
|
2081
|
+
};
|
|
2082
|
+
type UploadSessionStart = {
|
|
2083
|
+
filename: string;
|
|
2084
|
+
mime_type: string;
|
|
2085
|
+
byte_size: number;
|
|
2086
|
+
};
|
|
2087
|
+
type UploadPart = {
|
|
2088
|
+
part_number: number;
|
|
2089
|
+
upload_url: string;
|
|
2090
|
+
completed: boolean;
|
|
2091
|
+
};
|
|
2092
|
+
type UploadPartAck = {
|
|
2093
|
+
part_number: number;
|
|
2094
|
+
status: "uploaded";
|
|
2095
|
+
};
|
|
2096
|
+
type UploadSession = {
|
|
2097
|
+
id: string;
|
|
2098
|
+
status: "uploading" | "completing" | "completed" | "aborted" | "expired";
|
|
2099
|
+
part_bytes: number;
|
|
2100
|
+
parts: Array<UploadPart>;
|
|
2101
|
+
input_ref: string | null;
|
|
2102
|
+
};
|
|
2103
|
+
type IndexedContent = {
|
|
2104
|
+
id: string;
|
|
2105
|
+
knowledge_store_id: string;
|
|
2106
|
+
namespace: string;
|
|
2107
|
+
content_id: string;
|
|
2108
|
+
revision_id: string;
|
|
2109
|
+
generation_id: string;
|
|
2110
|
+
processing_fingerprint: string;
|
|
2111
|
+
status: "writing" | "complete" | "deleting" | "deleted";
|
|
2112
|
+
chunk_count: number;
|
|
2113
|
+
created_at: string;
|
|
2114
|
+
updated_at: string;
|
|
2115
|
+
};
|
|
2116
|
+
type IndexedContentPage = {
|
|
2117
|
+
items: Array<IndexedContent>;
|
|
2118
|
+
limit: number;
|
|
2119
|
+
skip: number;
|
|
2120
|
+
has_more: boolean;
|
|
2121
|
+
};
|
|
2122
|
+
type IndexedContentListOptions = {
|
|
2123
|
+
namespace: string;
|
|
2124
|
+
contentId?: string;
|
|
2125
|
+
revisionId?: string;
|
|
2126
|
+
limit?: number;
|
|
2127
|
+
skip?: number;
|
|
2128
|
+
};
|
|
2129
|
+
type IndexedCleanupAck = {
|
|
2130
|
+
indexed_content_id: string;
|
|
2131
|
+
status: string;
|
|
2132
|
+
job_id: string | null;
|
|
2133
|
+
};
|
|
2134
|
+
type ProcessingInputSource = {
|
|
2135
|
+
content_id?: string | null;
|
|
2136
|
+
revision_id?: string | null;
|
|
2137
|
+
title?: string | null;
|
|
2138
|
+
external_ref?: string | null;
|
|
2139
|
+
};
|
|
2140
|
+
type ProcessingInput = {
|
|
2141
|
+
input_ref: string;
|
|
2142
|
+
source?: ProcessingInputSource;
|
|
2143
|
+
};
|
|
2144
|
+
type SourceOutcome = {
|
|
2145
|
+
input_ref: string;
|
|
2146
|
+
source: SourceDescriptor | ProcessingInputSource;
|
|
2147
|
+
status: "pending" | "running" | "completed" | "failed" | "skipped" | "cancelled";
|
|
2148
|
+
completeness?: "complete" | "partial" | "blank" | null;
|
|
2149
|
+
segment_count?: number | null;
|
|
2150
|
+
physical_page_count?: number | null;
|
|
2151
|
+
language?: string | null;
|
|
2152
|
+
duration_ms?: number | null;
|
|
2153
|
+
};
|
|
1880
2154
|
|
|
1881
2155
|
declare class PipelinesNamespace {
|
|
1882
2156
|
protected readonly http: Agents24HttpClient;
|
|
@@ -1897,6 +2171,11 @@ declare class IngestionJobsNamespace {
|
|
|
1897
2171
|
listBatches(jobId: string, options?: IngestionBatchListOptions): Promise<IngestionBatchPage>;
|
|
1898
2172
|
resume(jobId: string, options?: RequestOptions): Promise<IngestionJob>;
|
|
1899
2173
|
cancel(jobId: string, options?: RequestOptions): Promise<IngestionJob>;
|
|
2174
|
+
createUpload(request: UploadSessionStart, options?: RequestOptions): Promise<UploadSession>;
|
|
2175
|
+
getUpload(sessionId: string): Promise<UploadSession>;
|
|
2176
|
+
putUploadPart(sessionId: string, partNumber: string, data: Blob): Promise<UploadPartAck>;
|
|
2177
|
+
completeUpload(sessionId: string, options?: RequestOptions): Promise<UploadSession>;
|
|
2178
|
+
abortUpload(sessionId: string, options?: RequestOptions): Promise<UploadSession>;
|
|
1900
2179
|
}
|
|
1901
2180
|
|
|
1902
2181
|
declare class KnowledgeStoresNamespace {
|
|
@@ -1908,6 +2187,12 @@ declare class KnowledgeStoresNamespace {
|
|
|
1908
2187
|
update(storeId: string, request: KnowledgeStoreUpdate): Promise<KnowledgeStore>;
|
|
1909
2188
|
stats(storeId: string): Promise<KnowledgeStoreStats>;
|
|
1910
2189
|
archive(storeId: string): Promise<void>;
|
|
2190
|
+
listIndexedContent(storeId: string, options: IndexedContentListOptions): Promise<IndexedContentPage>;
|
|
2191
|
+
getIndexedContent(storeId: string, indexedId: string): Promise<IndexedContent>;
|
|
2192
|
+
deleteIndexedContent(storeId: string, indexedId: string, options?: RequestOptions): Promise<IndexedCleanupAck>;
|
|
2193
|
+
getCleanupJob(storeId: string, jobId: string): Promise<IngestionJob>;
|
|
2194
|
+
resumeCleanupJob(storeId: string, jobId: string, options?: RequestOptions): Promise<IngestionJob>;
|
|
2195
|
+
cancelCleanupJob(storeId: string, jobId: string, options?: RequestOptions): Promise<IngestionJob>;
|
|
1911
2196
|
}
|
|
1912
2197
|
|
|
1913
2198
|
declare class GeneratedIntegrationNamespaces {
|
|
@@ -1935,4 +2220,4 @@ declare class Agents24 extends GeneratedIntegrationNamespaces {
|
|
|
1935
2220
|
graph(): GraphBuilder;
|
|
1936
2221
|
}
|
|
1937
2222
|
|
|
1938
|
-
export { type
|
|
2223
|
+
export { type CustomerResourcePolicyAssignment as $, Agents24 as A, type BackendSessionRequestOptions as B, type ClearCustomerResourcePolicyAssignmentResult as C, type ClientDeploymentListQuery as D, type ClientDeploymentListResponse as E, type ClientNativeProfile as F, type ClientRuntimeNativeProfileInput as G, type ClientRuntimeOidcConfig as H, type ClientRuntimePolicyInput as I, type ClientSessionCredentials as J, type ContentChunk as K, type ContentSegment as L, type ControlPlaneAgentRunRequest as M, type ControlPlaneRunEventsResponse as N, type ConversationRunRequest as O, type ConversationRunResult as P, type ConversationRuntimeSelectionRequest as Q, type ConversationRuntimeSelectionResult as R, type ConversationThreadOptions as S, type CreateBackendClientSessionRequest as T, type CreateClientDeploymentRequest as U, type CustomerIdentityRequest as V, type CustomerPrincipalRefRequest as W, type CustomerProfile as X, type CustomerProfileList as Y, type CustomerProfilePatch as Z, type CustomerProfileSearchOptions as _, type AgentCreateRequest as a, type McpAuthStartRequest as a$, type DelegationAction as a0, type DelegationActionReceipt as a1, type DelegationActionRequest as a2, type DelegationEvents as a3, type DelegationHistory as a4, type DelegationHistoryTurn as a5, type DelegationStatus as a6, type DelegationTask as a7, type DelegationTaskList as a8, type EffectiveCustomerResourcePolicyRequest as a9, type GraphValueRef as aA, type HitlAction as aB, type HitlAnswer as aC, type HostedArtifactDraft as aD, HostedArtifactsNamespace as aE, type IndexedCleanupAck as aF, type IndexedContent as aG, type IndexedContentListOptions as aH, type IndexedContentPage as aI, type IngestionBatch as aJ, type IngestionBatchListOptions as aK, type IngestionBatchPage as aL, type IngestionJob as aM, type IngestionJobAcknowledgment as aN, type IngestionJobGetOptions as aO, type IngestionJobListOptions as aP, type IngestionJobPage as aQ, type IngestionJobStart as aR, type KnowledgeStore as aS, type KnowledgeStoreChunking as aT, type KnowledgeStoreCreate as aU, type KnowledgeStoreListOptions as aV, type KnowledgeStoreNamespace as aW, type KnowledgeStorePage as aX, type KnowledgeStoreStats as aY, type KnowledgeStoreUpdate as aZ, type LatestOrPinnedPolicy as a_, type EffectiveResourcePolicy as aa, type EmbedAgentAliasResolution as ab, type EmbedAttachmentContentAccessRequest as ac, type EmbedCustomerPrincipalResolveRequest as ad, type EmbedCustomerPrincipalResolveResponse as ae, type EmbedDelegationOptions as af, type EmbedResourcePolicyRequest as ag, type EmbedRunCancelOptions as ah, type EmbedRunStartRequest as ai, type EmbedRuntimeBootstrap as aj, type EmbedStreamRequest as ak, type EmbedThreadMessageEdit as al, type EmbedThreadMessageScope as am, type EmbedThreadMessageSubmit as an, type EmbeddedResponseFeedbackInput as ao, type EvidenceLocation as ap, type FailureCategory as aq, type FailureView as ar, type FeedbackRating as as, type FeedbackReason as at, type FileAssetReference as au, GraphBuilder as av, type GraphDefinition as aw, type GraphEdge as ax, type GraphHints as ay, type GraphNode as az, AgentDefinitionBuilder as b, type ResourcePolicySummary as b$, type McpAuthStartResult as b0, type ModelCapabilitiesV1 as b1, type ModelRequirements as b2, type MultiAgentThreadListRequest as b3, type MultiAgentThreadSummaryEventOptions as b4, type NativePlatform as b5, type NodeAuthoringSpec as b6, type NodeCatalogItem as b7, type NodeCatalogResponse as b8, type NodeSchemaResponse as b9, type ResourceInstallationOperation as bA, type ResourceInstallationPlan as bB, type ResourceInstallationPlanUpload as bC, type ResourceInstallationPublication as bD, type ResourceInstallationPublishRequest as bE, type ResourceInstallationPullAcceptRequest as bF, type ResourceInstallationPullChange as bG, type ResourceInstallationPullPayload as bH, type ResourceInstallationPullPlan as bI, type ResourceInstallationResourceListOptions as bJ, type ResourceInstallationSecretStatus as bK, type ResourceInstallationSecretsRequest as bL, type ResourcePackageArchive as bM, type ResourcePackageCandidateOptions as bN, type ResourcePackageDependency as bO, type ResourcePackageDiagnostic as bP, type ResourcePackageExportPlan as bQ, type ResourcePackageExportRequest as bR, type ResourcePackageImportPreview as bS, type ResourcePackageImportResult as bT, type ResourcePackageImportUpload as bU, type ResourcePackageUpload as bV, type ResourcePackageValidationResult as bW, type ResourcePolicyList as bX, type ResourcePolicyQuotaSchedule as bY, type ResourcePolicyQuotaScheduleResult as bZ, type ResourcePolicySubjectRef as b_, type PipelineInputField as ba, type PipelineInputSchema as bb, type PipelineInputStep as bc, type PipelineInputUpload as bd, type PipelineListOptions as be, type PipelinePage as bf, type PipelineSummary as bg, type PortableResourceKind as bh, type ProcessedContent as bi, type ProcessedContentReference as bj, type ProcessingInput as bk, type ProcessingInputSource as bl, type PublishedExecutable as bm, type RequestOptions as bn, type ResetResourcePolicyQuotaRequest as bo, type ResourceCallableBinding as bp, type ResourceCallableBindingStatus as bq, type ResourceCandidateList as br, type ResourceInstallation as bs, type ResourceInstallationApplication as bt, type ResourceInstallationApplyRequest as bu, type ResourceInstallationBinding as bv, type ResourceInstallationCreateRequest as bw, type ResourceInstallationDeploymentRequest as bx, type ResourceInstallationLinkRequest as by, type ResourceInstallationList as bz, type AgentDefinitionOptions as c, type ResourceSelector as c0, type ResourceToolExport as c1, type ResponseFeedback as c2, type ResponseFeedbackResult as c3, type ResumeRunRequest as c4, type RetrievalEvidence as c5, type RunCancelOptions as c6, type RunContextOptions as c7, type RunStatus as c8, type RunTrace as c9, type UpdateClientDeploymentRequest as cA, type UploadPart as cB, type UploadPartAck as cC, type UploadSession as cD, type UploadSessionStart as cE, type WorkflowInputDefinition as cF, type ServerAttachmentUploadOptions as ca, type ServerEmbedAttachmentUploadOptions as cb, type SetCustomerResourcePolicyAssignmentRequest as cc, type SetResourcePolicyQuotaScheduleRequest as cd, type SourceDescriptor as ce, type SourceOutcome as cf, type StartRunResult as cg, type StateVariableDefinition as ch, type StreamRequestOptions as ci, type StreamResult as cj, type ThreadComputerContentAccess as ck, type ThreadComputerFile as cl, type ThreadComputerFileOptions as cm, type ThreadComputerFileText as cn, type ThreadComputerFiles as co, type ThreadComputerStatus as cp, type ThreadDeleteOptions as cq, type ThreadDetailOptions as cr, type ThreadListOptions as cs, type ThreadSummaryEventOptions as ct, type TraceContent as cu, type TraceError as cv, type TraceSpan as cw, type TraceSpanKind as cx, type TraceSpanStatus as cy, type TraceView as cz, type AgentListResponse as d, type AgentRef as e, type AgentResponse as f, type AgentStreamRequest as g, type AgentSummary as h, type AgentToolsetAttachment as i, type AgentUpdateRequest as j, type AgentValidationIssue as k, type AgentValidationResult as l, Agents24SDKError as m, type Agents24NodeErrorKind as n, type Agents24NodeOptions as o, type Agents24Options as p, type Agents24SDKErrorKind as q, type Agents24SDKSerializedError as r, type ArtifactDevelopmentSession as s, type ArtifactDevelopmentSessionAdmission as t, type ArtifactDevelopmentSessionPrepareRequest as u, type AttachRunRequest as v, type AttachmentContentAccessRequest as w, type BranchingHint as x, type ClientAuthMode as y, type ClientDeployment as z };
|