kernex-runtime 0.7.0

The Rust runtime for AI agents. A composable engine with sandbox, providers, learning, and pipelines.
Documentation

kernex-runtime

Top-level runtime that ties the Kernex workspace together.

Most consumers should start here. RuntimeBuilder composes:

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 kernex_runtime::RuntimeBuilder;
use kernex_core::message::Request;

let runtime = RuntimeBuilder::new()
    .data_dir("~/.kernex")
    .system_prompt("You are a helpful assistant.")
    .build()
    .await?;

let request = Request::text("user-1", "Hello!");
let response = runtime.complete(&provider, &request).await?;
println!("{}", response.text);

Documentation

License

Apache-2.0 OR MIT.