Skip to content

VBAgent

Multi-agent physics question processing system with conversational interface

PyPI version Python 3.12+ License: MIT


What is VBAgent?

VBAgent is a comprehensive multi-agent system for processing physics, chemistry, mathematics, and biology questions. It combines AI-powered agents for image processing and durable syllabus-driven problem authoring, with natural-language access through MCP.

Key Features

🤖 7 Specialized Agents

  • Agent 1: Image Classification - Fast categorization with gpt-4o-mini
  • Agent 2: Diagram Analysis - Hierarchical diagram classification
  • Agent 3: Difficulty Assessment - Detailed difficulty analysis
  • Agent 4: LaTeX Classification - Batch processing of LaTeX files
  • Agent 5: Idea Generator - Generate problems from concepts
  • Agent 6: Problem Combiner - Combine multiple problems
  • Agent 7: TikZ Checker - Automatic validation and fixing

💬 Natural-language MCP authoring

Use the transparent built-in host:

$ vbagent chat --output agentic/authoring

It shows every controller and typed tool input/output and locally confirms model execution. Or connect another MCP-capable host to the server:

$ vbagent mcp --output agentic/authoring

Ask the host to inspect the syllabus and plan a batch. VBAgent starts model calls only after the plan is shown and explicitly confirmed.

📊 Complete Pipeline

  • Image → LaTeX extraction
  • TikZ diagram generation
  • Classification and metadata
  • Difficulty assessment
  • Variant generation
  • Database management

⚡ Fast & Efficient

  • Parallel processing (Scanner + TikZ)
  • Optimized model selection
  • Smart caching

Quick Start

# Install
pip install vbagent

# Initialize
vbagent init

# Process an image
vbagent process -i question.png

# Talk naturally to the durable authoring workflow
vbagent chat --output agentic/authoring

# Or expose it to another MCP host
vbagent mcp --output agentic/authoring

Use Cases

  • Question Bank Creation: Scan and organize thousands of questions
  • Problem Generation: Create new problems from ideas
  • Variant Creation: Generate numerical, contextual, and conceptual variants
  • TikZ Diagrams: Auto-generate publication-quality diagrams
  • Metadata Extraction: Rich metadata for searchable question banks
  • DPP Creation: Smart problem set generation

Architecture

Input (Image/LaTeX/Idea)
         ↓
   Classification (Agent 1 + 2)
         ↓
   ┌─────────────────┐
   │  Scanner + TikZ │  (Parallel)
   └─────────────────┘
         ↓
   Difficulty (Agent 3)
         ↓
   Metadata Merging
         ↓
   Output (LaTeX + JSON)

What's New

v0.2.2 - Conversational Problem Generation

  • ✨ Generate problems from ideas using natural language
  • 🤖 Full pipeline integration (TikZ, classification, difficulty)
  • 💬 Typed natural-language authoring through MCP
  • 📦 Complete metadata like image/tex processing

See full changelog →

Documentation

Community

License

MIT License - see LICENSE for details.