contract/

directory
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 3, 2026 License: MIT

README

Intelligence resources

src/ctn/contract retains its published Go intelligence contracts. Native model libraries live in each platform package's int/model; provider guests live in xallet.app/tab/coreml and xallet.app/tab/onnxruntime. Applications choose providers, models, credentials, roots, and authorization policy.

Package Scope
model Go model contracts and verified bundles; Core ML, Android and .NET backends are in pkg/ext-darwin, pkg/ext-android and pkg/ext-windows under int/model
inference Generation, embeddings, transcription, speech, and provider contracts
perception Multimodal findings and image observations
realtime Duplex model session and event contracts

The wire contracts remain versioned independently of Go import paths. Go hosts and guests use CTN’s public model.tensor/v1 bridge for local tensor engines. Other languages can implement the same JSON contract through the Ext plugin engine.

The previous res/ml and res/inference Go modules are combined into this module. Their packages are now src/ctn/contract/model and src/ctn/contract/inference; the existing model.tensor/v1, inference.provider/v1, and content.model/v1 wire names remain stable. CTN owns its verified file catalog in src/ctn/internal/content; it is private product code and does not require an intelligence provider.

Product-specific provider wire mappings belong in the provider's adapter, outside ext (see adapter repositories). The plugin engine owns package integrity and trust mechanics. CTN selects installed providers, explicit models, roots, credentials, and user-facing workflows.

Directories

Path Synopsis
Package inference embedding types define embedding requests and responses.
Package inference embedding types define embedding requests and responses.
mladapter
Package mladapter adapts src/ctn/contract/model (low-level tensor inference) into src/ctn/contract/inference (high-level generation, embeddings, transcription, synthesis).
Package mladapter adapts src/ctn/contract/model (low-level tensor inference) into src/ctn/contract/inference (high-level generation, embeddings, transcription, synthesis).
Package ml inference defines bounded, transport-free interfaces for running on-device models through a caller-selected provider.
Package ml inference defines bounded, transport-free interfaces for running on-device models through a caller-selected provider.
Package perception defines transport-free content interpretation and image observation contracts.
Package perception defines transport-free content interpretation and image observation contracts.
Package realtime defines explicit duplex model sessions.
Package realtime defines explicit duplex model sessions.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL