# chaoshu1201/reasoning-and-agents-education architecture

> Architecture diagram of the GitHub repository chaoshu1201/reasoning-and-agents-education, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-26). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/chaoshu1201/reasoning-and-agents-education
- Repository: https://github.com/chaoshu1201/reasoning-and-agents-education

## Overview

This repository is a notebook-based teaching module: learners read and run lessons in sequence, from an introduction through decoding, reasoning, search, test-time compute, post-training, and agents. The standalone eight-puzzle code provides an interactive puzzle game, while utils.py supports model completions and response display. README documents local Ollama models as the default notebook setup and optional slide export, but source excerpts do not establish which notebooks call utils.py or the puzzle code; those links are therefore omitted. Edges show only documented learner actions or relationships visible in excerpts.

Main entry points: [`utils.py`](https://github.com/chaoshu1201/reasoning-and-agents-education/blob/main/utils.py) (LLM helpers), [`L00_ModuleIntro.ipynb`](https://github.com/chaoshu1201/reasoning-and-agents-education/blob/main/L00_ModuleIntro.ipynb) (Module intro), [`L01_Inference-Time_DecodingControls_student.ipynb`](https://github.com/chaoshu1201/reasoning-and-agents-education/blob/main/L01_Inference-Time_DecodingControls_student.ipynb) (Decoding controls), [`L02_ReasoningTechniques_for_LLMs_student.ipynb`](https://github.com/chaoshu1201/reasoning-and-agents-education/blob/main/L02_ReasoningTechniques_for_LLMs_student.ipynb) (Reasoning methods)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_lessons["Course lessons"]
  node_intro["Module intro"]
  node_decoding["Decoding controls"]
  node_reasoning["Reasoning methods"]
  node_classical_search["Classical search"]
  node_test_compute["Test-time compute"]
  node_post_training["Post-training"]
  node_agents["LLM agents"]
end

subgraph group_interactive["Interactive learning"]
  node_puzzle_game["Eight puzzle game<br/>[eight_puzzle.py]"]
end

subgraph group_model_support["Model support"]
  node_llm_helpers["LLM helpers<br/>[utils.py]"]
end

node_learner(("Learner"))
node_litellm["LiteLLM"]
node_ollama["Ollama models"]

node_learner -->|"opens and runs"| node_intro
node_learner -->|"opens and runs"| node_decoding
node_learner -->|"opens and runs"| node_reasoning
node_learner -->|"opens and runs"| node_classical_search
node_learner -->|"opens and runs"| node_test_compute
node_learner -->|"opens and runs"| node_post_training
node_learner -->|"opens and runs"| node_agents
node_llm_helpers -->|"requests completions"| node_litellm
node_llm_helpers -->|"configures models"| node_ollama

click node_intro "https://github.com/chaoshu1201/reasoning-and-agents-education/blob/main/L00_ModuleIntro.ipynb"
click node_decoding "https://github.com/chaoshu1201/reasoning-and-agents-education/blob/main/L01_Inference-Time_DecodingControls_student.ipynb"
click node_reasoning "https://github.com/chaoshu1201/reasoning-and-agents-education/blob/main/L02_ReasoningTechniques_for_LLMs_student.ipynb"
click node_classical_search "https://github.com/chaoshu1201/reasoning-and-agents-education/blob/main/L03_ClassicalSearch_for_ProblemSolving_student.ipynb"
click node_test_compute "https://github.com/chaoshu1201/reasoning-and-agents-education/blob/main/L04_Introduction_to_TestTimeCompute_for_LLM_Reasoning_student.ipynb"
click node_post_training "https://github.com/chaoshu1201/reasoning-and-agents-education/blob/main/L05_Introduction_to_PostTraining_for_LLM_Reasoning_student.ipynb"
click node_agents "https://github.com/chaoshu1201/reasoning-and-agents-education/blob/main/L06_LLM-based_Agents_student.ipynb"
click node_puzzle_game "https://github.com/chaoshu1201/reasoning-and-agents-education/blob/main/eight_puzzle.py"
click node_llm_helpers "https://github.com/chaoshu1201/reasoning-and-agents-education/blob/main/utils.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_intro,node_decoding,node_reasoning,node_classical_search,node_test_compute,node_post_training,node_agents toneBlue
class node_puzzle_game toneAmber
class node_llm_helpers toneMint
class node_learner,node_litellm,node_ollama toneIndigo
```

## Components

### Course lessons

- [Module intro](https://github.com/chaoshu1201/reasoning-and-agents-education/blob/main/L00_ModuleIntro.ipynb): `L00_ModuleIntro.ipynb`
- [Decoding controls](https://github.com/chaoshu1201/reasoning-and-agents-education/blob/main/L01_Inference-Time_DecodingControls_student.ipynb): `L01_Inference-Time_DecodingControls_student.ipynb`
- [Reasoning methods](https://github.com/chaoshu1201/reasoning-and-agents-education/blob/main/L02_ReasoningTechniques_for_LLMs_student.ipynb): `L02_ReasoningTechniques_for_LLMs_student.ipynb`
- [Classical search](https://github.com/chaoshu1201/reasoning-and-agents-education/blob/main/L03_ClassicalSearch_for_ProblemSolving_student.ipynb): `L03_ClassicalSearch_for_ProblemSolving_student.ipynb`
- [Test-time compute](https://github.com/chaoshu1201/reasoning-and-agents-education/blob/main/L04_Introduction_to_TestTimeCompute_for_LLM_Reasoning_student.ipynb): `L04_Introduction_to_TestTimeCompute_for_LLM_Reasoning_student.ipynb`
- [Post-training](https://github.com/chaoshu1201/reasoning-and-agents-education/blob/main/L05_Introduction_to_PostTraining_for_LLM_Reasoning_student.ipynb): `L05_Introduction_to_PostTraining_for_LLM_Reasoning_student.ipynb`
- [LLM agents](https://github.com/chaoshu1201/reasoning-and-agents-education/blob/main/L06_LLM-based_Agents_student.ipynb): `L06_LLM-based_Agents_student.ipynb`

### Interactive learning

- [Eight puzzle game](https://github.com/chaoshu1201/reasoning-and-agents-education/blob/main/eight_puzzle.py): `eight_puzzle.py`

### Model support

- [LLM helpers](https://github.com/chaoshu1201/reasoning-and-agents-education/blob/main/utils.py): `utils.py`

### Other components

- **Learner**
- **LiteLLM**
- **Ollama models**

## Connections

- Learner → Module intro: opens and runs (evidence: `README.md`)
- Learner → Decoding controls: opens and runs (evidence: `README.md`)
- Learner → Reasoning methods: opens and runs (evidence: `README.md`)
- Learner → Classical search: opens and runs (evidence: `README.md`)
- Learner → Test-time compute: opens and runs (evidence: `README.md`)
- Learner → Post-training: opens and runs (evidence: `README.md`)
- Learner → LLM agents: opens and runs (evidence: `README.md`)
- LLM helpers → LiteLLM: requests completions (evidence: `utils.py`)
- LLM helpers → Ollama models: configures models (evidence: `utils.py`)
