Middleware components that intercept language model calls for caching, cost tracking, and prompt management.