feat: add ai sdk experimental_activeTools example

old-agentic
Travis Fischer 2025-03-14 21:13:50 +08:00
rodzic 6d869a5f0a
commit f2df241f6d
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -13,7 +13,7 @@ async function main() {
model: openai('gpt-4o-mini'),
tools: createAISDKTools(weather),
experimental_activeTools: Array.from(weather.functions).map(
(fn) => fn.spec.name
(fn) => fn.name
),
toolChoice: 'required',
temperature: 0,