kernex-runtime
Top-level runtime that ties the Kernex workspace together.
Most consumers should start here. RuntimeBuilder composes:
- A
Providerfromkernex-providers(or your own) - The
Storefromkernex-memory(SQLite-backed history, facts, recall, outcomes, token usage) - Skill loading and trigger matching from
kernex-skills - Tool execution with sandbox enforcement from
kernex-sandbox - Multi-agent pipelines from
kernex-pipelines
A typical request flows: build context from memory → enrich with matched skills → call provider → persist exchange → record token usage. Runtime::complete and Runtime::complete_stream cover the standard and streaming paths; Runtime::run chains a RunConfig of multiple steps.
Quick start
use RuntimeBuilder;
use Request;
let runtime = new
.data_dir
.system_prompt
.build
.await?;
let request = text;
let response = runtime.complete.await?;
println!;
Documentation
- API reference: https://docs.rs/kernex-runtime
- Project overview: https://github.com/kernex-dev/kernex
License
Apache-2.0 OR MIT.