Continuum C++ API
Unified runtime for token + tensor execution
Loading...
Searching...
No Matches
continuum::backend Namespace Reference

Classes

class  AnthropicBackend
 
class  AzureOpenAIBackend
 
class  Backend
 
struct  BackendCapabilities
 
class  BackendRegistry
 
struct  BackendRunResult
 
struct  BackendState
 
struct  ConformanceCheck
 One named check and why it passed, failed, or was skipped. More...
 
struct  ConformanceOptions
 Inputs the kit drives the backend with. More...
 
struct  ConformanceReport
 All checks for one backend. More...
 
class  FakeLLMBackend
 
class  LibTorchBackend
 
class  MLXBackend
 
class  OpenAIBackend
 
struct  PluginSpec
 One entry of a plugin list. More...
 
class  VllmShimBackend
 

Enumerations

enum class  ConformanceStatus { Pass , Fail , Skip }
 Outcome of one conformance check. More...
 

Functions

std::shared_ptr< Backend > MakeBackendFromAbi (continuum_backend_vtable_t vtable)
 
std::shared_ptr< Backend > LoadBackendPlugin (const std::string &path)
 
std::vector< PluginSpec > ParsePluginSpecs (const std::string &spec)
 
ConformanceReport RunBackendConformance (Backend &backend, const std::string &name, const ConformanceOptions &options={})
 

Enumeration Type Documentation

◆ ConformanceStatus

Outcome of one conformance check.

Enumerator
Pass 
Fail 
Skip 

Function Documentation

◆ LoadBackendPlugin()

std::shared_ptr< Backend > continuum::backend::LoadBackendPlugin ( const std::string &  path)

dlopen / LoadLibrary path, resolve CONTINUUM_BACKEND_PLUGIN_INIT_SYMBOL, initialize it, and check the vtable's ABI version. The library stays loaded until the returned backend is destroyed. Throws std::runtime_error with the reason on any failure.

◆ MakeBackendFromAbi()

std::shared_ptr< Backend > continuum::backend::MakeBackendFromAbi ( continuum_backend_vtable_t  vtable)

Wrap a C ABI vtable (v1 or v2) as a Backend. Throws on an unsupported abi_version.

◆ ParsePluginSpecs()

std::vector< PluginSpec > continuum::backend::ParsePluginSpecs ( const std::string &  spec)

Parse name[@priority]=path entries separated by ;, e.g. echo@50=/opt/plugins/libecho.so;other=/x/libother.so. Throws on a malformed entry.

◆ RunBackendConformance()

ConformanceReport continuum::backend::RunBackendConformance ( Backend &  backend,
const std::string &  name,
const ConformanceOptions &  options = {} 
)

Drive backend through capability declaration, a cold and a warm token run (the reused_prefix_len / tokens_saved / used_cached_state metric contract), state export/import round-trip, and a tensor identity op, as applicable to its declared capabilities. This is the bar a new backend must clear; see "Backend conformance" in docs/design/abi.md.