vercel · Vercel AI SDK Docs
AI SDK Agents: Configuring Call Options
Explains how to pass specific configuration options to the underlying model provider during agent tool calls, such as temperature, topP, or maxTokens.
Derived skill
Files assembled from official documentation
Viewing SKILL.md
AI SDK Agents: Configuring Call Options
Explains how to pass specific configuration options to the underlying model provider during agent tool calls, such as temperature, topP, or maxTokens.
When To Use
Use when you need to customize model parameters like temperature or token limits specifically for the tool-calling phase of an AI agent's execution loop.
Reference Files
| File | Contains | Use For |
|---|---|---|
SKILL.md | Entry point: scope, routing table, and workflow. | Start here. |
docs/ai-sdk-agents-configuring-call-options-workflow-guide.md | Documentation explaining how to use call options to pass type-safe structured inputs and dynamically modify agent settings in the AI SDK. | Questions about documentation explaining how to use call options to pass type-safe structured inputs and dynamically modify agent set... |
examples/ai-sdk-agents-configuring-call-options-ai-sdk-agents-toolloopagent-call-.text | A TypeScript code example demonstrating how to configure callOptionsSchema and prepareCall within a ToolLoopAgent using the AI SDK. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to configure callOptionsSchema and prepareCall within a ToolLoopAgent usi... |
examples/ai-sdk-agents-configuring-call-options-ai-sdk-agents-toolloopagent-call--2.text | A TypeScript code example demonstrating how to use ToolLoopAgent with a custom callOptionsSchema and prepareCall function to dynamically configure model settings. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to use ToolLoopAgent with a custom callOptionsSchema and prepareCall func... |
examples/ai-sdk-agents-configuring-call-options-ai-sdk-agents-toolloopagent-call--3.text | A TypeScript code example demonstrating how to configure callOptionsSchema when initializing a ToolLoopAgent in the AI SDK. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to configure callOptionsSchema when initializing a ToolLoopAgent in the A... |
examples/ai-sdk-agents-configuring-call-options-ai-sdk-agents-toolloopagent-call--4.text | A TypeScript code example demonstrating how to configure call options and a custom schema using the ToolLoopAgent in the AI SDK. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to configure call options and a custom schema using the ToolLoopAgent in... |
examples/ai-sdk-agents-configuring-call-options-ai-sdk-toolloopagent-calloptions-.text | A TypeScript code example demonstrating how to configure call options and the prepareCall function within a ToolLoopAgent. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to configure call options and the prepareCall function within a ToolLoopA... |
examples/ai-sdk-agents-configuring-call-options-ai-sdk-agents-toolloopagent-call--5.text | A TypeScript code example demonstrating how to configure custom call options using ToolLoopAgent and a Zod schema. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to configure custom call options using ToolLoopAgent and a Zod schema. |
examples/ai-sdk-agents-configuring-call-options-ai-sdk-agents-configure-call-opti.text | A TypeScript code example demonstrating how to use createAgentUIStreamResponse to pass custom options to an AI SDK agent. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to use createAgentUIStreamResponse to pass custom options to an AI SDK ag... |
What This Skill Covers
- Call options allow you to pass type-safe structured inputs to your agent. Use them to dynamically modify any agent setting based on the specific request.
- Main sections:
Why Use Call Options?,How It Works,Basic Example,Modifying Agent Settings,Dynamic Model Selection.
Workflow
- Open the most relevant file under
docs/for the exact documented workflow and wording. - Open
schemas/files for exact structured contracts. - Open
examples/files for concrete requests, commands, snippets, and manifests. - Do not add behavior or configuration that is not present in the attached source files.
Canonical source: https://ai-sdk.dev/docs/agents/configuring-call-options