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.

Original post →

More from coding & agent

coding & agent channel →