nxusKit-examples is a set of ready-made examples for the nxusKit SDK. It shows how to use the SDK in Rust, Go, and Python.
These examples cover:
- LLM workflows
- Rule engines
- Constraint solvers
- Bayesian networks
- Decision tables
This repo helps you see how the SDK works in real cases. It gives you working code you can open, test, and adapt.
Use a Windows PC with:
- Windows 10 or Windows 11
- A stable internet connection
- At least 4 GB of RAM
- A few hundred MB of free disk space
To run the examples, you may also need one or more of these tools:
- Python 3.10 or later
- Go 1.21 or later
- Rust toolchain
If you only want to view the examples, you can do that in your browser.
Use this link to visit the repository and get the examples:
Follow these steps to open and use the examples on Windows.
- Open the download link in your browser.
- On the repository page, look for the green Code button.
- Click Code.
- Choose Download ZIP.
- Save the ZIP file to your PC.
- Right-click the ZIP file and choose Extract All.
- Pick a folder you can find later, such as Documents.
- Open the extracted folder.
If you use Git, you can also clone the repo:
-
Open Command Prompt or PowerShell.
-
Run:
-
Open the new folder on your PC.
After you open the folder, you should see folders for different languages and use cases.
Look for names such as:
rustgopythonllmrulesconstraintsbayesiandecision-tables
Each folder should hold one or more example apps. The folder names help you pick the language you know best.
If you want the simplest path on Windows, start with Python.
-
Install Python if it is not already on your PC.
-
Open the example folder for Python.
-
Open Command Prompt in that folder.
-
Run the install step if the folder includes one:
pip install -r requirements.txt
-
Run the example file, such as:
python main.py
Some examples may use a different file name. If so, open the folder and run the file that starts the app.
Use these steps for Go examples.
-
Install Go on your PC.
-
Open the Go example folder.
-
Open Command Prompt in that folder.
-
Run:
go mod tidy
-
Run the example:
go run .
If the folder includes a single .go file, you may need to run that file name instead.
Use these steps for Rust examples.
-
Install the Rust toolchain on your PC.
-
Open the Rust example folder.
-
Open Command Prompt in that folder.
-
Run:
cargo build
-
Run the example:
cargo run
Rust folders may take a little longer on the first build. That is normal.
This repo groups examples by common SDK tasks. Here is what each type is for.
These show how to work with large language models. You may see examples for:
- Prompt use
- Response parsing
- Multi-step flows
- Tool use
These show how to apply business rules. You may see examples for:
- If-this-then-that logic
- Rule checks
- Policy control
- Decision paths
These show how to solve planning and limit problems. You may see examples for:
- Scheduling
- Fit and match logic
- Resource limits
- Best-choice selection
These show how to model risk and probability. You may see examples for:
- Simple probability graphs
- Inference
- Likelihood checks
- Risk-based decisions
These show how to map inputs to actions in a table. You may see examples for:
- Rules in rows and columns
- Clear decision paths
- Fast lookups
- Business logic checks
If the app does not start, check these items:
- Make sure the folder was extracted from the ZIP file
- Make sure you opened the right language folder
- Make sure the required tool is installed
- Make sure you ran the command in the correct folder
You may also need to restart Command Prompt after you install Python, Go, or Rust.
You may see a structure like this:
python/go/rust/llm/rules/constraints/bayesian/decision-tables/
Inside each folder, you may find:
- Source files
- A readme for that example
- Config files
- Dependency files
- Sample data
Open the files in a text editor such as:
- Visual Studio Code
- Notepad++
- Windows Notepad
Look for the main file in each example. That file often shows the entry point first. From there, you can follow the flow step by step.
If you are new to this repo, start with one of these:
- A Python decision table example
- A Go rule engine example
- A Rust constraint solver example
These usually show a clear input and output path, so they are easier to follow.
Use these tips to avoid common setup issues:
- Keep the repo in a short folder path, such as
C:\nxusKit-examples - Avoid folders with spaces if you can
- Use one terminal window per example
- Install only the language tools you need for the example you want to run
When an example runs, it may print results in the terminal. Some examples may also:
- Ask for input
- Read sample files
- Show decision output
- Display a list of matched rules
- Print a score, label, or recommendation
If the example uses AI or probabilistic logic, the output may change based on the input.
Visit the repo here:
- ai
- bayesian-network
- clips
- constraint-solver
- examples
- go
- llm
- nxuskit
- python
- rust
- sdk