Vibes does not have a dedicated thinking API. Extended reasoning is configured at the model constructor level using provider-specific options from the Vercel AI SDK. The framework passes these options through automatically.
Anthropic extended thinking
Pass athinking option directly to the anthropic() model constructor. Set budgetTokens to the maximum number of tokens the model can use for internal reasoning.
Google extended thinking
Some Gemini models enable extended reasoning by model selection - simply choosing a “thinking” model variant is sufficient. No additional configuration is required.@ai-sdk/google provider’s constructor options in the same pattern as Anthropic.
Why is thinking not on AgentOptions?
The framework’sModelSettings maps to Vercel AI SDK’s top-level generateText options - fields like maxTokens, temperature, and topP. These are standard options supported by all providers.
Provider-specific features like thinking go through the model constructor’s providerOptions, which the AI SDK processes before the framework is involved. The Vibes framework does not intercept or re-expose these options - they flow from the model constructor directly to the provider.
This means:
- Correct: configure thinking on the model constructor:
anthropic("model", { thinking: ... }) - Incorrect: look for a
thinkingkey onAgentOptionsormodelSettings- it does not exist
API reference
| Configuration | Location | Notes |
|---|---|---|
thinking option | Model constructor (e.g. anthropic("model", { thinking: ... })) | Provider-specific; not on AgentOptions |
modelSettings.maxTokens | AgentOptions.modelSettings or run-time modelSettings | Must exceed budgetTokens when thinking is enabled |
thinking.type | "enabled" | Required field for Anthropic thinking |
thinking.budgetTokens | number | Max tokens for internal reasoning; maxTokens must be higher |