StaticcreateStaticdeleteDelete an AEC library and its indexed files.
The service does NOT delete the library's global retriever action (GenAiFunctionDefinition,
ExpressContextLibrarySummary.retrieverAction). Callers that created or wired that action must
remove it themselves, or it is left behind pointing at a library that no longer exists.
StaticdeleteStaticgetStaticlistStaticlistOptionaloptions: { name?: string; offset?: number; pageSize?: number; status?: string }StaticstatusStaticuploadUpload one or more files into an AEC library.
Three steps, all verified live on v68: request presigned URLs → PUT the bytes to storage →
POST {id}/indexing to register the files and start indexing. All files are validated (unique
names, size limit) before any network call. If any storage PUT fails, nothing is registered and
the thrown StorageUploadFailed error's data lists which files landed in storage and which
failed. Indexing completes asynchronously; poll AgentExpressContext.status for progress.
filePaths are read from the local file system as given; pass only paths the caller trusts.
Client for the Agentforce Express Context (AEC) Connect API.
Mirrors AgentDataLibrary (and shares its presigned-upload helpers) but targets
/einstein/aec-libraries. AEC bypasses the Data Cloud pipeline (realtime BM25 index), so it exposes a smaller surface: no upload readiness gate, no multi-stage provisioning, no data-space scope.Endpoint confidence (verified live on an AEC-enabled org, API v68, 2026-09-29): GET list / {id} / {id}/status, POST {id}/file-upload-urls, POST {id} create, and the upload flow (file-upload-urls → PUT to S3 → POST {id}/indexing). NOTE: the file register/index step is POST {id}/indexing, NOT POST {id}/files — the latter returns INVALID_REQUEST_STATE. Min API version is v67.0; lower versions 404. Requires the org perm EinsteinKnowledgeConfig and a CDPServiceTenant record. DELETE {id} verified 2026-10-07 — it does NOT delete the library's global retriever action GenAiFunctionDefinition; callers must remove it.