Microsoft's guide to choosing your Python LLM stack, from raw APIs to agent frameworks
davemccollough · x · 2026-11-26
Microsoft's Pamela Fox and Arun Sekhar published a guide for Azure devs on choosing the right abstraction level for LLM apps, with the core advice: pick the lowest abstraction that meets your needs so you keep control while staying able to swap models.
The stack is broken into four tiers: HTTP APIs (Chat Completions, Responses, Messages) for maximum control; vendor SDKs (openai, anthropic); model-agnostic libraries (lite-llm, lm15, dspy) for portability; and agent frameworks (langchain, pydantic-ai, agent-framework) for batteries-included convenience. The piece walks through control-vs-convenience tradeoffs at each layer.
More from coding & agent
- AgentMail + HydraDB: One-Command Persistent Email Memory for AI Agents — MartinGTobias · 2026-11-26
- LeCun: Building Agents on LLMs Is a Recipe for Disaster — ylecun · 2026-11-26
- PM waits for an AI agent to fix prod: Spawn game's launch-day server meltdown — NickPassig · 2026-11-26
- Lessons from building a multi-tenant RAG platform with Django, Celery and OpenSearch — vikasgoddubarla · 2026-11-26
- OpenRouter's Emma Marie Cryer: Think cost per task, not cost per token — PaulShellDev · 2026-11-26
- Pyrefly hits 100% Python typing spec conformance, mypy and pyright lag behind — tdhopper · 2026-11-26