Skip to content

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.

Terminal window
# 1. Install the SDK (see nxusKit Getting Started guide)
# 2. Set up this project
source ~/.nxuskit/sdk/current/scripts/setup-sdk.sh
# 3. Run an example
cargo run --manifest-path examples/patterns/basic-chat/rust/Cargo.toml # Rust
go run -tags nxuskit ./examples/patterns/basic-chat/go # Go
python examples/patterns/basic-chat/python/main.py # Python

Patterns — Reusable SDK integration patterns

Section titled “Patterns — Reusable SDK integration patterns”
ExampleDescriptionLanguages
basic-chatSimple chat with any LLM providerRust, Go, Python
streamingStreaming responsesRust, Go, Python
multi-providerSwitch between providersRust, Go, Python
auth-helperOAuth and credential managementRust (CLI + GUI), Go
visionImage/vision capabilitiesRust, Go, Python
solverZ3 constraint solvingRust, Go, Python
cost-routingRoute requests by cost/capabilityRust, Go
retry-fallbackRetry with provider fallbackRust, Go
ExampleDescriptionLanguages
clips-basicsCLIPS expert system fundamentalsRust, Go
clips-llm-hybridCLIPS rules + LLM reasoningRust, Go
zen-decisionsZEN decision table evaluationRust, Go
bn-solver-clips-pipelineBayesian → Solver → CLIPS pipelineRust, Go
ollamaLocal LLM via OllamaRust, Go
ExampleDescriptionLanguages
racerCLIPS vs LLM head-to-head raceRust, Go
arbiterAuto-retry LLM with CLIPS validationRust, Go
puzzlerSudoku and Set Game solving via CLIPSRust, Go
rulerLLM-generated CLIPS rulesRust, Go
rifferMusic analysis with CLIPS + LLMRust, Go
BadgeMeaning
CommunityRuns with the free OSS SDK
ProRequires a Pro license (activation guide)

See conformance/example-tiers.json for the full tier map.

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 definitions
scripts/ Build and test helpers

All examples require the nxusKit SDK. Run setup-sdk.sh once after cloning:

Terminal window
source ~/.nxuskit/sdk/current/scripts/setup-sdk.sh

This creates the necessary symlinks and sets environment variables for Rust (packages/nxuskit), Go (go.work), and native library paths.

Terminal window
export NXUSKIT_SDK_DIR=~/.nxuskit/sdk/current
cargo run --manifest-path examples/<category>/<name>/rust/Cargo.toml
Terminal window
go run -tags nxuskit ./examples/<category>/<name>/go/cmd
Terminal window
python examples/<category>/<name>/python/main.py

Dual-licensed under MIT or Apache-2.0.