Skip to content

Examples

Start from the two canonical examples in the repo; everything else is optional or exploratory.

Canonical (copy these first)

ExampleUse it for
examples/habitat-minimalSmallest Habitat work-dir layout, habitat CLI, native sessions habitat introspection
examples/model-showdownMulti-dimension evaluations, suite-config.ts, eval combine, suite reports

Clone the repo, pnpm install, set .env, then follow each README from the repo root (use dotenvx run -- before CLI commands that need keys).

I want to…

GoalDoc or script
Install & first commandsGetting started
Habitat agents & interfacesHabitat, Habitat interfaces
Model evaluation & combineModel evaluation, Creating evaluations, Model showdown walkthrough
Tool calling & StimulusTool calling
Structured outputStructured output
MCP chat patternMCP chat
Programmatic APIAPI overview
Runner / strategy detailsEvaluation framework (architecture)

More topic guides (sidebar)

The VitePress Examples sidebar lists narrative pages: text generation, creative writing, batch/matrix evaluations, PDF/images, cost optimization, etc. Those pages supplement the canonical repos above; they are not separate git examples.

EvalSuite examples (repo)

Working EvalSuite evaluations in examples/evals/:

bash
dotenvx run -- pnpm tsx examples/evals/car-wash.ts          # common-sense reasoning
dotenvx run -- pnpm tsx examples/evals/instruction.ts       # instruction following
dotenvx run -- pnpm tsx examples/evals/reasoning.ts         # reasoning quality

Script demos (repo)

From the umwelten repo root:

bash
dotenvx run -- pnpm tsx scripts/examples/car-wash-test.ts

For integration-style / manual test scripts (Dagger, tool conversations, reasoning streams), see TESTING.md in the repo.

Released under the MIT License.