Skip to main content
hastekit.NewLLMClient holds provider configuration. client.Model("Provider/model") selects a provider/model pair implementing the model API. Reuse that value in AgentConfig.LLM or call it directly. With credentials in your environment:
See providers and keys for multiple credentials, custom base URLs, and provider middleware. Supported operations differ by adapter and model; a shared request field does not imply universal support.

Choose an API

Provider-hosted web search and code execution are separate from Go function tools and SDK sandbox tools. Their availability and billing belong to the selected provider. For agent-specific retry budgets and fallback targets, use agent resilience middleware. For exact request shapes, see the model API reference.