How akanemo22/core_ai_agent works
This is a realtime AI mock-interview service with two browser frontends. The main workflow creates a session from candidate and job inputs, profiles them and prepares a retrieval-grounded plan, runs streamed interview turns, then evaluates evidence and produces a verdict report. A background control plane coordinates coverage and follow-up; durable session state and workspaces support recovery and inspection. The README describes several capabilities whose implementation was not sampled, so those relationships are shown only when documented or referenced in the source index.
Main entry points: routes.py Session API · worker.py Assessment workers · agent.py Profile and plan · controller.py Turn controller
Components 25
User interfaces and API
- Interview frontend
FE-test/app.js - Inspection frontend
FE-inspect/app.js - Session API
api/routes.py - Application lifecycle
api/main.py
Preparation and retrieval
- Profile and plan
core/profiler/agent.py - Document extraction
core/profiler/documents.py - Interview knowledge
core/retrieval/knowledge.py - RAG engine
rag/engine.py
Interview runtime
- Turn controller
core/interview/controller.py - Interview runner
core/interview/runner.py - Turn speaker
core/interview/speaker.py - Control plane
core/orchestration/orchestrator.py - Agent runtime
core/runtime/agent.py - LLM provider contract
core/runtime/client.py
Assessment and reporting
- Assessment queue
core/assessor/queue.py - Assessment workers
core/assessor/worker.py - Criterion evaluation
core/agents/evaluator.py - Assessment barrier
core/assessor/pipeline.py - Verdict and report
core/assessor/synthesizer.py
Durability and inspection
- Session state
core/session/state.py - Session workspace
core/workspace/session.py - Artifact archive
core/storage/archive.py - Trace inspection API
api/inspect.py - Trace store
fe_inspect/store.py
Other components
- Candidate
Connections 26
- Candidate → Interview frontend: provides inputs
README.md - Interview frontend → Session API: starts sessions
README.md - Session API → Document extraction: extracts uploads
api/routes.py - Session API → Profile and plan: starts profiling
api/routes.py - Profile and plan → Interview knowledge: retrieves knowledge
core/profiler/agent.py - Interview knowledge → RAG engine: uses backend
README.md - Session API → Turn controller: submits turns
api/main.py - Turn controller → Interview runner: runs turns
core/interview/controller.py - Interview runner → Turn speaker: runs speaker
core/interview/runner.py - Interview runner → Control plane: coordinates control
core/interview/runner.py - Turn speaker → Agent runtime: generates responses
README.md - Control plane → Agent runtime: delegates agents
core/orchestration/orchestrator.py - Agent runtime → LLM provider contract: streams completions
core/runtime/agent.py - Application lifecycle → Assessment queue: starts workers
api/main.py - Assessment workers → Assessment queue: claims jobs
core/assessor/worker.py - Assessment workers → Criterion evaluation: evaluates criteria
core/assessor/worker.py - Assessment workers → Assessment barrier: signals completion
core/assessor/worker.py - Assessment barrier → Verdict and report: starts synthesis
core/assessor/pipeline.py - Verdict and report → Artifact archive: archives artifacts
core/assessor/synthesizer.py - Session API → Session state: updates lifecycle
api/routes.py - Turn controller → Session state: checks session state
core/interview/controller.py - Profile and plan → Session workspace: reads and writes
core/profiler/agent.py - Verdict and report → Session workspace: uses evidence
core/assessor/synthesizer.py - Inspection frontend → Trace inspection API: views traces
README.md - Trace inspection API → Trace store: reads traces
- Trace store → Session state: shares database layer