Quick Start
AI Core is consumed as released runtime artifacts and tools. SDK users should not need the source tree to run packages, call models, or use local speech/LLM support.
Pick A Boundary
- Use Language Bindings when the host loads the AI Core shared library.
- Use Process Host CLI when the host wants a long-lived
ai-coresubprocess worker. - Use the Rust SDK artifact when the host embeds AI Core directly.
- Use AI Packages when you need to build or sign
.aipplugin and pipeline packages.
First Runtime Call
- Start from an AI Core artifact that matches your platform, version, and trust mode.
- Apply model, plugin, secret-reference, speech, and local LLM config.
- Load license material if you use normal marketplace packages.
- Install package bytes with
ai_core_install_package_bytesor the equivalent process/Rust boundary. - Start a pipeline, resume a checkpoint, run a known Wasm action, or call a configured model directly.
- Store pipeline state, step outputs, user decisions, and product records in the host.
What The Host Stores
Store these values outside AI Core:
- model endpoints and selected routing/default model slots;
- explicit local
.ggufand Whisper model paths; - plugin model-slot bindings;
- public plugin config and secret references;
- actual secret values in Keychain, Keystore, KMS, Vault, Kubernetes secrets, or another host-owned store;
- package bytes or package provenance;
- pipeline state, completed step outputs, and user approvals;
- license material and private KEM keys for normal marketplace packages.
AI Core keeps live runtime state in memory. It does not own durable product storage.
Common Operations
Install And Run A Pipeline
- Receive or build a
.aippackage that matchesrequirements.corefor this runtime version. - Apply model and plugin config.
- Load license material if the package is an encrypted marketplace package.
- Install package bytes.
- Start the pipeline with
run_id,task_id,plugin_id, anduser_text. - If AI Core returns a checkpoint, ask the user for the missing data or approval and resume with
state,previous_outputs, andcontrol.
Call A Model Directly
- Configure a model endpoint with a stable
model_id. - Apply config.
- Call
ai_core_model_chat_jsonor the matching process/Rust API with thatmodel_id, messages, response format, and optional token limit.
Run A Known Wasm Action
- Install a Wasm plugin package.
- Call the action by
plugin_idand fully qualifiedaction_id. - Process returned action output, events, and queued host calls.
Local Capabilities
Local speech-to-text requires a runtime artifact that includes the native Whisper provider and a compatible ggml-large-v3-turbo.bin model file.
Local LLM requires a runtime artifact that includes the native local LLM provider and an explicit .gguf model path. AI Core does not scan model directories for the host.
Error Handling
FFI functions return a JSON envelope. Treat ok: false as a failed call and use error.code plus error.message for host logs and UI diagnostics. Do not assume partial output is valid after a failed call.