On this page
Overview
Defines bounded runtime/service preference schemas and deterministic Arcane brain alias names.
- Artifact
OllamaSettings.js· esm - Classification
public first party - Availability
Cross-host - Normalization
Fully normalized settings/name contract.
Import and lifecycle
import * as module from '/arcane/modules/OllamaSettings.js';
Schema construction occurs at import; otherwise pure and performs no persistence or service mutation.
Application-facing behavior: ollamaRuntimeSchema, ollamaServiceSchema, arcaneBrainModelName().
Protocol and host implementation
In-process only This detail does not widen the application-facing API or grant authority.
Exports, signatures, parameters, and results
| Binding | Form | Declaration or signature | Parameter syntax |
|---|---|---|---|
ollamaRuntimeSchema | variable · value | variable ollamaRuntimeSchema | — |
ollamaServiceSchema | variable · value | variable ollamaServiceSchema | — |
arcaneBrainModelName | function | function arcaneBrainModelName(name='') | name='' |
| Callable | Kind | Exact public signature | Parameter syntax |
|---|---|---|---|
arcaneBrainModelName | exported-function | function arcaneBrainModelName(name='') | name='' |
Parameter meanings and results
ollamaRuntimeSchema defines bootLoad, bootKeepAlive, and contextLength. ollamaServiceSchema defines contextLength, keepAlive, maxLoadedModels, numParallel, maxQueue, flashAttention, kvCacheType, and noCloud. arcaneBrainModelName(name) returns arcane-<64-character-slug>:latest.
Events, side effects, and errors
Source-literal CustomEvent dispatches
No source-literal CustomEvent dispatch is part of this artifact.
Lifecycle and event flow
This artifact has no additional documented lifecycle event flow.
Direct coded failures
This artifact directly assigns no stable coded failure.
Exported Error subclasses
This artifact exports no Error subclass.
Documented failure behavior
- TypeError from arcaneBrainModelName() when no slug remains.
- Preference schema validation errors.
Availability and capabilities
Cross-host. Fully normalized settings/name contract.
None by itself; consumers that save runtime/service settings use ai.settings.manage, with Settings-only and privileged/exclusive restrictions where documented.
Contract example
import {arcaneBrainModelName} from '/arcane/modules/OllamaSettings.js';
console.log(arcaneBrainModelName('My Research Brain'));
Related reference
No direct Core call is claimed for this artifact. Any injected provider or consuming module retains its own documented authority.