Skip to content

Architecture

Sugers edited this page Jun 24, 2026 · 1 revision

Architecture

Overview

Agent Mill uses a frontend-backend separated microservice architecture.

Layer Technology
Backend Python 3.11+ / FastAPI / SQLAlchemy 2.0 (async)
Frontend Vue 3 / TypeScript / Vite / Pinia / Element Plus
Database MySQL 8.0
Vector Search ZVec (Alibaba, Rust kernel, embedded)
AI SDK Claude Agent SDK (Anthropic) + OpenAI SDK

Streaming Architecture

Two streaming paths produce identical SSE events:

Anthropic Path:    Claude Agent SDK native SSE
                   → meta → thinking → text → tool_use → tool_result → file → ui → error → done

OpenAI Path:       Custom tool_calls multi-turn loop
                   → same SSE event protocol

Clone this wiki locally