WorkflowForgeAI Agent and Workflow Laboratory
WorkflowForgeAgentsviva_examiner
Home
WorkflowForge · AI Agent and Workflow Laboratory © 2026Built by Shivang GitHub
Agents
Agent

viva_examiner

geminigemini-3.8-flashtemp 0.3max 12000 tokensagents/viva_examiner

A mock final-year project viva. Upload your report or slides; the examiner finds the claims you'll struggle to defend, then grills you by voice (English or Hinglish), with follow-ups, and ends with a scorecard, model answers and what to prepare. Free models only (Gemini, Groq, Whisper).

Open its interface

README

agents/viva_examiner/README.md

External Examiner

A mock final-year project viva for Indian college students. Upload your project report or slides. The examiner reads them the way an external examiner does, finds the claims you'll struggle to defend, then grills you out loud in English or Hinglish, follow-up questions included. At the end you get a scorecard, model answers and a list of what to prepare before the real viva.

It has its own interface (ADR 0007): open it from the Agents page. Signed-in runners can take a viva. Everyone else can look around.

How a viva goes

  1. Your report. You can upload up to 3 files: PDF, PPTX, DOCX or TXT/MD, 10 MB each. A PDF goes to the lab as it is, and its text layer is read at upload. Slides (.pptx) and Word files (.docx) are turned into text in your browser (JSZip), including speaker notes, and uploaded as text. No report? Pick one of the two built-in samples.

  2. Choose an examiner and the viva settings:

    • Strict External: terse, sceptical, wants exact numbers;
    • Friendly Internal: encouraging, gives one hint when you're stuck;
    • The "Why?" HOD: wants every design choice defended, plus cost and scale;

Output schema

the final answer must be JSON matching this schema
{
  "$defs": {
    "Summary": {
      "description": "`agent_output.summary`: what run lists show.",
      "properties": {
        "kind": {
          "enum": [
            "analysis",
            "scorecard"
          ],
          "title": "Kind",
          "type": "string"
        },
        "title": {
          "default": "",
          "title": "Title",
          "type": "string"
        },
        "persona": {
          "default": "",
          "title": "Persona",
          "type": "string"
        },
        "weak_spots": {
          "default": 0,
          "title": "Weak Spots",
          "type": "integer"
        },
        "questions": {
          "default": 0,
          "title": "Questions",
          "type": "integer"
        },
        "score": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Score"
        },
        "verdict": {
          "default": "",
          "title": "Verdict",
          "type": "string"
        },
        "analysis_run": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Analysis Run"
        },
        "files": {
          "items": {
            "type": "string"
          },
          "title": "Files",
          "type": "array"
        }
      },
      "required": [
        "kind"
      ],
      "title": "Summary",
      "type": "object"
    }
  },
  "properties": {
    "summary": {
      "$ref": "#/$defs/Summary"
    }
  },
  "required": [
    "summary"
  ],
  "title": "VivaOutput",
  "type": "object"
}

Evaluation

agents/viva_examiner/evaluation · 3 cases · suite viva_examiner_planted_weak_spots

Sample reports with weak spots planted on purpose: does the examiner find them, and are its questions about this project?

Not evaluated yet.

All suites

Past runs

runs from its own interface · latest 50

No runs yet

Run this agent from its own interface; every run shows up here with a replay.

Open its interface
  • language (English or Hinglish), and 6, 10 or 14 questions.
  • The examiner reads the report. This is a run, with a live view of its steps. It maps the project, then finds 5-10 weak spots, the most dangerous first. Each one comes with the exact quote from your report and the question an examiner would ask. Kinds of weak spot:

    • a claim with no proof;
    • no baseline to compare against;
    • a choice with no reason given;
    • numbers that differ between sections;
    • text that reads copied or generic;
    • a missing detail, a scope gap, an ethics or privacy gap, or a buzzword.

    Then it plans the questions: warm-up, fundamentals, implementation, weak spots, what-if. You get the examiner's brief to read before you start.

  • The viva. The examiner speaks each question (your browser's own voice). You answer:

    • by voice: press the mic. The lab records, Whisper transcribes, and you can fix anything it misheard before you submit;
    • or by typing.

    A vague answer gets one probing follow-up, and a weak-spot question quotes your report back at you. Practice mode shows marks after each answer. Otherwise, as in a real viva, you see them at the end.

  • The scorecard. This is a run too:

    • a score out of 100 (the average of the marks out of 10) and a verdict (ready / almost / not ready);
    • marks for Fundamentals, Implementation, Defending results and Communication;
    • the 3-5 things to prepare first;
    • model answers to your weakest questions;
    • "say this, not that";
    • every question with your answer.

    You can open it as a printable page or download it.

  • Keys and cost: free models only

    JobModel (free tier)Key in backend/.env
    Reading the report, planning questionsGemini gemini-3.8-flash (long context), else GroqGEMINI_API_KEY
    Judging each answer, the scorecardGroq openai/gpt-oss-120b (fast), else GeminiGROQ_API_KEY
    Speech to textWhisper whisper-large-v3-turbo on GroqGROQ_API_KEY
    The examiner's voicethe browser's built-in speech synthesisnone
    • One key is enough: with only one of the two keys, that provider does every job. Without GROQ_API_KEY you type your answers. With neither key, the page says what to add.
    • Busy free tiers: when a free tier is overloaded or rate-limited after the platform's retries (HTTP 429/5xx), the call moves to the other provider, and the live view says so. Groq's free tier gets at most 24,000 characters of the report; Gemini gets 120,000.
    • Scanned PDFs aren't read: the lab's vision path uses a paid model, so the examiner turns it off and asks for a PDF exported with text, or the .docx / .pptx itself.
    • Usage per viva:
      • reading the report: 2 LLM calls (about a minute on Gemini);
      • each answer: 1 LLM call (3-4 s) plus one Whisper call (2-3 s) when you speak; a blank answer costs nothing;
      • the scorecard: 1 call.

    Privacy

    • Your recording goes from the lab page to Whisper and is thrown away. It is never stored.
    • Your report is an uploaded file, private to you (ADR 0006).
    • What the examiner wrote and what you answered live in the runs' files, which only signed-in viewers can read. These are the dossier, the brief and the scorecard.
    • What signed-out visitors see: the runs' public output is a one-line summary, e.g. "Viva scorecard for 'X': 62/100 (almost), 10 answers" (ADR 0011).
    • Run inputs: your typed or transcribed answers travel in the scorecard run's inputs. Signed-in viewers can read those, as they can for any run in the lab. Don't upload anything confidential.

    Using it without the interface

    Run inputs (POST /api/v1/agents/viva_examiner/app/runs or the API):

    {"user_input": "Viva on sample", "inputs": {"mode": "analyze", "sample": "attendance", "persona": "strict_external", "language": "english", "questions": 10}}
    {"user_input": "Viva on my report", "inputs": {"files": ["<uploaded file id>"], "persona": "hod_why", "language": "hinglish"}}
    {"user_input": "Scorecard", "inputs": {"mode": "scorecard", "analysis_run": "<analysis run id>", "turns": [{"id": "Q1", "question": "...", "answer": "...", "score": 6}]}}
    

    report_text (pasted text, up to 24,000 characters) also works in place of files / sample.

    App actions (POST .../app/actions/<name>):

    • dossier {analysis_run}: the run's dossier;
    • transcribe {audio_b64, language, hint}: text and seconds;
    • answer {analysis_run, turns, turn_id, question, answer, seconds}: the evaluation, the turn to keep, the next question or done.

    The interface keeps the transcript and sends it back with each answer, so no viva state lives on the server.

    How it works

    FileWhat it does
    agent.pythe lab entry point: runs (analyze, scorecard), app actions, the page with its configuration filled in
    pipeline.pythe examiner's thinking: map → weak spots → plan, judge an answer, pick the next question, the scorecard
    prompts.pyevery prompt; the report and the student's words are marked untrusted
    llm.pyJSON calls through UnifiedLLMClient, a repair round for bad JSON, moving to the other free provider when one is busy
    source.py, samples/where the report comes from: uploaded files, pasted text or a fictional sample
    audio.pychecks a recording (size, type from its bytes) before speech to text
    report.pyexaminer-brief.md, scorecard.html (escaped, printable), scorecard.md
    store.pyreads a finished analysis run's dossier.json back (cached in memory)
    app.htmlthe interface: setup, live reading view, brief, viva room (mic, voice, timer), scorecard, past vivas

    The page uses two lab capabilities from ADR 0012:

    • LAB.upload(file): the file goes to POST /files as yours;
    • LAB.mic.start()/stop(): the lab page records, shows a "Recording" bar with its own Stop button, and hands the clip over.

    The sandboxed frame itself never gets microphone access.

    Evaluation

    evaluation/golden.json reads the two built-in samples, which are fictional reports with weak spots planted on purpose. For example, the attendance report claims 99.2% in the abstract but 96.4% in the results, and calls SQLite "blockchain-secured". The crop app is "completely offline" but predicts on an AWS server. Three cases cover two samples, three examiners and both languages. Scores:

    • planted_weak_spots_found: the share of planted problems the examiner flagged;
    • questions_specific: the share of questions that name something specific to the project;
    • plan_shape: the right number of questions, with at least two aimed at weak spots.

    On 2026-10-18, live runs on the free models flagged every major planted problem in both samples.

    Limits

    • It's a mock: real examiners differ, and the model can be wrong about a fact. The model answers say what to check in your report when unsure.
    • Hinglish speech is transcribed in Roman script when Whisper follows the hint, but it may write Devanagari. The examiner reads both.
    • The examiner's voice is whatever your browser and OS provide. Chrome and Edge on Windows usually have an Indian-English voice.
    • .ppt / .doc (the old formats) aren't read: save as .pptx / .docx or export a PDF.
    • Reloading the page in the middle of a viva loses the unsent transcript. The brief stays: reopen it from Your past vivas and start again.