Skip to main content

Documentation Index

Fetch the complete documentation index at: https://cognis.vasanth.xyz/llms.txt

Use this file to discover all available pages before exploring further.

Agent examples cover the loop end-to-end through scenarios you’d build yourself. Sources under examples/agents/.
NameScenarioSource
agents_react_agentThe canonical ReAct agent — model decides which tool to call to answer a question.src
agents_conversationalMulti-turn recall test — user gives their name in turn 1, asks for it in turn 2.src
agents_multi_agentSequential handoff — one agent’s reply becomes the next agent’s input.src
agents_planningPlanning middleware — the agent drafts a plan before tool selection.src
agents_streaming_eventsStream lifecycle events from a running agent — what wires into a UI’s progress display.src

How to run

COGNIS_PROVIDER=ollama COGNIS_OLLAMA_MODEL=llama3.1 \
  cargo run -p cognis-examples --example agents_react_agent

See also

Agents and the loop

The mental model.

Multi-agent

Sequential / Supervisor / ParallelVote / RoundRobin strategies.

Memory examples

Plug memory into any of these agents.

Patterns → Research assistant

A worked multi-agent application.