@agents24/node 0.5.27 → 0.5.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -1
- package/compatibility.json +7 -7
- package/dist/artifacts.cjs +13 -1
- package/dist/artifacts.cjs.map +1 -1
- package/dist/artifacts.d.cts +36 -2
- package/dist/artifacts.d.ts +36 -2
- package/dist/artifacts.js +13 -2
- package/dist/artifacts.js.map +1 -1
- package/dist/bff.cjs +60 -11
- package/dist/bff.cjs.map +1 -1
- package/dist/bff.d.cts +2 -1
- package/dist/bff.d.ts +2 -1
- package/dist/bff.js +60 -11
- package/dist/bff.js.map +1 -1
- package/dist/{client-Dr0U2u5Q.d.cts → client-CH-cgwTv.d.cts} +276 -10
- package/dist/{client-Dr0U2u5Q.d.ts → client-CH-cgwTv.d.ts} +276 -10
- package/dist/index.cjs +172 -14
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +12 -3
- package/dist/index.d.ts +12 -3
- package/dist/index.js +171 -15
- package/dist/index.js.map +1 -1
- package/dist/relay.cjs +514 -0
- package/dist/relay.cjs.map +1 -0
- package/dist/relay.d.cts +98 -0
- package/dist/relay.d.ts +98 -0
- package/dist/relay.js +511 -0
- package/dist/relay.js.map +1 -0
- package/dist/server.cjs +80 -10
- package/dist/server.cjs.map +1 -1
- package/dist/server.d.cts +3 -0
- package/dist/server.d.ts +3 -0
- package/dist/server.js +80 -10
- package/dist/server.js.map +1 -1
- package/dist/types/agents.d.ts +1 -0
- package/dist/types/agents.d.ts.map +1 -1
- package/dist/types/artifacts.d.ts +35 -1
- package/dist/types/artifacts.d.ts.map +1 -1
- package/dist/types/bff-request.d.ts +5 -3
- package/dist/types/bff-request.d.ts.map +1 -1
- package/dist/types/bff.d.ts.map +1 -1
- package/dist/types/builders.d.ts.map +1 -1
- package/dist/types/client.d.ts +4 -0
- package/dist/types/client.d.ts.map +1 -1
- package/dist/types/embed-run-wait.d.ts +9 -0
- package/dist/types/embed-run-wait.d.ts.map +1 -0
- package/dist/types/embed-types.d.ts +15 -2
- package/dist/types/embed-types.d.ts.map +1 -1
- package/dist/types/embed.d.ts +5 -1
- package/dist/types/embed.d.ts.map +1 -1
- package/dist/types/generated/artifact-execution-options.d.ts +42 -0
- package/dist/types/generated/artifact-execution-options.d.ts.map +1 -0
- package/dist/types/generated/delegation-types.d.ts +3 -2
- package/dist/types/generated/delegation-types.d.ts.map +1 -1
- package/dist/types/generated/ingestion-types.d.ts +16 -0
- package/dist/types/generated/ingestion-types.d.ts.map +1 -1
- package/dist/types/generated/ingestionJobs.d.ts +2 -2
- package/dist/types/generated/ingestionJobs.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 +3 -2
- package/dist/types/generated/model-capabilities.d.ts.map +1 -1
- package/dist/types/generated/relayClients.d.ts +13 -0
- package/dist/types/generated/relayClients.d.ts.map +1 -0
- package/dist/types/generated/resourceInstallations.d.ts +1 -2
- package/dist/types/generated/resourceInstallations.d.ts.map +1 -1
- package/dist/types/generated/run-usage.d.ts +12 -0
- package/dist/types/generated/run-usage.d.ts.map +1 -0
- package/dist/types/http.d.ts +1 -0
- package/dist/types/http.d.ts.map +1 -1
- package/dist/types/index.d.ts +3 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/models.d.ts +92 -0
- package/dist/types/models.d.ts.map +1 -0
- package/dist/types/relay-http.d.ts +14 -0
- package/dist/types/relay-http.d.ts.map +1 -0
- package/dist/types/relay.d.ts +89 -0
- package/dist/types/relay.d.ts.map +1 -0
- package/dist/types/server.d.ts +3 -0
- package/dist/types/server.d.ts.map +1 -1
- package/dist/types/types.d.ts +79 -2
- package/dist/types/types.d.ts.map +1 -1
- package/package.json +9 -3
|
@@ -1,7 +1,22 @@
|
|
|
1
1
|
import * as _agents24_client_protocol from '@agents24/client/protocol';
|
|
2
2
|
import { ToolInputOverrides, PublicResponseBlock, ContextWindow, RuntimeEvent, ThreadMessagesPage, ThreadMessageSubmission, ThreadMessage, RunCancelResult, AttachmentUploadResult, AttachmentContentAccess, RunResumeResult, ThreadsResponse, ThreadSummaryEvent, ThreadDetail, ThreadDeleteResult, RunContext } from '@agents24/client/protocol';
|
|
3
|
+
import { ClientInputFeature } from '@agents24/client';
|
|
4
|
+
|
|
5
|
+
type RunUsage = {
|
|
6
|
+
source?: "exact" | "estimated" | "unknown";
|
|
7
|
+
input_tokens?: number | null;
|
|
8
|
+
output_tokens?: number | null;
|
|
9
|
+
total_tokens?: number;
|
|
10
|
+
cached_input_tokens?: number | null;
|
|
11
|
+
cache_write_input_tokens?: number | null;
|
|
12
|
+
cache_write_input_tokens_by_ttl?: Record<string, number>;
|
|
13
|
+
cached_output_tokens?: number | null;
|
|
14
|
+
reasoning_tokens?: number | null;
|
|
15
|
+
};
|
|
3
16
|
|
|
4
17
|
type EmbedStreamRequest = {
|
|
18
|
+
relay_client_id?: string | null;
|
|
19
|
+
execution_limits?: RunExecutionLimits;
|
|
5
20
|
client_submission_id?: string;
|
|
6
21
|
agent_version_id?: string;
|
|
7
22
|
input?: string;
|
|
@@ -90,7 +105,9 @@ type EmbedRuntimeBootstrap = {
|
|
|
90
105
|
agent_aliases: string[];
|
|
91
106
|
agent_version_id?: string;
|
|
92
107
|
agent_version_number?: number;
|
|
93
|
-
features: Record<string, unknown
|
|
108
|
+
features: Record<string, unknown> & {
|
|
109
|
+
inputs: ClientInputFeature;
|
|
110
|
+
};
|
|
94
111
|
thread_events_path?: string | null;
|
|
95
112
|
thread_events_url?: string | null;
|
|
96
113
|
};
|
|
@@ -128,6 +145,8 @@ type EmbedThreadMessageScope = {
|
|
|
128
145
|
chatScope?: string;
|
|
129
146
|
};
|
|
130
147
|
type EmbedThreadMessageSubmit = {
|
|
148
|
+
relayClientId?: string | null;
|
|
149
|
+
executionLimits?: RunExecutionLimits;
|
|
131
150
|
knowledgeNamespaces?: Record<string, string>;
|
|
132
151
|
} & EmbedThreadMessageScope & {
|
|
133
152
|
agentVersionId?: string | null;
|
|
@@ -148,6 +167,7 @@ type EmbedThreadMessageEdit = EmbedThreadMessageScope & {
|
|
|
148
167
|
attachmentIds?: string[];
|
|
149
168
|
requestedModelId?: string;
|
|
150
169
|
mode?: "steer";
|
|
170
|
+
metadata?: Record<string, unknown>;
|
|
151
171
|
};
|
|
152
172
|
type ThreadComputerStatus = {
|
|
153
173
|
available: boolean;
|
|
@@ -242,6 +262,7 @@ type ConversationThreadOptions = ThreadDetailOptions & {
|
|
|
242
262
|
chatScope?: string;
|
|
243
263
|
};
|
|
244
264
|
type ConversationRuntimeSelectionRequest = {
|
|
265
|
+
relay_client_id?: string | null;
|
|
245
266
|
agent_ids: string[];
|
|
246
267
|
preferred_agent_id: string;
|
|
247
268
|
preferred_model_id?: string | null;
|
|
@@ -256,6 +277,7 @@ type ConversationRuntimeSelectionResult = {
|
|
|
256
277
|
runtime_selection: {
|
|
257
278
|
agent_id: string;
|
|
258
279
|
model_id: string | null;
|
|
280
|
+
relay_client_id?: string | null;
|
|
259
281
|
};
|
|
260
282
|
models: {
|
|
261
283
|
default_id: string | null;
|
|
@@ -295,6 +317,9 @@ type EmbedAttachmentContentAccessRequest = AttachmentContentAccessRequest & {
|
|
|
295
317
|
chatScope?: string;
|
|
296
318
|
};
|
|
297
319
|
type ServerEmbedAttachmentUploadOptions = ServerAttachmentUploadOptions & {
|
|
320
|
+
/** Bind tool-produced media to the executing run/version. */
|
|
321
|
+
runId?: string;
|
|
322
|
+
signal?: AbortSignal;
|
|
298
323
|
externalUserId: string;
|
|
299
324
|
externalSessionId?: string;
|
|
300
325
|
runtimeTarget?: "draft" | "published";
|
|
@@ -315,7 +340,7 @@ interface DelegationResult {
|
|
|
315
340
|
interface DelegationInvocation {
|
|
316
341
|
run_id: string;
|
|
317
342
|
status: string;
|
|
318
|
-
usage:
|
|
343
|
+
usage: RunUsage;
|
|
319
344
|
}
|
|
320
345
|
interface DelegationQuestionOption {
|
|
321
346
|
id: string;
|
|
@@ -389,7 +414,7 @@ interface DelegationHistoryTurn {
|
|
|
389
414
|
response_blocks: Array<PublicResponseBlock>;
|
|
390
415
|
completed_at?: string | null;
|
|
391
416
|
final_output?: unknown;
|
|
392
|
-
run_usage?:
|
|
417
|
+
run_usage?: RunUsage | null;
|
|
393
418
|
exchanges?: Array<DelegationExchange>;
|
|
394
419
|
}
|
|
395
420
|
interface DelegationHistoryPaging {
|
|
@@ -472,13 +497,14 @@ declare class DelegationsNamespace {
|
|
|
472
497
|
}
|
|
473
498
|
|
|
474
499
|
type ModelRuntimeKind = "chat" | "embedding" | "speech_to_text" | "image_generation" | "rerank" | "ocr";
|
|
475
|
-
type ModelPricingDimension = "audio_input_second" | "audio_input_token" | "audio_output_token" | "cached_input_token" | "image_output" | "input_token" | "ocr_page" | "output_token" | "reasoning_token" | "request" | "search_request";
|
|
500
|
+
type ModelPricingDimension = "audio_input_second" | "audio_input_token" | "audio_output_token" | "cache_write_input_token" | "cached_input_token" | "image_output" | "input_token" | "ocr_page" | "output_token" | "reasoning_token" | "request" | "search_request";
|
|
476
501
|
type ModelCapabilityFeatures = {
|
|
477
502
|
tool_calling: boolean;
|
|
478
503
|
structured_output: boolean;
|
|
479
504
|
reasoning: boolean;
|
|
480
505
|
segment_timestamps: boolean;
|
|
481
506
|
word_timestamps: boolean;
|
|
507
|
+
speaker_diarization: boolean;
|
|
482
508
|
};
|
|
483
509
|
type ModelCapabilityLimits = {
|
|
484
510
|
context_tokens?: number | null;
|
|
@@ -501,11 +527,59 @@ type ModelCapabilitiesV1 = {
|
|
|
501
527
|
type ModelRequirements = {
|
|
502
528
|
input_modalities?: Array<ModelInputModality>;
|
|
503
529
|
output_modalities?: Array<ModelOutputModality>;
|
|
504
|
-
required_features?: Array<"tool_calling" | "structured_output" | "reasoning" | "segment_timestamps" | "word_timestamps">;
|
|
530
|
+
required_features?: Array<"tool_calling" | "structured_output" | "reasoning" | "segment_timestamps" | "word_timestamps" | "speaker_diarization">;
|
|
505
531
|
providers?: Array<string>;
|
|
506
532
|
runtime_kinds?: Array<"chat" | "embedding" | "speech_to_text" | "image_generation" | "rerank" | "ocr">;
|
|
507
533
|
};
|
|
508
534
|
|
|
535
|
+
type ArtifactExecutionRequirement = {
|
|
536
|
+
artifact_id: string;
|
|
537
|
+
name: string;
|
|
538
|
+
transport: "http" | "relay" | null;
|
|
539
|
+
contract_target: "draft" | "published" | null;
|
|
540
|
+
ready: boolean;
|
|
541
|
+
reason: "source_disabled" | "connection_not_configured" | "http_unavailable" | "contract_changed" | "app_required" | null;
|
|
542
|
+
};
|
|
543
|
+
type HTTPArtifactReadiness = {
|
|
544
|
+
artifact_id: string;
|
|
545
|
+
ready: boolean;
|
|
546
|
+
};
|
|
547
|
+
type RelayClientOption = {
|
|
548
|
+
client: RelayClientStatus;
|
|
549
|
+
ready: boolean;
|
|
550
|
+
missing_artifact_ids: Array<string>;
|
|
551
|
+
};
|
|
552
|
+
type RelayClientStatus = {
|
|
553
|
+
id: string;
|
|
554
|
+
name: string;
|
|
555
|
+
runtime_principal_id: string | null;
|
|
556
|
+
status: "connected" | "disconnected" | "revoked";
|
|
557
|
+
registrations: Array<RelayRegistrationStatus>;
|
|
558
|
+
selectable?: boolean;
|
|
559
|
+
};
|
|
560
|
+
type RelayRegistrationStatus = {
|
|
561
|
+
id: string;
|
|
562
|
+
artifact_id: string;
|
|
563
|
+
target: "draft" | "published";
|
|
564
|
+
manifest_hash: string | null;
|
|
565
|
+
contract_status: string;
|
|
566
|
+
ready: boolean;
|
|
567
|
+
};
|
|
568
|
+
type RelayOptions = {
|
|
569
|
+
runtime_target: "draft" | "published";
|
|
570
|
+
required_artifact_ids: Array<string>;
|
|
571
|
+
clients: Array<RelayClientOption>;
|
|
572
|
+
http_artifacts?: Array<HTTPArtifactReadiness>;
|
|
573
|
+
dependencies_ready?: boolean;
|
|
574
|
+
artifact_requirements?: Array<ArtifactExecutionRequirement>;
|
|
575
|
+
};
|
|
576
|
+
|
|
577
|
+
type RunExecutionLimits = {
|
|
578
|
+
max_tool_calls_per_run?: number;
|
|
579
|
+
max_run_seconds?: number;
|
|
580
|
+
deadline_at?: string;
|
|
581
|
+
};
|
|
582
|
+
|
|
509
583
|
type Agents24NodeOptions = {
|
|
510
584
|
baseUrl: string;
|
|
511
585
|
apiKey: string;
|
|
@@ -514,6 +588,7 @@ type Agents24NodeOptions = {
|
|
|
514
588
|
/** @deprecated Use Agents24NodeOptions. */
|
|
515
589
|
type Agents24Options = Agents24NodeOptions;
|
|
516
590
|
type RequestOptions = {
|
|
591
|
+
signal?: AbortSignal;
|
|
517
592
|
idempotencyKey?: string;
|
|
518
593
|
dryRun?: boolean;
|
|
519
594
|
validateOnly?: boolean;
|
|
@@ -528,6 +603,7 @@ type StreamRequestOptions = RequestOptions & {
|
|
|
528
603
|
onControl?: (control: _agents24_client_protocol.ObservationControl) => void | Promise<void>;
|
|
529
604
|
};
|
|
530
605
|
type AgentStreamRequest = {
|
|
606
|
+
relay_client_id?: string | null;
|
|
531
607
|
client_submission_id?: string;
|
|
532
608
|
input?: string;
|
|
533
609
|
messages?: Array<Record<string, unknown>>;
|
|
@@ -543,6 +619,9 @@ type AgentStreamRequest = {
|
|
|
543
619
|
agent_version_id?: string;
|
|
544
620
|
};
|
|
545
621
|
type ControlPlaneAgentRunRequest = {
|
|
622
|
+
relay_client_id?: string | null;
|
|
623
|
+
execution_limits?: RunExecutionLimits;
|
|
624
|
+
knowledge_namespaces?: Record<string, string>;
|
|
546
625
|
input?: string;
|
|
547
626
|
messages?: Array<Record<string, unknown>>;
|
|
548
627
|
thread_id?: string;
|
|
@@ -749,6 +828,11 @@ type FailureView = {
|
|
|
749
828
|
details: Record<string, unknown>;
|
|
750
829
|
};
|
|
751
830
|
type RunStatus = {
|
|
831
|
+
execution_budget?: {
|
|
832
|
+
max_tool_calls_per_run: number;
|
|
833
|
+
tool_calls_used: number;
|
|
834
|
+
deadline_at: string;
|
|
835
|
+
} | null;
|
|
752
836
|
id: string;
|
|
753
837
|
status: string;
|
|
754
838
|
result?: unknown;
|
|
@@ -760,7 +844,7 @@ type RunStatus = {
|
|
|
760
844
|
model_context_summary?: Record<string, unknown>;
|
|
761
845
|
failure?: FailureView | null;
|
|
762
846
|
checkpoint?: Record<string, unknown> | null;
|
|
763
|
-
run_usage?:
|
|
847
|
+
run_usage?: RunUsage;
|
|
764
848
|
context_window?: ContextWindow | null;
|
|
765
849
|
lineage?: Record<string, unknown>;
|
|
766
850
|
pending_interrupts?: Array<Record<string, unknown>>;
|
|
@@ -830,6 +914,7 @@ type AgentToolsetAttachment = {
|
|
|
830
914
|
versionPolicy?: LatestOrPinnedPolicy;
|
|
831
915
|
};
|
|
832
916
|
type AgentDefinitionOptions = {
|
|
917
|
+
toolSchemaBudgetBytes?: number | null;
|
|
833
918
|
name: string;
|
|
834
919
|
description?: string;
|
|
835
920
|
instructions?: string;
|
|
@@ -1240,13 +1325,14 @@ type ResourceInstallation = {
|
|
|
1240
1325
|
publication_state?: "never_published" | "current" | "draft_changes";
|
|
1241
1326
|
bindings?: ResourceInstallationBinding[];
|
|
1242
1327
|
callable_bindings?: ResourceCallableBindingStatus[];
|
|
1243
|
-
|
|
1328
|
+
relay_clients?: ArtifactRelayClientStatus[];
|
|
1244
1329
|
remote_artifact_stages?: Array<{
|
|
1245
1330
|
resource_key: string;
|
|
1246
1331
|
artifact_id: string;
|
|
1247
1332
|
target: "development" | "production";
|
|
1248
1333
|
status: string;
|
|
1249
1334
|
manifest_hash: string;
|
|
1335
|
+
transport: "http" | "relay";
|
|
1250
1336
|
base_url?: string | null;
|
|
1251
1337
|
}>;
|
|
1252
1338
|
latest_apply?: ResourceInstallationOperation | null;
|
|
@@ -1467,6 +1553,62 @@ type ResourcePolicyQuotaScheduleResult = {
|
|
|
1467
1553
|
subject_ref: ResourcePolicySubjectRef;
|
|
1468
1554
|
quota_schedule: ResourcePolicyQuotaSchedule;
|
|
1469
1555
|
};
|
|
1556
|
+
/** Authorized result of one embedded workflow; no model or checkpoint internals. */
|
|
1557
|
+
type EmbeddedRunSnapshot = {
|
|
1558
|
+
run_id: string;
|
|
1559
|
+
thread_id: string | null;
|
|
1560
|
+
status: "queued" | "pending" | "running" | "cancelling" | "completed" | "failed" | "cancelled" | "paused";
|
|
1561
|
+
final_output: unknown;
|
|
1562
|
+
final_output_available: boolean;
|
|
1563
|
+
failure: FailureView | null;
|
|
1564
|
+
};
|
|
1565
|
+
type WaitForAgentRunOptions = {
|
|
1566
|
+
signal?: AbortSignal;
|
|
1567
|
+
timeoutMs?: number;
|
|
1568
|
+
};
|
|
1569
|
+
type ArtifactRelayClientCreate = {
|
|
1570
|
+
id: string;
|
|
1571
|
+
name: string;
|
|
1572
|
+
runtime_principal_id?: string | null;
|
|
1573
|
+
};
|
|
1574
|
+
type ArtifactRelayTicketRequest = {
|
|
1575
|
+
registrations: Array<{
|
|
1576
|
+
artifact_id: string;
|
|
1577
|
+
target: "draft" | "published";
|
|
1578
|
+
authoring?: boolean;
|
|
1579
|
+
installation_id?: string;
|
|
1580
|
+
resource_key?: string;
|
|
1581
|
+
}>;
|
|
1582
|
+
};
|
|
1583
|
+
type ArtifactRelayConnectionTicket = {
|
|
1584
|
+
client_id: string;
|
|
1585
|
+
relay_token: string;
|
|
1586
|
+
relay_path: string;
|
|
1587
|
+
protocol: string;
|
|
1588
|
+
expires_in_seconds: number;
|
|
1589
|
+
};
|
|
1590
|
+
type ArtifactRelayClientStatus = {
|
|
1591
|
+
selectable: boolean;
|
|
1592
|
+
id: string;
|
|
1593
|
+
name: string;
|
|
1594
|
+
runtime_principal_id: string | null;
|
|
1595
|
+
status: "connected" | "disconnected" | "revoked";
|
|
1596
|
+
registrations: Array<{
|
|
1597
|
+
id: string;
|
|
1598
|
+
artifact_id: string;
|
|
1599
|
+
target: "draft" | "published";
|
|
1600
|
+
manifest_hash: string | null;
|
|
1601
|
+
contract_status: string;
|
|
1602
|
+
ready: boolean;
|
|
1603
|
+
}>;
|
|
1604
|
+
};
|
|
1605
|
+
type ArtifactRelayClientList = {
|
|
1606
|
+
items: ArtifactRelayClientStatus[];
|
|
1607
|
+
};
|
|
1608
|
+
type ArtifactRelayOptionsQuery = {
|
|
1609
|
+
runtimeTarget?: "draft" | "published";
|
|
1610
|
+
agentVersionId?: string;
|
|
1611
|
+
};
|
|
1470
1612
|
|
|
1471
1613
|
type RequestConfig = {
|
|
1472
1614
|
method?: string;
|
|
@@ -1475,6 +1617,7 @@ type RequestConfig = {
|
|
|
1475
1617
|
headers?: HeadersInit;
|
|
1476
1618
|
options?: RequestOptions;
|
|
1477
1619
|
mutation?: boolean;
|
|
1620
|
+
signal?: AbortSignal;
|
|
1478
1621
|
};
|
|
1479
1622
|
declare class Agents24HttpClient {
|
|
1480
1623
|
private readonly base;
|
|
@@ -1519,6 +1662,7 @@ declare class AgentsNamespace {
|
|
|
1519
1662
|
attachmentIds?: string[];
|
|
1520
1663
|
requestedAgentId?: string;
|
|
1521
1664
|
requestedModelId?: string;
|
|
1665
|
+
relayClientId?: string | null;
|
|
1522
1666
|
}, options?: RequestOptions): Promise<ThreadMessageSubmission>;
|
|
1523
1667
|
editPendingMessage(agentId: string, message: ThreadMessage, payload: {
|
|
1524
1668
|
input: string;
|
|
@@ -1654,6 +1798,10 @@ declare class EmbedNamespace extends EmbedDelegationsNamespace {
|
|
|
1654
1798
|
download?: boolean;
|
|
1655
1799
|
}): Promise<ThreadComputerContentAccess>;
|
|
1656
1800
|
deleteAgentThread(agentId: string, threadId: string, options: ThreadDeleteOptions, requestOptions?: RequestOptions): Promise<ThreadDeleteResult>;
|
|
1801
|
+
getAgentRun(agentId: string, runId: string, scope: RunContextOptions, options?: {
|
|
1802
|
+
signal?: AbortSignal;
|
|
1803
|
+
}): Promise<EmbeddedRunSnapshot>;
|
|
1804
|
+
waitForAgentRun(agentId: string, runId: string, scope: RunContextOptions, options?: WaitForAgentRunOptions): Promise<EmbeddedRunSnapshot>;
|
|
1657
1805
|
getAgentRunContext(agentId: string, runId: string, options: RunContextOptions): Promise<RunContext>;
|
|
1658
1806
|
cancelAgentRun(agentId: string, runId: string, options: EmbedRunCancelOptions, requestOptions?: RequestOptions): Promise<RunCancelResult>;
|
|
1659
1807
|
setAgentRunFeedback(agentId: string, runId: string, payload: EmbeddedResponseFeedbackInput): Promise<ResponseFeedbackResult>;
|
|
@@ -1673,6 +1821,17 @@ declare class ResourcePackagesNamespace {
|
|
|
1673
1821
|
candidates(options: ResourcePackageCandidateOptions): Promise<ResourceCandidateList>;
|
|
1674
1822
|
}
|
|
1675
1823
|
|
|
1824
|
+
declare class RelayClientsNamespace {
|
|
1825
|
+
protected readonly http: Agents24HttpClient;
|
|
1826
|
+
constructor(http: Agents24HttpClient);
|
|
1827
|
+
create(request: ArtifactRelayClientCreate, options?: RequestOptions): Promise<ArtifactRelayClientStatus>;
|
|
1828
|
+
list(): Promise<ArtifactRelayClientList>;
|
|
1829
|
+
get(clientId: string): Promise<ArtifactRelayClientStatus>;
|
|
1830
|
+
revoke(clientId: string, options?: RequestOptions): Promise<ArtifactRelayClientStatus>;
|
|
1831
|
+
createTicket(clientId: string, request: ArtifactRelayTicketRequest, options?: RequestOptions): Promise<ArtifactRelayConnectionTicket>;
|
|
1832
|
+
agentOptions(agentId: string, options?: ArtifactRelayOptionsQuery): Promise<RelayOptions>;
|
|
1833
|
+
}
|
|
1834
|
+
|
|
1676
1835
|
declare class ResourceInstallationsNamespace {
|
|
1677
1836
|
protected readonly http: Agents24HttpClient;
|
|
1678
1837
|
constructor(http: Agents24HttpClient);
|
|
@@ -1689,7 +1848,6 @@ declare class ResourceInstallationsNamespace {
|
|
|
1689
1848
|
apply(operationId: string, request: ResourceInstallationApplyRequest, options?: RequestOptions): Promise<ResourceInstallationOperation>;
|
|
1690
1849
|
operationStatus(operationId: string): Promise<ResourceInstallationOperation>;
|
|
1691
1850
|
publish(installationId: string, request: ResourceInstallationPublishRequest, options?: RequestOptions): Promise<ResourceInstallationPublication>;
|
|
1692
|
-
prepareDevelopmentSession(installationId: string, request: ArtifactDevelopmentSessionPrepareRequest, options?: RequestOptions): Promise<ArtifactDevelopmentSessionAdmission>;
|
|
1693
1851
|
developmentSessionStatus(installationId: string, resourceKey: string): Promise<ArtifactDevelopmentSession>;
|
|
1694
1852
|
revokeDevelopmentSession(installationId: string, sessionId: string, options?: RequestOptions): Promise<ArtifactDevelopmentSession>;
|
|
1695
1853
|
bindDeployment(installationId: string, request: ResourceInstallationDeploymentRequest, options?: RequestOptions): Promise<ResourceInstallation>;
|
|
@@ -1775,6 +1933,96 @@ declare class CustomerProfilesNamespace {
|
|
|
1775
1933
|
search(options: CustomerProfileSearchOptions): Promise<CustomerProfileList>;
|
|
1776
1934
|
}
|
|
1777
1935
|
|
|
1936
|
+
type ModelProviderRoute = {
|
|
1937
|
+
id: string;
|
|
1938
|
+
route_kind: "agents24" | "byok";
|
|
1939
|
+
provider: string;
|
|
1940
|
+
offering_id: string | null;
|
|
1941
|
+
provider_model_id: string | null;
|
|
1942
|
+
is_enabled: boolean;
|
|
1943
|
+
is_ready: boolean;
|
|
1944
|
+
capability_compatible: boolean;
|
|
1945
|
+
unavailable_reason: string | null;
|
|
1946
|
+
config: Record<string, unknown>;
|
|
1947
|
+
credentials_ref: string | null;
|
|
1948
|
+
credential: {
|
|
1949
|
+
id: string;
|
|
1950
|
+
display_name: string;
|
|
1951
|
+
} | null;
|
|
1952
|
+
route_set_revision: number;
|
|
1953
|
+
is_selected: boolean;
|
|
1954
|
+
};
|
|
1955
|
+
type ModelSummary = {
|
|
1956
|
+
id: string;
|
|
1957
|
+
name: string;
|
|
1958
|
+
description: string | null;
|
|
1959
|
+
runtime_kind: string;
|
|
1960
|
+
capabilities: Record<string, unknown>;
|
|
1961
|
+
status: string;
|
|
1962
|
+
is_active: boolean;
|
|
1963
|
+
catalog_model_id: string | null;
|
|
1964
|
+
providers?: ModelProviderRoute[];
|
|
1965
|
+
};
|
|
1966
|
+
type ModelOffering = {
|
|
1967
|
+
id: string;
|
|
1968
|
+
canonical_model_id: string;
|
|
1969
|
+
canonical_name: string;
|
|
1970
|
+
provider: string;
|
|
1971
|
+
provider_model_id: string;
|
|
1972
|
+
runtime_kind: string;
|
|
1973
|
+
capabilities: Record<string, unknown>;
|
|
1974
|
+
};
|
|
1975
|
+
type ModelProviderCreate = {
|
|
1976
|
+
offering_id: string;
|
|
1977
|
+
config?: Record<string, unknown>;
|
|
1978
|
+
} & ({
|
|
1979
|
+
credentials_ref: string;
|
|
1980
|
+
new_credential?: never;
|
|
1981
|
+
} | {
|
|
1982
|
+
credentials_ref?: never;
|
|
1983
|
+
new_credential: {
|
|
1984
|
+
api_key: string;
|
|
1985
|
+
};
|
|
1986
|
+
});
|
|
1987
|
+
/** Organization-scoped model catalog and exact BYOK routes. No model creation or fallback. */
|
|
1988
|
+
declare class ModelsNamespace {
|
|
1989
|
+
private readonly http;
|
|
1990
|
+
constructor(http: Agents24HttpClient);
|
|
1991
|
+
list(query?: {
|
|
1992
|
+
q?: string;
|
|
1993
|
+
runtime_kind?: string;
|
|
1994
|
+
include_inactive?: boolean;
|
|
1995
|
+
skip?: number;
|
|
1996
|
+
limit?: number;
|
|
1997
|
+
view?: "summary" | "full";
|
|
1998
|
+
}): Promise<{
|
|
1999
|
+
items: ModelSummary[];
|
|
2000
|
+
total: number;
|
|
2001
|
+
has_more: boolean;
|
|
2002
|
+
}>;
|
|
2003
|
+
get(modelId: string): Promise<ModelSummary>;
|
|
2004
|
+
listOfferings(query?: {
|
|
2005
|
+
model_id?: string;
|
|
2006
|
+
runtime_kind?: string;
|
|
2007
|
+
provider?: string;
|
|
2008
|
+
search?: string;
|
|
2009
|
+
}): Promise<{
|
|
2010
|
+
items: ModelOffering[];
|
|
2011
|
+
}>;
|
|
2012
|
+
addProvider(modelId: string, request: ModelProviderCreate, options?: RequestOptions): Promise<ModelProviderRoute[]>;
|
|
2013
|
+
selectProvider(modelId: string, request: {
|
|
2014
|
+
route_id: string;
|
|
2015
|
+
expected_revision?: number;
|
|
2016
|
+
}, options?: RequestOptions): Promise<ModelProviderRoute[]>;
|
|
2017
|
+
updateProvider(modelId: string, providerId: string, request: {
|
|
2018
|
+
offering_id?: string;
|
|
2019
|
+
is_enabled?: boolean;
|
|
2020
|
+
config?: Record<string, unknown>;
|
|
2021
|
+
credentials_ref?: string | null;
|
|
2022
|
+
}, options?: RequestOptions): Promise<ModelProviderRoute[]>;
|
|
2023
|
+
removeProvider(modelId: string, providerId: string, options?: RequestOptions): Promise<ModelProviderRoute[]>;
|
|
2024
|
+
}
|
|
2025
|
+
|
|
1778
2026
|
type PipelineSummary = {
|
|
1779
2027
|
id: string;
|
|
1780
2028
|
name: string;
|
|
@@ -2043,6 +2291,7 @@ type ContentSegment = {
|
|
|
2043
2291
|
text: string;
|
|
2044
2292
|
locations?: Array<EvidenceLocation>;
|
|
2045
2293
|
structure_kind?: "text" | "heading" | "table";
|
|
2294
|
+
speaker_id?: string | null;
|
|
2046
2295
|
};
|
|
2047
2296
|
type ProcessedContent = {
|
|
2048
2297
|
schema_version?: "agents24.processed-content.v1";
|
|
@@ -2054,6 +2303,7 @@ type ProcessedContent = {
|
|
|
2054
2303
|
completeness?: "complete" | "partial" | "blank";
|
|
2055
2304
|
warnings?: Array<string>;
|
|
2056
2305
|
segments?: Array<ContentSegment>;
|
|
2306
|
+
speaker_continuity?: "single_request" | "overlap_matched" | "partial" | null;
|
|
2057
2307
|
};
|
|
2058
2308
|
type ProcessedContentReference = {
|
|
2059
2309
|
processed_ref: string;
|
|
@@ -2063,6 +2313,7 @@ type ProcessedContentReference = {
|
|
|
2063
2313
|
physical_page_count?: number | null;
|
|
2064
2314
|
language?: string | null;
|
|
2065
2315
|
duration_ms?: number | null;
|
|
2316
|
+
speaker_continuity?: "single_request" | "overlap_matched" | "partial" | null;
|
|
2066
2317
|
};
|
|
2067
2318
|
type ContentChunk = {
|
|
2068
2319
|
id: string;
|
|
@@ -2072,6 +2323,7 @@ type ContentChunk = {
|
|
|
2072
2323
|
locations: Array<EvidenceLocation>;
|
|
2073
2324
|
processing_fingerprint: string;
|
|
2074
2325
|
metadata?: Record<string, unknown>;
|
|
2326
|
+
speaker_id?: string | null;
|
|
2075
2327
|
};
|
|
2076
2328
|
type RetrievalEvidence = {
|
|
2077
2329
|
schema_version?: "agents24.retrieval-evidence.v1";
|
|
@@ -2085,6 +2337,7 @@ type RetrievalEvidence = {
|
|
|
2085
2337
|
title?: string | null;
|
|
2086
2338
|
external_ref?: string | null;
|
|
2087
2339
|
locations?: Array<EvidenceLocation>;
|
|
2340
|
+
speaker_id?: string | null;
|
|
2088
2341
|
};
|
|
2089
2342
|
type UploadSessionStart = {
|
|
2090
2343
|
filename: string;
|
|
@@ -2356,6 +2609,17 @@ type IndexedRecordIdListOptions = {
|
|
|
2356
2609
|
cursor?: string;
|
|
2357
2610
|
limit?: number;
|
|
2358
2611
|
};
|
|
2612
|
+
type JobResultOptions = {
|
|
2613
|
+
page_size?: number;
|
|
2614
|
+
cursor?: string;
|
|
2615
|
+
};
|
|
2616
|
+
type PipelineResultPage = {
|
|
2617
|
+
results: Array<unknown>;
|
|
2618
|
+
count: number;
|
|
2619
|
+
next_cursor: string | null;
|
|
2620
|
+
result_limit: number;
|
|
2621
|
+
truncated: false;
|
|
2622
|
+
};
|
|
2359
2623
|
|
|
2360
2624
|
declare class PipelinesNamespace {
|
|
2361
2625
|
protected readonly http: Agents24HttpClient;
|
|
@@ -2385,7 +2649,7 @@ declare class IngestionJobsNamespace {
|
|
|
2385
2649
|
getStepData(jobId: string, stepId: string, options: JobStepDataOptions): Promise<JobStepData>;
|
|
2386
2650
|
getStepField(jobId: string, stepId: string, options: JobStepFieldOptions): Promise<JobFieldData>;
|
|
2387
2651
|
downloadStepData(jobId: string, stepId: string, options: JobStepDownloadOptions): Promise<JobPayloadDownload>;
|
|
2388
|
-
getResult(jobId: string): Promise<JobResult>;
|
|
2652
|
+
getResult(jobId: string, options?: JobResultOptions): Promise<JobResult>;
|
|
2389
2653
|
getProcessedContent(jobId: string, options: ProcessedContentOptions): Promise<JobResult>;
|
|
2390
2654
|
}
|
|
2391
2655
|
|
|
@@ -2429,6 +2693,7 @@ declare class GeneratedIntegrationNamespaces {
|
|
|
2429
2693
|
|
|
2430
2694
|
declare class Agents24 extends GeneratedIntegrationNamespaces {
|
|
2431
2695
|
readonly agents: AgentsNamespace;
|
|
2696
|
+
readonly relayClients: RelayClientsNamespace;
|
|
2432
2697
|
readonly embed: EmbedNamespace;
|
|
2433
2698
|
readonly runs: RunsNamespace;
|
|
2434
2699
|
readonly delegations: DelegationsNamespace;
|
|
@@ -2440,9 +2705,10 @@ declare class Agents24 extends GeneratedIntegrationNamespaces {
|
|
|
2440
2705
|
readonly hostedArtifacts: HostedArtifactsNamespace;
|
|
2441
2706
|
readonly resourcePolicies: ResourcePoliciesNamespace;
|
|
2442
2707
|
readonly customerProfiles: CustomerProfilesNamespace;
|
|
2708
|
+
readonly models: ModelsNamespace;
|
|
2443
2709
|
constructor(options: Agents24NodeOptions);
|
|
2444
2710
|
agent(options: AgentDefinitionOptions): AgentDefinitionBuilder;
|
|
2445
2711
|
graph(): GraphBuilder;
|
|
2446
2712
|
}
|
|
2447
2713
|
|
|
2448
|
-
export { type
|
|
2714
|
+
export { type CreateBackendClientSessionRequest as $, Agents24 as A, type ArtifactRelayTicketRequest as B, type AttachRunRequest as C, type AttachmentContentAccessRequest as D, type EmbeddedRunSnapshot as E, type BackendSessionRequestOptions as F, type BranchingHint as G, type ClearCustomerResourcePolicyAssignmentResult as H, type ClientAuthMode as I, type ClientDeployment as J, type ClientDeploymentListQuery as K, type ClientDeploymentListResponse as L, type ClientNativeProfile as M, type ClientRuntimeNativeProfileInput as N, type ClientRuntimeOidcConfig as O, type ClientRuntimePolicyInput as P, type ClientSessionCredentials as Q, type RelayOptions as R, type ContentChunk as S, type ContentSegment as T, type ControlPlaneAgentRunRequest as U, type ControlPlaneRunEventsResponse as V, type ConversationRunRequest as W, type ConversationRunResult as X, type ConversationRuntimeSelectionRequest as Y, type ConversationRuntimeSelectionResult as Z, type ConversationThreadOptions as _, type AgentCreateRequest as a, type IngestionJobStart as a$, type CreateClientDeploymentRequest as a0, type CustomerIdentityRequest as a1, type CustomerPrincipalRefRequest as a2, type CustomerProfile as a3, type CustomerProfileList as a4, type CustomerProfilePatch as a5, type CustomerProfileSearchOptions as a6, type CustomerResourcePolicyAssignment as a7, type DelegationAction as a8, type DelegationActionReceipt as a9, type FeedbackRating as aA, type FeedbackReason as aB, type FileAssetReference as aC, GraphBuilder as aD, type GraphDefinition as aE, type GraphEdge as aF, type GraphHints as aG, type GraphNode as aH, type GraphValueRef as aI, type HitlAction as aJ, type HitlAnswer as aK, type HostedArtifactDraft as aL, HostedArtifactsNamespace as aM, type IndexedCleanupAck as aN, type IndexedContent as aO, type IndexedContentListOptions as aP, type IndexedContentPage as aQ, type IndexedRecordIdListOptions as aR, type IndexedRecordIdPage as aS, type IngestionBatch as aT, type IngestionBatchListOptions as aU, type IngestionBatchPage as aV, type IngestionJob as aW, type IngestionJobAcknowledgment as aX, type IngestionJobGetOptions as aY, type IngestionJobListOptions as aZ, type IngestionJobPage as a_, type DelegationActionRequest as aa, type DelegationEvents as ab, type DelegationHistory as ac, type DelegationHistoryTurn as ad, type DelegationStatus as ae, type DelegationTask as af, type DelegationTaskList as ag, type EffectiveCustomerResourcePolicyRequest as ah, type EffectiveResourcePolicy as ai, type EmbedAgentAliasResolution as aj, type EmbedAttachmentContentAccessRequest as ak, type EmbedCustomerPrincipalResolveRequest as al, type EmbedCustomerPrincipalResolveResponse as am, type EmbedDelegationOptions as an, type EmbedResourcePolicyRequest as ao, type EmbedRunCancelOptions as ap, type EmbedRunStartRequest as aq, type EmbedRuntimeBootstrap as ar, type EmbedStreamRequest as as, type EmbedThreadMessageEdit as at, type EmbedThreadMessageScope as au, type EmbedThreadMessageSubmit as av, type EmbeddedResponseFeedbackInput as aw, type EvidenceLocation as ax, type FailureCategory as ay, type FailureView as az, AgentDefinitionBuilder as b, type RecordCapabilities as b$, type JobFieldData as b0, type JobPayloadDownload as b1, type JobResult as b2, type JobResultOptions as b3, type JobStep as b4, type JobStepData as b5, type JobStepDataOptions as b6, type JobStepDownloadOptions as b7, type JobStepFieldOptions as b8, type JobSteps as b9, type NamespaceSummary as bA, type NativePlatform as bB, type NodeAuthoringSpec as bC, type NodeCatalogItem as bD, type NodeCatalogResponse as bE, type NodeSchemaResponse as bF, type OCROptions as bG, type PayloadAvailability as bH, type PipelineInputField as bI, type PipelineInputSchema as bJ, type PipelineInputStep as bK, type PipelineInputUpload as bL, type PipelineListOptions as bM, type PipelinePage as bN, type PipelineResultPage as bO, type PipelineSummary as bP, type PortableResourceKind as bQ, type ProcessedContent as bR, type ProcessedContentOptions as bS, type ProcessedContentReference as bT, type ProcessingInput as bU, type ProcessingInputSource as bV, type PublishedExecutable as bW, type RagRetention as bX, type RawVectorMatch as bY, type RawVectorRecord as bZ, type RecordBatchResult as b_, type KnowledgeStore as ba, type KnowledgeStoreChunking as bb, type KnowledgeStoreCreate as bc, type KnowledgeStoreListOptions as bd, type KnowledgeStoreNamespace as be, type KnowledgeStorePage as bf, type KnowledgeStoreStats as bg, type KnowledgeStoreUpdate as bh, type LatestOrPinnedPolicy as bi, type McpAuthStartRequest as bj, type McpAuthStartResult as bk, type ModelCapabilitiesV1 as bl, type ModelOffering as bm, type ModelPricingDimension as bn, type ModelProviderCreate as bo, type ModelProviderRoute as bp, type ModelRequirements as bq, type ModelRuntimeKind as br, type ModelSummary as bs, ModelsNamespace as bt, type MultiAgentThreadListRequest as bu, type MultiAgentThreadSummaryEventOptions as bv, type NamespaceDataStats as bw, type NamespaceInput as bx, type NamespaceListOptions as by, type NamespacePage as bz, type AgentDefinitionOptions as c, type ServerAttachmentUploadOptions as c$, type RecordDeleteRequest as c0, type RecordFetchRequest as c1, type RecordFetchResult as c2, type RecordListRequest as c3, type RecordMutationAck as c4, type RecordPage as c5, type RecordQueryRequest as c6, type RecordQueryResult as c7, type RecordUpdateRequest as c8, type RecordUpsertRequest as c9, type ResourcePackageCandidateOptions as cA, type ResourcePackageDependency as cB, type ResourcePackageDiagnostic as cC, type ResourcePackageExportPlan as cD, type ResourcePackageExportRequest as cE, type ResourcePackageImportPreview as cF, type ResourcePackageImportResult as cG, type ResourcePackageImportUpload as cH, type ResourcePackageUpload as cI, type ResourcePackageValidationResult as cJ, type ResourcePolicyList as cK, type ResourcePolicyQuotaSchedule as cL, type ResourcePolicyQuotaScheduleResult as cM, type ResourcePolicySubjectRef as cN, type ResourcePolicySummary as cO, type ResourceSelector as cP, type ResourceToolExport as cQ, type ResponseFeedback as cR, type ResponseFeedbackResult as cS, type ResumeRunRequest as cT, type RetrievalEvidence as cU, type RunCancelOptions as cV, type RunContextOptions as cW, type RunExecutionLimits as cX, type RunStatus as cY, type RunTrace as cZ, type RunUsage as c_, type RequestOptions as ca, type ResetResourcePolicyQuotaRequest as cb, type ResourceCallableBinding as cc, type ResourceCallableBindingStatus as cd, type ResourceCandidateList as ce, type ResourceInstallation as cf, type ResourceInstallationApplication as cg, type ResourceInstallationApplyRequest as ch, type ResourceInstallationBinding as ci, type ResourceInstallationCreateRequest as cj, type ResourceInstallationDeploymentRequest as ck, type ResourceInstallationLinkRequest as cl, type ResourceInstallationList as cm, type ResourceInstallationOperation as cn, type ResourceInstallationPlan as co, type ResourceInstallationPlanUpload as cp, type ResourceInstallationPublication as cq, type ResourceInstallationPublishRequest as cr, type ResourceInstallationPullAcceptRequest as cs, type ResourceInstallationPullChange as ct, type ResourceInstallationPullPayload as cu, type ResourceInstallationPullPlan as cv, type ResourceInstallationResourceListOptions as cw, type ResourceInstallationSecretStatus as cx, type ResourceInstallationSecretsRequest as cy, type ResourcePackageArchive as cz, type AgentListResponse as d, type ServerEmbedAttachmentUploadOptions as d0, type SetCustomerResourcePolicyAssignmentRequest as d1, type SetResourcePolicyQuotaScheduleRequest as d2, type SourceDescriptor as d3, type SourceOutcome as d4, type StartRunResult as d5, type StateVariableDefinition as d6, type StreamRequestOptions as d7, type StreamResult as d8, type ThreadComputerContentAccess as d9, type ThreadComputerFile as da, type ThreadComputerFileOptions as db, type ThreadComputerFileText as dc, type ThreadComputerFiles as dd, type ThreadComputerStatus as de, type ThreadDeleteOptions as df, type ThreadDetailOptions as dg, type ThreadListOptions as dh, type ThreadSummaryEventOptions as di, type TraceContent as dj, type TraceError as dk, type TraceSpan as dl, type TraceSpanKind as dm, type TraceSpanStatus as dn, type TraceView as dp, type UpdateClientDeploymentRequest as dq, type UploadPart as dr, type UploadPartAck as ds, type UploadSession as dt, type UploadSessionStart as du, type WaitForAgentRunOptions as dv, type WorkflowInputDefinition as dw, 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 ArtifactRelayClientCreate as v, type ArtifactRelayClientList as w, type ArtifactRelayClientStatus as x, type ArtifactRelayConnectionTicket as y, type ArtifactRelayOptionsQuery as z };
|