STEM Agent: A Self-Adapting, Tool-Enabled, Extensible Architecture for Multi-Protocol AI Agent Systems
Abstract
Current AI agent frameworks commit early to a single interaction protocol, a fixed tool integration strategy, and static user models, limiting their deployment across diverse interaction paradigms. To address these constraints, we introduce STEM Agent (Self-adapting, Tool-enabled, Extensible, Multi-agent), a modular architecture inspired by biological pluripotency in which an undifferentiated agent core differentiates into specialized protocol handlers, tool bindings, and memory subsystems that compose into a fully functioning AI system. The framework unifies five interoperability protocols (A2A, AG-UI, A2UI, UCP, and AP2) behind a single gateway, introduces a Caller Profiler that continuously learns user preferences across more than twenty behavioral dimensions, externalizes all domain capabilities through the Model Context Protocol (MCP), and implements a biologically inspired skills acquisition system in which recurring interaction patterns crystallize into reusable agent skills through a maturation lifecycle analogous to cell differentiation. Complementing these capabilities, the memory system incorporates consolidation mechanisms, including episodic pruning, semantic deduplication, and pattern extraction, designed for sub-linear growth under sustained interaction. A comprehensive 413-test suite validates protocol handler behavior and component integration across all five architectural layers, completing in under three seconds.
Figures & tables
| Layer | Component | Key Counts |
|---|---|---|
| 1 | Caller / User Layer | 4 adapters |
| 2 | Standard Interface (Gateway) | 5 protocols |
| 3 | Agent Core | 5 engines |
| 3.5 | Security Layer | 4 IAM plugins |
| 4 | Memory System | 4 memory types |
| 5 | MCP Integration | 3 transports |
| Protocol | Endpoint | Transport | Schemas | Use Case |
|---|---|---|---|---|
| A2A | POST /a2a | JSON-RPC 2.0 | 6 | Agent-to-agent task delegation, inter-agent messaging, agent card discovery |
| AG-UI | POST /ag-ui | SSE | 20 | Real-time UI streaming; maps pipeline phases to typed events |
| A2UI | POST /a2ui/render | SSE + REST | 19 | Dynamic UI composition with 16 component primitives |
| UCP | POST /ucp/* | REST | 14 | Commerce checkout sessions with idempotency |
| AP2 | POST /ap2/* | REST | 10 | Mandate-based payments with audit trail |
| Category | Dims | Example Dimensions |
|---|---|---|
| Philosophy | 8 | pragmatism vs. idealism, risk tolerance, innovation orientation |
| Principles | 4 | correctness over speed, testing emphasis, security mindedness |
| Style | 5 | formality, verbosity, technical depth, structure preference |
| Habits | 4+ | session length, iteration tendency, peak hours |
| Framework | Proto. | Adapt | Mem. | Skills | Com. |
|---|---|---|---|---|---|
| AutoGen | 1 | × | 1 | × | × |
| MetaGPT | 1 | × | 1 | × | × |
| CrewAI | 1 | × | 1 | × | × |
| LangChain | 1 | × | 2 | × | × |
| STEM | 3+2 † | ✓ | 4 | ✓ | ✓ |
Agentic AI
Agentic artificial intelligence studies systems that plan, use tools, learn from feedback, and act toward goals with varying degrees of autonomy.
See all 211 papers