@agents24/node 0.5.36 → 0.5.38
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/bff.cjs +5 -0
- package/dist/bff.cjs.map +1 -1
- package/dist/bff.d.cts +10 -1
- package/dist/bff.d.ts +10 -1
- package/dist/bff.js +5 -0
- package/dist/bff.js.map +1 -1
- package/dist/{client-YSS2tctB.d.cts → client-BxeER2rt.d.cts} +96 -1
- package/dist/{client-YSS2tctB.d.ts → client-BxeER2rt.d.ts} +96 -1
- package/dist/index.cjs +68 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +68 -1
- package/dist/index.js.map +1 -1
- package/dist/types/bff-agent-resolution.d.ts +9 -0
- package/dist/types/bff-agent-resolution.d.ts.map +1 -1
- package/dist/types/bff-conversation-submission.d.ts.map +1 -1
- package/dist/types/builders.d.ts.map +1 -1
- package/dist/types/embed-types.d.ts +2 -0
- package/dist/types/embed-types.d.ts.map +1 -1
- package/dist/types/embed.d.ts.map +1 -1
- package/dist/types/generated/ingestion-types.d.ts +67 -0
- package/dist/types/generated/ingestion-types.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 +7 -0
- package/dist/types/generated/model-capabilities.d.ts.map +1 -1
- package/dist/types/generated/personal-skills.d.ts +7 -0
- package/dist/types/generated/personal-skills.d.ts.map +1 -1
- package/dist/types/types.d.ts +5 -0
- package/dist/types/types.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -79,6 +79,8 @@ type PersonalConnectionAccount = {
|
|
|
79
79
|
server_id: string;
|
|
80
80
|
slot: string;
|
|
81
81
|
label: string | null;
|
|
82
|
+
account_email?: string | null;
|
|
83
|
+
display_name?: string | null;
|
|
82
84
|
status: string;
|
|
83
85
|
enabled: boolean;
|
|
84
86
|
selected: boolean;
|
|
@@ -143,10 +145,15 @@ type PersonalSkillImport = {
|
|
|
143
145
|
markdown: string;
|
|
144
146
|
assets?: Array<PersonalSkillAssetInput>;
|
|
145
147
|
};
|
|
148
|
+
type CallerAppGrant = {
|
|
149
|
+
app_id: string;
|
|
150
|
+
actions?: Array<string>;
|
|
151
|
+
};
|
|
146
152
|
type CallerToolRestrictions = {
|
|
147
153
|
mutations: "ask" | "allow" | "deny";
|
|
148
154
|
delegated_artifact_ids?: Array<string>;
|
|
149
155
|
authority_generation?: number;
|
|
156
|
+
allowed_apps?: Array<CallerAppGrant> | null;
|
|
150
157
|
};
|
|
151
158
|
type CallerRestrictionsUpdate = {
|
|
152
159
|
external_user_id: string;
|
|
@@ -201,6 +208,7 @@ type EmbedStreamRequest = {
|
|
|
201
208
|
thread_id?: string;
|
|
202
209
|
knowledge_namespaces?: Record<string, string>;
|
|
203
210
|
knowledgeNamespaces?: Record<string, string>;
|
|
211
|
+
knowledgeAccessScopes?: Record<string, string[]>;
|
|
204
212
|
dictationSessionId?: string;
|
|
205
213
|
requestedOutputs?: string[];
|
|
206
214
|
requested_outputs?: string[];
|
|
@@ -333,6 +341,7 @@ type EmbedThreadMessageSubmit = {
|
|
|
333
341
|
relayClientId?: string | null;
|
|
334
342
|
executionLimits?: RunExecutionLimits;
|
|
335
343
|
knowledgeNamespaces?: Record<string, string>;
|
|
344
|
+
knowledgeAccessScopes?: Record<string, string[]>;
|
|
336
345
|
} & EmbedThreadMessageScope & {
|
|
337
346
|
agentVersionId?: string | null;
|
|
338
347
|
requestedAgentId?: string;
|
|
@@ -716,15 +725,21 @@ type ModelCapabilityLimits = {
|
|
|
716
725
|
images_per_request?: number | null;
|
|
717
726
|
audio_seconds_per_request?: number | null;
|
|
718
727
|
audio_bytes_per_request?: number | null;
|
|
728
|
+
working_context_tokens?: number | null;
|
|
719
729
|
};
|
|
720
730
|
type ModelInputModality = "text" | "image" | "audio" | "video" | "pdf";
|
|
721
731
|
type ModelOutputModality = "text" | "image" | "audio" | "video" | "embedding" | "ranking" | "transcription";
|
|
732
|
+
type ModelReasoningControls = {
|
|
733
|
+
style: "effort" | "anthropic_effort" | "anthropic_budget" | "gemini_level" | "gemini_budget";
|
|
734
|
+
supported_efforts: Array<"none" | "minimal" | "low" | "medium" | "high">;
|
|
735
|
+
};
|
|
722
736
|
type ModelCapabilitiesV1 = {
|
|
723
737
|
schema_version: "agents24.model-capabilities.v1";
|
|
724
738
|
input_modalities: Array<ModelInputModality>;
|
|
725
739
|
output_modalities: Array<ModelOutputModality>;
|
|
726
740
|
features: ModelCapabilityFeatures;
|
|
727
741
|
limits: ModelCapabilityLimits;
|
|
742
|
+
reasoning_controls: ModelReasoningControls | null;
|
|
728
743
|
};
|
|
729
744
|
type ModelRequirements = {
|
|
730
745
|
input_modalities?: Array<ModelInputModality>;
|
|
@@ -732,6 +747,7 @@ type ModelRequirements = {
|
|
|
732
747
|
required_features?: Array<"tool_calling" | "structured_output" | "reasoning" | "segment_timestamps" | "word_timestamps" | "speaker_diarization">;
|
|
733
748
|
providers?: Array<string>;
|
|
734
749
|
runtime_kinds?: Array<"chat" | "embedding" | "speech_to_text" | "realtime_speech_to_text" | "image_generation" | "rerank" | "ocr">;
|
|
750
|
+
reasoning_effort?: "none" | "minimal" | "low" | "medium" | "high" | null;
|
|
735
751
|
};
|
|
736
752
|
|
|
737
753
|
type ArtifactExecutionRequirement = {
|
|
@@ -1207,8 +1223,13 @@ type AgentToolsetAttachment = {
|
|
|
1207
1223
|
loadingMode?: "static" | "dynamic";
|
|
1208
1224
|
versionPolicy?: LatestOrPinnedPolicy;
|
|
1209
1225
|
};
|
|
1226
|
+
type AgentReasoningEffort = "none" | "minimal" | "low" | "medium" | "high";
|
|
1210
1227
|
type AgentDefinitionOptions = {
|
|
1211
1228
|
toolSchemaBudgetBytes?: number | null;
|
|
1229
|
+
/** Provider-native reasoning level; omit to keep the model's own default. */
|
|
1230
|
+
reasoningEffort?: AgentReasoningEffort;
|
|
1231
|
+
/** Window context maintenance plans against; omit for the model's working window, null for its full window. */
|
|
1232
|
+
contextCompactionWindowTokens?: number | null;
|
|
1212
1233
|
name: string;
|
|
1213
1234
|
description?: string;
|
|
1214
1235
|
instructions?: string;
|
|
@@ -2607,6 +2628,7 @@ type KnowledgeStorePage = {
|
|
|
2607
2628
|
limit: number;
|
|
2608
2629
|
has_more: boolean;
|
|
2609
2630
|
view: string;
|
|
2631
|
+
metadata?: KnowledgeStorePageMetadata;
|
|
2610
2632
|
};
|
|
2611
2633
|
type KnowledgeStoreNamespace = {
|
|
2612
2634
|
name: string;
|
|
@@ -3037,6 +3059,72 @@ type ProcessingProgress = {
|
|
|
3037
3059
|
total_units: number;
|
|
3038
3060
|
capacity_wait?: CapacityWait;
|
|
3039
3061
|
};
|
|
3062
|
+
type KnowledgeStorePageMetadata = {
|
|
3063
|
+
document_count: number;
|
|
3064
|
+
chunk_count: number;
|
|
3065
|
+
backend_counts: Record<string, number>;
|
|
3066
|
+
embedding_model_counts: Record<string, number>;
|
|
3067
|
+
};
|
|
3068
|
+
type KnowledgeAccessScope = {
|
|
3069
|
+
id: string;
|
|
3070
|
+
knowledge_store_id: string;
|
|
3071
|
+
key: string;
|
|
3072
|
+
name: string;
|
|
3073
|
+
description: string | null;
|
|
3074
|
+
status: "pending" | "active";
|
|
3075
|
+
is_default: boolean;
|
|
3076
|
+
namespace: string | null;
|
|
3077
|
+
};
|
|
3078
|
+
type KnowledgeAccessScopePage = {
|
|
3079
|
+
items: Array<KnowledgeAccessScope>;
|
|
3080
|
+
total: number;
|
|
3081
|
+
enforced: boolean;
|
|
3082
|
+
partitioned: boolean;
|
|
3083
|
+
default_scope_id: string | null;
|
|
3084
|
+
pending_rescope_documents: number;
|
|
3085
|
+
namespace: string;
|
|
3086
|
+
};
|
|
3087
|
+
type KnowledgeAccessScopeCreate = {
|
|
3088
|
+
key: string;
|
|
3089
|
+
name?: string | null;
|
|
3090
|
+
description?: string | null;
|
|
3091
|
+
namespace: string;
|
|
3092
|
+
};
|
|
3093
|
+
type KnowledgeAccessScopeUpdate = {
|
|
3094
|
+
name?: string | null;
|
|
3095
|
+
description?: string | null;
|
|
3096
|
+
};
|
|
3097
|
+
type KnowledgeAccessScopeAdoption = {
|
|
3098
|
+
knowledge_store_id: string;
|
|
3099
|
+
activated_scope_id: string;
|
|
3100
|
+
baseline_scope_id: string;
|
|
3101
|
+
stamped_records: number;
|
|
3102
|
+
enforced: boolean;
|
|
3103
|
+
pending_rescope_documents: number;
|
|
3104
|
+
rescope_job_ids: Array<string>;
|
|
3105
|
+
namespace: string;
|
|
3106
|
+
};
|
|
3107
|
+
type KnowledgeContentScopeAssign = {
|
|
3108
|
+
content_id: string;
|
|
3109
|
+
scope_ids: Array<string>;
|
|
3110
|
+
namespace: string;
|
|
3111
|
+
};
|
|
3112
|
+
type KnowledgeContentScopes = {
|
|
3113
|
+
knowledge_store_id: string;
|
|
3114
|
+
content_id: string;
|
|
3115
|
+
scope_ids: Array<string>;
|
|
3116
|
+
assignment_epoch: number;
|
|
3117
|
+
index_synchronized: boolean;
|
|
3118
|
+
rescope_job_id?: string | null;
|
|
3119
|
+
namespace: string;
|
|
3120
|
+
};
|
|
3121
|
+
type KnowledgeContentScopeQuery = {
|
|
3122
|
+
contentId: string;
|
|
3123
|
+
namespace: string;
|
|
3124
|
+
};
|
|
3125
|
+
type KnowledgeAccessScopeListQuery = {
|
|
3126
|
+
namespace: string;
|
|
3127
|
+
};
|
|
3040
3128
|
|
|
3041
3129
|
declare class PipelinesNamespace {
|
|
3042
3130
|
protected readonly http: Agents24HttpClient;
|
|
@@ -3094,6 +3182,13 @@ declare class KnowledgeStoresNamespace {
|
|
|
3094
3182
|
deleteRecords(storeId: string, request: RecordDeleteRequest): Promise<RecordMutationAck>;
|
|
3095
3183
|
listNamespaces(storeId: string, options?: NamespaceListOptions): Promise<NamespacePage>;
|
|
3096
3184
|
namespaceStats(storeId: string, request: NamespaceInput): Promise<NamespaceDataStats>;
|
|
3185
|
+
listAccessScopes(storeId: string, options: KnowledgeAccessScopeListQuery): Promise<KnowledgeAccessScopePage>;
|
|
3186
|
+
createAccessScope(storeId: string, request: KnowledgeAccessScopeCreate): Promise<KnowledgeAccessScope>;
|
|
3187
|
+
adoptAccessScope(storeId: string, scopeId: string): Promise<KnowledgeAccessScopeAdoption>;
|
|
3188
|
+
updateAccessScope(storeId: string, scopeId: string, request: KnowledgeAccessScopeUpdate): Promise<KnowledgeAccessScope>;
|
|
3189
|
+
deleteAccessScope(storeId: string, scopeId: string): Promise<void>;
|
|
3190
|
+
contentScopes(storeId: string, options: KnowledgeContentScopeQuery): Promise<KnowledgeContentScopes>;
|
|
3191
|
+
assignContentScopes(storeId: string, request: KnowledgeContentScopeAssign): Promise<KnowledgeContentScopes>;
|
|
3097
3192
|
listRecordPages(storeId: string, request: RecordListRequest): AsyncGenerator<RecordPage>;
|
|
3098
3193
|
upsertRecordsBatched(storeId: string, request: RecordUpsertRequest, limits?: {
|
|
3099
3194
|
maxRecords?: number;
|
|
@@ -3128,4 +3223,4 @@ declare class Agents24 extends GeneratedIntegrationNamespaces {
|
|
|
3128
3223
|
graph(): GraphBuilder;
|
|
3129
3224
|
}
|
|
3130
3225
|
|
|
3131
|
-
export { type ControlPlaneRunEventsResponse 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 CallerAuthorityResult as H, type CallerAuthorityUpdate as I, type CallerRestrictionsResult as J, type CallerRestrictionsUpdate as K, type CallerToolRestrictions as L, type CapacityWait as M, type ClearCustomerResourcePolicyAssignmentResult as N, type ClientAuthMode as O, type ClientDeployment as P, type ClientDeploymentListQuery as Q, type RelayOptions as R, type ClientDeploymentListResponse as S, type ClientNativeProfile as T, type ClientRuntimeNativeProfileInput as U, type ClientRuntimeOidcConfig as V, type ClientRuntimePolicyInput as W, type ClientSessionCredentials as X, type ContentChunk as Y, type ContentSegment as Z, type ControlPlaneAgentRunRequest as _, type AgentCreateRequest as a, type HitlAction as a$, type ConversationRunRequest as a0, type ConversationRunResult as a1, type ConversationRuntimeSelectionRequest as a2, type ConversationRuntimeSelectionResult as a3, type ConversationSubmissionRequest as a4, type ConversationThreadOptions as a5, type CreateBackendClientSessionRequest as a6, type CreateClientDeploymentRequest as a7, type CustomerIdentityRequest as a8, type CustomerPrincipalRefRequest as a9, type EmbedResourcePolicyRequest as aA, type EmbedRunCancelOptions as aB, type EmbedRunStartRequest as aC, type EmbedRuntimeBootstrap as aD, type EmbedRuntimeBootstrapRequest as aE, type EmbedRuntimeBootstrapResult as aF, type EmbedStreamRequest as aG, type EmbedThreadMessageEdit as aH, type EmbedThreadMessageScope as aI, type EmbedThreadMessageSubmit as aJ, type EmbeddedDictationCreate as aK, type EmbeddedDictationScope as aL, type EmbeddedResponseFeedbackInput as aM, type EvidenceLocation as aN, type ExternalToolCompletionReceipt as aO, type ExternalToolCompletionRequest 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, type GraphValueRef as a_, type CustomerProfile as aa, type CustomerProfileList as ab, type CustomerProfilePatch as ac, type CustomerProfileSearchOptions as ad, type CustomerResourcePolicyAssignment as ae, type DelegationAction as af, type DelegationActionReceipt as ag, type DelegationActionRequest as ah, type DelegationEvents as ai, type DelegationHistory as aj, type DelegationHistoryTurn as ak, type DelegationStatus as al, type DelegationTask as am, type DelegationTaskList as an, type DictationCreate as ao, type DictationFeature as ap, type DictationScope as aq, type DictationSession as ar, type EffectiveCustomerResourcePolicyRequest as as, type EffectiveResourcePolicy as at, type EmbedAgentAliasResolution as au, type EmbedAttachmentContentAccessRequest as av, type EmbedCustomerPrincipalResolveRequest as aw, type EmbedCustomerPrincipalResolveResponse as ax, type EmbedDelegationOptions as ay, type EmbedDictationQuery as az, AgentDefinitionBuilder as b, type PersonalConnectionAccount as b$, type HitlAnswer as b0, type HostedArtifactDraft as b1, HostedArtifactsNamespace as b2, type IndexedCleanupAck as b3, type IndexedContent as b4, type IndexedContentListOptions as b5, type IndexedContentPage as b6, type IndexedRecordIdListOptions as b7, type IndexedRecordIdPage as b8, type IngestionBatch as b9, type LatestOrPinnedPolicy as bA, type McpAuthStartRequest as bB, type McpAuthStartResult as bC, type ModelCapabilitiesV1 as bD, type ModelOffering as bE, type ModelPricingDimension as bF, type ModelProviderCreate as bG, type ModelProviderRoute as bH, type ModelRequirements as bI, type ModelRuntimeKind as bJ, type ModelSummary as bK, ModelsNamespace as bL, type MultiAgentThreadListRequest as bM, type MultiAgentThreadSummaryEventOptions as bN, type NamespaceDataStats as bO, type NamespaceInput as bP, type NamespaceListOptions as bQ, type NamespacePage as bR, type NamespaceSummary as bS, type NativePlatform as bT, type NodeAuthoringSpec as bU, type NodeCatalogItem as bV, type NodeCatalogResponse as bW, type NodeSchemaResponse as bX, type OCROptions as bY, type PayloadAvailability as bZ, type PersonalCapabilityQuery as b_, type IngestionBatchListOptions as ba, type IngestionBatchPage as bb, type IngestionJob as bc, type IngestionJobAcknowledgment as bd, type IngestionJobGetOptions as be, type IngestionJobListOptions as bf, type IngestionJobPage as bg, type IngestionJobStart as bh, type JobFieldData as bi, type JobPayloadDownload as bj, type JobResult as bk, type JobResultOptions as bl, type JobStep as bm, type JobStepData as bn, type JobStepDataOptions as bo, type JobStepDownloadOptions as bp, type JobStepFieldOptions as bq, type JobSteps as br, type KnowledgeStore as bs, type KnowledgeStoreChunking as bt, type KnowledgeStoreCreate as bu, type KnowledgeStoreListOptions as bv, type KnowledgeStoreNamespace as bw, type KnowledgeStorePage as bx, type KnowledgeStoreStats as by, type KnowledgeStoreUpdate as bz, type AgentDefinitionOptions as c, type ResourceInstallationPlanUpload as c$, type PersonalConnectionAction as c0, type PersonalConnectionCatalog as c1, type PersonalConnectionPage as c2, type PersonalConnectionResult as c3, type PersonalConnectionService as c4, type PersonalSkillAsset as c5, type PersonalSkillAssetChange as c6, type PersonalSkillAssetContent as c7, type PersonalSkillAssetInput as c8, type PersonalSkillAssetQuery as c9, type RecordBatchResult as cA, type RecordCapabilities as cB, type RecordDeleteRequest as cC, type RecordFetchRequest as cD, type RecordFetchResult as cE, type RecordListRequest as cF, type RecordMutationAck as cG, type RecordPage as cH, type RecordQueryRequest as cI, type RecordQueryResult as cJ, type RecordUpdateRequest as cK, type RecordUpsertRequest as cL, type RequestOptions as cM, type ResetResourcePolicyQuotaRequest as cN, type ResourceCallableBinding as cO, type ResourceCallableBindingStatus as cP, type ResourceCandidateList as cQ, type ResourceInstallation as cR, type ResourceInstallationApplication as cS, type ResourceInstallationApplyRequest as cT, type ResourceInstallationBinding as cU, type ResourceInstallationCreateRequest as cV, type ResourceInstallationDeploymentRequest as cW, type ResourceInstallationLinkRequest as cX, type ResourceInstallationList as cY, type ResourceInstallationOperation as cZ, type ResourceInstallationPlan as c_, type PersonalSkillImport as ca, type PersonalSkillPage as cb, type PersonalSkillRecord as cc, type PersonalSkillSave as cd, type PersonalSkillSelection as ce, type PersonalSkillState as cf, type PersonalSkillVersion as cg, type PipelineInputField as ch, type PipelineInputSchema as ci, type PipelineInputStep as cj, type PipelineInputUpload as ck, type PipelineListOptions as cl, type PipelinePage as cm, type PipelineResultPage as cn, type PipelineSummary as co, type PortableResourceKind as cp, type ProcessedContent as cq, type ProcessedContentOptions as cr, type ProcessedContentReference as cs, type ProcessingInput as ct, type ProcessingInputSource as cu, type ProcessingProgress as cv, type PublishedExecutable as cw, type RagRetention as cx, type RawVectorMatch as cy, type RawVectorRecord as cz, type AgentListResponse as d, type TraceSpanStatus as d$, type ResourceInstallationPublication as d0, type ResourceInstallationPublishRequest as d1, type ResourceInstallationPullAcceptRequest as d2, type ResourceInstallationPullChange as d3, type ResourceInstallationPullPayload as d4, type ResourceInstallationPullPlan as d5, type ResourceInstallationResourceListOptions as d6, type ResourceInstallationSecretStatus as d7, type ResourceInstallationSecretsRequest as d8, type ResourcePackageArchive as d9, type RunTrace as dA, type RunUsage as dB, type RuntimeSubmissionResponse as dC, type ServerAttachmentUploadOptions as dD, type ServerEmbedAttachmentUploadOptions as dE, type SetCustomerResourcePolicyAssignmentRequest as dF, type SetResourcePolicyQuotaScheduleRequest as dG, type SourceDescriptor as dH, type SourceOutcome as dI, type StartRunResult as dJ, type StateVariableDefinition as dK, type StreamRequestOptions as dL, type StreamResult as dM, type ThreadComputerContentAccess as dN, type ThreadComputerFile as dO, type ThreadComputerFileOptions as dP, type ThreadComputerFileText as dQ, type ThreadComputerFiles as dR, type ThreadComputerStatus as dS, type ThreadDeleteOptions as dT, type ThreadDetailOptions as dU, type ThreadListOptions as dV, type ThreadSummaryEventOptions as dW, type TraceContent as dX, type TraceError as dY, type TraceSpan as dZ, type TraceSpanKind as d_, type ResourcePackageCandidateOptions as da, type ResourcePackageDependency as db, type ResourcePackageDiagnostic as dc, type ResourcePackageExportPlan as dd, type ResourcePackageExportRequest as de, type ResourcePackageImportPreview as df, type ResourcePackageImportResult as dg, type ResourcePackageImportUpload as dh, type ResourcePackageUpload as di, type ResourcePackageValidationResult as dj, type ResourcePolicyList as dk, type ResourcePolicyQuotaSchedule as dl, type ResourcePolicyQuotaScheduleResult as dm, type ResourcePolicySubjectRef as dn, type ResourcePolicySummary as dp, type ResourceSelector as dq, type ResourceToolExport as dr, type ResponseFeedback as ds, type ResponseFeedbackResult as dt, type ResumeRunRequest as du, type RetrievalEvidence as dv, type RunCancelOptions as dw, type RunContextOptions as dx, type RunExecutionLimits as dy, type RunStatus as dz, type AgentRef as e, type TraceView as e0, type UpdateClientDeploymentRequest as e1, type UploadPart as e2, type UploadPartAck as e3, type UploadSession as e4, type UploadSessionStart as e5, type WaitForAgentRunOptions as e6, type WorkflowInputDefinition as e7, 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 };
|
|
3226
|
+
export { type ControlPlaneAgentRunRequest as $, Agents24 as A, type ArtifactRelayOptionsQuery as B, type ArtifactRelayTicketRequest as C, type AttachRunRequest as D, type EmbeddedRunSnapshot as E, type AttachmentContentAccessRequest as F, type BackendSessionRequestOptions as G, type BranchingHint as H, type CallerAuthorityResult as I, type CallerAuthorityUpdate as J, type CallerRestrictionsResult as K, type CallerRestrictionsUpdate as L, type CallerToolRestrictions as M, type CapacityWait as N, type ClearCustomerResourcePolicyAssignmentResult as O, type ClientAuthMode as P, type ClientDeployment as Q, type RelayOptions as R, type ClientDeploymentListQuery as S, type ClientDeploymentListResponse as T, type ClientNativeProfile as U, type ClientRuntimeNativeProfileInput as V, type ClientRuntimeOidcConfig as W, type ClientRuntimePolicyInput as X, type ClientSessionCredentials as Y, type ContentChunk as Z, type ContentSegment as _, type AgentCreateRequest as a, type GraphValueRef as a$, type ControlPlaneRunEventsResponse as a0, type ConversationRunRequest as a1, type ConversationRunResult as a2, type ConversationRuntimeSelectionRequest as a3, type ConversationRuntimeSelectionResult as a4, type ConversationSubmissionRequest as a5, type ConversationThreadOptions as a6, type CreateBackendClientSessionRequest as a7, type CreateClientDeploymentRequest as a8, type CustomerIdentityRequest as a9, type EmbedDictationQuery as aA, type EmbedResourcePolicyRequest as aB, type EmbedRunCancelOptions as aC, type EmbedRunStartRequest as aD, type EmbedRuntimeBootstrap as aE, type EmbedRuntimeBootstrapRequest as aF, type EmbedRuntimeBootstrapResult as aG, type EmbedStreamRequest as aH, type EmbedThreadMessageEdit as aI, type EmbedThreadMessageScope as aJ, type EmbedThreadMessageSubmit as aK, type EmbeddedDictationCreate as aL, type EmbeddedDictationScope as aM, type EmbeddedResponseFeedbackInput as aN, type EvidenceLocation as aO, type ExternalToolCompletionReceipt as aP, type ExternalToolCompletionRequest as aQ, type FailureCategory as aR, type FailureView as aS, type FeedbackRating as aT, type FeedbackReason as aU, type FileAssetReference as aV, GraphBuilder as aW, type GraphDefinition as aX, type GraphEdge as aY, type GraphHints as aZ, type GraphNode as a_, type CustomerPrincipalRefRequest as aa, type CustomerProfile as ab, type CustomerProfileList as ac, type CustomerProfilePatch as ad, type CustomerProfileSearchOptions as ae, type CustomerResourcePolicyAssignment as af, type DelegationAction as ag, type DelegationActionReceipt as ah, type DelegationActionRequest as ai, type DelegationEvents as aj, type DelegationHistory as ak, type DelegationHistoryTurn as al, type DelegationStatus as am, type DelegationTask as an, type DelegationTaskList as ao, type DictationCreate as ap, type DictationFeature as aq, type DictationScope as ar, type DictationSession as as, type EffectiveCustomerResourcePolicyRequest as at, type EffectiveResourcePolicy as au, type EmbedAgentAliasResolution as av, type EmbedAttachmentContentAccessRequest as aw, type EmbedCustomerPrincipalResolveRequest as ax, type EmbedCustomerPrincipalResolveResponse as ay, type EmbedDelegationOptions as az, AgentDefinitionBuilder as b, type NamespaceListOptions as b$, type HitlAction as b0, type HitlAnswer as b1, type HostedArtifactDraft as b2, HostedArtifactsNamespace as b3, type IndexedCleanupAck as b4, type IndexedContent as b5, type IndexedContentListOptions as b6, type IndexedContentPage as b7, type IndexedRecordIdListOptions as b8, type IndexedRecordIdPage as b9, type KnowledgeContentScopeQuery as bA, type KnowledgeContentScopes as bB, type KnowledgeStore as bC, type KnowledgeStoreChunking as bD, type KnowledgeStoreCreate as bE, type KnowledgeStoreListOptions as bF, type KnowledgeStoreNamespace as bG, type KnowledgeStorePage as bH, type KnowledgeStorePageMetadata as bI, type KnowledgeStoreStats as bJ, type KnowledgeStoreUpdate as bK, type LatestOrPinnedPolicy as bL, type McpAuthStartRequest as bM, type McpAuthStartResult as bN, type ModelCapabilitiesV1 as bO, type ModelOffering as bP, type ModelPricingDimension as bQ, type ModelProviderCreate as bR, type ModelProviderRoute as bS, type ModelRequirements as bT, type ModelRuntimeKind as bU, type ModelSummary as bV, ModelsNamespace as bW, type MultiAgentThreadListRequest as bX, type MultiAgentThreadSummaryEventOptions as bY, type NamespaceDataStats as bZ, type NamespaceInput as b_, type IngestionBatch as ba, type IngestionBatchListOptions as bb, type IngestionBatchPage as bc, type IngestionJob as bd, type IngestionJobAcknowledgment as be, type IngestionJobGetOptions as bf, type IngestionJobListOptions as bg, type IngestionJobPage as bh, type IngestionJobStart as bi, type JobFieldData as bj, type JobPayloadDownload as bk, type JobResult as bl, type JobResultOptions as bm, type JobStep as bn, type JobStepData as bo, type JobStepDataOptions as bp, type JobStepDownloadOptions as bq, type JobStepFieldOptions as br, type JobSteps as bs, type KnowledgeAccessScope as bt, type KnowledgeAccessScopeAdoption as bu, type KnowledgeAccessScopeCreate as bv, type KnowledgeAccessScopeListQuery as bw, type KnowledgeAccessScopePage as bx, type KnowledgeAccessScopeUpdate as by, type KnowledgeContentScopeAssign as bz, type AgentDefinitionOptions as c, type ResourceCandidateList as c$, type NamespacePage as c0, type NamespaceSummary as c1, type NativePlatform as c2, type NodeAuthoringSpec as c3, type NodeCatalogItem as c4, type NodeCatalogResponse as c5, type NodeSchemaResponse as c6, type OCROptions as c7, type PayloadAvailability as c8, type PersonalCapabilityQuery as c9, type PortableResourceKind as cA, type ProcessedContent as cB, type ProcessedContentOptions as cC, type ProcessedContentReference as cD, type ProcessingInput as cE, type ProcessingInputSource as cF, type ProcessingProgress as cG, type PublishedExecutable as cH, type RagRetention as cI, type RawVectorMatch as cJ, type RawVectorRecord as cK, type RecordBatchResult as cL, type RecordCapabilities as cM, type RecordDeleteRequest as cN, type RecordFetchRequest as cO, type RecordFetchResult as cP, type RecordListRequest as cQ, type RecordMutationAck as cR, type RecordPage as cS, type RecordQueryRequest as cT, type RecordQueryResult as cU, type RecordUpdateRequest as cV, type RecordUpsertRequest as cW, type RequestOptions as cX, type ResetResourcePolicyQuotaRequest as cY, type ResourceCallableBinding as cZ, type ResourceCallableBindingStatus as c_, type PersonalConnectionAccount as ca, type PersonalConnectionAction as cb, type PersonalConnectionCatalog as cc, type PersonalConnectionPage as cd, type PersonalConnectionResult as ce, type PersonalConnectionService as cf, type PersonalSkillAsset as cg, type PersonalSkillAssetChange as ch, type PersonalSkillAssetContent as ci, type PersonalSkillAssetInput as cj, type PersonalSkillAssetQuery as ck, type PersonalSkillImport as cl, type PersonalSkillPage as cm, type PersonalSkillRecord as cn, type PersonalSkillSave as co, type PersonalSkillSelection as cp, type PersonalSkillState as cq, type PersonalSkillVersion as cr, type PipelineInputField as cs, type PipelineInputSchema as ct, type PipelineInputStep as cu, type PipelineInputUpload as cv, type PipelineListOptions as cw, type PipelinePage as cx, type PipelineResultPage as cy, type PipelineSummary as cz, type AgentListResponse as d, type ThreadComputerFileText as d$, type ResourceInstallation as d0, type ResourceInstallationApplication as d1, type ResourceInstallationApplyRequest as d2, type ResourceInstallationBinding as d3, type ResourceInstallationCreateRequest as d4, type ResourceInstallationDeploymentRequest as d5, type ResourceInstallationLinkRequest as d6, type ResourceInstallationList as d7, type ResourceInstallationOperation as d8, type ResourceInstallationPlan as d9, type ResourcePolicySummary as dA, type ResourceSelector as dB, type ResourceToolExport as dC, type ResponseFeedback as dD, type ResponseFeedbackResult as dE, type ResumeRunRequest as dF, type RetrievalEvidence as dG, type RunCancelOptions as dH, type RunContextOptions as dI, type RunExecutionLimits as dJ, type RunStatus as dK, type RunTrace as dL, type RunUsage as dM, type RuntimeSubmissionResponse as dN, type ServerAttachmentUploadOptions as dO, type ServerEmbedAttachmentUploadOptions as dP, type SetCustomerResourcePolicyAssignmentRequest as dQ, type SetResourcePolicyQuotaScheduleRequest as dR, type SourceDescriptor as dS, type SourceOutcome as dT, type StartRunResult as dU, type StateVariableDefinition as dV, type StreamRequestOptions as dW, type StreamResult as dX, type ThreadComputerContentAccess as dY, type ThreadComputerFile as dZ, type ThreadComputerFileOptions as d_, type ResourceInstallationPlanUpload as da, type ResourceInstallationPublication as db, type ResourceInstallationPublishRequest as dc, type ResourceInstallationPullAcceptRequest as dd, type ResourceInstallationPullChange as de, type ResourceInstallationPullPayload as df, type ResourceInstallationPullPlan as dg, type ResourceInstallationResourceListOptions as dh, type ResourceInstallationSecretStatus as di, type ResourceInstallationSecretsRequest as dj, type ResourcePackageArchive as dk, type ResourcePackageCandidateOptions as dl, type ResourcePackageDependency as dm, type ResourcePackageDiagnostic as dn, type ResourcePackageExportPlan as dp, type ResourcePackageExportRequest as dq, type ResourcePackageImportPreview as dr, type ResourcePackageImportResult as ds, type ResourcePackageImportUpload as dt, type ResourcePackageUpload as du, type ResourcePackageValidationResult as dv, type ResourcePolicyList as dw, type ResourcePolicyQuotaSchedule as dx, type ResourcePolicyQuotaScheduleResult as dy, type ResourcePolicySubjectRef as dz, type AgentReasoningEffort as e, type ThreadComputerFiles as e0, type ThreadComputerStatus as e1, type ThreadDeleteOptions as e2, type ThreadDetailOptions as e3, type ThreadListOptions as e4, type ThreadSummaryEventOptions as e5, type TraceContent as e6, type TraceError as e7, type TraceSpan as e8, type TraceSpanKind as e9, type TraceSpanStatus as ea, type TraceView as eb, type UpdateClientDeploymentRequest as ec, type UploadPart as ed, type UploadPartAck as ee, type UploadSession as ef, type UploadSessionStart as eg, type WaitForAgentRunOptions as eh, type WorkflowInputDefinition as ei, type AgentRef as f, type AgentResponse as g, type AgentStreamRequest as h, type AgentSummary as i, type AgentToolsetAttachment as j, type AgentUpdateRequest as k, type AgentValidationIssue as l, type AgentValidationResult as m, Agents24SDKError as n, type Agents24NodeErrorKind as o, type Agents24NodeOptions as p, type Agents24Options as q, type Agents24SDKErrorKind as r, type Agents24SDKSerializedError as s, type ArtifactDevelopmentSession as t, type ArtifactDevelopmentSessionAdmission as u, type ArtifactDevelopmentSessionPrepareRequest as v, type ArtifactRelayClientCreate as w, type ArtifactRelayClientList as x, type ArtifactRelayClientStatus as y, type ArtifactRelayConnectionTicket as z };
|
|
@@ -79,6 +79,8 @@ type PersonalConnectionAccount = {
|
|
|
79
79
|
server_id: string;
|
|
80
80
|
slot: string;
|
|
81
81
|
label: string | null;
|
|
82
|
+
account_email?: string | null;
|
|
83
|
+
display_name?: string | null;
|
|
82
84
|
status: string;
|
|
83
85
|
enabled: boolean;
|
|
84
86
|
selected: boolean;
|
|
@@ -143,10 +145,15 @@ type PersonalSkillImport = {
|
|
|
143
145
|
markdown: string;
|
|
144
146
|
assets?: Array<PersonalSkillAssetInput>;
|
|
145
147
|
};
|
|
148
|
+
type CallerAppGrant = {
|
|
149
|
+
app_id: string;
|
|
150
|
+
actions?: Array<string>;
|
|
151
|
+
};
|
|
146
152
|
type CallerToolRestrictions = {
|
|
147
153
|
mutations: "ask" | "allow" | "deny";
|
|
148
154
|
delegated_artifact_ids?: Array<string>;
|
|
149
155
|
authority_generation?: number;
|
|
156
|
+
allowed_apps?: Array<CallerAppGrant> | null;
|
|
150
157
|
};
|
|
151
158
|
type CallerRestrictionsUpdate = {
|
|
152
159
|
external_user_id: string;
|
|
@@ -201,6 +208,7 @@ type EmbedStreamRequest = {
|
|
|
201
208
|
thread_id?: string;
|
|
202
209
|
knowledge_namespaces?: Record<string, string>;
|
|
203
210
|
knowledgeNamespaces?: Record<string, string>;
|
|
211
|
+
knowledgeAccessScopes?: Record<string, string[]>;
|
|
204
212
|
dictationSessionId?: string;
|
|
205
213
|
requestedOutputs?: string[];
|
|
206
214
|
requested_outputs?: string[];
|
|
@@ -333,6 +341,7 @@ type EmbedThreadMessageSubmit = {
|
|
|
333
341
|
relayClientId?: string | null;
|
|
334
342
|
executionLimits?: RunExecutionLimits;
|
|
335
343
|
knowledgeNamespaces?: Record<string, string>;
|
|
344
|
+
knowledgeAccessScopes?: Record<string, string[]>;
|
|
336
345
|
} & EmbedThreadMessageScope & {
|
|
337
346
|
agentVersionId?: string | null;
|
|
338
347
|
requestedAgentId?: string;
|
|
@@ -716,15 +725,21 @@ type ModelCapabilityLimits = {
|
|
|
716
725
|
images_per_request?: number | null;
|
|
717
726
|
audio_seconds_per_request?: number | null;
|
|
718
727
|
audio_bytes_per_request?: number | null;
|
|
728
|
+
working_context_tokens?: number | null;
|
|
719
729
|
};
|
|
720
730
|
type ModelInputModality = "text" | "image" | "audio" | "video" | "pdf";
|
|
721
731
|
type ModelOutputModality = "text" | "image" | "audio" | "video" | "embedding" | "ranking" | "transcription";
|
|
732
|
+
type ModelReasoningControls = {
|
|
733
|
+
style: "effort" | "anthropic_effort" | "anthropic_budget" | "gemini_level" | "gemini_budget";
|
|
734
|
+
supported_efforts: Array<"none" | "minimal" | "low" | "medium" | "high">;
|
|
735
|
+
};
|
|
722
736
|
type ModelCapabilitiesV1 = {
|
|
723
737
|
schema_version: "agents24.model-capabilities.v1";
|
|
724
738
|
input_modalities: Array<ModelInputModality>;
|
|
725
739
|
output_modalities: Array<ModelOutputModality>;
|
|
726
740
|
features: ModelCapabilityFeatures;
|
|
727
741
|
limits: ModelCapabilityLimits;
|
|
742
|
+
reasoning_controls: ModelReasoningControls | null;
|
|
728
743
|
};
|
|
729
744
|
type ModelRequirements = {
|
|
730
745
|
input_modalities?: Array<ModelInputModality>;
|
|
@@ -732,6 +747,7 @@ type ModelRequirements = {
|
|
|
732
747
|
required_features?: Array<"tool_calling" | "structured_output" | "reasoning" | "segment_timestamps" | "word_timestamps" | "speaker_diarization">;
|
|
733
748
|
providers?: Array<string>;
|
|
734
749
|
runtime_kinds?: Array<"chat" | "embedding" | "speech_to_text" | "realtime_speech_to_text" | "image_generation" | "rerank" | "ocr">;
|
|
750
|
+
reasoning_effort?: "none" | "minimal" | "low" | "medium" | "high" | null;
|
|
735
751
|
};
|
|
736
752
|
|
|
737
753
|
type ArtifactExecutionRequirement = {
|
|
@@ -1207,8 +1223,13 @@ type AgentToolsetAttachment = {
|
|
|
1207
1223
|
loadingMode?: "static" | "dynamic";
|
|
1208
1224
|
versionPolicy?: LatestOrPinnedPolicy;
|
|
1209
1225
|
};
|
|
1226
|
+
type AgentReasoningEffort = "none" | "minimal" | "low" | "medium" | "high";
|
|
1210
1227
|
type AgentDefinitionOptions = {
|
|
1211
1228
|
toolSchemaBudgetBytes?: number | null;
|
|
1229
|
+
/** Provider-native reasoning level; omit to keep the model's own default. */
|
|
1230
|
+
reasoningEffort?: AgentReasoningEffort;
|
|
1231
|
+
/** Window context maintenance plans against; omit for the model's working window, null for its full window. */
|
|
1232
|
+
contextCompactionWindowTokens?: number | null;
|
|
1212
1233
|
name: string;
|
|
1213
1234
|
description?: string;
|
|
1214
1235
|
instructions?: string;
|
|
@@ -2607,6 +2628,7 @@ type KnowledgeStorePage = {
|
|
|
2607
2628
|
limit: number;
|
|
2608
2629
|
has_more: boolean;
|
|
2609
2630
|
view: string;
|
|
2631
|
+
metadata?: KnowledgeStorePageMetadata;
|
|
2610
2632
|
};
|
|
2611
2633
|
type KnowledgeStoreNamespace = {
|
|
2612
2634
|
name: string;
|
|
@@ -3037,6 +3059,72 @@ type ProcessingProgress = {
|
|
|
3037
3059
|
total_units: number;
|
|
3038
3060
|
capacity_wait?: CapacityWait;
|
|
3039
3061
|
};
|
|
3062
|
+
type KnowledgeStorePageMetadata = {
|
|
3063
|
+
document_count: number;
|
|
3064
|
+
chunk_count: number;
|
|
3065
|
+
backend_counts: Record<string, number>;
|
|
3066
|
+
embedding_model_counts: Record<string, number>;
|
|
3067
|
+
};
|
|
3068
|
+
type KnowledgeAccessScope = {
|
|
3069
|
+
id: string;
|
|
3070
|
+
knowledge_store_id: string;
|
|
3071
|
+
key: string;
|
|
3072
|
+
name: string;
|
|
3073
|
+
description: string | null;
|
|
3074
|
+
status: "pending" | "active";
|
|
3075
|
+
is_default: boolean;
|
|
3076
|
+
namespace: string | null;
|
|
3077
|
+
};
|
|
3078
|
+
type KnowledgeAccessScopePage = {
|
|
3079
|
+
items: Array<KnowledgeAccessScope>;
|
|
3080
|
+
total: number;
|
|
3081
|
+
enforced: boolean;
|
|
3082
|
+
partitioned: boolean;
|
|
3083
|
+
default_scope_id: string | null;
|
|
3084
|
+
pending_rescope_documents: number;
|
|
3085
|
+
namespace: string;
|
|
3086
|
+
};
|
|
3087
|
+
type KnowledgeAccessScopeCreate = {
|
|
3088
|
+
key: string;
|
|
3089
|
+
name?: string | null;
|
|
3090
|
+
description?: string | null;
|
|
3091
|
+
namespace: string;
|
|
3092
|
+
};
|
|
3093
|
+
type KnowledgeAccessScopeUpdate = {
|
|
3094
|
+
name?: string | null;
|
|
3095
|
+
description?: string | null;
|
|
3096
|
+
};
|
|
3097
|
+
type KnowledgeAccessScopeAdoption = {
|
|
3098
|
+
knowledge_store_id: string;
|
|
3099
|
+
activated_scope_id: string;
|
|
3100
|
+
baseline_scope_id: string;
|
|
3101
|
+
stamped_records: number;
|
|
3102
|
+
enforced: boolean;
|
|
3103
|
+
pending_rescope_documents: number;
|
|
3104
|
+
rescope_job_ids: Array<string>;
|
|
3105
|
+
namespace: string;
|
|
3106
|
+
};
|
|
3107
|
+
type KnowledgeContentScopeAssign = {
|
|
3108
|
+
content_id: string;
|
|
3109
|
+
scope_ids: Array<string>;
|
|
3110
|
+
namespace: string;
|
|
3111
|
+
};
|
|
3112
|
+
type KnowledgeContentScopes = {
|
|
3113
|
+
knowledge_store_id: string;
|
|
3114
|
+
content_id: string;
|
|
3115
|
+
scope_ids: Array<string>;
|
|
3116
|
+
assignment_epoch: number;
|
|
3117
|
+
index_synchronized: boolean;
|
|
3118
|
+
rescope_job_id?: string | null;
|
|
3119
|
+
namespace: string;
|
|
3120
|
+
};
|
|
3121
|
+
type KnowledgeContentScopeQuery = {
|
|
3122
|
+
contentId: string;
|
|
3123
|
+
namespace: string;
|
|
3124
|
+
};
|
|
3125
|
+
type KnowledgeAccessScopeListQuery = {
|
|
3126
|
+
namespace: string;
|
|
3127
|
+
};
|
|
3040
3128
|
|
|
3041
3129
|
declare class PipelinesNamespace {
|
|
3042
3130
|
protected readonly http: Agents24HttpClient;
|
|
@@ -3094,6 +3182,13 @@ declare class KnowledgeStoresNamespace {
|
|
|
3094
3182
|
deleteRecords(storeId: string, request: RecordDeleteRequest): Promise<RecordMutationAck>;
|
|
3095
3183
|
listNamespaces(storeId: string, options?: NamespaceListOptions): Promise<NamespacePage>;
|
|
3096
3184
|
namespaceStats(storeId: string, request: NamespaceInput): Promise<NamespaceDataStats>;
|
|
3185
|
+
listAccessScopes(storeId: string, options: KnowledgeAccessScopeListQuery): Promise<KnowledgeAccessScopePage>;
|
|
3186
|
+
createAccessScope(storeId: string, request: KnowledgeAccessScopeCreate): Promise<KnowledgeAccessScope>;
|
|
3187
|
+
adoptAccessScope(storeId: string, scopeId: string): Promise<KnowledgeAccessScopeAdoption>;
|
|
3188
|
+
updateAccessScope(storeId: string, scopeId: string, request: KnowledgeAccessScopeUpdate): Promise<KnowledgeAccessScope>;
|
|
3189
|
+
deleteAccessScope(storeId: string, scopeId: string): Promise<void>;
|
|
3190
|
+
contentScopes(storeId: string, options: KnowledgeContentScopeQuery): Promise<KnowledgeContentScopes>;
|
|
3191
|
+
assignContentScopes(storeId: string, request: KnowledgeContentScopeAssign): Promise<KnowledgeContentScopes>;
|
|
3097
3192
|
listRecordPages(storeId: string, request: RecordListRequest): AsyncGenerator<RecordPage>;
|
|
3098
3193
|
upsertRecordsBatched(storeId: string, request: RecordUpsertRequest, limits?: {
|
|
3099
3194
|
maxRecords?: number;
|
|
@@ -3128,4 +3223,4 @@ declare class Agents24 extends GeneratedIntegrationNamespaces {
|
|
|
3128
3223
|
graph(): GraphBuilder;
|
|
3129
3224
|
}
|
|
3130
3225
|
|
|
3131
|
-
export { type ControlPlaneRunEventsResponse 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 CallerAuthorityResult as H, type CallerAuthorityUpdate as I, type CallerRestrictionsResult as J, type CallerRestrictionsUpdate as K, type CallerToolRestrictions as L, type CapacityWait as M, type ClearCustomerResourcePolicyAssignmentResult as N, type ClientAuthMode as O, type ClientDeployment as P, type ClientDeploymentListQuery as Q, type RelayOptions as R, type ClientDeploymentListResponse as S, type ClientNativeProfile as T, type ClientRuntimeNativeProfileInput as U, type ClientRuntimeOidcConfig as V, type ClientRuntimePolicyInput as W, type ClientSessionCredentials as X, type ContentChunk as Y, type ContentSegment as Z, type ControlPlaneAgentRunRequest as _, type AgentCreateRequest as a, type HitlAction as a$, type ConversationRunRequest as a0, type ConversationRunResult as a1, type ConversationRuntimeSelectionRequest as a2, type ConversationRuntimeSelectionResult as a3, type ConversationSubmissionRequest as a4, type ConversationThreadOptions as a5, type CreateBackendClientSessionRequest as a6, type CreateClientDeploymentRequest as a7, type CustomerIdentityRequest as a8, type CustomerPrincipalRefRequest as a9, type EmbedResourcePolicyRequest as aA, type EmbedRunCancelOptions as aB, type EmbedRunStartRequest as aC, type EmbedRuntimeBootstrap as aD, type EmbedRuntimeBootstrapRequest as aE, type EmbedRuntimeBootstrapResult as aF, type EmbedStreamRequest as aG, type EmbedThreadMessageEdit as aH, type EmbedThreadMessageScope as aI, type EmbedThreadMessageSubmit as aJ, type EmbeddedDictationCreate as aK, type EmbeddedDictationScope as aL, type EmbeddedResponseFeedbackInput as aM, type EvidenceLocation as aN, type ExternalToolCompletionReceipt as aO, type ExternalToolCompletionRequest 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, type GraphValueRef as a_, type CustomerProfile as aa, type CustomerProfileList as ab, type CustomerProfilePatch as ac, type CustomerProfileSearchOptions as ad, type CustomerResourcePolicyAssignment as ae, type DelegationAction as af, type DelegationActionReceipt as ag, type DelegationActionRequest as ah, type DelegationEvents as ai, type DelegationHistory as aj, type DelegationHistoryTurn as ak, type DelegationStatus as al, type DelegationTask as am, type DelegationTaskList as an, type DictationCreate as ao, type DictationFeature as ap, type DictationScope as aq, type DictationSession as ar, type EffectiveCustomerResourcePolicyRequest as as, type EffectiveResourcePolicy as at, type EmbedAgentAliasResolution as au, type EmbedAttachmentContentAccessRequest as av, type EmbedCustomerPrincipalResolveRequest as aw, type EmbedCustomerPrincipalResolveResponse as ax, type EmbedDelegationOptions as ay, type EmbedDictationQuery as az, AgentDefinitionBuilder as b, type PersonalConnectionAccount as b$, type HitlAnswer as b0, type HostedArtifactDraft as b1, HostedArtifactsNamespace as b2, type IndexedCleanupAck as b3, type IndexedContent as b4, type IndexedContentListOptions as b5, type IndexedContentPage as b6, type IndexedRecordIdListOptions as b7, type IndexedRecordIdPage as b8, type IngestionBatch as b9, type LatestOrPinnedPolicy as bA, type McpAuthStartRequest as bB, type McpAuthStartResult as bC, type ModelCapabilitiesV1 as bD, type ModelOffering as bE, type ModelPricingDimension as bF, type ModelProviderCreate as bG, type ModelProviderRoute as bH, type ModelRequirements as bI, type ModelRuntimeKind as bJ, type ModelSummary as bK, ModelsNamespace as bL, type MultiAgentThreadListRequest as bM, type MultiAgentThreadSummaryEventOptions as bN, type NamespaceDataStats as bO, type NamespaceInput as bP, type NamespaceListOptions as bQ, type NamespacePage as bR, type NamespaceSummary as bS, type NativePlatform as bT, type NodeAuthoringSpec as bU, type NodeCatalogItem as bV, type NodeCatalogResponse as bW, type NodeSchemaResponse as bX, type OCROptions as bY, type PayloadAvailability as bZ, type PersonalCapabilityQuery as b_, type IngestionBatchListOptions as ba, type IngestionBatchPage as bb, type IngestionJob as bc, type IngestionJobAcknowledgment as bd, type IngestionJobGetOptions as be, type IngestionJobListOptions as bf, type IngestionJobPage as bg, type IngestionJobStart as bh, type JobFieldData as bi, type JobPayloadDownload as bj, type JobResult as bk, type JobResultOptions as bl, type JobStep as bm, type JobStepData as bn, type JobStepDataOptions as bo, type JobStepDownloadOptions as bp, type JobStepFieldOptions as bq, type JobSteps as br, type KnowledgeStore as bs, type KnowledgeStoreChunking as bt, type KnowledgeStoreCreate as bu, type KnowledgeStoreListOptions as bv, type KnowledgeStoreNamespace as bw, type KnowledgeStorePage as bx, type KnowledgeStoreStats as by, type KnowledgeStoreUpdate as bz, type AgentDefinitionOptions as c, type ResourceInstallationPlanUpload as c$, type PersonalConnectionAction as c0, type PersonalConnectionCatalog as c1, type PersonalConnectionPage as c2, type PersonalConnectionResult as c3, type PersonalConnectionService as c4, type PersonalSkillAsset as c5, type PersonalSkillAssetChange as c6, type PersonalSkillAssetContent as c7, type PersonalSkillAssetInput as c8, type PersonalSkillAssetQuery as c9, type RecordBatchResult as cA, type RecordCapabilities as cB, type RecordDeleteRequest as cC, type RecordFetchRequest as cD, type RecordFetchResult as cE, type RecordListRequest as cF, type RecordMutationAck as cG, type RecordPage as cH, type RecordQueryRequest as cI, type RecordQueryResult as cJ, type RecordUpdateRequest as cK, type RecordUpsertRequest as cL, type RequestOptions as cM, type ResetResourcePolicyQuotaRequest as cN, type ResourceCallableBinding as cO, type ResourceCallableBindingStatus as cP, type ResourceCandidateList as cQ, type ResourceInstallation as cR, type ResourceInstallationApplication as cS, type ResourceInstallationApplyRequest as cT, type ResourceInstallationBinding as cU, type ResourceInstallationCreateRequest as cV, type ResourceInstallationDeploymentRequest as cW, type ResourceInstallationLinkRequest as cX, type ResourceInstallationList as cY, type ResourceInstallationOperation as cZ, type ResourceInstallationPlan as c_, type PersonalSkillImport as ca, type PersonalSkillPage as cb, type PersonalSkillRecord as cc, type PersonalSkillSave as cd, type PersonalSkillSelection as ce, type PersonalSkillState as cf, type PersonalSkillVersion as cg, type PipelineInputField as ch, type PipelineInputSchema as ci, type PipelineInputStep as cj, type PipelineInputUpload as ck, type PipelineListOptions as cl, type PipelinePage as cm, type PipelineResultPage as cn, type PipelineSummary as co, type PortableResourceKind as cp, type ProcessedContent as cq, type ProcessedContentOptions as cr, type ProcessedContentReference as cs, type ProcessingInput as ct, type ProcessingInputSource as cu, type ProcessingProgress as cv, type PublishedExecutable as cw, type RagRetention as cx, type RawVectorMatch as cy, type RawVectorRecord as cz, type AgentListResponse as d, type TraceSpanStatus as d$, type ResourceInstallationPublication as d0, type ResourceInstallationPublishRequest as d1, type ResourceInstallationPullAcceptRequest as d2, type ResourceInstallationPullChange as d3, type ResourceInstallationPullPayload as d4, type ResourceInstallationPullPlan as d5, type ResourceInstallationResourceListOptions as d6, type ResourceInstallationSecretStatus as d7, type ResourceInstallationSecretsRequest as d8, type ResourcePackageArchive as d9, type RunTrace as dA, type RunUsage as dB, type RuntimeSubmissionResponse as dC, type ServerAttachmentUploadOptions as dD, type ServerEmbedAttachmentUploadOptions as dE, type SetCustomerResourcePolicyAssignmentRequest as dF, type SetResourcePolicyQuotaScheduleRequest as dG, type SourceDescriptor as dH, type SourceOutcome as dI, type StartRunResult as dJ, type StateVariableDefinition as dK, type StreamRequestOptions as dL, type StreamResult as dM, type ThreadComputerContentAccess as dN, type ThreadComputerFile as dO, type ThreadComputerFileOptions as dP, type ThreadComputerFileText as dQ, type ThreadComputerFiles as dR, type ThreadComputerStatus as dS, type ThreadDeleteOptions as dT, type ThreadDetailOptions as dU, type ThreadListOptions as dV, type ThreadSummaryEventOptions as dW, type TraceContent as dX, type TraceError as dY, type TraceSpan as dZ, type TraceSpanKind as d_, type ResourcePackageCandidateOptions as da, type ResourcePackageDependency as db, type ResourcePackageDiagnostic as dc, type ResourcePackageExportPlan as dd, type ResourcePackageExportRequest as de, type ResourcePackageImportPreview as df, type ResourcePackageImportResult as dg, type ResourcePackageImportUpload as dh, type ResourcePackageUpload as di, type ResourcePackageValidationResult as dj, type ResourcePolicyList as dk, type ResourcePolicyQuotaSchedule as dl, type ResourcePolicyQuotaScheduleResult as dm, type ResourcePolicySubjectRef as dn, type ResourcePolicySummary as dp, type ResourceSelector as dq, type ResourceToolExport as dr, type ResponseFeedback as ds, type ResponseFeedbackResult as dt, type ResumeRunRequest as du, type RetrievalEvidence as dv, type RunCancelOptions as dw, type RunContextOptions as dx, type RunExecutionLimits as dy, type RunStatus as dz, type AgentRef as e, type TraceView as e0, type UpdateClientDeploymentRequest as e1, type UploadPart as e2, type UploadPartAck as e3, type UploadSession as e4, type UploadSessionStart as e5, type WaitForAgentRunOptions as e6, type WorkflowInputDefinition as e7, 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 };
|
|
3226
|
+
export { type ControlPlaneAgentRunRequest as $, Agents24 as A, type ArtifactRelayOptionsQuery as B, type ArtifactRelayTicketRequest as C, type AttachRunRequest as D, type EmbeddedRunSnapshot as E, type AttachmentContentAccessRequest as F, type BackendSessionRequestOptions as G, type BranchingHint as H, type CallerAuthorityResult as I, type CallerAuthorityUpdate as J, type CallerRestrictionsResult as K, type CallerRestrictionsUpdate as L, type CallerToolRestrictions as M, type CapacityWait as N, type ClearCustomerResourcePolicyAssignmentResult as O, type ClientAuthMode as P, type ClientDeployment as Q, type RelayOptions as R, type ClientDeploymentListQuery as S, type ClientDeploymentListResponse as T, type ClientNativeProfile as U, type ClientRuntimeNativeProfileInput as V, type ClientRuntimeOidcConfig as W, type ClientRuntimePolicyInput as X, type ClientSessionCredentials as Y, type ContentChunk as Z, type ContentSegment as _, type AgentCreateRequest as a, type GraphValueRef as a$, type ControlPlaneRunEventsResponse as a0, type ConversationRunRequest as a1, type ConversationRunResult as a2, type ConversationRuntimeSelectionRequest as a3, type ConversationRuntimeSelectionResult as a4, type ConversationSubmissionRequest as a5, type ConversationThreadOptions as a6, type CreateBackendClientSessionRequest as a7, type CreateClientDeploymentRequest as a8, type CustomerIdentityRequest as a9, type EmbedDictationQuery as aA, type EmbedResourcePolicyRequest as aB, type EmbedRunCancelOptions as aC, type EmbedRunStartRequest as aD, type EmbedRuntimeBootstrap as aE, type EmbedRuntimeBootstrapRequest as aF, type EmbedRuntimeBootstrapResult as aG, type EmbedStreamRequest as aH, type EmbedThreadMessageEdit as aI, type EmbedThreadMessageScope as aJ, type EmbedThreadMessageSubmit as aK, type EmbeddedDictationCreate as aL, type EmbeddedDictationScope as aM, type EmbeddedResponseFeedbackInput as aN, type EvidenceLocation as aO, type ExternalToolCompletionReceipt as aP, type ExternalToolCompletionRequest as aQ, type FailureCategory as aR, type FailureView as aS, type FeedbackRating as aT, type FeedbackReason as aU, type FileAssetReference as aV, GraphBuilder as aW, type GraphDefinition as aX, type GraphEdge as aY, type GraphHints as aZ, type GraphNode as a_, type CustomerPrincipalRefRequest as aa, type CustomerProfile as ab, type CustomerProfileList as ac, type CustomerProfilePatch as ad, type CustomerProfileSearchOptions as ae, type CustomerResourcePolicyAssignment as af, type DelegationAction as ag, type DelegationActionReceipt as ah, type DelegationActionRequest as ai, type DelegationEvents as aj, type DelegationHistory as ak, type DelegationHistoryTurn as al, type DelegationStatus as am, type DelegationTask as an, type DelegationTaskList as ao, type DictationCreate as ap, type DictationFeature as aq, type DictationScope as ar, type DictationSession as as, type EffectiveCustomerResourcePolicyRequest as at, type EffectiveResourcePolicy as au, type EmbedAgentAliasResolution as av, type EmbedAttachmentContentAccessRequest as aw, type EmbedCustomerPrincipalResolveRequest as ax, type EmbedCustomerPrincipalResolveResponse as ay, type EmbedDelegationOptions as az, AgentDefinitionBuilder as b, type NamespaceListOptions as b$, type HitlAction as b0, type HitlAnswer as b1, type HostedArtifactDraft as b2, HostedArtifactsNamespace as b3, type IndexedCleanupAck as b4, type IndexedContent as b5, type IndexedContentListOptions as b6, type IndexedContentPage as b7, type IndexedRecordIdListOptions as b8, type IndexedRecordIdPage as b9, type KnowledgeContentScopeQuery as bA, type KnowledgeContentScopes as bB, type KnowledgeStore as bC, type KnowledgeStoreChunking as bD, type KnowledgeStoreCreate as bE, type KnowledgeStoreListOptions as bF, type KnowledgeStoreNamespace as bG, type KnowledgeStorePage as bH, type KnowledgeStorePageMetadata as bI, type KnowledgeStoreStats as bJ, type KnowledgeStoreUpdate as bK, type LatestOrPinnedPolicy as bL, type McpAuthStartRequest as bM, type McpAuthStartResult as bN, type ModelCapabilitiesV1 as bO, type ModelOffering as bP, type ModelPricingDimension as bQ, type ModelProviderCreate as bR, type ModelProviderRoute as bS, type ModelRequirements as bT, type ModelRuntimeKind as bU, type ModelSummary as bV, ModelsNamespace as bW, type MultiAgentThreadListRequest as bX, type MultiAgentThreadSummaryEventOptions as bY, type NamespaceDataStats as bZ, type NamespaceInput as b_, type IngestionBatch as ba, type IngestionBatchListOptions as bb, type IngestionBatchPage as bc, type IngestionJob as bd, type IngestionJobAcknowledgment as be, type IngestionJobGetOptions as bf, type IngestionJobListOptions as bg, type IngestionJobPage as bh, type IngestionJobStart as bi, type JobFieldData as bj, type JobPayloadDownload as bk, type JobResult as bl, type JobResultOptions as bm, type JobStep as bn, type JobStepData as bo, type JobStepDataOptions as bp, type JobStepDownloadOptions as bq, type JobStepFieldOptions as br, type JobSteps as bs, type KnowledgeAccessScope as bt, type KnowledgeAccessScopeAdoption as bu, type KnowledgeAccessScopeCreate as bv, type KnowledgeAccessScopeListQuery as bw, type KnowledgeAccessScopePage as bx, type KnowledgeAccessScopeUpdate as by, type KnowledgeContentScopeAssign as bz, type AgentDefinitionOptions as c, type ResourceCandidateList as c$, type NamespacePage as c0, type NamespaceSummary as c1, type NativePlatform as c2, type NodeAuthoringSpec as c3, type NodeCatalogItem as c4, type NodeCatalogResponse as c5, type NodeSchemaResponse as c6, type OCROptions as c7, type PayloadAvailability as c8, type PersonalCapabilityQuery as c9, type PortableResourceKind as cA, type ProcessedContent as cB, type ProcessedContentOptions as cC, type ProcessedContentReference as cD, type ProcessingInput as cE, type ProcessingInputSource as cF, type ProcessingProgress as cG, type PublishedExecutable as cH, type RagRetention as cI, type RawVectorMatch as cJ, type RawVectorRecord as cK, type RecordBatchResult as cL, type RecordCapabilities as cM, type RecordDeleteRequest as cN, type RecordFetchRequest as cO, type RecordFetchResult as cP, type RecordListRequest as cQ, type RecordMutationAck as cR, type RecordPage as cS, type RecordQueryRequest as cT, type RecordQueryResult as cU, type RecordUpdateRequest as cV, type RecordUpsertRequest as cW, type RequestOptions as cX, type ResetResourcePolicyQuotaRequest as cY, type ResourceCallableBinding as cZ, type ResourceCallableBindingStatus as c_, type PersonalConnectionAccount as ca, type PersonalConnectionAction as cb, type PersonalConnectionCatalog as cc, type PersonalConnectionPage as cd, type PersonalConnectionResult as ce, type PersonalConnectionService as cf, type PersonalSkillAsset as cg, type PersonalSkillAssetChange as ch, type PersonalSkillAssetContent as ci, type PersonalSkillAssetInput as cj, type PersonalSkillAssetQuery as ck, type PersonalSkillImport as cl, type PersonalSkillPage as cm, type PersonalSkillRecord as cn, type PersonalSkillSave as co, type PersonalSkillSelection as cp, type PersonalSkillState as cq, type PersonalSkillVersion as cr, type PipelineInputField as cs, type PipelineInputSchema as ct, type PipelineInputStep as cu, type PipelineInputUpload as cv, type PipelineListOptions as cw, type PipelinePage as cx, type PipelineResultPage as cy, type PipelineSummary as cz, type AgentListResponse as d, type ThreadComputerFileText as d$, type ResourceInstallation as d0, type ResourceInstallationApplication as d1, type ResourceInstallationApplyRequest as d2, type ResourceInstallationBinding as d3, type ResourceInstallationCreateRequest as d4, type ResourceInstallationDeploymentRequest as d5, type ResourceInstallationLinkRequest as d6, type ResourceInstallationList as d7, type ResourceInstallationOperation as d8, type ResourceInstallationPlan as d9, type ResourcePolicySummary as dA, type ResourceSelector as dB, type ResourceToolExport as dC, type ResponseFeedback as dD, type ResponseFeedbackResult as dE, type ResumeRunRequest as dF, type RetrievalEvidence as dG, type RunCancelOptions as dH, type RunContextOptions as dI, type RunExecutionLimits as dJ, type RunStatus as dK, type RunTrace as dL, type RunUsage as dM, type RuntimeSubmissionResponse as dN, type ServerAttachmentUploadOptions as dO, type ServerEmbedAttachmentUploadOptions as dP, type SetCustomerResourcePolicyAssignmentRequest as dQ, type SetResourcePolicyQuotaScheduleRequest as dR, type SourceDescriptor as dS, type SourceOutcome as dT, type StartRunResult as dU, type StateVariableDefinition as dV, type StreamRequestOptions as dW, type StreamResult as dX, type ThreadComputerContentAccess as dY, type ThreadComputerFile as dZ, type ThreadComputerFileOptions as d_, type ResourceInstallationPlanUpload as da, type ResourceInstallationPublication as db, type ResourceInstallationPublishRequest as dc, type ResourceInstallationPullAcceptRequest as dd, type ResourceInstallationPullChange as de, type ResourceInstallationPullPayload as df, type ResourceInstallationPullPlan as dg, type ResourceInstallationResourceListOptions as dh, type ResourceInstallationSecretStatus as di, type ResourceInstallationSecretsRequest as dj, type ResourcePackageArchive as dk, type ResourcePackageCandidateOptions as dl, type ResourcePackageDependency as dm, type ResourcePackageDiagnostic as dn, type ResourcePackageExportPlan as dp, type ResourcePackageExportRequest as dq, type ResourcePackageImportPreview as dr, type ResourcePackageImportResult as ds, type ResourcePackageImportUpload as dt, type ResourcePackageUpload as du, type ResourcePackageValidationResult as dv, type ResourcePolicyList as dw, type ResourcePolicyQuotaSchedule as dx, type ResourcePolicyQuotaScheduleResult as dy, type ResourcePolicySubjectRef as dz, type AgentReasoningEffort as e, type ThreadComputerFiles as e0, type ThreadComputerStatus as e1, type ThreadDeleteOptions as e2, type ThreadDetailOptions as e3, type ThreadListOptions as e4, type ThreadSummaryEventOptions as e5, type TraceContent as e6, type TraceError as e7, type TraceSpan as e8, type TraceSpanKind as e9, type TraceSpanStatus as ea, type TraceView as eb, type UpdateClientDeploymentRequest as ec, type UploadPart as ed, type UploadPartAck as ee, type UploadSession as ef, type UploadSessionStart as eg, type WaitForAgentRunOptions as eh, type WorkflowInputDefinition as ei, type AgentRef as f, type AgentResponse as g, type AgentStreamRequest as h, type AgentSummary as i, type AgentToolsetAttachment as j, type AgentUpdateRequest as k, type AgentValidationIssue as l, type AgentValidationResult as m, Agents24SDKError as n, type Agents24NodeErrorKind as o, type Agents24NodeOptions as p, type Agents24Options as q, type Agents24SDKErrorKind as r, type Agents24SDKSerializedError as s, type ArtifactDevelopmentSession as t, type ArtifactDevelopmentSessionAdmission as u, type ArtifactDevelopmentSessionPrepareRequest as v, type ArtifactRelayClientCreate as w, type ArtifactRelayClientList as x, type ArtifactRelayClientStatus as y, type ArtifactRelayConnectionTicket as z };
|
package/dist/index.cjs
CHANGED
|
@@ -386,6 +386,8 @@ function toolsetAttachments(options) {
|
|
|
386
386
|
return [normalized];
|
|
387
387
|
});
|
|
388
388
|
}
|
|
389
|
+
var REASONING_EFFORTS = ["none", "minimal", "low", "medium", "high"];
|
|
390
|
+
var MINIMUM_COMPACTION_WINDOW_TOKENS = 8192;
|
|
389
391
|
var AgentDefinitionBuilder = class {
|
|
390
392
|
constructor(agents, options) {
|
|
391
393
|
this.agents = agents;
|
|
@@ -407,6 +409,19 @@ var AgentDefinitionBuilder = class {
|
|
|
407
409
|
}
|
|
408
410
|
agentConfig.tool_schema_budget_bytes = budget;
|
|
409
411
|
}
|
|
412
|
+
if (this.options.reasoningEffort !== void 0) {
|
|
413
|
+
if (!REASONING_EFFORTS.includes(this.options.reasoningEffort)) {
|
|
414
|
+
throw new TypeError(`reasoningEffort must be one of ${REASONING_EFFORTS.join(", ")}`);
|
|
415
|
+
}
|
|
416
|
+
agentConfig.reasoning_effort = this.options.reasoningEffort;
|
|
417
|
+
}
|
|
418
|
+
if (this.options.contextCompactionWindowTokens !== void 0) {
|
|
419
|
+
const window = this.options.contextCompactionWindowTokens;
|
|
420
|
+
if (window !== null && (!Number.isSafeInteger(window) || window < MINIMUM_COMPACTION_WINDOW_TOKENS)) {
|
|
421
|
+
throw new TypeError(`contextCompactionWindowTokens must be an integer of at least ${MINIMUM_COMPACTION_WINDOW_TOKENS} or null`);
|
|
422
|
+
}
|
|
423
|
+
agentConfig.context_compaction_window_tokens = window;
|
|
424
|
+
}
|
|
410
425
|
if (this.options.model) agentConfig.model_id = refId(this.options.model);
|
|
411
426
|
return {
|
|
412
427
|
spec_version: "4.0",
|
|
@@ -873,13 +888,14 @@ var EmbedNamespace2 = class extends EmbedNamespace {
|
|
|
873
888
|
}
|
|
874
889
|
namespacePayload(payload) {
|
|
875
890
|
if (!payload || typeof payload !== "object") return payload;
|
|
876
|
-
const { knowledgeNamespaces, chatScope, customerTenant, requestedOutputs, dictationSessionId, ...wire } = payload;
|
|
891
|
+
const { knowledgeNamespaces, knowledgeAccessScopes, chatScope, customerTenant, requestedOutputs, dictationSessionId, ...wire } = payload;
|
|
877
892
|
return {
|
|
878
893
|
...wire,
|
|
879
894
|
...dictationSessionId === void 0 ? {} : { dictation_session_id: dictationSessionId },
|
|
880
895
|
...requestedOutputs === void 0 ? {} : { requested_outputs: requestedOutputs },
|
|
881
896
|
...customerTenant === void 0 ? {} : { customer_tenant: customerTenant },
|
|
882
897
|
...knowledgeNamespaces === void 0 ? {} : { knowledge_namespaces: knowledgeNamespaces },
|
|
898
|
+
...knowledgeAccessScopes === void 0 ? {} : { knowledge_access_scopes: knowledgeAccessScopes },
|
|
883
899
|
...chatScope === void 0 ? {} : { chat_scope: chatScope }
|
|
884
900
|
};
|
|
885
901
|
}
|
|
@@ -1015,6 +1031,7 @@ var EmbedNamespace2 = class extends EmbedNamespace {
|
|
|
1015
1031
|
attachment_ids: payload.attachmentIds ?? [],
|
|
1016
1032
|
requested_model_id: payload.requestedModelId,
|
|
1017
1033
|
knowledge_namespaces: payload.knowledgeNamespaces,
|
|
1034
|
+
knowledge_access_scopes: payload.knowledgeAccessScopes,
|
|
1018
1035
|
customer_tenant: payload.customerTenant,
|
|
1019
1036
|
...payload.trustedContext === void 0 ? {} : { trusted_context: payload.trustedContext },
|
|
1020
1037
|
execution_limits: payload.executionLimits,
|
|
@@ -2158,6 +2175,49 @@ var KnowledgeStoresNamespace = class {
|
|
|
2158
2175
|
body: request
|
|
2159
2176
|
});
|
|
2160
2177
|
}
|
|
2178
|
+
listAccessScopes(storeId, options) {
|
|
2179
|
+
return this.http.requestJson(`/admin/knowledge-stores/${encodeURIComponent(storeId)}/access-scopes`, {
|
|
2180
|
+
query: {
|
|
2181
|
+
namespace: options.namespace
|
|
2182
|
+
}
|
|
2183
|
+
});
|
|
2184
|
+
}
|
|
2185
|
+
createAccessScope(storeId, request) {
|
|
2186
|
+
return this.http.requestJson(`/admin/knowledge-stores/${encodeURIComponent(storeId)}/access-scopes`, {
|
|
2187
|
+
method: "POST",
|
|
2188
|
+
body: request
|
|
2189
|
+
});
|
|
2190
|
+
}
|
|
2191
|
+
adoptAccessScope(storeId, scopeId) {
|
|
2192
|
+
return this.http.requestJson(`/admin/knowledge-stores/${encodeURIComponent(storeId)}/access-scopes/${encodeURIComponent(scopeId)}/adopt`, {
|
|
2193
|
+
method: "POST"
|
|
2194
|
+
});
|
|
2195
|
+
}
|
|
2196
|
+
updateAccessScope(storeId, scopeId, request) {
|
|
2197
|
+
return this.http.requestJson(`/admin/knowledge-stores/${encodeURIComponent(storeId)}/access-scopes/${encodeURIComponent(scopeId)}`, {
|
|
2198
|
+
method: "PATCH",
|
|
2199
|
+
body: request
|
|
2200
|
+
});
|
|
2201
|
+
}
|
|
2202
|
+
deleteAccessScope(storeId, scopeId) {
|
|
2203
|
+
return this.http.requestJson(`/admin/knowledge-stores/${encodeURIComponent(storeId)}/access-scopes/${encodeURIComponent(scopeId)}`, {
|
|
2204
|
+
method: "DELETE"
|
|
2205
|
+
});
|
|
2206
|
+
}
|
|
2207
|
+
contentScopes(storeId, options) {
|
|
2208
|
+
return this.http.requestJson(`/admin/knowledge-stores/${encodeURIComponent(storeId)}/content-scopes`, {
|
|
2209
|
+
query: {
|
|
2210
|
+
namespace: options.namespace,
|
|
2211
|
+
content_id: options.contentId
|
|
2212
|
+
}
|
|
2213
|
+
});
|
|
2214
|
+
}
|
|
2215
|
+
assignContentScopes(storeId, request) {
|
|
2216
|
+
return this.http.requestJson(`/admin/knowledge-stores/${encodeURIComponent(storeId)}/content-scopes`, {
|
|
2217
|
+
method: "PUT",
|
|
2218
|
+
body: request
|
|
2219
|
+
});
|
|
2220
|
+
}
|
|
2161
2221
|
listRecordPages(storeId, request) {
|
|
2162
2222
|
return recordPages(this, storeId, request);
|
|
2163
2223
|
}
|
|
@@ -2375,9 +2435,14 @@ var SDK_OPERATION_IDS = [
|
|
|
2375
2435
|
"ingestionJobs.start",
|
|
2376
2436
|
"ingestionJobs.upload_input",
|
|
2377
2437
|
"instructions.publish",
|
|
2438
|
+
"knowledgeStores.adoptAccessScope",
|
|
2378
2439
|
"knowledgeStores.archive",
|
|
2440
|
+
"knowledgeStores.assignContentScopes",
|
|
2379
2441
|
"knowledgeStores.cancel_cleanup_job",
|
|
2442
|
+
"knowledgeStores.contentScopes",
|
|
2380
2443
|
"knowledgeStores.create",
|
|
2444
|
+
"knowledgeStores.createAccessScope",
|
|
2445
|
+
"knowledgeStores.deleteAccessScope",
|
|
2381
2446
|
"knowledgeStores.delete_indexed_content",
|
|
2382
2447
|
"knowledgeStores.delete_records",
|
|
2383
2448
|
"knowledgeStores.fetch_records",
|
|
@@ -2385,6 +2450,7 @@ var SDK_OPERATION_IDS = [
|
|
|
2385
2450
|
"knowledgeStores.get_cleanup_job",
|
|
2386
2451
|
"knowledgeStores.get_indexed_content",
|
|
2387
2452
|
"knowledgeStores.list",
|
|
2453
|
+
"knowledgeStores.listAccessScopes",
|
|
2388
2454
|
"knowledgeStores.list_indexed_content",
|
|
2389
2455
|
"knowledgeStores.list_indexed_record_ids",
|
|
2390
2456
|
"knowledgeStores.list_namespaces",
|
|
@@ -2394,6 +2460,7 @@ var SDK_OPERATION_IDS = [
|
|
|
2394
2460
|
"knowledgeStores.resume_cleanup_job",
|
|
2395
2461
|
"knowledgeStores.stats",
|
|
2396
2462
|
"knowledgeStores.update",
|
|
2463
|
+
"knowledgeStores.updateAccessScope",
|
|
2397
2464
|
"knowledgeStores.update_record",
|
|
2398
2465
|
"knowledgeStores.upsert_records",
|
|
2399
2466
|
"pipelines.get",
|