Layer 1 · the engine
smooth-operator-core
Link the agent loop into your own process, in the language you already ship.
Every AI teammate on the Smoo AI platform runs this loop. It is the deepest layer we have, and it is a library — you link it, you don't call it.
Five native ports, not five bindings — each language has its own implementation, kept honest by a shared evaluation corpus. There is no FFI layer to install.
The smallest thing that works
verified against a893804
use smooth_operator_core::{Agent, AgentConfig, LlmConfig, ToolRegistry};
// The engine is a library: a config, a tool registry, and a loop you await.
let llm = LlmConfig::openrouter(std::env::var("OPENROUTER_API_KEY")?)
.with_model("openai/gpt-4o");
let config = AgentConfig::new("assistant", "You are a helpful assistant.", llm);
let agent = Agent::new(config, ToolRegistry::new());
let conversation = agent.run("What's the weather in Tokyo?").await?;
println!("{}", conversation.last_assistant_content().unwrap_or_default());Install
cargo add smooai-smooth-operator-core