Design a reusable Python client library for calling multiple LLM providers
Interview insights are lockedSee how often this is asked and which companies asked it with Buncho Pro.Your company has ten services that call LLMs, each with copy-pasted provider code. Design an internal Python package, llmkit, that they all use.
Cover:
- the public API and provider abstraction,
- reliability (retries, timeouts, rate limits, fallbacks),
- observability and cost control,
- caching, structured output and testing,
- sync and async support, and how you would roll it out.