Skip to main content
The numbered V2 demos are the fastest way to learn the shape of Cognis end-to-end. Each is a self-contained .rs file under examples/v2/. The LLM-backed demos (02, 03, 04, 06, 07, 08) read COGNIS_PROVIDER from the env — set it to ollama for local, or any of the other providers. Demos 01 and 05 are pure-Rust offline (no provider needed).

How to run

The set

Read in number order for the full guided tour. If you’re impatient, jump to whichever maps to your use case:
  • Building a chat agent? → 02, then 06 for tools, then 07 for structured output.
  • Building a graph workflow? → 01, then 03, then 05 for checkpoints.
  • Building multi-agent? → 02, then 08.
  • Building a streaming UI? → 04, then Patterns → Streaming UI.

See also

Quickstart guide

The narrative walkthrough of demo 02.

Examples → Agents

More agent patterns beyond the V2 set.

Examples → Graphs

More graph patterns beyond demo 03.

Patterns

Larger applications that combine multiple V2 demos.