Skip to main content

Crate kernex

Crate kernex 

Source
Expand description

§kernex

Umbrella crate for the Kernex AI agent runtime. Provides a single dependency for users who prefer cargo add kernex over picking individual sub-crates by hand.

Every public item is re-exported from kernex_runtime; see that crate’s documentation for the full API. Examples in kernex-runtime work verbatim here by replacing the import path:

// Either of these works:
use kernex::RuntimeBuilder;
use kernex_runtime::RuntimeBuilder;

§When to use this crate vs kernex-runtime

  • kernex — discoverability. cargo add kernex works without knowing the workspace layout. Crate-name-as-product.
  • kernex-runtime — direct dependency, slightly shorter compile times in workspaces that already depend on it transitively.

Either is fine; they expose the same API.

§Features

Forwarded unchanged to kernex-runtime:

  • sqlite-store (default) — pulls in kernex-memory for persistent conversation, fact, and outcome storage.
  • opentelemetry — enables OTLP export of runtime spans via tracing-opentelemetry.

Modules§

core
kernex-core: Foundation types, traits, and error handling for the Kernex runtime.
memory
kernex-memory: SQLite-backed memory store with a public trait surface.
pipelines
Topology-driven multi-agent execution engine.
providers
kernex-providers: AI backend implementations and tool execution.
sandbox
kernex-sandbox
skills
Skill and project loader for Kernex.

Structs§

AdapterRegistry
Registry of adapter handles, keyed by AdapterId.
Runtime
A configured Kernex runtime with all subsystems initialized.
RuntimeBuilder
Builder for constructing a Runtime with the desired configuration.

Enums§

AdapterError
Adapter error type. #[non_exhaustive] so future variants are non-breaking.
AdapterId
Stable identifier for a supported agent.
Capability
Capability surface an adapter exposes. Sync default methods so adapter authors can override without dragging async machinery into capability reporting.

Traits§

Adapter
Adapter trait. Object-safe; pin async to I/O methods only.