Skip to content

Basic Chat

Send a single chat message and receive a response.

Send your first LLM chat message in minutes, then swap providers without touching your application code.

Community — runs on the OSS / Community SDK edition.

Difficulty: Starter 🟢 · LLM

  • Summary: Basic chat completion with a simple prompt
  • Scenario: Send a single chat message and receive a response
  • tech_tags in manifest: LLM — example id basic-chat in conformance/examples_manifest.json.
  • SDK: Use an installed SDK tree (NXUSKIT_SDK_DIR, NXUSKIT_LIB_PATH as needed); test-examples.sh resolves Go/Rust/Python deps from that tree only — see README.md, scripts/setup-sdk.sh, and scripts/test-examples.sh.
  • Languages in this example: go, python, rust (paths under this directory; Python may live under a sibling python/ or shared reference per Language Implementations).
  • Models: Set cloud provider API keys and/or run Ollama locally when you execute the Run steps (interactive flags like --help / --verbose are documented below).

Customer support chatbot, FAQ assistant

LLM

LanguagePathStatus
Rustrust/Available
Gogo/Available
Pythonpython/Available

Use an installed SDK (NXUSKIT_SDK_DIR); from the repo root, scripts/test-examples.sh patches nxuskit path deps to that tree and builds this crate.

Terminal window
cd rust && cargo build
cd ../go && make build
cd ../python && python3 main.py --help
Terminal window
cd rust
cargo run
Terminal window
cd go
make build && bin/basic-chat
Terminal window
cd python
python main.py

See also: EXAMPLE_README_TEMPLATE.md for the standard README sections.