# girishgktester/agentic_qa architecture

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

- Interactive diagram: https://gitdiagram.com/girishgktester/agentic_qa
- Repository: https://github.com/girishgktester/agentic_qa

## Overview

Agentic QA turns a text-based user story into a reviewed, approved manual test case. Its LangGraph workflow loads and analyzes requirements, generates schema-validated cases, checks acceptance-criterion traceability and quality, then pauses for a human approve/edit/reject decision; only approval persists JSON. Editing loops back to generation, while rejection ends the run. The graph and typed state coordinate these stages, and configured language-model and DeepEval services provide analysis, generation, and evaluation. The README documents capabilities beyond the excerpts; links for unsampled node internals rely on that documentation.

Main entry points: [`agent_1_testcase_generator/nodes/generation.py`](https://github.com/girishgktester/agentic_qa/blob/main/agent_1_testcase_generator/nodes/generation.py) (Case Generation), [`agent_1_testcase_generator/graph/workflow.py`](https://github.com/girishgktester/agentic_qa/blob/main/agent_1_testcase_generator/graph/workflow.py) (Graph Workflow), [`agent_1_testcase_generator/nodes/analysis.py`](https://github.com/girishgktester/agentic_qa/blob/main/agent_1_testcase_generator/nodes/analysis.py) (Requirement Analysis), [`agent_1_testcase_generator/nodes/evaluation.py`](https://github.com/girishgktester/agentic_qa/blob/main/agent_1_testcase_generator/nodes/evaluation.py) (Quality Evaluation)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_orchestration["Workflow Control"]
  node_cli["CLI Entry<br/>[main.py]"]
  node_workflow["Graph Workflow<br/>[workflow.py]"]
  node_decisions["Review Routing<br/>[decisions.py]"]
  node_state["Workflow State<br/>[state.py]"]
end

subgraph group_requirements["Requirement Processing"]
  node_document["Document Loading<br/>[document.py]"]
  node_analysis["Requirement Analysis<br/>[analysis.py]"]
  node_generation["Case Generation<br/>[generation.py]"]
  node_schema["Test Case Schema<br/>[test_case.py]"]
end

subgraph group_assurance["Validation and Review"]
  node_traceability["Criteria Traceability<br/>[traceability.py]"]
  node_evaluation["Quality Evaluation<br/>[evaluation.py]"]
  node_review["Human Review<br/>[human_review.py]"]
end

subgraph group_configuration["Models and Output"]
  node_settings["Model Settings<br/>[settings.py]"]
  node_llm["Chat Model"]
  node_deepeval["DeepEval Metrics"]
  node_save["Approved Persistence<br/>[save.py]"]
  node_output["JSON Output"]
end

node_operator(("CLI Reviewer"))

node_cli -->|"invokes"| node_workflow
node_workflow -->|"uses"| node_state
node_workflow -->|"routes via"| node_decisions
node_workflow -->|"starts with"| node_document
node_document -->|"then runs"| node_analysis
node_analysis -->|"then runs"| node_generation
node_generation -->|"then runs"| node_traceability
node_traceability -->|"passes to"| node_evaluation
node_traceability -->|"retries via"| node_generation
node_evaluation -->|"passes to"| node_review
node_evaluation -->|"retries via"| node_generation
node_review -->|"approves to"| node_save
node_review -->|"edits via"| node_generation
node_operator -->|"decides"| node_cli
node_cli -->|"resumes with decision"| node_review
node_analysis -->|"uses model config"| node_settings
node_settings -->|"creates client"| node_llm
node_analysis -->|"analyzes with"| node_llm
node_generation -->|"generates with"| node_llm
node_generation -->|"validates against"| node_schema
node_evaluation -->|"measures with"| node_deepeval
node_save -->|"writes approved JSON"| node_output

click node_cli "https://github.com/girishgktester/agentic_qa/blob/main/agent_1_testcase_generator/main.py"
click node_workflow "https://github.com/girishgktester/agentic_qa/blob/main/agent_1_testcase_generator/graph/workflow.py"
click node_decisions "https://github.com/girishgktester/agentic_qa/blob/main/agent_1_testcase_generator/graph/decisions.py"
click node_state "https://github.com/girishgktester/agentic_qa/blob/main/agent_1_testcase_generator/graph/state.py"
click node_document "https://github.com/girishgktester/agentic_qa/blob/main/agent_1_testcase_generator/nodes/document.py"
click node_analysis "https://github.com/girishgktester/agentic_qa/blob/main/agent_1_testcase_generator/nodes/analysis.py"
click node_generation "https://github.com/girishgktester/agentic_qa/blob/main/agent_1_testcase_generator/nodes/generation.py"
click node_schema "https://github.com/girishgktester/agentic_qa/blob/main/agent_1_testcase_generator/schemas/test_case.py"
click node_traceability "https://github.com/girishgktester/agentic_qa/blob/main/agent_1_testcase_generator/nodes/traceability.py"
click node_evaluation "https://github.com/girishgktester/agentic_qa/blob/main/agent_1_testcase_generator/nodes/evaluation.py"
click node_review "https://github.com/girishgktester/agentic_qa/blob/main/agent_1_testcase_generator/nodes/human_review.py"
click node_settings "https://github.com/girishgktester/agentic_qa/blob/main/agent_1_testcase_generator/config/settings.py"
click node_save "https://github.com/girishgktester/agentic_qa/blob/main/agent_1_testcase_generator/nodes/save.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_cli,node_workflow,node_decisions,node_state,node_operator toneBlue
class node_document,node_analysis,node_generation,node_schema toneAmber
class node_traceability,node_evaluation,node_review toneMint
class node_settings,node_llm,node_deepeval,node_save,node_output toneRose
```

## Components

### Workflow Control

- [CLI Entry](https://github.com/girishgktester/agentic_qa/blob/main/agent_1_testcase_generator/main.py): `agent_1_testcase_generator/main.py`
- [Graph Workflow](https://github.com/girishgktester/agentic_qa/blob/main/agent_1_testcase_generator/graph/workflow.py): `agent_1_testcase_generator/graph/workflow.py`
- [Review Routing](https://github.com/girishgktester/agentic_qa/blob/main/agent_1_testcase_generator/graph/decisions.py): `agent_1_testcase_generator/graph/decisions.py`
- [Workflow State](https://github.com/girishgktester/agentic_qa/blob/main/agent_1_testcase_generator/graph/state.py): `agent_1_testcase_generator/graph/state.py`

### Requirement Processing

- [Document Loading](https://github.com/girishgktester/agentic_qa/blob/main/agent_1_testcase_generator/nodes/document.py): `agent_1_testcase_generator/nodes/document.py`
- [Requirement Analysis](https://github.com/girishgktester/agentic_qa/blob/main/agent_1_testcase_generator/nodes/analysis.py): `agent_1_testcase_generator/nodes/analysis.py`
- [Case Generation](https://github.com/girishgktester/agentic_qa/blob/main/agent_1_testcase_generator/nodes/generation.py): `agent_1_testcase_generator/nodes/generation.py`
- [Test Case Schema](https://github.com/girishgktester/agentic_qa/blob/main/agent_1_testcase_generator/schemas/test_case.py): `agent_1_testcase_generator/schemas/test_case.py`

### Validation and Review

- [Criteria Traceability](https://github.com/girishgktester/agentic_qa/blob/main/agent_1_testcase_generator/nodes/traceability.py): `agent_1_testcase_generator/nodes/traceability.py`
- [Quality Evaluation](https://github.com/girishgktester/agentic_qa/blob/main/agent_1_testcase_generator/nodes/evaluation.py): `agent_1_testcase_generator/nodes/evaluation.py`
- [Human Review](https://github.com/girishgktester/agentic_qa/blob/main/agent_1_testcase_generator/nodes/human_review.py): `agent_1_testcase_generator/nodes/human_review.py`

### Models and Output

- [Model Settings](https://github.com/girishgktester/agentic_qa/blob/main/agent_1_testcase_generator/config/settings.py): `agent_1_testcase_generator/config/settings.py`
- **Chat Model**
- **DeepEval Metrics**
- [Approved Persistence](https://github.com/girishgktester/agentic_qa/blob/main/agent_1_testcase_generator/nodes/save.py): `agent_1_testcase_generator/nodes/save.py`
- **JSON Output**

### Other components

- **CLI Reviewer**

## Connections

- CLI Entry → Graph Workflow: invokes (evidence: `agent_1_testcase_generator/main.py`)
- Graph Workflow → Workflow State: uses (evidence: `agent_1_testcase_generator/graph/workflow.py`)
- Graph Workflow → Review Routing: routes via (evidence: `agent_1_testcase_generator/graph/workflow.py`)
- Graph Workflow → Document Loading: starts with (evidence: `agent_1_testcase_generator/graph/workflow.py`)
- Document Loading → Requirement Analysis: then runs
- Requirement Analysis → Case Generation: then runs
- Case Generation → Criteria Traceability: then runs
- Criteria Traceability → Quality Evaluation: passes to
- Criteria Traceability → Case Generation: retries via
- Quality Evaluation → Human Review: passes to
- Quality Evaluation → Case Generation: retries via
- Human Review → Approved Persistence: approves to
- Human Review → Case Generation: edits via
- CLI Reviewer → CLI Entry: decides (evidence: `agent_1_testcase_generator/main.py`)
- CLI Entry → Human Review: resumes with decision (evidence: `agent_1_testcase_generator/main.py`)
- Requirement Analysis → Model Settings: uses model config (evidence: `agent_1_testcase_generator/nodes/analysis.py`)
- Model Settings → Chat Model: creates client (evidence: `agent_1_testcase_generator/config/settings.py`)
- Requirement Analysis → Chat Model: analyzes with (evidence: `README.md`)
- Case Generation → Chat Model: generates with (evidence: `README.md`)
- Case Generation → Test Case Schema: validates against (evidence: `README.md`)
- Quality Evaluation → DeepEval Metrics: measures with (evidence: `agent_1_testcase_generator/nodes/evaluation.py`)
- Approved Persistence → JSON Output: writes approved JSON (evidence: `README.md`)
