Building Custom Providers for Toolpack SDK
Toolpack SDK ships with built-in support for OpenAI, Anthropic, Gemini, and Ollama. But sometimes you need to integrate a different provider -- xAI's Grok, Groq, DeepSeek, Azure OpenAI, or your company's own model. Custom providers make that possible without giving up any SDK features like tool calling, streaming, or embeddings.
This guide walks through exactly how to build one, based on the real xAI adapter used in the Toolpack CLI project.