Local Email Agent
Production-ready email assistant that combines Microsoft's Phi-4 local language model with vector search capabilities for intelligent email management and calendar integration. Features custom middleware to convert Phi-4's natural JSON output into proper LangChain tool calls, hierarchical agent architecture with supervisor and sub-agents for email and calendar operations, and integration with Microsoft 365 through MCP adapters. Includes PostgreSQL with pgvector for semantic email search, human-in-the-loop workflows for approval before sending emails or scheduling meetings, and memory management for learning user preferences.