Make synchronous LLM calls without async runtime
Call LLMs synchronously from any Rust code — no async runtime required, no await syntax, no tokio dependency to manage.
Community — runs on the OSS / Community SDK edition.
Difficulty: Starter 🟢 · LLM
- Summary: Synchronous blocking API for simpler use cases
- Scenario: Make synchronous LLM calls without async runtime
tech_tagsin manifest:LLM— example idblocking-apiinconformance/examples_manifest.json.
- SDK: Use an installed SDK tree (
NXUSKIT_SDK_DIR,NXUSKIT_LIB_PATHas needed);test-examples.shresolves Go/Rust/Python deps from that tree only — see README.md,scripts/setup-sdk.sh, andscripts/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/--verboseare documented below).
CLI tools, batch processing scripts
LLM
| Language | Path | Status |
|---|---|---|
| Rust | rust/ |
Available |
| Go | go/ |
Available |
Attach an installed SDK (NXUSKIT_SDK_DIR). See the repository README.md and scripts/test-examples.sh.
# From `/examples/patterns/blocking-api`:
cd rust && cargo build
cd go && make buildcd rust
cargo runcd go
make build && bin/blocking-api