We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 16535a2 commit 9ee5d52Copy full SHA for 9ee5d52
packages/ai/src/agent/tools-to-model-tools.ts
@@ -1,6 +1,8 @@
1
import type { LanguageModelV2FunctionTool } from '@ai-sdk/provider';
2
import { asSchema, type ToolSet } from 'ai';
3
4
+// Mirrors the tool→LanguageModelV2FunctionTool mapping in the core AI SDK's
5
+// prepareToolsAndToolChoice (ai/src/prompt/prepare-tools-and-tool-choice.ts).
6
export function toolsToModelTools(
7
tools: ToolSet
8
): LanguageModelV2FunctionTool[] {
0 commit comments