Skip to content

Commit 9ee5d52

Browse files
committed
add comment referencing core AI SDK's prepareToolsAndToolChoice
1 parent 16535a2 commit 9ee5d52

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/ai/src/agent/tools-to-model-tools.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import type { LanguageModelV2FunctionTool } from '@ai-sdk/provider';
22
import { asSchema, type ToolSet } from 'ai';
33

4+
// Mirrors the tool→LanguageModelV2FunctionTool mapping in the core AI SDK's
5+
// prepareToolsAndToolChoice (ai/src/prompt/prepare-tools-and-tool-choice.ts).
46
export function toolsToModelTools(
57
tools: ToolSet
68
): LanguageModelV2FunctionTool[] {

0 commit comments

Comments
 (0)