Capability first · transport second

OllamaSettings.js

Defines bounded runtime/service preference schemas and deterministic Arcane brain alias names.

SDK 0.5.18Runtime 0.8.12Protocol arcane/1
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

JavaScript
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

BindingFormDeclaration or signatureParameter syntax
ollamaRuntimeSchemavariable · valuevariable ollamaRuntimeSchema
ollamaServiceSchemavariable · valuevariable ollamaServiceSchema
arcaneBrainModelNamefunctionfunction arcaneBrainModelName(name='')name=''
CallableKindExact public signatureParameter syntax
arcaneBrainModelNameexported-functionfunction 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

JavaScript
import {arcaneBrainModelName} from '/arcane/modules/OllamaSettings.js';

console.log(arcaneBrainModelName('My Research Brain'));

No direct Core call is claimed for this artifact. Any injected provider or consuming module retains its own documented authority.