# srajore/l2-agent-engineering-nov architecture

> Architecture diagram of the GitHub repository srajore/l2-agent-engineering-nov, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-04). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/srajore/l2-agent-engineering-nov
- Repository: https://github.com/srajore/l2-agent-engineering-nov

## Overview

This repository is a six-session teaching course on agent engineering, not a unified application. Its examples progress from fixed request handling and model calls to LangGraph state, routing, tool use, and model-selected actions. The graph keeps those demonstrations as separate workflows rather than implying they run together. Source excerpts show the example implementations; README content was not provided, so broader capability coverage is based on the visible course tree and sampled examples.

Main entry points: [`Day-04-Routing-Control-Flow/example.py`](https://github.com/srajore/l2-agent-engineering-nov/blob/main/Day-04-Routing-Control-Flow/example.py) (Route Dispatch), [`Day-06-Workflow-To-Agent/example.py`](https://github.com/srajore/l2-agent-engineering-nov/blob/main/Day-06-Workflow-To-Agent/example.py) (Action Dispatch), [`Day-02-Development-Foundation/example.py`](https://github.com/srajore/l2-agent-engineering-nov/blob/main/Day-02-Development-Foundation/example.py) (Classify Request), [`Day-05-Tool-Integration/example.py`](https://github.com/srajore/l2-agent-engineering-nov/blob/main/Day-05-Tool-Integration/example.py) (Use Tool)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_foundations["Foundations"]
  node_understand["Understand Request<br/>[example.py]"]
  node_choose_action["Choose Action<br/>[example.py]"]
  node_model_call["Classify Request<br/>[example.py]"]
end

subgraph group_graph["Graph Workflows"]
  node_clean_text["Clean Text<br/>[example.py]"]
  node_count_words["Count Words<br/>[example.py]"]
  node_create_message["Create Message<br/>[example.py]"]
  node_bonus_input["Set Values<br/>[01_langraph_add.py]"]
  node_bonus_calculate["Add Values<br/>[01_langraph_add.py]"]
  node_fundamentals_input["Set Graph State"]
  node_fundamentals_calculate["Calculate State"]
end

subgraph group_routing["Routing"]
  node_route_request["Choose Route<br/>[example.py]"]
  node_route_dispatch["Route Dispatch<br/>[example.py]"]
  node_account_help["Account Help<br/>[example.py]"]
  node_general_help["General Help<br/>[example.py]"]
end

subgraph group_agents["Tools And Agents"]
  node_use_tool["Use Tool<br/>[example.py]"]
  node_tool_functions["Tool Functions<br/>[test.py]"]
  node_create_answer["Create Answer<br/>[example.py]"]
  node_decide_action["Decide Action<br/>[example.py]"]
  node_agent_dispatch["Action Dispatch<br/>[example.py]"]
  node_agent_tool["Password Tool<br/>[example.py]"]
  node_direct_answer["Direct Answer<br/>[example.py]"]
end

node_requester(("IT Requester"))
node_ollama["Ollama Model"]

node_requester -->|"provides example"| node_understand
node_understand -->|"passes request"| node_choose_action
node_requester -->|"enters request"| node_model_call
node_model_call -->|"calls chat"| node_ollama
node_ollama -->|"returns response"| node_model_call
node_clean_text -->|"passes state"| node_count_words
node_count_words -->|"passes state"| node_create_message
node_bonus_input -->|"passes state"| node_bonus_calculate
node_fundamentals_input -->|"passes state"| node_fundamentals_calculate
node_fundamentals_calculate -->|"loops state"| node_fundamentals_input
node_route_request -->|"selects route"| node_route_dispatch
node_route_dispatch -->|"dispatches account"| node_account_help
node_route_dispatch -->|"dispatches general"| node_general_help
node_use_tool -->|"calls functions"| node_tool_functions
node_use_tool -->|"passes total"| node_create_answer
node_decide_action -->|"calls chat"| node_ollama
node_decide_action -->|"selects action"| node_agent_dispatch
node_agent_dispatch -->|"dispatches tool"| node_agent_tool
node_agent_dispatch -->|"dispatches answer"| node_direct_answer

click node_understand "https://github.com/srajore/l2-agent-engineering-nov/blob/main/Day-01-AI-Agent-Foundations/example.py"
click node_choose_action "https://github.com/srajore/l2-agent-engineering-nov/blob/main/Day-01-AI-Agent-Foundations/example.py"
click node_model_call "https://github.com/srajore/l2-agent-engineering-nov/blob/main/Day-02-Development-Foundation/example.py"
click node_clean_text "https://github.com/srajore/l2-agent-engineering-nov/blob/main/Day-03-LangGraph-Core/example.py"
click node_count_words "https://github.com/srajore/l2-agent-engineering-nov/blob/main/Day-03-LangGraph-Core/example.py"
click node_create_message "https://github.com/srajore/l2-agent-engineering-nov/blob/main/Day-03-LangGraph-Core/example.py"
click node_bonus_input "https://github.com/srajore/l2-agent-engineering-nov/blob/main/Day-03-LangGraph-Core/bonus/01_langraph_add.py"
click node_bonus_calculate "https://github.com/srajore/l2-agent-engineering-nov/blob/main/Day-03-LangGraph-Core/bonus/01_langraph_add.py"
click node_fundamentals_input "https://github.com/srajore/l2-agent-engineering-nov/blob/main/langgraph_fundamentals.py"
click node_fundamentals_calculate "https://github.com/srajore/l2-agent-engineering-nov/blob/main/langgraph_fundamentals.py"
click node_route_request "https://github.com/srajore/l2-agent-engineering-nov/blob/main/Day-04-Routing-Control-Flow/example.py"
click node_route_dispatch "https://github.com/srajore/l2-agent-engineering-nov/blob/main/Day-04-Routing-Control-Flow/example.py"
click node_account_help "https://github.com/srajore/l2-agent-engineering-nov/blob/main/Day-04-Routing-Control-Flow/example.py"
click node_general_help "https://github.com/srajore/l2-agent-engineering-nov/blob/main/Day-04-Routing-Control-Flow/example.py"
click node_use_tool "https://github.com/srajore/l2-agent-engineering-nov/blob/main/Day-05-Tool-Integration/example.py"
click node_tool_functions "https://github.com/srajore/l2-agent-engineering-nov/blob/main/Day-05-Tool-Integration/test.py"
click node_create_answer "https://github.com/srajore/l2-agent-engineering-nov/blob/main/Day-05-Tool-Integration/example.py"
click node_decide_action "https://github.com/srajore/l2-agent-engineering-nov/blob/main/Day-06-Workflow-To-Agent/example.py"
click node_agent_dispatch "https://github.com/srajore/l2-agent-engineering-nov/blob/main/Day-06-Workflow-To-Agent/example.py"
click node_agent_tool "https://github.com/srajore/l2-agent-engineering-nov/blob/main/Day-06-Workflow-To-Agent/example.py"
click node_direct_answer "https://github.com/srajore/l2-agent-engineering-nov/blob/main/Day-06-Workflow-To-Agent/example.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_understand,node_choose_action,node_model_call toneBlue
class node_clean_text,node_count_words,node_create_message,node_bonus_input,node_bonus_calculate,node_fundamentals_input,node_fundamentals_calculate toneAmber
class node_route_request,node_route_dispatch,node_account_help,node_general_help,node_requester toneMint
class node_use_tool,node_tool_functions,node_create_answer,node_decide_action,node_agent_dispatch,node_agent_tool,node_direct_answer toneRose
class node_ollama toneIndigo
```

## Components

### Foundations

- [Understand Request](https://github.com/srajore/l2-agent-engineering-nov/blob/main/Day-01-AI-Agent-Foundations/example.py): `Day-01-AI-Agent-Foundations/example.py`
- [Choose Action](https://github.com/srajore/l2-agent-engineering-nov/blob/main/Day-01-AI-Agent-Foundations/example.py): `Day-01-AI-Agent-Foundations/example.py`
- [Classify Request](https://github.com/srajore/l2-agent-engineering-nov/blob/main/Day-02-Development-Foundation/example.py): `Day-02-Development-Foundation/example.py`

### Graph Workflows

- [Clean Text](https://github.com/srajore/l2-agent-engineering-nov/blob/main/Day-03-LangGraph-Core/example.py): `Day-03-LangGraph-Core/example.py`
- [Count Words](https://github.com/srajore/l2-agent-engineering-nov/blob/main/Day-03-LangGraph-Core/example.py): `Day-03-LangGraph-Core/example.py`
- [Create Message](https://github.com/srajore/l2-agent-engineering-nov/blob/main/Day-03-LangGraph-Core/example.py): `Day-03-LangGraph-Core/example.py`
- [Set Values](https://github.com/srajore/l2-agent-engineering-nov/blob/main/Day-03-LangGraph-Core/bonus/01_langraph_add.py): `Day-03-LangGraph-Core/bonus/01_langraph_add.py`
- [Add Values](https://github.com/srajore/l2-agent-engineering-nov/blob/main/Day-03-LangGraph-Core/bonus/01_langraph_add.py): `Day-03-LangGraph-Core/bonus/01_langraph_add.py`
- [Set Graph State](https://github.com/srajore/l2-agent-engineering-nov/blob/main/langgraph_fundamentals.py): `langgraph_fundamentals.py`
- [Calculate State](https://github.com/srajore/l2-agent-engineering-nov/blob/main/langgraph_fundamentals.py): `langgraph_fundamentals.py`

### Routing

- [Choose Route](https://github.com/srajore/l2-agent-engineering-nov/blob/main/Day-04-Routing-Control-Flow/example.py): `Day-04-Routing-Control-Flow/example.py`
- [Route Dispatch](https://github.com/srajore/l2-agent-engineering-nov/blob/main/Day-04-Routing-Control-Flow/example.py): `Day-04-Routing-Control-Flow/example.py`
- [Account Help](https://github.com/srajore/l2-agent-engineering-nov/blob/main/Day-04-Routing-Control-Flow/example.py): `Day-04-Routing-Control-Flow/example.py`
- [General Help](https://github.com/srajore/l2-agent-engineering-nov/blob/main/Day-04-Routing-Control-Flow/example.py): `Day-04-Routing-Control-Flow/example.py`

### Tools And Agents

- [Use Tool](https://github.com/srajore/l2-agent-engineering-nov/blob/main/Day-05-Tool-Integration/example.py): `Day-05-Tool-Integration/example.py`
- [Tool Functions](https://github.com/srajore/l2-agent-engineering-nov/blob/main/Day-05-Tool-Integration/test.py): `Day-05-Tool-Integration/test.py`
- [Create Answer](https://github.com/srajore/l2-agent-engineering-nov/blob/main/Day-05-Tool-Integration/example.py): `Day-05-Tool-Integration/example.py`
- [Decide Action](https://github.com/srajore/l2-agent-engineering-nov/blob/main/Day-06-Workflow-To-Agent/example.py): `Day-06-Workflow-To-Agent/example.py`
- [Action Dispatch](https://github.com/srajore/l2-agent-engineering-nov/blob/main/Day-06-Workflow-To-Agent/example.py): `Day-06-Workflow-To-Agent/example.py`
- [Password Tool](https://github.com/srajore/l2-agent-engineering-nov/blob/main/Day-06-Workflow-To-Agent/example.py): `Day-06-Workflow-To-Agent/example.py`
- [Direct Answer](https://github.com/srajore/l2-agent-engineering-nov/blob/main/Day-06-Workflow-To-Agent/example.py): `Day-06-Workflow-To-Agent/example.py`

### Other components

- **IT Requester**
- **Ollama Model**

## Connections

- IT Requester → Understand Request: provides example (evidence: `Day-01-AI-Agent-Foundations/example.py`)
- Understand Request → Choose Action: passes request (evidence: `Day-01-AI-Agent-Foundations/example.py`)
- IT Requester → Classify Request: enters request (evidence: `Day-02-Development-Foundation/example.py`)
- Classify Request → Ollama Model: calls chat (evidence: `Day-02-Development-Foundation/example.py`)
- Ollama Model → Classify Request: returns response (evidence: `Day-02-Development-Foundation/example.py`)
- Clean Text → Count Words: passes state (evidence: `Day-03-LangGraph-Core/example.py`)
- Count Words → Create Message: passes state (evidence: `Day-03-LangGraph-Core/example.py`)
- Set Values → Add Values: passes state (evidence: `Day-03-LangGraph-Core/bonus/01_langraph_add.py`)
- Set Graph State → Calculate State: passes state (evidence: `langgraph_fundamentals.py`)
- Calculate State → Set Graph State: loops state (evidence: `langgraph_fundamentals.py`)
- Choose Route → Route Dispatch: selects route (evidence: `Day-04-Routing-Control-Flow/example.py`)
- Route Dispatch → Account Help: dispatches account (evidence: `Day-04-Routing-Control-Flow/example.py`)
- Route Dispatch → General Help: dispatches general (evidence: `Day-04-Routing-Control-Flow/example.py`)
- Use Tool → Tool Functions: calls functions (evidence: `Day-05-Tool-Integration/example.py`)
- Use Tool → Create Answer: passes total (evidence: `Day-05-Tool-Integration/example.py`)
- Decide Action → Ollama Model: calls chat (evidence: `Day-06-Workflow-To-Agent/example.py`)
- Decide Action → Action Dispatch: selects action (evidence: `Day-06-Workflow-To-Agent/example.py`)
- Action Dispatch → Password Tool: dispatches tool (evidence: `Day-06-Workflow-To-Agent/example.py`)
- Action Dispatch → Direct Answer: dispatches answer (evidence: `Day-06-Workflow-To-Agent/example.py`)
