Model-Agnostic Routing Mechanism
Mastra unifies the invocation interfaces of underlying models. Developers can seamlessly switch between LLM providers using simple configuration objects or magic strings like `openai/gpt-4o`. This architecture not only neutralizes parameter differences across OpenAI, Anthropic, Gemini, etc., but also allows for dynamically injecting model resolution functions in various system components (like scorers and processors), drastically minimizing vendor lock-in risks.
