Skip to content

Convenience API

Use simplified one-liner API for quick LLM calls

Skip the boilerplate: call any LLM with a single line, letting nxusKit detect your provider and credentials automatically.

Community — runs on the OSS / Community SDK edition.

Difficulty: Starter 🟢 · LLM

  • Summary: LiteLLM-style convenience API usage
  • Scenario: Use simplified one-liner API for quick LLM calls
  • tech_tags in manifest: LLM — example id convenience-api 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, 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).

Rapid prototyping, scripting with LLM capabilities

LLM

LanguagePathStatus
Rustrust/Available
Gogo/Available

Attach an installed SDK (NXUSKIT_SDK_DIR). See the repository README.md and scripts/test-examples.sh.

Terminal window
# From `/examples/patterns/convenience-api`:
cd rust && cargo build
cd go && make build
Terminal window
cd rust
cargo run
Terminal window
cd go
make build && bin/convenience-api