Activation
Quickstart
Primordial.checkIntegration()
Evaluation
Primordial.activate(.evaluationKey("pk_eval_..."))
Production
Primordial.activate(.license(.bundled("Primordial.license")))
Client And Configuration
PrimordialClient
integrationStatus()localLLM(configuration:)voiceModelManager()voiceRecorder(localeIdentifier:modelManager:)
PrimordialConfiguration
defaultLLMConfigurationdefaultVoiceLocaleIdentifier
PrimordialIntegrationStatus
sdkVersionplatformisSimulator
Local LLM
PrimordialMLXLLM
downloadloaddownloadAndLoadgeneratestreamunloadremoveDownloadedModel
PrimordialMLXModelConfiguration
.qwen3_1_7B4Bit.bonsai8B1BitmaxTokenstemperaturecapabilities
PrimordialLLMMessage
Chat input roles:
.system.user.assistant
Download And Generation Payloads
PrimordialLLMDownloadProgress
fractionCompletedstatuscurrentFilenamedownloadedBytestotalBytesbytesPerSecond
PrimordialDownloadOptions
.default.withoutStorageCheckstorageSafetyMarginFractionminimumStorageSafetyMarginBytes
Generation Results
PrimordialLLMGenerationResult returns final text. PrimordialLLMGenerationChunk powers streaming.
Voice
PrimordialVoiceModelManager
downloadloaddownloadAndLoadisReadyremoveDownloadedModel
PrimordialVoiceRecorder
requestAuthorizationstartRecordingstopRecordingpauseRecordingresumeRecordingupdates
Voice Updates
PrimordialTranscriptionUpdate and PrimordialVoiceRecordingResult expose transcripts and captured audio.
Errors
PrimordialLLMError
modelNotDownloadedmodelNotLoadedinsufficientStoragedownloadFailedgenerationFailed
PrimordialVoiceError
modelNotDownloadedspeechPermissionDeniedmicrophonePermissionDeniedaudioCaptureFailed
PrimordialError
activationRequiredevaluationKeyInvalidlicenseMissinglicenseInvalidSignaturelicenseWrongAppIdlicenseExpiredfeatureNotLicensed