@agents24/node 0.5.28 → 0.5.30
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 +5 -5
- package/dist/artifacts.cjs +11 -0
- package/dist/artifacts.cjs.map +1 -1
- package/dist/artifacts.d.cts +14 -1
- package/dist/artifacts.d.ts +14 -1
- package/dist/artifacts.js +11 -1
- package/dist/artifacts.js.map +1 -1
- package/dist/bff.d.cts +1 -1
- package/dist/bff.d.ts +1 -1
- package/dist/{client-yHQmkcMz.d.cts → client-BIn7miCx.d.cts} +53 -17
- package/dist/{client-yHQmkcMz.d.ts → client-BIn7miCx.d.ts} +53 -17
- package/dist/index.cjs +7 -0
- 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 +7 -0
- package/dist/index.js.map +1 -1
- package/dist/relay.cjs.map +1 -1
- package/dist/relay.js.map +1 -1
- package/dist/server.cjs +6 -2
- package/dist/server.cjs.map +1 -1
- package/dist/server.d.cts +2 -1
- package/dist/server.d.ts +2 -1
- package/dist/server.js +6 -2
- package/dist/server.js.map +1 -1
- package/dist/types/artifacts.d.ts +13 -0
- package/dist/types/artifacts.d.ts.map +1 -1
- package/dist/types/builders.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/ingestion-types.d.ts +6 -0
- package/dist/types/generated/ingestion-types.d.ts.map +1 -1
- package/dist/types/generated/model-capabilities.d.ts +2 -1
- package/dist/types/generated/model-capabilities.d.ts.map +1 -1
- package/dist/types/server.d.ts +2 -1
- package/dist/types/server.d.ts.map +1 -1
- package/dist/types/types.d.ts +2 -14
- package/dist/types/types.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -504,6 +504,7 @@ type ModelCapabilityFeatures = {
|
|
|
504
504
|
reasoning: boolean;
|
|
505
505
|
segment_timestamps: boolean;
|
|
506
506
|
word_timestamps: boolean;
|
|
507
|
+
speaker_diarization: boolean;
|
|
507
508
|
};
|
|
508
509
|
type ModelCapabilityLimits = {
|
|
509
510
|
context_tokens?: number | null;
|
|
@@ -526,11 +527,53 @@ type ModelCapabilitiesV1 = {
|
|
|
526
527
|
type ModelRequirements = {
|
|
527
528
|
input_modalities?: Array<ModelInputModality>;
|
|
528
529
|
output_modalities?: Array<ModelOutputModality>;
|
|
529
|
-
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">;
|
|
530
531
|
providers?: Array<string>;
|
|
531
532
|
runtime_kinds?: Array<"chat" | "embedding" | "speech_to_text" | "image_generation" | "rerank" | "ocr">;
|
|
532
533
|
};
|
|
533
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
|
+
|
|
534
577
|
type RunExecutionLimits = {
|
|
535
578
|
max_tool_calls_per_run?: number;
|
|
536
579
|
max_run_seconds?: number;
|
|
@@ -871,6 +914,7 @@ type AgentToolsetAttachment = {
|
|
|
871
914
|
versionPolicy?: LatestOrPinnedPolicy;
|
|
872
915
|
};
|
|
873
916
|
type AgentDefinitionOptions = {
|
|
917
|
+
toolSchemaBudgetBytes?: number | null;
|
|
874
918
|
name: string;
|
|
875
919
|
description?: string;
|
|
876
920
|
instructions?: string;
|
|
@@ -1565,20 +1609,6 @@ type ArtifactRelayOptionsQuery = {
|
|
|
1565
1609
|
runtimeTarget?: "draft" | "published";
|
|
1566
1610
|
agentVersionId?: string;
|
|
1567
1611
|
};
|
|
1568
|
-
type ArtifactRelayOptions = {
|
|
1569
|
-
runtime_target: "draft" | "published";
|
|
1570
|
-
dependencies_ready: boolean;
|
|
1571
|
-
http_artifacts: Array<{
|
|
1572
|
-
artifact_id: string;
|
|
1573
|
-
ready: boolean;
|
|
1574
|
-
}>;
|
|
1575
|
-
required_artifact_ids: string[];
|
|
1576
|
-
clients: Array<{
|
|
1577
|
-
client: ArtifactRelayClientStatus;
|
|
1578
|
-
ready: boolean;
|
|
1579
|
-
missing_artifact_ids: string[];
|
|
1580
|
-
}>;
|
|
1581
|
-
};
|
|
1582
1612
|
|
|
1583
1613
|
type RequestConfig = {
|
|
1584
1614
|
method?: string;
|
|
@@ -1799,7 +1829,7 @@ declare class RelayClientsNamespace {
|
|
|
1799
1829
|
get(clientId: string): Promise<ArtifactRelayClientStatus>;
|
|
1800
1830
|
revoke(clientId: string, options?: RequestOptions): Promise<ArtifactRelayClientStatus>;
|
|
1801
1831
|
createTicket(clientId: string, request: ArtifactRelayTicketRequest, options?: RequestOptions): Promise<ArtifactRelayConnectionTicket>;
|
|
1802
|
-
agentOptions(agentId: string, options?: ArtifactRelayOptionsQuery): Promise<
|
|
1832
|
+
agentOptions(agentId: string, options?: ArtifactRelayOptionsQuery): Promise<RelayOptions>;
|
|
1803
1833
|
}
|
|
1804
1834
|
|
|
1805
1835
|
declare class ResourceInstallationsNamespace {
|
|
@@ -2062,6 +2092,7 @@ type IngestionJobStart = {
|
|
|
2062
2092
|
input_params: Record<string, unknown>;
|
|
2063
2093
|
name?: string | null;
|
|
2064
2094
|
knowledge_namespaces?: Record<string, string>;
|
|
2095
|
+
scheduling_group?: string;
|
|
2065
2096
|
} & {
|
|
2066
2097
|
knowledgeNamespaces?: Record<string, string>;
|
|
2067
2098
|
};
|
|
@@ -2261,6 +2292,7 @@ type ContentSegment = {
|
|
|
2261
2292
|
text: string;
|
|
2262
2293
|
locations?: Array<EvidenceLocation>;
|
|
2263
2294
|
structure_kind?: "text" | "heading" | "table";
|
|
2295
|
+
speaker_id?: string | null;
|
|
2264
2296
|
};
|
|
2265
2297
|
type ProcessedContent = {
|
|
2266
2298
|
schema_version?: "agents24.processed-content.v1";
|
|
@@ -2272,6 +2304,7 @@ type ProcessedContent = {
|
|
|
2272
2304
|
completeness?: "complete" | "partial" | "blank";
|
|
2273
2305
|
warnings?: Array<string>;
|
|
2274
2306
|
segments?: Array<ContentSegment>;
|
|
2307
|
+
speaker_continuity?: "single_request" | "overlap_matched" | "partial" | null;
|
|
2275
2308
|
};
|
|
2276
2309
|
type ProcessedContentReference = {
|
|
2277
2310
|
processed_ref: string;
|
|
@@ -2281,6 +2314,7 @@ type ProcessedContentReference = {
|
|
|
2281
2314
|
physical_page_count?: number | null;
|
|
2282
2315
|
language?: string | null;
|
|
2283
2316
|
duration_ms?: number | null;
|
|
2317
|
+
speaker_continuity?: "single_request" | "overlap_matched" | "partial" | null;
|
|
2284
2318
|
};
|
|
2285
2319
|
type ContentChunk = {
|
|
2286
2320
|
id: string;
|
|
@@ -2290,6 +2324,7 @@ type ContentChunk = {
|
|
|
2290
2324
|
locations: Array<EvidenceLocation>;
|
|
2291
2325
|
processing_fingerprint: string;
|
|
2292
2326
|
metadata?: Record<string, unknown>;
|
|
2327
|
+
speaker_id?: string | null;
|
|
2293
2328
|
};
|
|
2294
2329
|
type RetrievalEvidence = {
|
|
2295
2330
|
schema_version?: "agents24.retrieval-evidence.v1";
|
|
@@ -2303,6 +2338,7 @@ type RetrievalEvidence = {
|
|
|
2303
2338
|
title?: string | null;
|
|
2304
2339
|
external_ref?: string | null;
|
|
2305
2340
|
locations?: Array<EvidenceLocation>;
|
|
2341
|
+
speaker_id?: string | null;
|
|
2306
2342
|
};
|
|
2307
2343
|
type UploadSessionStart = {
|
|
2308
2344
|
filename: string;
|
|
@@ -2676,4 +2712,4 @@ declare class Agents24 extends GeneratedIntegrationNamespaces {
|
|
|
2676
2712
|
graph(): GraphBuilder;
|
|
2677
2713
|
}
|
|
2678
2714
|
|
|
2679
|
-
export { type CreateBackendClientSessionRequest as $, Agents24 as A, type
|
|
2715
|
+
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 };
|
package/dist/index.cjs
CHANGED
|
@@ -375,6 +375,13 @@ var AgentDefinitionBuilder = class {
|
|
|
375
375
|
toolset_attachments: toolsetAttachments(this.options),
|
|
376
376
|
input_sources: [{ id: "workflow-text", value_ref: { namespace: "workflow_input", key: "text", label: "Workflow input / Text" } }]
|
|
377
377
|
};
|
|
378
|
+
if (this.options.toolSchemaBudgetBytes !== void 0) {
|
|
379
|
+
const budget = this.options.toolSchemaBudgetBytes;
|
|
380
|
+
if (budget !== null && (!Number.isSafeInteger(budget) || budget < 1)) {
|
|
381
|
+
throw new TypeError("toolSchemaBudgetBytes must be a positive integer or null");
|
|
382
|
+
}
|
|
383
|
+
agentConfig.tool_schema_budget_bytes = budget;
|
|
384
|
+
}
|
|
378
385
|
if (this.options.model) agentConfig.model_id = refId(this.options.model);
|
|
379
386
|
return {
|
|
380
387
|
spec_version: "4.0",
|