Examples
This content is for v0.9.2. Switch to the latest version for up-to-date documentation.
nxus.SYSTEMS · Examples Portfolio · nxusKit SDK
32 production examples for the nxusKit SDK in Rust, Go, and Python — covering LLM patterns, CLIPS rule engines, Z3 constraint solvers, Bayesian networks, and ZEN decision tables.
Quick Start
Section titled “Quick Start”# 1. Install the SDK (see nxusKit Getting Started guide)# 2. Set up this projectsource ~/.nxuskit/sdk/current/scripts/setup-sdk.sh
# 3. Run an examplecargo run --manifest-path examples/patterns/basic-chat/rust/Cargo.toml # Rustgo run -tags nxuskit ./examples/patterns/basic-chat/go # Gopython examples/patterns/basic-chat/python/main.py # PythonExamples
Section titled “Examples”Patterns — Reusable SDK integration patterns
Section titled “Patterns — Reusable SDK integration patterns”| Example | Description | Languages |
|---|---|---|
| basic-chat | Simple chat with any LLM provider | Rust, Go, Python |
| streaming | Streaming responses | Rust, Go, Python |
| multi-provider | Switch between providers | Rust, Go, Python |
| auth-helper | OAuth and credential management | Rust (CLI + GUI), Go |
| vision | Image/vision capabilities | Rust, Go, Python |
| solver | Z3 constraint solving | Rust, Go, Python |
| cost-routing | Route requests by cost/capability | Rust, Go |
| retry-fallback | Retry with provider fallback | Rust, Go |
Integrations — Combining SDK features
Section titled “Integrations — Combining SDK features”| Example | Description | Languages |
|---|---|---|
| clips-basics | CLIPS expert system fundamentals | Rust, Go |
| clips-llm-hybrid | CLIPS rules + LLM reasoning | Rust, Go |
| zen-decisions | ZEN decision table evaluation | Rust, Go |
| bn-solver-clips-pipeline | Bayesian → Solver → CLIPS pipeline | Rust, Go |
| ollama | Local LLM via Ollama | Rust, Go |
Apps — Complete applications
Section titled “Apps — Complete applications”| Example | Description | Languages |
|---|---|---|
| racer | CLIPS vs LLM head-to-head race | Rust, Go |
| arbiter | Auto-retry LLM with CLIPS validation | Rust, Go |
| puzzler | Sudoku and Set Game solving via CLIPS | Rust, Go |
| ruler | LLM-generated CLIPS rules | Rust, Go |
| riffer | Music analysis with CLIPS + LLM | Rust, Go |
SDK Editions
Section titled “SDK Editions”| Badge | Meaning |
|---|---|
| Community | Runs with the free OSS SDK |
| Pro | Requires a Pro license (activation guide) |
See conformance/example-tiers.json for the full tier map.
Project Structure
Section titled “Project Structure”examples/├── patterns/ Community-tier reusable patterns├── integrations/ SDK feature combinations├── apps/ Complete applications (mostly Pro tier)└── shared/ Shared libraries (Rust, Go, interactive utilities)conformance/ Example manifest and tier definitionsscripts/ Build and test helpersBuilding
Section titled “Building”All examples require the nxusKit SDK. Run setup-sdk.sh once after cloning:
source ~/.nxuskit/sdk/current/scripts/setup-sdk.shThis creates the necessary symlinks and sets environment variables for Rust (packages/nxuskit), Go (go.work), and native library paths.
export NXUSKIT_SDK_DIR=~/.nxuskit/sdk/currentcargo run --manifest-path examples/<category>/<name>/rust/Cargo.tomlgo run -tags nxuskit ./examples/<category>/<name>/go/cmdPython
Section titled “Python”python examples/<category>/<name>/python/main.pyLicense
Section titled “License”Dual-licensed under MIT or Apache-2.0.