Capability first · transport second

OllamaModelIdentifier.js

Validates and canonicalizes the syntax of Ollama model identifiers without granting model admission.

SDK 0.5.18Runtime 0.8.12Protocol arcane/1
On this page

Overview

Validates and canonicalizes the syntax of Ollama model identifiers without granting model admission.

  • Artifact
    OllamaModelIdentifier.js · esm
  • Classification
    public first party
  • Availability
    Cross-host
  • Normalization
    Fully normalized string/boolean result.

Import and lifecycle

JavaScript
import * as module from '/arcane/modules/OllamaModelIdentifier.js';

Pure syntax normalization; does not test installation, admission, ownership, or hardware.

Application-facing behavior: normalizeOllamaModelIdentifier(), isOllamaModelIdentifier().

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
normalizeOllamaModelIdentifierfunctionfunction normalizeOllamaModelIdentifier(value)value
isOllamaModelIdentifierfunctionfunction isOllamaModelIdentifier(value)value
CallableKindExact public signatureParameter syntax
normalizeOllamaModelIdentifierexported-functionfunction normalizeOllamaModelIdentifier(value)value
isOllamaModelIdentifierexported-functionfunction isOllamaModelIdentifier(value)value

Parameter meanings and results

normalizeOllamaModelIdentifier(value) returns the exact trimmed identifier or null; isOllamaModelIdentifier(value) returns boolean. The cloud default-model sentinel TWIN and malformed/over-limit identifiers are rejected.

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

No additional module-specific rejection behavior is documented.

Availability and capabilities

Cross-host. Fully normalized string/boolean result.

None.

Contract example

JavaScript
import {normalizeOllamaModelIdentifier} from '/arcane/modules/OllamaModelIdentifier.js';

console.log(normalizeOllamaModelIdentifier('llama3.2:latest'));

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